unistr/u8-strchr: Optimize non-ASCII argument case.
[gnulib.git] / ChangeLog
1 2010-07-18  Bruno Haible  <bruno@clisp.org>
2
3         unistr/u8-strchr: Optimize non-ASCII argument case.
4         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5         because the first byte often matches anyway.
6         Reported by Pádraig Brady <P@draigbrady.com>.
7
8 2010-07-15  Karl Berry  <karl@gnu.org>
9
10         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11
12 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13
14         getcwd: on Solaris, work better if ancestors are inaccessible
15         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16         buffer and size, try again with a large buffer.  This works better
17         on Solaris, since its getcwd succeeds even if the path to the root
18         is inaccessible, and this is helpful in common cases such as .zfs
19         hidden directories.  Problem reported by J Chapman Flack in
20         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21         Use system getcwd if it's declared, not merely if it's partly
22         working; use the partly-working test only to avoid needless effort
23         if the system getcwd fails.
24         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25         comment that was already obsolete and is now even more obsolete.
26         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27         now might call strdup.
28
29 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30
31         pthread: Add enough so that coreutils/src/sort.c compiles.
32         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
33         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
34         gnulib. Include <sched.h> and <time.h>, as per POSIX.
35         Include <sys/types.h>, in case it defines pthread_t.
36         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
37         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
38         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
39         (pthread_rwlockattr_t, pthread_spinlock_t):
40         New typedefs, if HAVE_PTHREAD_T is not defined.
41         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
42         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
43         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
44         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
45         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
46         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
47         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
48         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
49         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
51         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
52         New macros.
53         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
54         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
55         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
56         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
57         (pthread_spin_unlock): New dummy functions.
58         (pthread_create): Return EAGAIN; don't set errno.
59         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
60         require AC_C_INLINE.
61         * modules/pthread (Depends-on): Add sched, time.
62         (pthread.h): Use AM_V_GEN.
63
64 2010-07-13  Bruno Haible  <bruno@clisp.org>
65
66         striconveh: Don't malloc memory if the result buffer is sufficient.
67         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
68         buffer if its size is sufficient.
69         Reported by Ludovic Courtès <ludo@gnu.org>.
70
71 2010-07-13  Bruno Haible  <bruno@clisp.org>
72
73         strtod: Add safety check.
74         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
75
76 2010-07-12  Bruno Haible  <bruno@clisp.org>
77
78         Unify tests that set gl_cv_func_ldexpl_no_libm.
79         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
80         gl_FUNC_LDEXPL.
81         (gl_FUNC_LDEXPL): Invoke it.
82         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
83
84 2010-07-12  Bruno Haible  <bruno@clisp.org>
85
86         Unify tests that set gl_cv_func_ldexp_no_libm.
87         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
88         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
89         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
90         (configure.ac): Simply invoke gl_FUNC_LDEXP.
91         * modules/strtod (Files): Add m4/ldexp.m4.
92
93 2010-07-12  Bruno Haible  <bruno@clisp.org>
94
95         Unify tests that set gl_cv_func_frexpl_no_libm.
96         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
97         gl_FUNC_FREXPL_NO_LIBM.
98         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
99         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100
101 2010-07-12  Bruno Haible  <bruno@clisp.org>
102
103         Unify tests that set gl_cv_func_frexp_no_libm.
104         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
105         gl_FUNC_FREXP_NO_LIBM.
106         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
107         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
108
109 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
110
111         memcoll: clarify sizes versus lengths, document better, and tweak perf
112         * lib/memcoll.c (strcoll_loop, memcoll0):
113         Improve quality of descriptive comments.  Name variables
114         consistently as to whether they are lengths (which do not include
115         terminating null) versus sizes (which do).
116         * lib/xmemcoll.c (xmemcoll0): Likewise.
117         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
118         returned when s1size == 0; this is easier to compile and saves
119         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
120
121 2010-07-12  Bruno Haible  <bruno@clisp.org>
122
123         Tests for module '_Exit'.
124         * modules/_Exit-tests: New file.
125         * tests/test-_Exit.sh: New file.
126         * tests/test-_Exit.c: New file.
127
128         New module '_Exit'.
129         * lib/stdlib.in.h (__attribute__): New macro.
130         (_Exit): New declaration.
131         * lib/_Exit.c: New file.
132         * m4/_Exit.m4: New file.
133         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
134         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
135         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
136         * modules/_Exit: New file.
137         * tests/test-stdlib-c++.cc (_Exit): Check signature.
138         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
139
140 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
141
142         strtod: make it more-accurate typically, and don't require libm
143         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
144         Include limits.h.  Don't include string.h.
145         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
146         (locale_isspace): New function, so that no casts are needed to
147         check whether *s is a space.
148         (ldexp): Provide an unused dummy if not available.
149         (scale_radix_exp, parse_number, underlying_strtod): New functions.
150         (strtod): Use them.  This implementation prefers to use the
151         underlying strtod if available, falling back on our own code
152         only to fix known bugs.  This is more likely to produce an
153         accurate result.  Also, it avoids the use of libm functions.
154         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
155         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
156         was absent, but it caused a test failure with coreutils.
157         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
158         with libm.
159         * modules/strtod (Makefile.am, Link): libm is no longer needed.
160         * modules/strtod-tests (Makefile.am): Likewise.
161
162 2010-07-11  Pádraig Brady  <P@draigBrady.com>
163             Bruno Haible  <bruno@clisp.org>
164
165         unistr/u8-strchr: Optimize ASCII argument case.
166         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
167
168 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
169
170         (x)memcoll: minor tweaks
171         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
172         is after the type that it qualifies.
173         (memcoll0): Likewise.
174         * lib/memcoll.h (memcoll0): Likewise.
175         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
176         * lib/xmemcoll.h (xmemcoll0): Likewise.
177         * lib/memcoll.c (memcoll0): Correct the comment.  This function
178         differs from memcoll in that the NUL byte is part of the argument.
179         Omit the abort-checks, as performance is a real issue here.  Plus,
180         the checks were wrong anyway (an off-by-one error).  Omit local
181         variable 'diff', as it's a bit clearer that way.
182         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
183         no longer needed.
184
185 2010-07-08  Chen Guo <chenguo4@yahoo.com>
186
187         (x)memcoll: speedup when input is known to be NUL delimited
188         * lib/memcoll.c: Include stdlib.
189         (memcoll0) New function.
190         (strcoll_loop) New function, refactored for use in both memcoll
191         and memcoll0.
192         * lib/memcoll.h: Add prototype for memcoll0.
193         * lib/xmemcoll.c: (xmemcoll0) New function.
194         (collate_error) New function, refactored for use in both xmemcoll
195         and xmemcoll0.
196         * lib/xmemcoll.h: Add prototype for xmemcoll0.
197         * m4/memcoll.m4: add inline invocation.
198
199 2010-07-06  Pádraig Brady  <P@draigBrady.com>
200
201         * build-aux/bootstrap: Remove any local translations
202         from the translation project synchronization directory,
203         so that local only translations are not distributed.
204
205 2010-07-04  Bruno Haible  <bruno@clisp.org>
206
207         fsusage: Clarify which code applies to which platforms.
208         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
209         platform.
210         * lib/fsusage.c (get_fs_usage): Likewise.
211
212 2010-07-04  Bruno Haible  <bruno@clisp.org>
213
214         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
215         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
216         Reported by Martin Lambers <marlam@marlam.de>.
217
218 2010-07-04  Jim Meyering  <meyering@redhat.com>
219
220         hash: once again explicitly disallow insertion of NULL
221         * lib/hash.c (hash_insert0): Reinstate just-removed test:
222         inserting a NULL pointer cannot work with these functions.
223         Add a comment with details.
224         This reverts part of the 2010-07-01 commit, 5bef1a35
225         "hash: extend module to deal with non-pointer keys".
226
227 2010-07-01  Bruno Haible  <bruno@clisp.org>
228
229         stdbool: Update doc.
230         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
231         Info from Christian Weisgerber <naddy@mips.inka.de>.
232
233 2010-07-01  Jim Meyering  <meyering@redhat.com>
234
235         hash: extend module to deal with non-pointer keys
236         * lib/hash.c (hash_insert0): New interface, much like hash_insert
237         but that allows insertion of non-pointer entries.
238         Do not disallow an ENTRY value of NULL.
239         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
240         * lib/hash.h (hash_insert0): Declare.
241
242 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
243
244         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
245         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
246         not present (i.e. with autoconf 2.59 and when using gettextize, not
247         gnulib), require AC_GNU_SOURCE instead.
248
249 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
250
251         idpriv-drop: Fix tests.
252         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
253         not to the test-idpriv-droptemp program.
254
255 2010-06-29  Bruno Haible  <bruno@clisp.org>
256
257         string: Fix syntax error with g++ 2.96.
258         * lib/string.in.h (__pure__): Remove definition.
259         (_GL_ATTRIBUTE_PURE): New macro.
260         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
261         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
262         Reported by Christian Weisgerber <naddy@mips.inka.de>.
263
264 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
265
266         unitypes: Fix bug introduced on 2010-05-18.
267         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
268
269 2010-06-22  Eric Blake  <eblake@redhat.com>
270
271         memmem: slight optimization
272         * lib/str-two-way.h (critical_factorization): Update comments.
273         Reduce work during factorization phase.
274         Reported by Carlos Bueno <carlos@bueno.org>.
275
276 2010-06-21  Bruno Haible  <bruno@clisp.org>
277
278         Fix HAVE_CALLOC_POSIX misnomer.
279         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
280         !HAVE_CALLOC_POSIX.
281         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
282         HAVE_CALLOC_POSIX.
283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
284         instead of HAVE_CALLOC_POSIX.
285         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
286         HAVE_CALLOC_POSIX.
287
288         Use modern idiom for calloc() replacement.
289         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
290         AC_FUNC_CALLOC.
291         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
292         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
293         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
294         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
295         (gl_REPLACE_CALLOC): New macro.
296
297 2010-06-21  Bruno Haible  <bruno@clisp.org>
298
299         Fix HAVE_REALLOC_POSIX misnomer.
300         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
301         !HAVE_REALLOC_POSIX.
302         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
303         HAVE_REALLOC_POSIX.
304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
305         instead of HAVE_REALLOC_POSIX.
306         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
307         HAVE_REALLOC_POSIX.
308
309         Use modern idiom for realloc() replacement.
310         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
311         AC_FUNC_REALLOC.
312         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
313         Autoconf's AC_FUNC_REALLOC.
314         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
315         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
316         (gl_REPLACE_REALLOC): New macro.
317         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
318
319 2010-06-21  Bruno Haible  <bruno@clisp.org>
320
321         Fix HAVE_MALLOC_POSIX misnomer.
322         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
323         !HAVE_MALLOC_POSIX.
324         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
325         HAVE_MALLOC_POSIX.
326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
327         instead of HAVE_MALLOC_POSIX.
328         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
329         HAVE_MALLOC_POSIX.
330
331         Use modern idiom for malloc() replacement.
332         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
333         AC_FUNC_MALLOC.
334         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
335         Autoconf's AC_FUNC_MALLOC.
336         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
337         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
338         (gl_REPLACE_MALLOC): New macro.
339         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
340
341 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
342
343         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
344         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
345         This macro takes 3 arguments, not 4.
346
347 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
348
349         ipv6: fix detection under mingw
350         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
351         in6_addr.
352
353 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
354
355         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
356         that strtod() works when cross-compiling to a glibc version known
357         to work.
358
359 2010-06-15  Bruno Haible  <bruno@clisp.org>
360
361         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
362
363 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
364
365         select: Correct timeout.
366         * lib/select.c (rpl_select): Compute wait_timeout correctly.
367
368 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
369
370         git-version-gen: init shell var to avoid env var influence
371         * build-aux/git-version-gen (v): Init shell var to empty.
372
373 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
374
375         priv-set: Don't assume that priv.h exists merely because getppriv does.
376         See Jan Andersen's bug report about AIX 5L in
377         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
378         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
379         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
380         * lib/priv-set.h: Likewise.
381         * tests/test-priv-set.c: Likewise.
382
383 2010-06-13  Bruno Haible  <bruno@clisp.org>
384
385         relocatable: Make it easier to test whether to install wrappers.
386         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
387         RELOCATABLE_VIA_WRAPPER.
388
389 2010-06-13  Bruno Haible  <bruno@clisp.org>
390
391         gnulib-tool: Display specified modules and dependencies differently.
392         * gnulib-tool (func_show_module_list): New function.
393         (func_import, func_create_testdir): Invoke it.
394         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
395
396 2010-06-13  Bruno Haible  <bruno@clisp.org>
397
398         gnulib-tool: Align code of func_import and func_create_testdir.
399         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
400         specified_modules.
401
402 2010-06-12  Jim Meyering  <meyering@redhat.com>
403
404         test-inttostr: avoid spurious failure on Solaris 9
405         * tests/test-inttostr.c (main): Skip the test when snprintf fails
406         to accept "%ju".  Reported by Bruno Haible.
407
408 2010-06-11  Jim Meyering  <meyering@redhat.com>
409
410         test-sys_socket: mark variables as used more readably
411         * tests/test-sys_socket.c (main): Mark otherwise unused variables
412         as "used" explicitly via (void) statement casts.  This is more
413         readable than using them in an artificial return expression.
414         Suggestion from Bruno Haible.
415
416 2010-06-11  Bruno Haible  <bruno@clisp.org>
417
418         Avoid some more warnings from "gcc -Wwrite-strings".
419         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
420         to 'const char *'.
421         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
422         * tests/test-c-strcasestr.c (main): Likewise.
423         * tests/test-mbscasestr1.c (main): Likewise.
424         * tests/test-mbscasestr2.c (main): Likewise.
425         * tests/test-memmem.c (main): Likewise.
426         * tests/test-strstr.c (main): Likewise.
427         * tests/test-strcasestr.c (main): Likewise.
428
429 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
430
431         init.sh: change framework_failure_ to fail with status 99, not 1
432         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
433         automake's parallel-tests rule that this is an unexpected failure,
434         even if the test is listed in XFAIL_TESTS.
435
436 2010-06-11  Jim Meyering  <meyering@redhat.com>
437
438         test-inttostr: avoid warnings about 4-6KB literal strings
439         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
440         Include "macros.h", for its definition of ASSERT.
441         (CK): s/assert/ASSERT/
442         * modules/inttostr-tests (Files): Add macros.h.
443
444         init.sh: don't use $ME_ or skip_ before they are defined
445         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
446         their first uses.  Also hoist their companions: warn_, fail_,
447         framework_failure_, $stderr_fileno.  Prompted by a patch from
448         Stefano Lattarini.
449
450         test-sys_socket: avoid set-but-not-used warnings from gcc
451         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
452         avoid warning about set-but-not-used variables.
453
454         test-xvasprintf: avoid 'const' discard warnings
455         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
456         "const" when assigning from literal strings.
457         (test_xasprintf): Add "void" in function argument list to placate
458         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
459
460         tests: avoid compilation warnings in argmatch and exclude tests...
461         in packages that define ARGMATCH_DIE_DECL, like coreutils.
462         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
463         Since it always exits, declare with the "noreturn" attribute.
464         * tests/test-argmatch.c: Likewise.
465
466         tests: avoid 'const' discard warnings in mbsstr tests
467         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
468         * tests/test-mbsstr2.c (main): Likewise.
469
470         test-verify: avoid warning from gcc's -Wmissing-declarations
471         * tests/test-verify.c (function): Declare to be static.
472
473         test-inttostr.c: include <string.h> for use of strcmp
474         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
475
476         test-linkat: avoid failed assertion on "other" architectures
477         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
478         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
479         sparc: https://bugs.launchpad.net/bugs/591968
480
481 2010-06-11  Jim Meyering  <meyering@redhat.com>
482
483         printf.m4: avoid autoconf's "Expanded Before Required" warning
484         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
485         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
486         autoconf warning.
487
488 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
489
490         Replacement header templates are now named with ".in", not "_".
491         * doc/gnulib-intro.texi: Correct.
492
493 2010-06-10  Jim Meyering  <meyering@redhat.com>
494
495         inttostr-tests: depend on snprintf, not snprintf-posix
496         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
497         snprintf-posix, to avoid this aclocal failure:
498           missing file gnulib-tests/vasnprintf.c
499           configure.ac:45: error: expected source file, required through \
500           AC_LIBSOURCES, not found
501
502 2010-06-10  Jim Meyering  <meyering@redhat.com>
503
504         inttostr: add a new function, inttostr, and tests
505         The namesake function was not available.  The existence of the
506         template file, inttostr.c makes its addition nontrivial.
507         * lib/anytostr.c: Rename from inttostr.c.
508         (anytostr): Rename from inttostr.
509         * lib/inttostr.c: New file.
510         * modules/inttostr (Files): Add anytostr.c.
511         (Makefile.am): Set lib_SOURCES instead of ...
512         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
513         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
514         * lib/offtostr.c: Likewise.
515         * lib/uinttostr.c: Likewise.
516         * lib/umaxtostr.c: Likewise.
517         * modules/inttostr-tests: New file.
518         * tests/test-inttostr.c: New file.  Test these functions.
519
520 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
521             Bruno Haible  <bruno@clisp.org>
522
523         Add "Extending Gnulib" chapter to manual.
524         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
525         chapter.
526         (Extending Gnulib): New chapter.
527         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
528         chapter.
529
530 2010-06-09  Bruno Haible  <bruno@clisp.org>
531
532         Avoid relocwrapper link errors due to gnulib replacement functions.
533         * lib/areadlink.c: Use the system's malloc, realloc functions.
534         (areadlink): Set errno to ENOMEM explicitly.
535         * modules/areadlink (Depends-on): Remove malloc-posix.
536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
537
538 2010-06-09  Bruno Haible  <bruno@clisp.org>
539
540         Avoid relocwrapper link errors due to gnulib replacement functions.
541         * lib/canonicalize-lgpl.c: Use the system's malloc function.
542         * lib/malloca.c: Likewise.
543         * lib/relocatable.c: Likewise.
544         * lib/progreloc.c: Use the system's malloc, sprintf functions.
545         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
546         * lib/setenv.c: Use the system's malloc, realloc functions.
547         * lib/strerror.c: Use the system's sprintf function.
548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
549
550 2010-06-04  Bruno Haible  <bruno@clisp.org>
551
552         Prefer documented low-level autoconf macro names.
553         * m4/lib-link.m4: Use m4_translit instead of translit.
554         * m4/environ.m4: Likewise.
555         * m4/mathfunc.m4: Likewise.
556         * m4/onceonly.m4: Likewise.
557         * m4/stdint.m4: Likewise.
558         Suggested by Eric Blake.
559
560 2010-06-04  Martin Lambers  <marlam@marlam.de>
561             Bruno Haible  <bruno@clisp.org>
562
563         havelib: Allow library names with '+' characters.
564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
565         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
566
567 2010-06-09  Bruno Haible  <bruno@clisp.org>
568
569         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
570         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
571         realloc failed.
572
573 2010-06-08  Peter Simons  <simons@cryp.to>
574
575         maint.mk: make the news-check rule more configurable
576         * top/maint.mk (news-check-lines-spec) New variable.
577         (news-check): Use "sed -n 1,10p" in place of "head".
578
579 2010-06-07  Jim Meyering  <meyering@redhat.com>
580
581         do-release-commit-and-tag: fix typo in --help
582         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
583
584         regex: avoid new dead-code warning with gcc-4.6.0
585         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
586         if-block containing a while-loop.  It's been unused for at least
587         5 years.
588
589 2010-06-05  Bruno Haible  <bruno@clisp.org>
590
591         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
592         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
593
594 2010-06-04  Bruno Haible  <bruno@clisp.org>
595
596         Update to GNU gettext 0.18.1.
597         * modules/gettext (configure.ac): Require gettext infrastructure from
598         version 0.18.1.
599
600 2010-06-03  Bruno Haible  <bruno@clisp.org>
601
602         Don't use AC_LIBOBJ with file names in subdirectories.
603         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
604         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
605         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
606         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
607         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
608         gl_LIBUNISTRING_LIBSOURCE.
609         (Makefile.am): Augment lib_SOURCES here, conditionally.
610         * NEWS: Drop requirement for Automake option 'subdir-objects'.
611
612 2010-06-03  Bruno Haible  <bruno@clisp.org>
613
614         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
615         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
616         expansion does not end with a newline.
617         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
618         unnecessary newline.
619
620 2010-06-03  Bruno Haible  <bruno@clisp.org>
621
622         Reduce dependencies.
623         * tests/test-quotearg.h: New file, extracted from
624         tests/test-quotearg.c.
625         * tests/test-quotearg-simple.c: New file, extracted from
626         tests/test-quotearg.c.
627         * tests/test-quotearg.c: Don't include <ctype.h>.
628         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
629         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
630         use_quote_double_quotes, use_quotearg_colon): Moved to
631         tests/test-quotearg.h.
632         (results_g, flag_results, custom_quotes, custom_results): Moved
633         to tests/test-quotearg-simple.c.
634         (main): Moved the part that does not depend on gettext to
635         tests/test-quotearg-simple.c. Return 77 if the test cannot be
636         performed.
637         * modules/quotearg-simple: New file.
638         * modules/quotearg-simple-tests: New file.
639         * modules/quotearg (Depends-on): Add quotearg-simple.
640         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
641         (Files): Add tests/test-quotearg.h.
642         Reported by Paolo Bonzini.
643
644 2010-06-03  Bruno Haible  <bruno@clisp.org>
645
646         Reduce dependencies.
647         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
648
649 2010-06-03  Bruno Haible  <bruno@clisp.org>
650
651         time: Undefine more broken macros.
652         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
653         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
654         Reported by Eric Blake.
655
656 2010-06-03  Bruno Haible  <bruno@clisp.org>
657
658         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
659         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
660         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
661         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
662         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
663         Reported by Ludovic Courtès <ludo@gnu.org>.
664
665 2010-06-02  Eric Blake  <eblake@redhat.com>
666
667         time: work with mingw + pthreads-win32 library
668         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
669         if timespec is defined only in pthread.h.
670         * modules/time (Makefile.am): Substitute it.
671         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
672         <pthread.h>, when needed.
673         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
674         from the library.
675
676 2010-05-31  Bruno Haible  <bruno@clisp.org>
677
678         Avoid expanding two macros in the wrong order.
679         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
680         gl_LIBUNISTRING if it is defined.
681         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
682         autoconf >= 2.64.
683         Reported by Ludovic Courtès <ludo@gnu.org>.
684
685 2010-05-27  Jim Meyering  <meyering@redhat.com>
686
687         maint.mk: also prohibit "#undef" of always-defined symbols
688         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
689         Allow more than one space before the symbol name.
690         (sc_prohibit_always-defined_macros): Use grep's -E, now that
691         the regexp uses alternation.
692
693 2010-05-26  Eric Blake  <eblake@redhat.com>
694
695         maint.mk: avoid echo -e
696         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
697         Convert all uses of echo -* to printf.
698         Reported by Matthias Bolte.
699
700 2010-05-25  Bruno Haible  <bruno@clisp.org>
701
702         Update to GNU gettext 0.18, part 2.
703         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
704         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
705
706 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
707
708         Add missing include in test-pwrite.c.
709         * tests/test-pwrite.c: Include string.h, for strcmp.
710
711 2010-05-24  Bruno Haible  <bruno@clisp.org>
712
713         * NEWS: Mention requirement for Automake option 'subdir-objects'.
714
715 2010-05-24  Bruno Haible  <bruno@clisp.org>
716
717         Don't use conversion with transliteration in u{8,16,32}_strcoll.
718         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
719         iconveh_error argument.
720         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
721         U_STRCONV_TO_LOCALE.
722         * lib/unistr/u16-strcoll.c: Likewise.
723         * lib/unistr/u32-strcoll.c: Likewise.
724         * modules/unistr/u8-strcoll (Depends-on): Add
725         uniconv/u8-strconv-to-enc, localcharset. Remove
726         uniconv/u8-strconv-to-locale.
727         (configure.ac): Bump version number.
728         * modules/unistr/u16-strcoll (Depends-on): Add
729         uniconv/u16-strconv-to-enc, localcharset. Remove
730         uniconv/u16-strconv-to-locale.
731         (configure.ac): Bump version number.
732         * modules/unistr/u32-strcoll (Depends-on): Add
733         uniconv/u32-strconv-to-enc, localcharset. Remove
734         uniconv/u32-strconv-to-locale.
735         (configure.ac): Bump version number.
736
737 2010-05-24  Bruno Haible  <bruno@clisp.org>
738
739         Avoid a test failure on NetBSD 5.0.
740         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
741         an iconv() bug.
742
743 2010-05-24  Bruno Haible  <bruno@clisp.org>
744
745         Adjust #include directive style.
746         * modules/regex (Includes): Recommend to write <regex.h>.
747
748 2010-05-24  Bruno Haible  <bruno@clisp.org>
749
750         regex: Don't require alloca.
751         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
752         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
753         only inside if (0).
754
755 2010-05-23  Jim Meyering  <meyering@redhat.com>
756
757         test-renameat.c: include <sys/stat.h>
758         * tests/test-renameat.c: Include <sys/stat.h>; required for
759         definition of S_IS* macros.
760
761 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
762
763         Update maintainer documentation for 'relocatable-prog' module.
764         * doc/relocatable-maint.texi: Update.
765         Comments by Bruno Haible.
766
767 2010-05-23  Bruno Haible  <bruno@clisp.org>
768
769         git-merge-changelog: Enable --split-merged-entry by default.
770         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
771         (usage): Don't mention this option any more.
772         Reported by Ralf Wildenhues.
773
774 2010-05-23  Jim Meyering  <meyering@redhat.com>
775
776         test-pwrite: do not leave behind a test file named "out"
777         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
778         The trivial-looking use of init.sh is really necessary.
779         It ensures that the temporary file, "out", is created in
780         a temporary directory, and removed upon termination.
781         * tests/test-pwrite.sh: Re-add file.
782         * modules/pwrite-tests: Reference it.
783
784 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
785
786         Fix output redirection buglet in init.sh.
787         * tests/init.sh: Fix redirection of stderr.
788
789 2010-05-20  Simon Josefsson  <simon@josefsson.org>
790
791         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
792
793 2010-05-17  Simon Josefsson  <simon@josefsson.org>
794
795         * modules/valgrind-tests: New file.
796         * m4/valgrind-tests.m4: New file.
797         * doc/valgrind-tests.texi: New file.
798         * doc/gnulib.texi (Running self-tests under valgrind): New
799         section.
800
801 2010-05-19  Bruno Haible  <bruno@clisp.org>
802
803         Clean up dead code in recent commit.
804         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
805         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
806         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
807         Suggested by Paolo Bonzini.
808
809 2010-05-19  Bruno Haible  <bruno@clisp.org>
810
811         Avoid valgrind error reports from libunistring.
812         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
813         * modules/libunistring (Files): Add it.
814         * modules/libunistring-optional (Files): Likewise.
815
816 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
817             Bruno Haible  <bruno@clisp.org>
818
819         New module 'libunistring-optional'.
820         * modules/libunistring-optional: New file.
821         * m4/libunistring-base.m4: New file.
822         * m4/libunistring-optional.m4: New file.
823         * lib/unicase.in.h: Renamed from lib/unicase.h.
824         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
825         * lib/unictype.in.h: Renamed from lib/unictype.h.
826         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
827         * lib/uniname.in.h: Renamed from lib/uniname.h.
828         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
829         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
830         * lib/unistr.in.h: Renamed from lib/unistr.h.
831         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
832         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
833         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
834         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
835         gl_LIBUNISTRING. If the library was found, determine the installed
836         version and set LIBUNISTRING_VERSION.
837         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
838         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
839         handle a configuration option --with-included-libunistring.
840         * modules/libunistring (Files): Add m4/absolute-header.m4.
841         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
842         Add m4/libunistring-base.m4.
843         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
844         (Makefile.am): Build unicase.h from unicase.in.h.
845         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
846         Add m4/libunistring-base.m4.
847         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
848         (Makefile.am): Build uniconv.h from uniconv.in.h.
849         * modules/unictype/base (Files): Use unictype.in.h instead of
850         unictype.h. Add m4/libunistring-base.m4.
851         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
852         (Makefile.am): Build unictype.h from unictype.in.h.
853         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
854         Add m4/libunistring-base.m4.
855         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
856         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
857         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
858         Add m4/libunistring-base.m4.
859         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
860         (Makefile.am): Build uniname.h from uniname.in.h.
861         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
862         Add m4/libunistring-base.m4.
863         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
864         (Makefile.am): Build uninorm.h from uninorm.in.h.
865         * modules/unistdio/base (Files): Use unistdio.in.h instead of
866         unistdio.h. Add m4/libunistring-base.m4.
867         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
868         (Makefile.am): Build unistdio.h from unistdio.in.h.
869         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
870         Add m4/libunistring-base.m4.
871         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
872         (Makefile.am): Build unistr.h from unistr.in.h.
873         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
874         Add m4/libunistring-base.m4.
875         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
876         (Makefile.am): Build unitypes.h from unitypes.in.h.
877         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
878         Add m4/libunistring-base.m4.
879         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
880         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
881         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
882         uniwidth.h. Add m4/libunistring-base.m4.
883         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
884         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
885         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
886         instead of augmenting lib_SOURCES.
887         * modules/unicase/empty-suffix-context: Likewise.
888         * modules/unicase/locale-language: Likewise.
889         * modules/unicase/tolower: Likewise.
890         * modules/unicase/totitle: Likewise.
891         * modules/unicase/toupper: Likewise.
892         * modules/unicase/u8-casecmp: Likewise.
893         * modules/unicase/u8-casecoll: Likewise.
894         * modules/unicase/u8-casefold: Likewise.
895         * modules/unicase/u8-casexfrm: Likewise.
896         * modules/unicase/u8-ct-casefold: Likewise.
897         * modules/unicase/u8-ct-tolower: Likewise.
898         * modules/unicase/u8-ct-totitle: Likewise.
899         * modules/unicase/u8-ct-toupper: Likewise.
900         * modules/unicase/u8-is-cased: Likewise.
901         * modules/unicase/u8-is-casefolded: Likewise.
902         * modules/unicase/u8-is-lowercase: Likewise.
903         * modules/unicase/u8-is-titlecase: Likewise.
904         * modules/unicase/u8-is-uppercase: Likewise.
905         * modules/unicase/u8-prefix-context: Likewise.
906         * modules/unicase/u8-suffix-context: Likewise.
907         * modules/unicase/u8-tolower: Likewise.
908         * modules/unicase/u8-totitle: Likewise.
909         * modules/unicase/u8-toupper: Likewise.
910         * modules/unicase/u16-casecmp: Likewise.
911         * modules/unicase/u16-casecoll: Likewise.
912         * modules/unicase/u16-casefold: Likewise.
913         * modules/unicase/u16-casexfrm: Likewise.
914         * modules/unicase/u16-ct-casefold: Likewise.
915         * modules/unicase/u16-ct-tolower: Likewise.
916         * modules/unicase/u16-ct-totitle: Likewise.
917         * modules/unicase/u16-ct-toupper: Likewise.
918         * modules/unicase/u16-is-cased: Likewise.
919         * modules/unicase/u16-is-casefolded: Likewise.
920         * modules/unicase/u16-is-lowercase: Likewise.
921         * modules/unicase/u16-is-titlecase: Likewise.
922         * modules/unicase/u16-is-uppercase: Likewise.
923         * modules/unicase/u16-prefix-context: Likewise.
924         * modules/unicase/u16-suffix-context: Likewise.
925         * modules/unicase/u16-tolower: Likewise.
926         * modules/unicase/u16-totitle: Likewise.
927         * modules/unicase/u16-toupper: Likewise.
928         * modules/unicase/u32-casecmp: Likewise.
929         * modules/unicase/u32-casecoll: Likewise.
930         * modules/unicase/u32-casefold: Likewise.
931         * modules/unicase/u32-casexfrm: Likewise.
932         * modules/unicase/u32-ct-casefold: Likewise.
933         * modules/unicase/u32-ct-tolower: Likewise.
934         * modules/unicase/u32-ct-totitle: Likewise.
935         * modules/unicase/u32-ct-toupper: Likewise.
936         * modules/unicase/u32-is-cased: Likewise.
937         * modules/unicase/u32-is-casefolded: Likewise.
938         * modules/unicase/u32-is-lowercase: Likewise.
939         * modules/unicase/u32-is-titlecase: Likewise.
940         * modules/unicase/u32-is-uppercase: Likewise.
941         * modules/unicase/u32-prefix-context: Likewise.
942         * modules/unicase/u32-suffix-context: Likewise.
943         * modules/unicase/u32-tolower: Likewise.
944         * modules/unicase/u32-totitle: Likewise.
945         * modules/unicase/u32-toupper: Likewise.
946         * modules/unicase/ulc-casecmp: Likewise.
947         * modules/unicase/ulc-casecoll: Likewise.
948         * modules/unicase/ulc-casexfrm: Likewise.
949         * modules/uniconv/u8-conv-from-enc: Likewise.
950         * modules/uniconv/u8-conv-to-enc: Likewise.
951         * modules/uniconv/u8-strconv-from-enc: Likewise.
952         * modules/uniconv/u8-strconv-from-locale: Likewise.
953         * modules/uniconv/u8-strconv-to-enc: Likewise.
954         * modules/uniconv/u8-strconv-to-locale: Likewise.
955         * modules/uniconv/u16-conv-from-enc: Likewise.
956         * modules/uniconv/u16-conv-to-enc: Likewise.
957         * modules/uniconv/u16-strconv-from-enc: Likewise.
958         * modules/uniconv/u16-strconv-from-locale: Likewise.
959         * modules/uniconv/u16-strconv-to-enc: Likewise.
960         * modules/uniconv/u16-strconv-to-locale: Likewise.
961         * modules/uniconv/u32-conv-from-enc: Likewise.
962         * modules/uniconv/u32-conv-to-enc: Likewise.
963         * modules/uniconv/u32-strconv-from-enc: Likewise.
964         * modules/uniconv/u32-strconv-from-locale: Likewise.
965         * modules/uniconv/u32-strconv-to-enc: Likewise.
966         * modules/uniconv/u32-strconv-to-locale: Likewise.
967         * modules/unictype/bidicategory-byname: Likewise.
968         * modules/unictype/bidicategory-name: Likewise.
969         * modules/unictype/bidicategory-of: Likewise.
970         * modules/unictype/bidicategory-test: Likewise.
971         * modules/unictype/block-list: Likewise.
972         * modules/unictype/block-test: Likewise.
973         * modules/unictype/category-C: Likewise.
974         * modules/unictype/category-Cc: Likewise.
975         * modules/unictype/category-Cf: Likewise.
976         * modules/unictype/category-Cn: Likewise.
977         * modules/unictype/category-Co: Likewise.
978         * modules/unictype/category-Cs: Likewise.
979         * modules/unictype/category-L: Likewise.
980         * modules/unictype/category-Ll: Likewise.
981         * modules/unictype/category-Lm: Likewise.
982         * modules/unictype/category-Lo: Likewise.
983         * modules/unictype/category-Lt: Likewise.
984         * modules/unictype/category-Lu: Likewise.
985         * modules/unictype/category-M: Likewise.
986         * modules/unictype/category-Mc: Likewise.
987         * modules/unictype/category-Me: Likewise.
988         * modules/unictype/category-Mn: Likewise.
989         * modules/unictype/category-N: Likewise.
990         * modules/unictype/category-Nd: Likewise.
991         * modules/unictype/category-Nl: Likewise.
992         * modules/unictype/category-No: Likewise.
993         * modules/unictype/category-P: Likewise.
994         * modules/unictype/category-Pc: Likewise.
995         * modules/unictype/category-Pd: Likewise.
996         * modules/unictype/category-Pe: Likewise.
997         * modules/unictype/category-Pf: Likewise.
998         * modules/unictype/category-Pi: Likewise.
999         * modules/unictype/category-Po: Likewise.
1000         * modules/unictype/category-Ps: Likewise.
1001         * modules/unictype/category-S: Likewise.
1002         * modules/unictype/category-Sc: Likewise.
1003         * modules/unictype/category-Sk: Likewise.
1004         * modules/unictype/category-Sm: Likewise.
1005         * modules/unictype/category-So: Likewise.
1006         * modules/unictype/category-Z: Likewise.
1007         * modules/unictype/category-Zl: Likewise.
1008         * modules/unictype/category-Zp: Likewise.
1009         * modules/unictype/category-Zs: Likewise.
1010         * modules/unictype/category-and: Likewise.
1011         * modules/unictype/category-and-not: Likewise.
1012         * modules/unictype/category-byname: Likewise.
1013         * modules/unictype/category-name: Likewise.
1014         * modules/unictype/category-none: Likewise.
1015         * modules/unictype/category-of: Likewise.
1016         * modules/unictype/category-or: Likewise.
1017         * modules/unictype/category-test: Likewise.
1018         * modules/unictype/combining-class: Likewise.
1019         * modules/unictype/ctype-alnum: Likewise.
1020         * modules/unictype/ctype-alpha: Likewise.
1021         * modules/unictype/ctype-blank: Likewise.
1022         * modules/unictype/ctype-cntrl: Likewise.
1023         * modules/unictype/ctype-digit: Likewise.
1024         * modules/unictype/ctype-graph: Likewise.
1025         * modules/unictype/ctype-lower: Likewise.
1026         * modules/unictype/ctype-print: Likewise.
1027         * modules/unictype/ctype-punct: Likewise.
1028         * modules/unictype/ctype-space: Likewise.
1029         * modules/unictype/ctype-upper: Likewise.
1030         * modules/unictype/ctype-xdigit: Likewise.
1031         * modules/unictype/decimal-digit: Likewise.
1032         * modules/unictype/digit: Likewise.
1033         * modules/unictype/mirror: Likewise.
1034         * modules/unictype/numeric: Likewise.
1035         * modules/unictype/property-alphabetic: Likewise.
1036         * modules/unictype/property-ascii-hex-digit: Likewise.
1037         * modules/unictype/property-bidi-arabic-digit: Likewise.
1038         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1039         * modules/unictype/property-bidi-block-separator: Likewise.
1040         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1041         * modules/unictype/property-bidi-common-separator: Likewise.
1042         * modules/unictype/property-bidi-control: Likewise.
1043         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1044         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1045         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1046         * modules/unictype/property-bidi-european-digit: Likewise.
1047         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1048         * modules/unictype/property-bidi-left-to-right: Likewise.
1049         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1050         * modules/unictype/property-bidi-other-neutral: Likewise.
1051         * modules/unictype/property-bidi-pdf: Likewise.
1052         * modules/unictype/property-bidi-segment-separator: Likewise.
1053         * modules/unictype/property-bidi-whitespace: Likewise.
1054         * modules/unictype/property-byname: Likewise.
1055         * modules/unictype/property-combining: Likewise.
1056         * modules/unictype/property-composite: Likewise.
1057         * modules/unictype/property-currency-symbol: Likewise.
1058         * modules/unictype/property-dash: Likewise.
1059         * modules/unictype/property-decimal-digit: Likewise.
1060         * modules/unictype/property-default-ignorable-code-point: Likewise.
1061         * modules/unictype/property-deprecated: Likewise.
1062         * modules/unictype/property-diacritic: Likewise.
1063         * modules/unictype/property-extender: Likewise.
1064         * modules/unictype/property-format-control: Likewise.
1065         * modules/unictype/property-grapheme-base: Likewise.
1066         * modules/unictype/property-grapheme-extend: Likewise.
1067         * modules/unictype/property-grapheme-link: Likewise.
1068         * modules/unictype/property-hex-digit: Likewise.
1069         * modules/unictype/property-hyphen: Likewise.
1070         * modules/unictype/property-id-continue: Likewise.
1071         * modules/unictype/property-id-start: Likewise.
1072         * modules/unictype/property-ideographic: Likewise.
1073         * modules/unictype/property-ids-binary-operator: Likewise.
1074         * modules/unictype/property-ids-trinary-operator: Likewise.
1075         * modules/unictype/property-ignorable-control: Likewise.
1076         * modules/unictype/property-iso-control: Likewise.
1077         * modules/unictype/property-join-control: Likewise.
1078         * modules/unictype/property-left-of-pair: Likewise.
1079         * modules/unictype/property-line-separator: Likewise.
1080         * modules/unictype/property-logical-order-exception: Likewise.
1081         * modules/unictype/property-lowercase: Likewise.
1082         * modules/unictype/property-math: Likewise.
1083         * modules/unictype/property-non-break: Likewise.
1084         * modules/unictype/property-not-a-character: Likewise.
1085         * modules/unictype/property-numeric: Likewise.
1086         * modules/unictype/property-other-alphabetic: Likewise.
1087         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1088         * modules/unictype/property-other-grapheme-extend: Likewise.
1089         * modules/unictype/property-other-id-continue: Likewise.
1090         * modules/unictype/property-other-id-start: Likewise.
1091         * modules/unictype/property-other-lowercase: Likewise.
1092         * modules/unictype/property-other-math: Likewise.
1093         * modules/unictype/property-other-uppercase: Likewise.
1094         * modules/unictype/property-paired-punctuation: Likewise.
1095         * modules/unictype/property-paragraph-separator: Likewise.
1096         * modules/unictype/property-pattern-syntax: Likewise.
1097         * modules/unictype/property-pattern-white-space: Likewise.
1098         * modules/unictype/property-private-use: Likewise.
1099         * modules/unictype/property-punctuation: Likewise.
1100         * modules/unictype/property-quotation-mark: Likewise.
1101         * modules/unictype/property-radical: Likewise.
1102         * modules/unictype/property-sentence-terminal: Likewise.
1103         * modules/unictype/property-soft-dotted: Likewise.
1104         * modules/unictype/property-space: Likewise.
1105         * modules/unictype/property-terminal-punctuation: Likewise.
1106         * modules/unictype/property-test: Likewise.
1107         * modules/unictype/property-titlecase: Likewise.
1108         * modules/unictype/property-unassigned-code-value: Likewise.
1109         * modules/unictype/property-unified-ideograph: Likewise.
1110         * modules/unictype/property-uppercase: Likewise.
1111         * modules/unictype/property-variation-selector: Likewise.
1112         * modules/unictype/property-white-space: Likewise.
1113         * modules/unictype/property-xid-continue: Likewise.
1114         * modules/unictype/property-xid-start: Likewise.
1115         * modules/unictype/property-zero-width: Likewise.
1116         * modules/unictype/scripts: Likewise.
1117         * modules/unictype/syntax-c-ident: Likewise.
1118         * modules/unictype/syntax-c-whitespace: Likewise.
1119         * modules/unictype/syntax-java-ident: Likewise.
1120         * modules/unictype/syntax-java-whitespace: Likewise.
1121         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1122         * modules/unilbrk/u8-width-linebreaks: Likewise.
1123         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1124         * modules/unilbrk/u16-width-linebreaks: Likewise.
1125         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1126         * modules/unilbrk/u32-width-linebreaks: Likewise.
1127         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1128         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1129         * modules/uniname/uniname: Likewise.
1130         * modules/uninorm/canonical-decomposition: Likewise.
1131         * modules/uninorm/composition: Likewise.
1132         * modules/uninorm/decomposing-form: Likewise.
1133         * modules/uninorm/decomposition: Likewise.
1134         * modules/uninorm/filter: Likewise.
1135         * modules/uninorm/nfc: Likewise.
1136         * modules/uninorm/nfd: Likewise.
1137         * modules/uninorm/nfkc: Likewise.
1138         * modules/uninorm/nfkd: Likewise.
1139         * modules/uninorm/u8-normalize: Likewise.
1140         * modules/uninorm/u8-normcmp: Likewise.
1141         * modules/uninorm/u8-normcoll: Likewise.
1142         * modules/uninorm/u8-normxfrm: Likewise.
1143         * modules/uninorm/u16-normalize: Likewise.
1144         * modules/uninorm/u16-normcmp: Likewise.
1145         * modules/uninorm/u16-normcoll: Likewise.
1146         * modules/uninorm/u16-normxfrm: Likewise.
1147         * modules/uninorm/u32-normalize: Likewise.
1148         * modules/uninorm/u32-normcmp: Likewise.
1149         * modules/uninorm/u32-normcoll: Likewise.
1150         * modules/uninorm/u32-normxfrm: Likewise.
1151         * modules/unistdio/u8-asnprintf: Likewise.
1152         * modules/unistdio/u8-asprintf: Likewise.
1153         * modules/unistdio/u8-snprintf: Likewise.
1154         * modules/unistdio/u8-sprintf: Likewise.
1155         * modules/unistdio/u8-u8-asnprintf: Likewise.
1156         * modules/unistdio/u8-u8-asprintf: Likewise.
1157         * modules/unistdio/u8-u8-snprintf: Likewise.
1158         * modules/unistdio/u8-u8-sprintf: Likewise.
1159         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1160         * modules/unistdio/u8-u8-vasprintf: Likewise.
1161         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1162         * modules/unistdio/u8-u8-vsprintf: Likewise.
1163         * modules/unistdio/u8-vasnprintf: Likewise.
1164         * modules/unistdio/u8-vasprintf: Likewise.
1165         * modules/unistdio/u8-vsnprintf: Likewise.
1166         * modules/unistdio/u8-vsprintf: Likewise.
1167         * modules/unistdio/u16-asnprintf: Likewise.
1168         * modules/unistdio/u16-asprintf: Likewise.
1169         * modules/unistdio/u16-snprintf: Likewise.
1170         * modules/unistdio/u16-sprintf: Likewise.
1171         * modules/unistdio/u16-u16-asnprintf: Likewise.
1172         * modules/unistdio/u16-u16-asprintf: Likewise.
1173         * modules/unistdio/u16-u16-snprintf: Likewise.
1174         * modules/unistdio/u16-u16-sprintf: Likewise.
1175         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1176         * modules/unistdio/u16-u16-vasprintf: Likewise.
1177         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1178         * modules/unistdio/u16-u16-vsprintf: Likewise.
1179         * modules/unistdio/u16-vasnprintf: Likewise.
1180         * modules/unistdio/u16-vasprintf: Likewise.
1181         * modules/unistdio/u16-vsnprintf: Likewise.
1182         * modules/unistdio/u16-vsprintf: Likewise.
1183         * modules/unistdio/u32-asnprintf: Likewise.
1184         * modules/unistdio/u32-asprintf: Likewise.
1185         * modules/unistdio/u32-snprintf: Likewise.
1186         * modules/unistdio/u32-sprintf: Likewise.
1187         * modules/unistdio/u32-u32-asnprintf: Likewise.
1188         * modules/unistdio/u32-u32-asprintf: Likewise.
1189         * modules/unistdio/u32-u32-snprintf: Likewise.
1190         * modules/unistdio/u32-u32-sprintf: Likewise.
1191         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1192         * modules/unistdio/u32-u32-vasprintf: Likewise.
1193         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1194         * modules/unistdio/u32-u32-vsprintf: Likewise.
1195         * modules/unistdio/u32-vasnprintf: Likewise.
1196         * modules/unistdio/u32-vasprintf: Likewise.
1197         * modules/unistdio/u32-vsnprintf: Likewise.
1198         * modules/unistdio/u32-vsprintf: Likewise.
1199         * modules/unistdio/ulc-asnprintf: Likewise.
1200         * modules/unistdio/ulc-asprintf: Likewise.
1201         * modules/unistdio/ulc-fprintf: Likewise.
1202         * modules/unistdio/ulc-snprintf: Likewise.
1203         * modules/unistdio/ulc-sprintf: Likewise.
1204         * modules/unistdio/ulc-vasnprintf: Likewise.
1205         * modules/unistdio/ulc-vasprintf: Likewise.
1206         * modules/unistdio/ulc-vfprintf: Likewise.
1207         * modules/unistdio/ulc-vsnprintf: Likewise.
1208         * modules/unistdio/ulc-vsprintf: Likewise.
1209         * modules/unistr/u8-check: Likewise.
1210         * modules/unistr/u8-chr: Likewise.
1211         * modules/unistr/u8-cmp: Likewise.
1212         * modules/unistr/u8-cmp2: Likewise.
1213         * modules/unistr/u8-cpy: Likewise.
1214         * modules/unistr/u8-cpy-alloc: Likewise.
1215         * modules/unistr/u8-endswith: Likewise.
1216         * modules/unistr/u8-mblen: Likewise.
1217         * modules/unistr/u8-mbsnlen: Likewise.
1218         * modules/unistr/u8-mbtouc: Likewise.
1219         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1220         * modules/unistr/u8-mbtoucr: Likewise.
1221         * modules/unistr/u8-move: Likewise.
1222         * modules/unistr/u8-next: Likewise.
1223         * modules/unistr/u8-prev: Likewise.
1224         * modules/unistr/u8-set: Likewise.
1225         * modules/unistr/u8-startswith: Likewise.
1226         * modules/unistr/u8-stpcpy: Likewise.
1227         * modules/unistr/u8-stpncpy: Likewise.
1228         * modules/unistr/u8-strcat: Likewise.
1229         * modules/unistr/u8-strchr: Likewise.
1230         * modules/unistr/u8-strcmp: Likewise.
1231         * modules/unistr/u8-strcoll: Likewise.
1232         * modules/unistr/u8-strcpy: Likewise.
1233         * modules/unistr/u8-strcspn: Likewise.
1234         * modules/unistr/u8-strdup: Likewise.
1235         * modules/unistr/u8-strlen: Likewise.
1236         * modules/unistr/u8-strmblen: Likewise.
1237         * modules/unistr/u8-strmbtouc: Likewise.
1238         * modules/unistr/u8-strncat: Likewise.
1239         * modules/unistr/u8-strncmp: Likewise.
1240         * modules/unistr/u8-strncpy: Likewise.
1241         * modules/unistr/u8-strnlen: Likewise.
1242         * modules/unistr/u8-strpbrk: Likewise.
1243         * modules/unistr/u8-strrchr: Likewise.
1244         * modules/unistr/u8-strspn: Likewise.
1245         * modules/unistr/u8-strstr: Likewise.
1246         * modules/unistr/u8-strtok: Likewise.
1247         * modules/unistr/u8-to-u16: Likewise.
1248         * modules/unistr/u8-to-u32: Likewise.
1249         * modules/unistr/u8-uctomb: Likewise.
1250         * modules/unistr/u16-check: Likewise.
1251         * modules/unistr/u16-chr: Likewise.
1252         * modules/unistr/u16-cmp: Likewise.
1253         * modules/unistr/u16-cmp2: Likewise.
1254         * modules/unistr/u16-cpy: Likewise.
1255         * modules/unistr/u16-cpy-alloc: Likewise.
1256         * modules/unistr/u16-endswith: Likewise.
1257         * modules/unistr/u16-mblen: Likewise.
1258         * modules/unistr/u16-mbsnlen: Likewise.
1259         * modules/unistr/u16-mbtouc: Likewise.
1260         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1261         * modules/unistr/u16-mbtoucr: Likewise.
1262         * modules/unistr/u16-move: Likewise.
1263         * modules/unistr/u16-next: Likewise.
1264         * modules/unistr/u16-prev: Likewise.
1265         * modules/unistr/u16-set: Likewise.
1266         * modules/unistr/u16-startswith: Likewise.
1267         * modules/unistr/u16-stpcpy: Likewise.
1268         * modules/unistr/u16-stpncpy: Likewise.
1269         * modules/unistr/u16-strcat: Likewise.
1270         * modules/unistr/u16-strchr: Likewise.
1271         * modules/unistr/u16-strcmp: Likewise.
1272         * modules/unistr/u16-strcoll: Likewise.
1273         * modules/unistr/u16-strcpy: Likewise.
1274         * modules/unistr/u16-strcspn: Likewise.
1275         * modules/unistr/u16-strdup: Likewise.
1276         * modules/unistr/u16-strlen: Likewise.
1277         * modules/unistr/u16-strmblen: Likewise.
1278         * modules/unistr/u16-strmbtouc: Likewise.
1279         * modules/unistr/u16-strncat: Likewise.
1280         * modules/unistr/u16-strncmp: Likewise.
1281         * modules/unistr/u16-strncpy: Likewise.
1282         * modules/unistr/u16-strnlen: Likewise.
1283         * modules/unistr/u16-strpbrk: Likewise.
1284         * modules/unistr/u16-strrchr: Likewise.
1285         * modules/unistr/u16-strspn: Likewise.
1286         * modules/unistr/u16-strstr: Likewise.
1287         * modules/unistr/u16-strtok: Likewise.
1288         * modules/unistr/u16-to-u32: Likewise.
1289         * modules/unistr/u16-to-u8: Likewise.
1290         * modules/unistr/u16-uctomb: Likewise.
1291         * modules/unistr/u32-check: Likewise.
1292         * modules/unistr/u32-chr: Likewise.
1293         * modules/unistr/u32-cmp: Likewise.
1294         * modules/unistr/u32-cmp2: Likewise.
1295         * modules/unistr/u32-cpy: Likewise.
1296         * modules/unistr/u32-cpy-alloc: Likewise.
1297         * modules/unistr/u32-endswith: Likewise.
1298         * modules/unistr/u32-mblen: Likewise.
1299         * modules/unistr/u32-mbsnlen: Likewise.
1300         * modules/unistr/u32-mbtouc: Likewise.
1301         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1302         * modules/unistr/u32-mbtoucr: Likewise.
1303         * modules/unistr/u32-move: Likewise.
1304         * modules/unistr/u32-next: Likewise.
1305         * modules/unistr/u32-prev: Likewise.
1306         * modules/unistr/u32-set: Likewise.
1307         * modules/unistr/u32-startswith: Likewise.
1308         * modules/unistr/u32-stpcpy: Likewise.
1309         * modules/unistr/u32-stpncpy: Likewise.
1310         * modules/unistr/u32-strcat: Likewise.
1311         * modules/unistr/u32-strchr: Likewise.
1312         * modules/unistr/u32-strcmp: Likewise.
1313         * modules/unistr/u32-strcoll: Likewise.
1314         * modules/unistr/u32-strcpy: Likewise.
1315         * modules/unistr/u32-strcspn: Likewise.
1316         * modules/unistr/u32-strdup: Likewise.
1317         * modules/unistr/u32-strlen: Likewise.
1318         * modules/unistr/u32-strmblen: Likewise.
1319         * modules/unistr/u32-strmbtouc: Likewise.
1320         * modules/unistr/u32-strncat: Likewise.
1321         * modules/unistr/u32-strncmp: Likewise.
1322         * modules/unistr/u32-strncpy: Likewise.
1323         * modules/unistr/u32-strnlen: Likewise.
1324         * modules/unistr/u32-strpbrk: Likewise.
1325         * modules/unistr/u32-strrchr: Likewise.
1326         * modules/unistr/u32-strspn: Likewise.
1327         * modules/unistr/u32-strstr: Likewise.
1328         * modules/unistr/u32-strtok: Likewise.
1329         * modules/unistr/u32-to-u16: Likewise.
1330         * modules/unistr/u32-to-u8: Likewise.
1331         * modules/unistr/u32-uctomb: Likewise.
1332         * modules/uniwbrk/u8-wordbreaks: Likewise.
1333         * modules/uniwbrk/u16-wordbreaks: Likewise.
1334         * modules/uniwbrk/u32-wordbreaks: Likewise.
1335         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1336         * modules/uniwbrk/wordbreak-property: Likewise.
1337         * modules/uniwidth/u8-strwidth: Likewise.
1338         * modules/uniwidth/u8-width: Likewise.
1339         * modules/uniwidth/u16-strwidth: Likewise.
1340         * modules/uniwidth/u16-width: Likewise.
1341         * modules/uniwidth/u32-strwidth: Likewise.
1342         * modules/uniwidth/u32-width: Likewise.
1343         * modules/uniwidth/width: Likewise.
1344         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1345         with $(LIBUNISTRING).
1346         * modules/unicase/ignorable-tests: Likewise.
1347         * modules/unicase/locale-language-tests: Likewise.
1348         * modules/unicase/tolower-tests: Likewise.
1349         * modules/unicase/totitle-tests: Likewise.
1350         * modules/unicase/toupper-tests: Likewise.
1351         * modules/unicase/u8-casecmp-tests: Likewise.
1352         * modules/unicase/u8-casecoll-tests: Likewise.
1353         * modules/unicase/u8-casefold-tests: Likewise.
1354         * modules/unicase/u8-is-cased-tests: Likewise.
1355         * modules/unicase/u8-is-casefolded-tests: Likewise.
1356         * modules/unicase/u8-is-lowercase-tests: Likewise.
1357         * modules/unicase/u8-is-titlecase-tests: Likewise.
1358         * modules/unicase/u8-is-uppercase-tests: Likewise.
1359         * modules/unicase/u8-tolower-tests: Likewise.
1360         * modules/unicase/u8-totitle-tests: Likewise.
1361         * modules/unicase/u8-toupper-tests: Likewise.
1362         * modules/unicase/u16-casecmp-tests: Likewise.
1363         * modules/unicase/u16-casecoll-tests: Likewise.
1364         * modules/unicase/u16-casefold-tests: Likewise.
1365         * modules/unicase/u16-is-cased-tests: Likewise.
1366         * modules/unicase/u16-is-casefolded-tests: Likewise.
1367         * modules/unicase/u16-is-lowercase-tests: Likewise.
1368         * modules/unicase/u16-is-titlecase-tests: Likewise.
1369         * modules/unicase/u16-is-uppercase-tests: Likewise.
1370         * modules/unicase/u16-tolower-tests: Likewise.
1371         * modules/unicase/u16-totitle-tests: Likewise.
1372         * modules/unicase/u16-toupper-tests: Likewise.
1373         * modules/unicase/u32-casecmp-tests: Likewise.
1374         * modules/unicase/u32-casecoll-tests: Likewise.
1375         * modules/unicase/u32-casefold-tests: Likewise.
1376         * modules/unicase/u32-is-cased-tests: Likewise.
1377         * modules/unicase/u32-is-casefolded-tests: Likewise.
1378         * modules/unicase/u32-is-lowercase-tests: Likewise.
1379         * modules/unicase/u32-is-titlecase-tests: Likewise.
1380         * modules/unicase/u32-is-uppercase-tests: Likewise.
1381         * modules/unicase/u32-tolower-tests: Likewise.
1382         * modules/unicase/u32-totitle-tests: Likewise.
1383         * modules/unicase/u32-toupper-tests: Likewise.
1384         * modules/unicase/ulc-casecmp-tests: Likewise.
1385         * modules/unicase/ulc-casecoll-tests: Likewise.
1386         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1387         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1388         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1389         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1390         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1391         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1392         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1393         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1394         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1395         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1396         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1397         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1398         * modules/unictype/bidicategory-byname-tests: Likewise.
1399         * modules/unictype/bidicategory-name-tests: Likewise.
1400         * modules/unictype/bidicategory-of-tests: Likewise.
1401         * modules/unictype/bidicategory-test-tests: Likewise.
1402         * modules/unictype/block-list-tests: Likewise.
1403         * modules/unictype/block-of-tests: Likewise.
1404         * modules/unictype/block-test-tests: Likewise.
1405         * modules/unictype/category-C-tests: Likewise.
1406         * modules/unictype/category-Cc-tests: Likewise.
1407         * modules/unictype/category-Cf-tests: Likewise.
1408         * modules/unictype/category-Cn-tests: Likewise.
1409         * modules/unictype/category-Co-tests: Likewise.
1410         * modules/unictype/category-Cs-tests: Likewise.
1411         * modules/unictype/category-L-tests: Likewise.
1412         * modules/unictype/category-Ll-tests: Likewise.
1413         * modules/unictype/category-Lm-tests: Likewise.
1414         * modules/unictype/category-Lo-tests: Likewise.
1415         * modules/unictype/category-Lt-tests: Likewise.
1416         * modules/unictype/category-Lu-tests: Likewise.
1417         * modules/unictype/category-M-tests: Likewise.
1418         * modules/unictype/category-Mc-tests: Likewise.
1419         * modules/unictype/category-Me-tests: Likewise.
1420         * modules/unictype/category-Mn-tests: Likewise.
1421         * modules/unictype/category-N-tests: Likewise.
1422         * modules/unictype/category-Nd-tests: Likewise.
1423         * modules/unictype/category-Nl-tests: Likewise.
1424         * modules/unictype/category-No-tests: Likewise.
1425         * modules/unictype/category-P-tests: Likewise.
1426         * modules/unictype/category-Pc-tests: Likewise.
1427         * modules/unictype/category-Pd-tests: Likewise.
1428         * modules/unictype/category-Pe-tests: Likewise.
1429         * modules/unictype/category-Pf-tests: Likewise.
1430         * modules/unictype/category-Pi-tests: Likewise.
1431         * modules/unictype/category-Po-tests: Likewise.
1432         * modules/unictype/category-Ps-tests: Likewise.
1433         * modules/unictype/category-S-tests: Likewise.
1434         * modules/unictype/category-Sc-tests: Likewise.
1435         * modules/unictype/category-Sk-tests: Likewise.
1436         * modules/unictype/category-Sm-tests: Likewise.
1437         * modules/unictype/category-So-tests: Likewise.
1438         * modules/unictype/category-Z-tests: Likewise.
1439         * modules/unictype/category-Zl-tests: Likewise.
1440         * modules/unictype/category-Zp-tests: Likewise.
1441         * modules/unictype/category-Zs-tests: Likewise.
1442         * modules/unictype/category-and-not-tests: Likewise.
1443         * modules/unictype/category-and-tests: Likewise.
1444         * modules/unictype/category-byname-tests: Likewise.
1445         * modules/unictype/category-name-tests: Likewise.
1446         * modules/unictype/category-none-tests: Likewise.
1447         * modules/unictype/category-of-tests: Likewise.
1448         * modules/unictype/category-or-tests: Likewise.
1449         * modules/unictype/category-test-withtable-tests: Likewise.
1450         * modules/unictype/combining-class-tests: Likewise.
1451         * modules/unictype/ctype-alnum-tests: Likewise.
1452         * modules/unictype/ctype-alpha-tests: Likewise.
1453         * modules/unictype/ctype-blank-tests: Likewise.
1454         * modules/unictype/ctype-cntrl-tests: Likewise.
1455         * modules/unictype/ctype-digit-tests: Likewise.
1456         * modules/unictype/ctype-graph-tests: Likewise.
1457         * modules/unictype/ctype-lower-tests: Likewise.
1458         * modules/unictype/ctype-print-tests: Likewise.
1459         * modules/unictype/ctype-punct-tests: Likewise.
1460         * modules/unictype/ctype-space-tests: Likewise.
1461         * modules/unictype/ctype-upper-tests: Likewise.
1462         * modules/unictype/ctype-xdigit-tests: Likewise.
1463         * modules/unictype/decimal-digit-tests: Likewise.
1464         * modules/unictype/digit-tests: Likewise.
1465         * modules/unictype/mirror-tests: Likewise.
1466         * modules/unictype/numeric-tests: Likewise.
1467         * modules/unictype/property-alphabetic-tests: Likewise.
1468         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1469         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1470         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1471         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1472         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1473         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1474         * modules/unictype/property-bidi-control-tests: Likewise.
1475         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1476         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1477         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1478         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1479         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1480         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1481         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1482         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1483         * modules/unictype/property-bidi-pdf-tests: Likewise.
1484         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1485         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1486         * modules/unictype/property-byname-tests: Likewise.
1487         * modules/unictype/property-combining-tests: Likewise.
1488         * modules/unictype/property-composite-tests: Likewise.
1489         * modules/unictype/property-currency-symbol-tests: Likewise.
1490         * modules/unictype/property-dash-tests: Likewise.
1491         * modules/unictype/property-decimal-digit-tests: Likewise.
1492         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1493         * modules/unictype/property-deprecated-tests: Likewise.
1494         * modules/unictype/property-diacritic-tests: Likewise.
1495         * modules/unictype/property-extender-tests: Likewise.
1496         * modules/unictype/property-format-control-tests: Likewise.
1497         * modules/unictype/property-grapheme-base-tests: Likewise.
1498         * modules/unictype/property-grapheme-extend-tests: Likewise.
1499         * modules/unictype/property-grapheme-link-tests: Likewise.
1500         * modules/unictype/property-hex-digit-tests: Likewise.
1501         * modules/unictype/property-hyphen-tests: Likewise.
1502         * modules/unictype/property-id-continue-tests: Likewise.
1503         * modules/unictype/property-id-start-tests: Likewise.
1504         * modules/unictype/property-ideographic-tests: Likewise.
1505         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1506         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1507         * modules/unictype/property-ignorable-control-tests: Likewise.
1508         * modules/unictype/property-iso-control-tests: Likewise.
1509         * modules/unictype/property-join-control-tests: Likewise.
1510         * modules/unictype/property-left-of-pair-tests: Likewise.
1511         * modules/unictype/property-line-separator-tests: Likewise.
1512         * modules/unictype/property-logical-order-exception-tests: Likewise.
1513         * modules/unictype/property-lowercase-tests: Likewise.
1514         * modules/unictype/property-math-tests: Likewise.
1515         * modules/unictype/property-non-break-tests: Likewise.
1516         * modules/unictype/property-not-a-character-tests: Likewise.
1517         * modules/unictype/property-numeric-tests: Likewise.
1518         * modules/unictype/property-other-alphabetic-tests: Likewise.
1519         * modules/unictype/property-other-default-ignorable-code-point-tests:
1520         Likewise.
1521         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1522         * modules/unictype/property-other-id-continue-tests: Likewise.
1523         * modules/unictype/property-other-id-start-tests: Likewise.
1524         * modules/unictype/property-other-lowercase-tests: Likewise.
1525         * modules/unictype/property-other-math-tests: Likewise.
1526         * modules/unictype/property-other-uppercase-tests: Likewise.
1527         * modules/unictype/property-paired-punctuation-tests: Likewise.
1528         * modules/unictype/property-paragraph-separator-tests: Likewise.
1529         * modules/unictype/property-pattern-syntax-tests: Likewise.
1530         * modules/unictype/property-pattern-white-space-tests: Likewise.
1531         * modules/unictype/property-private-use-tests: Likewise.
1532         * modules/unictype/property-punctuation-tests: Likewise.
1533         * modules/unictype/property-quotation-mark-tests: Likewise.
1534         * modules/unictype/property-radical-tests: Likewise.
1535         * modules/unictype/property-sentence-terminal-tests: Likewise.
1536         * modules/unictype/property-soft-dotted-tests: Likewise.
1537         * modules/unictype/property-space-tests: Likewise.
1538         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1539         * modules/unictype/property-test-tests: Likewise.
1540         * modules/unictype/property-titlecase-tests: Likewise.
1541         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1542         * modules/unictype/property-unified-ideograph-tests: Likewise.
1543         * modules/unictype/property-uppercase-tests: Likewise.
1544         * modules/unictype/property-variation-selector-tests: Likewise.
1545         * modules/unictype/property-white-space-tests: Likewise.
1546         * modules/unictype/property-xid-continue-tests: Likewise.
1547         * modules/unictype/property-xid-start-tests: Likewise.
1548         * modules/unictype/property-zero-width-tests: Likewise.
1549         * modules/unictype/scripts-tests: Likewise.
1550         * modules/unictype/syntax-c-ident-tests: Likewise.
1551         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1552         * modules/unictype/syntax-java-ident-tests: Likewise.
1553         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1554         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1555         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1556         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1557         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1558         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1559         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1560         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1561         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1562         * modules/uniname/uniname-tests: Likewise.
1563         * modules/uninorm/canonical-decomposition-tests: Likewise.
1564         * modules/uninorm/compat-decomposition-tests: Likewise.
1565         * modules/uninorm/composition-tests: Likewise.
1566         * modules/uninorm/decomposing-form-tests: Likewise.
1567         * modules/uninorm/decomposition-tests: Likewise.
1568         * modules/uninorm/filter-tests: Likewise.
1569         * modules/uninorm/nfc-tests: Likewise.
1570         * modules/uninorm/nfd-tests: Likewise.
1571         * modules/uninorm/nfkc-tests: Likewise.
1572         * modules/uninorm/nfkd-tests: Likewise.
1573         * modules/uninorm/u8-normcmp-tests: Likewise.
1574         * modules/uninorm/u8-normcoll-tests: Likewise.
1575         * modules/uninorm/u16-normcmp-tests: Likewise.
1576         * modules/uninorm/u16-normcoll-tests: Likewise.
1577         * modules/uninorm/u32-normcmp-tests: Likewise.
1578         * modules/uninorm/u32-normcoll-tests: Likewise.
1579         * modules/unistdio/u8-asnprintf-tests: Likewise.
1580         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1581         * modules/unistdio/u8-vasprintf-tests: Likewise.
1582         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1583         * modules/unistdio/u8-vsprintf-tests: Likewise.
1584         * modules/unistdio/u16-asnprintf-tests: Likewise.
1585         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1586         * modules/unistdio/u16-vasprintf-tests: Likewise.
1587         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1588         * modules/unistdio/u16-vsprintf-tests: Likewise.
1589         * modules/unistdio/u32-asnprintf-tests: Likewise.
1590         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1591         * modules/unistdio/u32-vasprintf-tests: Likewise.
1592         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1593         * modules/unistdio/u32-vsprintf-tests: Likewise.
1594         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1595         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1596         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1597         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1598         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1599         * modules/unistr/u8-check-tests: Likewise.
1600         * modules/unistr/u8-chr-tests: Likewise.
1601         * modules/unistr/u8-cmp-tests: Likewise.
1602         * modules/unistr/u8-cmp2-tests: Likewise.
1603         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1604         * modules/unistr/u8-cpy-tests: Likewise.
1605         * modules/unistr/u8-mblen-tests: Likewise.
1606         * modules/unistr/u8-mbsnlen-tests: Likewise.
1607         * modules/unistr/u8-mbtouc-tests: Likewise.
1608         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1609         * modules/unistr/u8-mbtoucr-tests: Likewise.
1610         * modules/unistr/u8-move-tests: Likewise.
1611         * modules/unistr/u8-next-tests: Likewise.
1612         * modules/unistr/u8-prev-tests: Likewise.
1613         * modules/unistr/u8-set-tests: Likewise.
1614         * modules/unistr/u8-stpcpy-tests: Likewise.
1615         * modules/unistr/u8-stpncpy-tests: Likewise.
1616         * modules/unistr/u8-strcat-tests: Likewise.
1617         * modules/unistr/u8-strcmp-tests: Likewise.
1618         * modules/unistr/u8-strcoll-tests: Likewise.
1619         * modules/unistr/u8-strcpy-tests: Likewise.
1620         * modules/unistr/u8-strdup-tests: Likewise.
1621         * modules/unistr/u8-strlen-tests: Likewise.
1622         * modules/unistr/u8-strmblen-tests: Likewise.
1623         * modules/unistr/u8-strmbtouc-tests: Likewise.
1624         * modules/unistr/u8-strncat-tests: Likewise.
1625         * modules/unistr/u8-strncmp-tests: Likewise.
1626         * modules/unistr/u8-strncpy-tests: Likewise.
1627         * modules/unistr/u8-strnlen-tests: Likewise.
1628         * modules/unistr/u8-to-u16-tests: Likewise.
1629         * modules/unistr/u8-to-u32-tests: Likewise.
1630         * modules/unistr/u8-uctomb-tests: Likewise.
1631         * modules/unistr/u16-check-tests: Likewise.
1632         * modules/unistr/u16-chr-tests: Likewise.
1633         * modules/unistr/u16-cmp-tests: Likewise.
1634         * modules/unistr/u16-cmp2-tests: Likewise.
1635         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1636         * modules/unistr/u16-cpy-tests: Likewise.
1637         * modules/unistr/u16-mblen-tests: Likewise.
1638         * modules/unistr/u16-mbsnlen-tests: Likewise.
1639         * modules/unistr/u16-mbtouc-tests: Likewise.
1640         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1641         * modules/unistr/u16-mbtoucr-tests: Likewise.
1642         * modules/unistr/u16-move-tests: Likewise.
1643         * modules/unistr/u16-next-tests: Likewise.
1644         * modules/unistr/u16-prev-tests: Likewise.
1645         * modules/unistr/u16-set-tests: Likewise.
1646         * modules/unistr/u16-stpcpy-tests: Likewise.
1647         * modules/unistr/u16-stpncpy-tests: Likewise.
1648         * modules/unistr/u16-strcat-tests: Likewise.
1649         * modules/unistr/u16-strcmp-tests: Likewise.
1650         * modules/unistr/u16-strcoll-tests: Likewise.
1651         * modules/unistr/u16-strcpy-tests: Likewise.
1652         * modules/unistr/u16-strdup-tests: Likewise.
1653         * modules/unistr/u16-strlen-tests: Likewise.
1654         * modules/unistr/u16-strmblen-tests: Likewise.
1655         * modules/unistr/u16-strmbtouc-tests: Likewise.
1656         * modules/unistr/u16-strncat-tests: Likewise.
1657         * modules/unistr/u16-strncmp-tests: Likewise.
1658         * modules/unistr/u16-strncpy-tests: Likewise.
1659         * modules/unistr/u16-strnlen-tests: Likewise.
1660         * modules/unistr/u16-to-u32-tests: Likewise.
1661         * modules/unistr/u16-to-u8-tests: Likewise.
1662         * modules/unistr/u16-uctomb-tests: Likewise.
1663         * modules/unistr/u32-check-tests: Likewise.
1664         * modules/unistr/u32-chr-tests: Likewise.
1665         * modules/unistr/u32-cmp-tests: Likewise.
1666         * modules/unistr/u32-cmp2-tests: Likewise.
1667         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1668         * modules/unistr/u32-cpy-tests: Likewise.
1669         * modules/unistr/u32-mblen-tests: Likewise.
1670         * modules/unistr/u32-mbsnlen-tests: Likewise.
1671         * modules/unistr/u32-mbtouc-tests: Likewise.
1672         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1673         * modules/unistr/u32-mbtoucr-tests: Likewise.
1674         * modules/unistr/u32-move-tests: Likewise.
1675         * modules/unistr/u32-next-tests: Likewise.
1676         * modules/unistr/u32-prev-tests: Likewise.
1677         * modules/unistr/u32-set-tests: Likewise.
1678         * modules/unistr/u32-stpcpy-tests: Likewise.
1679         * modules/unistr/u32-stpncpy-tests: Likewise.
1680         * modules/unistr/u32-strcat-tests: Likewise.
1681         * modules/unistr/u32-strcmp-tests: Likewise.
1682         * modules/unistr/u32-strcoll-tests: Likewise.
1683         * modules/unistr/u32-strcpy-tests: Likewise.
1684         * modules/unistr/u32-strdup-tests: Likewise.
1685         * modules/unistr/u32-strlen-tests: Likewise.
1686         * modules/unistr/u32-strmblen-tests: Likewise.
1687         * modules/unistr/u32-strmbtouc-tests: Likewise.
1688         * modules/unistr/u32-strncat-tests: Likewise.
1689         * modules/unistr/u32-strncmp-tests: Likewise.
1690         * modules/unistr/u32-strncpy-tests: Likewise.
1691         * modules/unistr/u32-strnlen-tests: Likewise.
1692         * modules/unistr/u32-to-u16-tests: Likewise.
1693         * modules/unistr/u32-to-u8-tests: Likewise.
1694         * modules/unistr/u32-uctomb-tests: Likewise.
1695         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1696         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1697         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1698         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1699         * modules/uniwidth/u8-strwidth-tests: Likewise.
1700         * modules/uniwidth/u8-width-tests: Likewise.
1701         * modules/uniwidth/u16-strwidth-tests: Likewise.
1702         * modules/uniwidth/u16-width-tests: Likewise.
1703         * modules/uniwidth/u32-strwidth-tests: Likewise.
1704         * modules/uniwidth/u32-width-tests: Likewise.
1705         * modules/uniwidth/width-tests: Likewise.
1706
1707 2010-05-18  Richard Jones  <rjones@redhat.com>
1708
1709         doc: users.txt: list hivex
1710         * users.txt: Add hivex.
1711
1712 2010-05-18  Richard Jones  <rjones@redhat.com>
1713
1714         doc: users.txt: list febootstrap
1715         * users.txt: Add febootstrap.
1716
1717 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1718
1719         bootstrap: fix an error when gnulib is not used as a git submodule
1720         * build-aux/bootstrap (gnulib_path): If its length is zero then
1721         assign "gnulib" to it.
1722         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1723
1724 2010-05-16  Bruno Haible  <bruno@clisp.org>
1725
1726         Avoid autoconf warnings about AM_ICONV.
1727         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1728         2.64.
1729
1730 2010-05-16  Bruno Haible  <bruno@clisp.org>
1731
1732         absolute-header: Make the macro usable in more situations.
1733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1734         from gl_ABSOLUTE_HEADER.
1735         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1736
1737 2010-05-16  James Youngman  <jay@gnu.org>
1738
1739         doc: update users.txt
1740         * users.txt: Add CSSC.
1741
1742 2010-05-16  Jim Meyering  <meyering@redhat.com>
1743
1744         init.sh: fix an error in the previous change; add more comments
1745         * tests/init.sh: Compare exit code in loop against 9, not 2.
1746         Patch by Bruno Haible.
1747         Make the two tests more similar by adding an empty "then" clause.
1748         Add comments.
1749
1750         init.sh: avoid unnecessary shell re-exec
1751         * tests/init.sh: Improve the re-exec-required check to first test the
1752         current shell.  If it passes the test, do not search for a shell that
1753         does pass, and do not re-exec.  This test is particularly contorted to
1754         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1755         of $(...) evokes a syntax error and causes immediate shell exit with
1756         status 2.  Bruno Haible reported that the re-exec made it impossible
1757         to single-step through any init.sh-using script.
1758
1759 2010-05-16  Bruno Haible  <bruno@clisp.org>
1760
1761         Fix collision between gnulib's and libintl's printf replacements.
1762         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1763         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1764         (printf): When using GNU C, map the __printf__ function to rpl_printf
1765         via __asm__. When not using GNU C, define rpl_printf instead of
1766         __printf__.
1767         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1768         commit.
1769         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1770         commit.
1771         * m4/asm-underscore.m4: New file.
1772         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1773         * modules/stdio (Files): Add m4/asm-underscore.m4.
1774         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1775         Reported by Ben Pfaff.
1776
1777 2010-05-16  Bruno Haible  <bruno@clisp.org>
1778
1779         verify: Avoid skipping the test on openSUSE 11.0.
1780         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1781
1782 2010-05-13  Bruno Haible  <bruno@clisp.org>
1783
1784         Avoid useless warnings from G++.
1785         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1786         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1787         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1788
1789 2010-05-11  Jim Meyering  <meyering@redhat.com>
1790
1791         maint.mk: tweak preceding change
1792         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1793         regexps tighter by anchoring at EOL, and make the new group "shy"
1794         for slightly decreased overhead.
1795
1796 2010-05-11  Eric Blake  <eblake@redhat.com>
1797
1798         maint.mk: gnulib doesn't guarantee NSIG
1799         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1800
1801 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1802
1803         test-pwrite.c: Remove unused variable declaration.
1804         * tests/test-pwrite.c (main): Remove read_buf declaration.
1805
1806         Remove useless test-pwrite.sh file.
1807         * tests/test-pwrite.sh: Delete file.
1808         * modules/pwrite-tests: Remove references.
1809         Reported by Bruno Haible.
1810
1811 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1812
1813         init.sh: fix a typo
1814         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1815
1816 2010-05-10  Jim Meyering  <meyering@redhat.com>
1817
1818         maint.mk: avoid using a temporary file in the always-defined-macros check
1819         * top/maint.mk (.re-defmac): Remove rule.
1820         (gl_trap_): Remove definition.
1821         (sc_prohibit_always-defined_macros): Rewrite not to create and
1822         depend on a temporary file.  Instead, depend on GNU grep's ability
1823         to read a list of regular expressions from stdin when given "-f -".
1824
1825 2010-05-09  Bruno Haible  <bruno@clisp.org>
1826
1827         Update to GNU gettext 0.18, part 1.
1828         * m4/gettext.m4: Update to GNU gettext 0.18.
1829         * m4/intl.m4: Likewise.
1830         * m4/po.m4: Likewise.
1831         * modules/gettext (Files): Add m4/fcntl-o.m4.
1832         (configure.ac): Require gettext infrastructure from version 0.18.
1833
1834 2010-05-09  Jim Meyering  <meyering@redhat.com>
1835
1836         init.sh: enable MALLOC_PERTURB_
1837         * tests/init.sh: Enable glibc's malloc-perturbing option.
1838
1839         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1840         With my recent change in init.sh from the two-line form:
1841             -#   : ${srcdir=.}
1842             -#   . "$srcdir/init.sh"; path_prepend_ .
1843             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1844         I noticed that using the one-line form would cause this test
1845         to fail with a false-positive, or to stop working altogether,
1846         depending on whether help-version changed or all the tests did.
1847         * top/maint.mk (_hv_regex): Remove this definition.
1848         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1849         (_hv_regex_strong): Use a stronger regex to check for conformance.
1850         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1851         Give a separate diagnostic for lack of conforming use.
1852
1853         maint.mk: prohibit definition of symbols defined by gnulib
1854         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1855         definition of symbols defined by gnulib.
1856
1857 2010-05-09  Bruno Haible  <bruno@clisp.org>
1858
1859         acl: Avoid test failure on Cygwin-hosted mingw.
1860         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1861
1862 2010-05-09  Bruno Haible  <bruno@clisp.org>
1863
1864         error: Use system's fcntl function.
1865         * lib/error.c (fcntl): Undefine.
1866
1867 2010-05-09  Jim Meyering  <meyering@redhat.com>
1868
1869         verify: adjust formatting to be more consistent
1870         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1871         argument-list '('s, and after one comma.
1872
1873 2010-05-09  Bruno Haible  <bruno@clisp.org>
1874
1875         error: More reliable output on mingw.
1876         * lib/error.c: Include <windows.h>.
1877         (is_open): New function.
1878         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
1879         defined.
1880
1881 2010-05-09  Bruno Haible  <bruno@clisp.org>
1882
1883         vasnprintf: Fix syntax errors in libintl build on mingw.
1884         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
1885         pad_ourselves and prec_ourselves after use.
1886
1887 2010-05-08  Bruno Haible  <bruno@clisp.org>
1888
1889         * lib/config.charset: Update comments for Cygwin 1.7.
1890         * lib/localcharset.c: Likewise.
1891
1892 2010-05-07  Jim Meyering  <meyering@redhat.com>
1893
1894         init.sh: improve comments
1895         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
1896         . "${srcdir=.}/init.sh"; path_prepend_ .
1897         Add a note about path_prepend_ and the alternative of using
1898         TESTS_ENVIRONMENT.
1899
1900 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1901
1902         exclude: Unescape hashed patterns in wildcard mode.
1903         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
1904         to the hash list.
1905         * tests/test-exclude8.sh: New test case.
1906         * modules/exclude-tests: Add new test.
1907
1908 2010-05-05  Eric Blake  <eblake@redhat.com>
1909
1910         verify: automate tests
1911         * modules/verify-tests: New module.
1912         * tests/test-verify.sh: New file.
1913         * tests/test-verify.c: Guard each negative test with a unique id.
1914         Also avoid warning about unused left hand of comma expressions.
1915
1916 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1917
1918         Further improvements to verify.h, suggested by Eric Blake.
1919         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
1920         the GL_* versions, to avoid collision with OpenGL.
1921         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
1922         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
1923         than testing merely whether it's defined.
1924
1925         Modify verify.h to pacify gcc -Wredundant_decls.
1926         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
1927         These use the prefix "GL_" since they're likely to be useful elsewhere.
1928         We may need to break them out into a different .h file.
1929         (__COUNTER__): Define to 0 if the compiler doesn't support it.
1930         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
1931         of verify_function__.
1932
1933 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1934
1935         Tests for module pwrite.
1936         * modules/pwrite-tests: New file.
1937         * tests/test-pwrite.sh: New file.
1938         * tests/test-pwrite.c: New file.
1939
1940         New module pwrite.
1941         * lib/unistd.in.h (pwrite): New declaration.
1942         * lib/pwrite.c: New file, from glibc with modifications.
1943         * m4/pwrite.m4: New file.
1944         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
1945         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
1946         REPLACE_PWRITE.
1947         * modules/pwrite: New file.
1948         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
1949         REPLACE_PWRITE.
1950         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
1951         * doc/posix-functions/pwrite.texi: Mention the new module.
1952
1953 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1954
1955         pread: Update documentation.
1956         * doc/posix-functions/pread.texi: Mention the 'pread' module.
1957
1958 2010-05-04  Eric Blake  <eblake@redhat.com>
1959
1960         docs: update cygwin progress
1961         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
1962         this bug.
1963         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
1964         Added in cygwin 1.7.2.
1965         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
1966         Likewise.
1967         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
1968         Likewise.
1969         * doc/glibc-functions/dup3.texi (dup3): Likewise.
1970         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1971         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1972         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
1973         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
1974         Mention nproc module.
1975         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
1976         bug in cygwin 1.7.5 addition.
1977         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
1978         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
1979         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
1980         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1981         1.7.5.
1982         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
1983         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
1984         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
1985         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
1986         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
1987         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
1988         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
1989         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
1990         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
1991         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
1992         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
1993         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
1994         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
1995         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
1996         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
1997         Likewise.
1998         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
1999         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2000         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2001         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2002         Likewise.
2003         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2004         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2005         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2006         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2007         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2008         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2009         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2010         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2011         Likewise.
2012         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2013         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2014         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2015         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2016         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2017         Likewise.
2018         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2019         Likewise.
2020         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2021         Likewise.
2022         * doc/glibc-functions/xdrrec_endofrecord.texi
2023         (xdrrec_endofrecord): Likewise.
2024         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2025         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2026         Likewise.
2027         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2028         Likewise.
2029
2030 2010-05-04  Jim Meyering  <meyering@redhat.com>
2031
2032         gendocs.sh: make its "-s FILE" option more useful
2033         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2034         $PACKAGE to reflect the probably-different basename of "FILE".
2035
2036 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2037
2038         bootstrap: don't ignore download_po_files failure
2039         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2040         failure.
2041
2042 2010-05-03  Jim Meyering  <meyering@redhat.com>
2043
2044         maint.mk: allow to pass options to gendocs.sh
2045         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2046         (gendocs_options_): New overridable variable.
2047
2048         gnu-web-doc-update: don't ignore configure or build failure
2049         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2050
2051         announce-gen: backslash-escape '@'s in --help output
2052         * build-aux/announce-gen: Fix syntax errors.
2053
2054         maint.mk, announce-gen: allow project-specific announcement mail headers
2055         * top/maint.mk (translation_project_): Define default.
2056         (announcement_Cc_, announcement_mail_headers_): Likewise.
2057         (announcement): Invoke announce-gen with new --mail-headers option.
2058         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2059
2060         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2061         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2062         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2063         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2064         line in the "err2" output file when running "make check" in verbose
2065         mode (i.e., with set -x enabled).
2066
2067 2010-05-03  Bruno Haible  <bruno@clisp.org>
2068
2069         wctob: Fix for weird platforms.
2070         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2071         argument value.
2072
2073 2010-05-03  Jim Meyering  <meyering@redhat.com>
2074
2075         maint.mk: prohibit unwarranted use of <strings.h>
2076         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2077         strings.h in a file that does not also use strcasecmp, strncasecmp,
2078         ffs or ffsll.
2079
2080         maint.mk: remove obsolete comments
2081         * top/maint.mk: Remove stale, commented-out rules.
2082
2083 2010-05-02  Bruno Haible  <bruno@clisp.org>
2084
2085         wcwidth: Declare also when it's aliased.
2086         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2087         macro.
2088
2089 2010-05-02  Bruno Haible  <bruno@clisp.org>
2090
2091         Fix regression from 2010-04-25.
2092         * gnulib-tool (func_modules_transitive_closure): Check the status of
2093         all modules, not only of the tests that are of the form foo-tests where
2094         foo is a module.
2095
2096 2010-05-02  Bruno Haible  <bruno@clisp.org>
2097
2098         wctob: Work around nasty Cygwin 1.7.2 bug.
2099         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2100         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2101
2102 2010-05-01  Bruno Haible  <bruno@clisp.org>
2103
2104         fpurge: Sharper test.
2105         * tests/test-fpurge.c (main): Add one more ftell check.
2106         * modules/fpurge-tests (Depends-on): Add ftell.
2107         Suggested by Eric Blake.
2108
2109 2010-05-01  Bruno Haible  <bruno@clisp.org>
2110
2111         ftello: Another test.
2112         * tests/test-ftello3.c: New file.
2113         * modules/ftello-tests (Files): Add it.
2114         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2115         MOSTLYCLEANFILES.
2116
2117         ftell: Another test.
2118         * tests/test-ftell3.c: New file.
2119         * modules/ftell-tests (Files): Add it.
2120         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2121         MOSTLYCLEANFILES.
2122
2123 2010-05-01  Bruno Haible  <bruno@clisp.org>
2124
2125         ftell, ftello: Work around Solaris bug.
2126         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2127         * lib/ftello.c: Include stdio-impl.h.
2128         (ftello): On Solaris, when _IOWRT is set, compute the result without
2129         looking at _IOREAD.
2130         * modules/ftello (Files): Add lib/stdio-impl.h.
2131         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2132         * doc/posix-functions/ftello.texi: Likewise.
2133         Reported by Eric Blake.
2134
2135 2010-05-01  Bruno Haible  <bruno@clisp.org>
2136
2137         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2138         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2139         the _IOWRT flag is also set.
2140
2141 2010-05-01  Bruno Haible  <bruno@clisp.org>
2142
2143         Fix doc about a HP-UX stdio bug.
2144         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2145         * doc/posix-functions/ftello.texi: Likewise.
2146
2147 2010-05-01  Bruno Haible  <bruno@clisp.org>
2148
2149         lseek test: Fix failure on Solaris.
2150         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2151         output.
2152
2153 2010-04-30  Jim Meyering  <meyering@redhat.com>
2154
2155         bootstrap: don't ignore failure to generate po*/Makevars
2156         * build-aux/bootstrap (with_gettext): Don't ignore failure
2157         to create po/Makevars or runtime-po/Makevars.
2158
2159 2010-04-29  Eric Blake  <eblake@redhat.com>
2160
2161         headers: relax license to LGPLv2+
2162         * modules/fcntl-h (License): Relax license.
2163         * modules/getopt-posix (License): Likewise.
2164         * modules/locale (License): Likewise.
2165         * modules/math (License): Likewise.
2166         * modules/pty (License): Likewise.
2167         * modules/sched (License): Likewise.
2168         * modules/search (License): Likewise.
2169         * modules/spawn (License): Likewise.
2170         * modules/stdarg (License): Likewise.
2171         * modules/sysexits (License): Likewise.
2172
2173 2010-04-29  Jim Meyering  <meyering@redhat.com>
2174
2175         inttypes: relax license to LGPLv2+
2176         * modules/inttypes (License): Relax license.
2177
2178 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2179
2180         * top/maint.mk (indent): Run twice to produce idempotent results.
2181
2182 2010-04-28  Bruno Haible  <bruno@clisp.org>
2183
2184         getdate: Generate getdate.c in the source directory.
2185         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2186         MOSTLYCLEANFILES.
2187         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2188
2189 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2190
2191         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2192         is not declared as a const *; avoid warnings in that case.
2193
2194 2010-04-28  Eric Blake  <eblake@redhat.com>
2195
2196         canonicalize-lgpl: avoid compiler warning
2197         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2198         declaration' / 'extraneous semicolon' warning with some compilers.
2199         Reported by Andreas Gruenbacher.
2200
2201 2010-04-28  Jim Meyering  <meyering@redhat.com>
2202
2203         init.sh: ensure a more reliable exit status when exiting via trap
2204         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2205         Inspired by patches from Dmitry V. Levin.
2206         Also trap on signal 3 (SIGQUIT).
2207
2208 2010-04-27  Bruno Haible  <bruno@clisp.org>
2209
2210         Update doc about utimes().
2211         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2212         'utimens' module.
2213         Reported by Andreas Gruenbacher <agruen@suse.de>.
2214
2215 2010-04-27  Eric Blake  <eblake@redhat.com>
2216
2217         full-read, full-write: relax license
2218         * modules/full-read (License): Drop to LGPLv2+.
2219         * modules/full-write (License): Likewise.
2220         * modules/safe-read (License): Likewise.
2221         * modules/safe-write (License): Likewise.
2222
2223         pthread: mention library for linking
2224         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2225
2226 2010-04-27  Jim Meyering  <meyering@redhat.com>
2227
2228         maint.mk: fix a bug introduced in last change
2229         * top/maint.mk (gl_assured_headers_): Now that all names are on
2230         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2231         is not anchored to end of word, it should be adequate.
2232
2233         maint.mk: avoid side-effect in latest syntax-check
2234         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2235         to run commands via $(shell...), and hence to incur cost only when
2236         the new rule is actually run.
2237
2238         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2239         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2240         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2241         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2242         (gl_assured_headers_, az_, AZ_): Define.
2243         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2244
2245 2010-04-26  Jim Meyering  <jim@meyering.net>
2246             Bruno Haible  <bruno@clisp.org>
2247
2248         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2249         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2250         Prompted by an exchange with Gilles Espinasse.
2251
2252 2010-04-26  Jim Meyering  <meyering@redhat.com>
2253
2254         git-version-gen: aesthetic tweak
2255         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2256         so that the command remains on a single line.
2257
2258 2010-04-26  Eric Blake  <eblake@redhat.com>
2259
2260         git-version-gen: allow use on EBCDIC hosts
2261         * build-aux/git-version-gen (dirty): Use literal rather than tying
2262         ourselves to ascii.
2263         Reported by Steve Goetze.
2264
2265 2010-04-25  Bruno Haible  <bruno@clisp.org>
2266
2267         netdb: Add support for GNULIB_POSIXCHECK.
2268         * lib/netdb.in.h: Include warn-on-use.h.
2269         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2270         functions are used when GNULIB_POSIXCHECK is defined and the
2271         getaddrinfo module is not in use.
2272         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2273         freeaddrinfo, gai_strerror, getnameinfo are declared.
2274         * modules/netdb (Depends-on): Add warn-on-use.
2275         (Makefile.am): Include warn-on-use.h in netdb.h.
2276
2277 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2278
2279         build: avoid "make check" failure without .git/ directory
2280         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2281         there is no .git/ directory.
2282
2283 2010-04-25  Bruno Haible  <bruno@clisp.org>
2284
2285         ptsname: Fix misuse of ttyname_r.
2286         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2287         of errno.
2288
2289 2010-04-25  Bruno Haible  <bruno@clisp.org>
2290
2291         ttyname_r: Make it work on Solaris 10.
2292         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2293         if the system function has the POSIX declaration. Test whether the
2294         function fails if the buffer is less than 128 bytes large.
2295         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2296         system's ttyname_r function. Provide a reasonably large buffer.
2297         * modules/ttyname_r (Depends-on): Add extensions.
2298         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2299
2300 2010-04-25  Bruno Haible  <bruno@clisp.org>
2301
2302         Use the 'extensions' module for some more functions on Solaris.
2303         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2304         module.
2305         * doc/posix-functions/ctime_r.texi: Likewise.
2306         * doc/posix-functions/getgrgid_r.texi: Likewise.
2307         * doc/posix-functions/getgrnam_r.texi: Likewise.
2308         * doc/posix-functions/getpwnam_r.texi: Likewise.
2309         * doc/posix-functions/getpwuid_r.texi: Likewise.
2310         * doc/posix-functions/readdir_r.texi: Likewise.
2311         * doc/posix-functions/sigwait.texi: Likewise.
2312         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2313         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2314
2315 2010-04-25  Bruno Haible  <bruno@clisp.org>
2316
2317         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2318         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2319         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2320         * lib/ttyname_r.c: Include <limits.h>.
2321         (ttyname_r): Define using the system's ttyname_r function, if it exists
2322         and not on Solaris.
2323         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2324         set.
2325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2326         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2327         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2328         Reported by Simon Josefsson.
2329
2330 2010-04-25  Bruno Haible  <bruno@clisp.org>
2331
2332         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2333         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2334         * doc/posix-functions/ctime_r.texi: Likewise.
2335         * doc/posix-functions/getgrgid_r.texi: Likewise.
2336         * doc/posix-functions/getgrnam_r.texi: Likewise.
2337         * doc/posix-functions/getlogin_r.texi: Likewise.
2338         * doc/posix-functions/getpwnam_r.texi: Likewise.
2339         * doc/posix-functions/getpwuid_r.texi: Likewise.
2340         * doc/posix-functions/readdir_r.texi: Likewise.
2341         * doc/posix-functions/sigwait.texi: Likewise.
2342         * doc/posix-functions/ttyname_r.texi: Likewise.
2343         Reported by Simon Josefsson.
2344
2345 2010-04-25  Bruno Haible  <bruno@clisp.org>
2346
2347         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2348         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2349         also to --create-testdir.
2350         (func_acceptable): Don't consider the status of *-tests modules here.
2351         (func_modules_transitive_closure): Consider it here, before including a
2352         test module.
2353         (func_import, func_create_testdir): Set inc_all_direct_tests,
2354         inc_all_indirect_tests.
2355         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2356         --create-testdir and --create-megatestdir.
2357
2358 2010-04-25  Bruno Haible  <bruno@clisp.org>
2359
2360         gnulib-tool: Add --without-*-tests options.
2361         * gnulib-tool (func_usage): Document the --without-*-tests options.
2362         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2363         excl_unportable_tests): New variables.
2364         Fail if they are specified with --import or --update.
2365         (func_acceptable): Respect the excl_*_tests variables.
2366         (func_import): Set the excl_*_tests variables to empty.
2367
2368 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2369             Bruno Haible  <bruno@clisp.org>
2370
2371         Work around a MacOS X 10.4 bug with openpty.
2372         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2373         * tests/test-openpty.c (main): Close the master side explicitly.
2374
2375 2010-04-25  Bruno Haible  <bruno@clisp.org>
2376
2377         strnlen: Fix a C++ test error on MacOS X and Solaris.
2378         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2379         the function is not declared.
2380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2381         Simon Josefsson.
2382
2383 2010-04-24  Bruno Haible  <bruno@clisp.org>
2384
2385         Avoid a gcc warning.
2386         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2387         of correct type for %08lx directive.
2388         Reported by Eric Blake.
2389
2390 2010-04-24  Bruno Haible  <bruno@clisp.org>
2391
2392         vasnprintf: Correct errno value in case of out-of-memory.
2393         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2394         or sprintf. Use the errno value from SNPRINTF or sprintf.
2395         Reported by Ian Beckwith <ianb@erislabs.net>.
2396
2397 2010-04-24  Bruno Haible  <bruno@clisp.org>
2398
2399         ansi-c++-opt: Find correct compiler when cross-compiling.
2400         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2401         AC_CHECK_PROGS.
2402         Reported by Simon Josefsson.
2403
2404 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2405
2406         vc-list-files: Add support for subversion
2407         * build-aux/vc-list-files: Use "svn list" to generate the list of
2408         files controlled by subversion.
2409
2410 2010-04-23  Jim Meyering  <meyering@redhat.com>
2411
2412         vc-list-files tests: convert to use init.sh
2413         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2414         path_prepend_.
2415         Use Exit, not exit.
2416         Use skip_ rather than open coding it.
2417         Remove trap set-up and compare definitions.
2418         * tests/test-vc-list-files-git.sh: Likewise.
2419         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2420
2421 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2422
2423         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2424         backup files.
2425
2426 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2427
2428         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2429
2430 2010-04-20  Eric Blake  <eblake@redhat.com>
2431
2432         tests: be robust to ignored SIGPIPE
2433         * tests/test-select-in.sh: Consume all output.
2434         * tests/test-lseek.sh: Check correct exit status, while avoiding
2435         EPIPE.
2436
2437 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2438             Bruno Haible  <bruno@clisp.org>
2439
2440         visibility: Don't use -fvisibility if it leads to a warning.
2441         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2442         yes, don't pretend that visibility works if it leads to a warning.
2443         Reported by Mike Gran <spk121@yahoo.com>.
2444
2445 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2446
2447         * build-aux/bootstrap: Use "git -h" for testing for supported options
2448         instead of "git --help".  The short-form option only shows a summary,
2449         and doesn't layout the full man page.  Grep for the full option name
2450         in the summary, too.
2451
2452 2010-04-19  Bruno Haible  <bruno@clisp.org>
2453
2454         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2455         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2456         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2457         mention of RELOCATABLE_STRIP.
2458         Reported by Sylvain Beucler <beuc@beuc.net>.
2459
2460 2010-04-19  Bruno Haible  <bruno@clisp.org>
2461
2462         * lib/diffseq.h: Fix typo in comment.
2463         Reported by Eric Blake.
2464
2465 2010-04-19  Bruno Haible  <bruno@clisp.org>
2466
2467         ioctl: Move autoconf macro to a .m4 file.
2468         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2469         * modules/ioctl (Files): Add it.
2470         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2471         Reported by Ian Beckwith <ianb@erislabs.net>.
2472
2473 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2474             Bruno Haible  <bruno@clisp.org>
2475
2476         diffseq: Accommodate use-case with abstract arrays.
2477         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2478         is not defined.
2479         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2480         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2481
2482 2010-04-18  Bruno Haible  <bruno@clisp.org>
2483
2484         * doc/posix-headers/stdbool.texi: More precise wording.
2485
2486 2010-04-17  Jim Meyering  <meyering@redhat.com>
2487
2488         maint.mk: use gnu-style indentation in an embedded perl script
2489         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2490         Rename variable: s/two/last_two_bytes/
2491
2492 2010-04-16  Eric Blake  <eblake@redhat.com>
2493
2494         test-stdbool: skip test that fails with Solaris CC
2495         * tests/test-stdbool.c (f): Skip test that causes compilation
2496         error under buggy C++ compiler.
2497         * lib/stdbool.in.h: Document the limitation.
2498         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2499
2500         setenv: allow compilation with C++
2501         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2502         register keyword.
2503
2504         stdint: allow test to pass with C++
2505         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2506
2507         getopt: allow compilation with C++
2508         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2509         struct.
2510         * lib/getopt.c (_getopt_internal_r): Use correct type.
2511         Reported by Dagobert Michelson, via Joel E. Denny.
2512
2513 2010-04-16  Bruno Haible  <bruno@clisp.org>
2514
2515         Override netdb.h always.
2516         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2517         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2518         Reported by Ludovic Courtès <ludo@gnu.org>.
2519
2520 2010-04-15  Bruno Haible  <bruno@clisp.org>
2521
2522         openpty: Fix mistake from 2010-03-21.
2523         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2524         Reported by Simon Josefsson.
2525
2526 2010-04-15  Eric Blake  <eblake@redhat.com>
2527
2528         test-forkpty: fix expected signature
2529         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2530         Reported by Simon Josefsson.
2531
2532 2010-04-15  Jim Meyering  <meyering@redhat.com>
2533
2534         maint.mk: texinfo_suffix_re_: correct the default regexp
2535         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2536
2537         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2538         make it configurable via texinfo_suffix_re_.
2539
2540 2010-04-14  Eric Blake  <eblake@redhat.com>
2541
2542         strtok_r: relax license to LGPLv2+
2543         * modules/strtok_r (License): Relax license.
2544         Reported by Matthias Bolte.
2545
2546 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2547
2548         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2549         version 1.4.4 by default instead of requiring the libgcrypt
2550         version used during build.  This makes it possible to use the
2551         application with older but still binary compatible libgcrypt
2552         versions.
2553
2554 2010-04-13  Eric Blake  <eblake@redhat.com>
2555
2556         getopt-gnu: match recent glibc fixes and posix ruling
2557         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2558         '+' handling, when requesting extensions.
2559         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2560         'W;' handling.
2561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2562         * doc/posix-functions/getopt.texi (getopt): Document this.
2563         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2564         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2565         Likewise.
2566
2567         getopt: merge bug fixes from glibc
2568         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2569         diagnostics.  Honor '+:' correctly.  Reject ';'.
2570
2571         getopt-posix: detect MacOS bug
2572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2573         optind when missing a required argument.
2574         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2575         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2576         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2577         Likewise.
2578
2579         getopt-posix: avoid spurious failure on Solaris
2580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2581         an indicator that setting optind=1 is sufficient for reset.
2582
2583         getopt-posix: avoid spurious failure on FreeBSD
2584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2585         in POSIX mode, since the m4 test uses it.
2586
2587         gnulib-tool: silence warning on BSD sh
2588         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2589
2590 2010-04-13  Jim Meyering  <meyering@redhat.com>
2591
2592         doc: users.txt: GNU patch now uses gnulib
2593         * users.txt: Add patch.
2594
2595 2010-04-12  Jim Meyering  <meyering@redhat.com>
2596
2597         maint.mk: generate more concise timing data for syntax-check rules
2598         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2599         " done" from each line that reports a syntax-check test duration.
2600
2601 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2602
2603         git-version-gen: use "git update-index..." rather than "git status"
2604         * build-aux/git-version-gen: Use git update-index --refresh, not
2605         "git status".  With some versions of git, "git status" would fail
2606         to update the index and result in an unwarranted "-dirty" suffix.
2607
2608 2010-04-11  Jim Meyering  <meyering@redhat.com>
2609
2610         openat: correct formatting (no semantic change)
2611         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2612         Suggested by Bruno Haible.
2613
2614 2010-04-11  Bruno Haible  <bruno@clisp.org>
2615
2616         Stricter declaration checking in testdirs.
2617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2618         If for_tests is true, augment AM_CPPFLAGS to define
2619         GNULIB_STRICT_CHECKING.
2620         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2621         GNULIB_STRICT_CHECKING is defined, verify that the function is
2622         declared.
2623
2624 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2625             Bruno Haible  <bruno@clisp.org>
2626
2627         libunistring: Improve configure output.
2628         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2629         Don't say "consider installing GNU libunistring" when checking again
2630         with libiconv.
2631
2632 2010-04-11  Bruno Haible  <bruno@clisp.org>
2633
2634         libunistring: Correct value of $LTLIBUNISTRING.
2635         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2636         correct the value of $LTLIBUNISTRING.
2637
2638 2010-04-11  Bruno Haible  <bruno@clisp.org>
2639
2640         havelib: Add static libraries to LIBS in the right order.
2641         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2642         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2643
2644 2010-04-11  Bruno Haible  <bruno@clisp.org>
2645
2646         libunistring: Detect libunistring also when it depends on libiconv.
2647         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2648         the second AC_LIB_HAVE_LINKFLAGS invocation.
2649
2650 2010-04-11  James Youngman  <jay@gnu.org>
2651
2652         close-stream: declare local scalars to be "const"
2653         * lib/close-stream.c (close_stream): Make boolean variables const
2654         to document the fact that we set but do not change them.
2655
2656 2010-04-11  Bruno Haible  <bruno@clisp.org>
2657
2658         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2659
2660 2010-04-11  Jim Meyering  <meyering@redhat.com>
2661
2662         maint.mk: don't include dist-check.mk
2663         * top/maint.mk: Remove bogus include directive.
2664
2665         maint.mk: improve empty-line-at-EOF check
2666         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2667         solution, rather than tail+Perl-based one.  The latter would read
2668         a few kilobytes from the end of each file, and did not handle empty
2669         files properly.
2670
2671         maint.mk: print the elapsed time for each syntax-check rule
2672         * top/maint.mk (sc_m_rules_): Save start time in a file.
2673         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2674         (local-check): Interpose the .z rules
2675
2676 2010-04-11  Jim Meyering  <meyering@redhat.com>
2677
2678         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2679         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2680         empty file with one that ends in an empty line.
2681
2682 2010-04-10  Bruno Haible  <bruno@clisp.org>
2683
2684         mkdir: Make it work on mingw64.
2685         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2686         * lib/mkdir.c: Update comment.
2687         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2688
2689 2010-04-10  Bruno Haible  <bruno@clisp.org>
2690
2691         Don't override improved macro from newer autoconf.
2692         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2693         autoconf >= 2.62.
2694         Reported by Joel E. Denny <jdenny@clemson.edu>.
2695
2696 2010-04-10  Jim Meyering  <meyering@redhat.com>
2697
2698         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2699         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2700
2701         maint.mk: correct a diagnostic
2702         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2703         in diagnostic; now use $prohibit.
2704
2705 2010-04-10  Bruno Haible  <address@hidden>
2706
2707         fchownat: Fix a C++ test error on Solaris 8.
2708         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2709         the function does not exist.
2710
2711 2010-04-10  Bruno Haible  <bruno@clisp.org>
2712
2713         vasnprintf: Add more tests.
2714         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2715         (test_function): Test converting an invalid wide string.
2716
2717         vasnprintf: Correct handling of unconvertible wide string arguments.
2718         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2719         VASNPRINTF.
2720         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2721         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2722         smaller than the expected maximum need for the directive. Set errno to
2723         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2724         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2726         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2727         * modules/vasnprintf (Files): Add m4/printf.m4.
2728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2729
2730 2010-04-10  Bruno Haible  <bruno@clisp.org>
2731
2732         vasnprintf: Fix crash in %ls directive.
2733         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2734         string is passed as argument to %ls, with no precision and no width.
2735         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2736
2737 2010-04-10  Bruno Haible  <bruno@clisp.org>
2738
2739         vasnprintf: Fix multiple test failures on mingw.
2740         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2741         _snprintf, or snwprintf, not _snwprintf.
2742
2743 2010-04-10  Bruno Haible  <bruno@clisp.org>
2744
2745         write: Fix a C++ test error on mingw.
2746         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2747
2748 2010-04-10  Bruno Haible  <bruno@clisp.org>
2749
2750         vasnprintf test: Reduce code duplication.
2751         * tests/test-vasnprintf.c (test_function): New function, extracted from
2752         test_vasnprintf.
2753         (test_vasnprintf, test_asnprintf): Invoke it.
2754
2755 2010-04-10  Bruno Haible  <bruno@clisp.org>
2756
2757         strnlen: Fix warning in C++ mode on MacOS X.
2758         * lib/string.in.h (strnlen): Use the modern idiom.
2759         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2760         defining strnlen as a macro already in <config.h>.
2761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2762         REPLACE_STRNLEN.
2763         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2764         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2765
2766 2010-04-08  James Youngman  <jay@gnu.org>
2767
2768         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2769         the example.
2770
2771 2010-04-09  Jim Meyering  <meyering@redhat.com>
2772
2773         maint.mk: print better diagnostic when there is no $(_hv_file)
2774         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2775         announce that when $(_hv_file) (aka help-version) does not exist.
2776
2777         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2778         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2779         not try to interpret its random input bytes.  Jarno Rajahalme reported
2780         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2781         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2782         (mktempd_): Likewise, just in case.
2783
2784         ftruncate: add two years to projected module removal date: 2012
2785         * m4/ftruncate.m4: Adjust comments.
2786
2787         ftruncate: mark module as obsolete; even MinGW provides it, now
2788         * modules/ftruncate (Status): Obsolete.
2789         (Notice): Say that.
2790         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2791         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2792
2793 2010-04-08  Bruno Haible  <bruno@clisp.org>
2794
2795         Fix side effects from tests-related modules.
2796         * modules/dprintf-posix (Comment): New section.
2797         * modules/fprintf-posix (Comment): Likewise.
2798         * modules/obstack-printf-posix (Comment): Likewise.
2799         * modules/printf-posix (Comment): Likewise.
2800         * modules/snprintf-posix (Comment): Likewise.
2801         * modules/sprintf-posix (Comment): Likewise.
2802         * modules/vasnprintf-posix (Comment): Likewise.
2803         * modules/vasprintf-posix (Comment): Likewise.
2804         * modules/vdprintf-posix (Comment): Likewise.
2805         * modules/vfprintf-posix (Comment): Likewise.
2806         * modules/vprintf-posix (Comment): Likewise.
2807         * modules/vsnprintf-posix (Comment): Likewise.
2808         * modules/vsprintf-posix (Comment): Likewise.
2809         * modules/xprintf-posix (Comment): Likewise.
2810         * modules/xvasprintf-posix (Comment): Likewise.
2811         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2812         * modules/floorf-tests (Depends-on): Likewise.
2813         * modules/round-tests (Depends-on): Likewise.
2814         * modules/roundf-tests (Depends-on): Likewise.
2815         * modules/trunc-tests (Depends-on): Likewise.
2816         * modules/truncf-tests (Depends-on): Likewise.
2817         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2818         'fprintf-posix' module is not present.
2819         * tests/test-floorf2.c (check): Likewise.
2820         * tests/test-trunc2.c (check): Likewise.
2821         * tests/test-truncf2.c (check): Likewise.
2822         * tests/test-round2.c (equal): Likewise.
2823         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2824
2825 2010-04-07  Karl Berry  <karl@gnu.org>
2826
2827         * config/srclist.txt,
2828         * config/srclistvars.sh,
2829         * config/srclist-update: doc fixes.
2830
2831 2010-04-07  Jim Meyering  <meyering@redhat.com>
2832
2833         maint.mk: add a PATH crosschecking syntax-check rule
2834         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2835         Useful if you use a test like the one in help-version (coreutils,
2836         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2837         printed by prog --version.
2838
2839 2010-04-06  Bruno Haible  <bruno@clisp.org>
2840
2841         Fix link error on mingw.
2842         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2843         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2844
2845 2010-04-06  Bruno Haible  <bruno@clisp.org>
2846
2847         Assume rmdir exists.
2848         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2849
2850 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2851
2852         doc: update users.txt
2853         * users.txt: Add gcal.
2854
2855 2010-04-06  Jim Meyering  <meyering@redhat.com>
2856
2857         init.sh: simply unset TMPDIR rather than risking env -i
2858         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2859         although it probably works fine on all Unix-based systems, some
2860         systems (Cygwin?) cannot tolerate a totally cleared environment.
2861         Suggestion from Eric Blake.
2862
2863 2010-04-06  Jim Meyering  <meyering@redhat.com>
2864
2865         init.sh: portability fix: use env's POSIX-specified -i option not -u
2866         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2867         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2868
2869 2010-04-05  Bruno Haible  <bruno@clisp.org>
2870
2871         btowc: Work around Cygwin 1.7.2 bug.
2872         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2873         does not map NUL to 0.
2874         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2875
2876 2010-04-05  Bruno Haible  <bruno@clisp.org>
2877
2878         Make the multithread modules work on Cygwin 1.7.2.
2879         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
2880         imported symbols can be declared weak, so that it returns "no" on
2881         Cygwin 1.7.2.
2882
2883 2010-04-05  Bruno Haible  <bruno@clisp.org>
2884
2885         Use the module 'strncat'.
2886         * modules/unistr/u8-strncat (Depends-on): Add strncat.
2887
2888         Tests for module 'strncat'.
2889         * modules/strncat-tests: New file.
2890         * tests/test-strncat.c: New file.
2891
2892         New module 'strncat'.
2893         * lib/string.in.h (strncat): New declaration.
2894         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
2895         * m4/strncat.m4: New file, based on m4/memchr.m4.
2896         * modules/strncat: New file.
2897         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
2898         is declared.
2899         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
2900         REPLACE_STRNCAT.
2901         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
2902         REPLACE_STRNCAT.
2903         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
2904         module.
2905         * tests/test-string-c++.cc: Check signature of strncat.
2906
2907 2010-04-05  Jim Meyering  <meyering@redhat.com>
2908
2909         xstrtoumax-tests: convert to use init.sh
2910         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
2911         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2912         Use Exit, not exit.
2913         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2914
2915         xstrtoimax-tests: convert to use init.sh
2916         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
2917         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2918         Use Exit, not exit.
2919         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2920
2921 2010-04-05  Bruno Haible  <bruno@clisp.org>
2922
2923         sys_socket: Avoid #define replacements in C++ mode.
2924         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
2925         warning to the function if possible, rather than #defining the symbol
2926         to a dysfunctional alias.
2927
2928 2010-04-05  Bruno Haible  <bruno@clisp.org>
2929
2930         fseeko: Fix C++ test error on mingw.
2931         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
2932         gl_FUNC_FSEEKO.
2933         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
2934         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
2935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
2936         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
2937
2938 2010-04-05  Bruno Haible  <bruno@clisp.org>
2939
2940         duplocale: Improve test output.
2941         * tests/test-duplocale.c (main): Print reason for skipped test.
2942
2943 2010-04-05  Bruno Haible  <bruno@clisp.org>
2944
2945         Assume rmdir exists.
2946         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
2947         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
2948
2949 2010-04-05  Bruno Haible  <bruno@clisp.org>
2950
2951         Fix link error on Solaris 8 with cc.
2952         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
2953
2954 2010-04-05  Bruno Haible  <bruno@clisp.org>
2955
2956         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2957         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
2958
2959 2010-04-05  Bruno Haible  <bruno@clisp.org>
2960
2961         vasprintf: Update documentation.
2962         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
2963
2964 2010-04-05  Bruno Haible  <bruno@clisp.org>
2965
2966         ptsname: Improve test.
2967         * tests/test-ptsname.c (main): Also try the various master names of BSD
2968         systems.
2969
2970 2010-04-05  Bruno Haible  <bruno@clisp.org>
2971
2972         memchr: Avoid a possible C++ test error.
2973         * lib/string.in.h (memchr): Provide declaration if function is missing.
2974         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
2975         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
2976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
2977         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
2978
2979 2010-04-05  Bruno Haible  <bruno@clisp.org>
2980
2981         strtok_r: Improve idiom.
2982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
2983         AC_LIBOBJ is used.
2984
2985 2010-04-05  Bruno Haible  <bruno@clisp.org>
2986
2987         strdup: Improve idiom.
2988         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
2989         AC_LIBOBJ is used.
2990         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
2991         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
2992         when AC_LIBOBJ is used.
2993
2994 2010-04-05  Bruno Haible  <bruno@clisp.org>
2995
2996         mbsinit, mbrtowc, wcrtomb: Improve idioms.
2997         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
2998         don't set REPLACE_MBSINIT to 1.
2999         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3000         don't set REPLACE_MBRTOWC to 1.
3001         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3002         exist, don't set REPLACE_MBSRTOWCS to 1.
3003         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3004         exist, don't set REPLACE_MBSNRTOWCS to 1.
3005         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3006         don't set REPLACE_WCRTOMB to 1.
3007         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3008         exist, don't set REPLACE_WCSRTOMBS to 1.
3009         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3010         exist, don't set REPLACE_WCSNRTOMBS to 1.
3011
3012 2010-04-05  Bruno Haible  <bruno@clisp.org>
3013
3014         ldexpl: Improve idiom.
3015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3016         make sure to set HAVE_DECL_LDEXPL to 0.
3017
3018 2010-04-05  Jim Meyering  <meyering@redhat.com>
3019
3020         xstrtol-tests: convert to use init.sh
3021         * modules/xstrtol-tests (Files): Add tests/init.sh.
3022         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3023         Use Exit, not exit.
3024         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3025
3026         atexit-tests: convert to use init.sh
3027         * modules/atexit-tests (Files): Add tests/init.sh.
3028         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3029         Use Exit, not exit.
3030         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3031
3032         init.sh: fix typo
3033         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3034
3035         init.sh: make it easier for a test script to write to the tty, ...
3036         when using automake's parallel-tests mode.
3037         * tests/init.sh (stderr_fileno_): Define overridable variable.
3038         (warn_): New function, to use it.
3039         (fail_, skip_, framework_failure_): Use warn_.
3040
3041 2010-04-04  Bruno Haible  <bruno@clisp.org>
3042
3043         btowc: Avoid warning.
3044         * lib/btowc.c: Include <stdlib.h>.
3045         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3046
3047 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3048             Bruno Haible  <bruno@clisp.org>
3049
3050         wchar: Port to NetBSD 1.5.
3051         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3052         * lib/wctype.in.h (WEOF): Likewise.
3053
3054 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3055             Bruno Haible  <bruno@clisp.org>
3056
3057         Port extended stdio to NetBSD 1.5.
3058         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3059         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3060         older.
3061
3062 2010-04-04  Bruno Haible  <bruno@clisp.org>
3063
3064         string: Remove unused substitution.
3065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3066         HAVE_DECL_STRERROR.
3067         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3068
3069 2010-04-04  Bruno Haible  <bruno@clisp.org>
3070
3071         strtod: Avoid a possible C++ test error.
3072         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3073         set REPLACE_STRTOD.
3074
3075 2010-04-04  Bruno Haible  <bruno@clisp.org>
3076
3077         strerror: Update documentation.
3078         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3079
3080 2010-04-04  Bruno Haible  <bruno@clisp.org>
3081
3082         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3083         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3084         _GL_CXXALIAS_SYS_CAST.
3085
3086 2010-04-04  Bruno Haible  <bruno@clisp.org>
3087
3088         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3089         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3090         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3091         REPLACE_FREXPL to 1.
3092         * doc/posix-functions/frexpl.texi: Update documentation.
3093
3094 2010-04-04  Bruno Haible  <bruno@clisp.org>
3095
3096         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3097         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3098
3099 2010-04-04  Bruno Haible  <bruno@clisp.org>
3100
3101         Implement nanosleep for native Windows.
3102         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3103
3104 2010-04-04  Bruno Haible  <bruno@clisp.org>
3105
3106         math: Fix some C++ test errors on Solaris 8.
3107         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3108
3109 2010-04-04  Bruno Haible  <bruno@clisp.org>
3110
3111         math: Fix some C++ test errors on Cygwin.
3112         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3113         truncl): Provide declaration if the system does not have it.
3114         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3115         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3116         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3117         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3118         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3119         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3120         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3121         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3122         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3123         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3124         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3125         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3126         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3127         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3128         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3129         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3131         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3132         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3133         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3134         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3135         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3136
3137 2010-04-04  Bruno Haible  <bruno@clisp.org>
3138
3139         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3140         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3141         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3142         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3143         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3144         * m4/isinf.m4 (gl_ISINF): Likewise.
3145         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3146
3147 2010-04-04  Bruno Haible  <bruno@clisp.org>
3148
3149         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3150         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3151
3152 2010-04-04  Bruno Haible  <bruno@clisp.org>
3153
3154         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3155         * modules/tmpfile (configure.ac): Update.
3156
3157         tmpfile: Fix C++ test error on mingw.
3158         * lib/stdio.in.h (tmpfile): New declaration.
3159         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3160         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3161         * modules/tmpfile (Depends-on): Add stdio.
3162         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3163         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3164         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3165         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3166         REPLACE_TMPFILE.
3167         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3168
3169 2010-04-04  Bruno Haible  <bruno@clisp.org>
3170
3171         ioctl: Fix C++ test error on mingw.
3172         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3173         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3174         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3175
3176 2010-04-03  Bruno Haible  <bruno@clisp.org>
3177
3178         wcwidth: Fix C++ test error on mingw.
3179         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3181         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3182
3183 2010-04-03  Bruno Haible  <bruno@clisp.org>
3184
3185         nanosleep: Fix C++ test error on mingw.
3186         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3187         * lib/time.in.h (nanosleep): Use modern idiom.
3188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3189         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3190         REPLACE_NANOSLEEP to 1.
3191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3192         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3193
3194 2010-04-03  Bruno Haible  <bruno@clisp.org>
3195
3196         strptime: Fix C++ test error on mingw.
3197         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3198         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3199         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3200         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3202         not REPLACE_STRPTIME.
3203         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3204         REPLACE_STRPTIME.
3205
3206 2010-04-03  Bruno Haible  <bruno@clisp.org>
3207
3208         timegm: Fix C++ test error on mingw.
3209         * lib/time.in.h (timegm): Use modern idiom.
3210         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3211         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3212         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3213         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3214
3215 2010-04-03  Bruno Haible  <bruno@clisp.org>
3216
3217         timegm: Assume declaration if function exists.
3218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3219         if it exists. Don't clobber ac_cv_func_timegm.
3220
3221 2010-04-03  Bruno Haible  <bruno@clisp.org>
3222
3223         time_r: Fix C++ test error on mingw.
3224         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3225         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3226         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3228         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3229
3230 2010-04-03  Bruno Haible  <bruno@clisp.org>
3231
3232         time_r: Minor updates.
3233         * modules/time_r (Description): Mention the provided functions.
3234         * lib/time_r.c: Don't include <string.h>.
3235         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3236         * doc/posix-functions/localtime_r.texi: Likewise.
3237
3238 2010-04-03  Bruno Haible  <bruno@clisp.org>
3239
3240         time: Fix regression introduced on 2010-03-08.
3241         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3242         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3243
3244 2010-04-03  Jim Meyering  <meyering@redhat.com>
3245
3246         maint.mk: don't silently disable project-specific syntax-check rules
3247         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3248         that they need to convert their project-specific syntax-check rules
3249         to use the new _sc_search_regexp.
3250
3251 2010-04-03  Bruno Haible  <bruno@clisp.org>
3252
3253         fchdir: Fix regression introduced on 2010-03-08.
3254         * lib/unistd.in.h (fchdir): Fix declaration.
3255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3257         REPLACE_FCHDIR.
3258         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3259         REPLACE_FCHDIR.
3260
3261 2010-04-03  Bruno Haible  <bruno@clisp.org>
3262
3263         getpagesize: Fix C++ test error on mingw.
3264         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3265         system does not declare the function.
3266         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3267         declared.
3268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3269         HAVE_DECL_GETPAGESIZE.
3270         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3271
3272 2010-04-03  Bruno Haible  <bruno@clisp.org>
3273
3274         stdio: Make C++ tests work on mingw.
3275         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3276         does not declare the function.
3277
3278 2010-04-03  Bruno Haible  <bruno@clisp.org>
3279
3280         ftello: Fix C++ test error on mingw.
3281         * lib/stdio.in.h (ftello): Use modern idiom.
3282         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3283         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3284         is missing and that it needs to be replaced.
3285         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3287         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3288
3289 2010-04-03  Bruno Haible  <bruno@clisp.org>
3290
3291         fseeko: Fix C++ test error on mingw.
3292         * lib/stdio.in.h (fseeko): Use modern idiom.
3293         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3294         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3295         is missing and that it needs to be replaced.
3296         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3298         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3299
3300 2010-04-03  Bruno Haible  <bruno@clisp.org>
3301
3302         mkstemp: Fix C++ test error on mingw.
3303         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3304         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3305         function is missing and that it needs to be replaced.
3306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3307         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3308
3309 2010-04-03  Bruno Haible  <bruno@clisp.org>
3310
3311         stpncpy: Fix C++ test error on mingw.
3312         * lib/string.in.h (stpncpy): Use modern idiom.
3313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3314         function is missing and that it needs to be replaced.
3315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3316         REPLACE_STPNCPY.
3317         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3318
3319 2010-04-03  Bruno Haible  <bruno@clisp.org>
3320
3321         sys_stat: Fix C++ test error on mingw.
3322         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3323         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3324
3325 2010-04-03  Bruno Haible  <bruno@clisp.org>
3326
3327         pty: Update doc.
3328         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3329
3330 2010-04-03  Bruno Haible  <bruno@clisp.org>
3331
3332         unistd: Fix C++ test error on mingw.
3333         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3334
3335 2010-04-03  Bruno Haible  <bruno@clisp.org>
3336
3337         Update doc regarding mingw.
3338         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3339         * doc/glibc-functions/login_tty.texi: Likewise.
3340         * doc/glibc-functions/forkpty.texi: Likewise.
3341
3342 2010-04-03  Bruno Haible  <bruno@clisp.org>
3343
3344         stdlib: Avoid compilation failure of c-strtold on mingw.
3345         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3346
3347 2010-04-03  Bruno Haible  <bruno@clisp.org>
3348
3349         locale: Make C++ tests work on Cygwin and mingw.
3350         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3351         cannot provide the function.
3352         Reported by Simon Josefsson.
3353
3354 2010-04-03  Bruno Haible  <bruno@clisp.org>
3355
3356         localename: Port to MacOS X 10.6.
3357         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3358         memory layout of the locales in MacOS X 10.6 as well.
3359         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3360
3361 2010-04-02  Bruno Haible  <bruno@clisp.org>
3362
3363         gnulib-tool: Ensure that long-running tests are executed last.
3364         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3365         running tests after the one for the other tests.
3366
3367 2010-04-02  Bruno Haible  <bruno@clisp.org>
3368
3369         gnulib-tool: Ensure the tests in the main directory are executed first.
3370         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3371         start with the current directory.
3372
3373 2010-04-02  Bruno Haible  <bruno@clisp.org>
3374
3375         Tests for module 'havelib', moved here from GNU gettext.
3376         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3377         modifications.
3378         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3379         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3380         with modifications.
3381         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3382         modifications.
3383         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3384         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3385         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3386         with modifications.
3387         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3388         with modifications.
3389         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3390         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3391         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3392         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3393         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3394         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3395         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3396         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3397         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3398         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3399         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3400         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3401         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3402         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3403         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3404         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3405         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3406         with modifications.
3407         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3408         with modifications.
3409         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3410         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3411         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3412         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3413         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3414         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3415         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3416         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3417         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3418         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3419         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3420         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3421         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3422         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3423         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3424         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3425         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3426         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3427         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3428         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3429         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3430         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3431         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3432         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3433         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3434         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3435         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3436         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3437         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3438         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3439         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3440         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3441         * tests/havelib/rpathx/rpathx.c: New file, from
3442         gettext/autoconf-lib-link.
3443         * tests/havelib/rpathx/Makefile.am: New file, from
3444         gettext/autoconf-lib-link.
3445         * tests/havelib/rpathx/configure.ac: New file, from
3446         gettext/autoconf-lib-link with modifications.
3447         * tests/havelib/rpathy/rpathy.c: New file, from
3448         gettext/autoconf-lib-link.
3449         * tests/havelib/rpathy/Makefile.am: New file, from
3450         gettext/autoconf-lib-link.
3451         * tests/havelib/rpathy/configure.ac: New file, from
3452         gettext/autoconf-lib-link with modifications.
3453         * tests/havelib/rpathz/rpathz.c: New file, from
3454         gettext/autoconf-lib-link.
3455         * tests/havelib/rpathz/Makefile.am: New file, from
3456         gettext/autoconf-lib-link.
3457         * tests/havelib/rpathz/configure.ac: New file, from
3458         gettext/autoconf-lib-link with modifications.
3459         * tests/havelib/rpathlx/usex.c: New file, from
3460         gettext/autoconf-lib-link.
3461         * tests/havelib/rpathlx/Makefile.am: New file, from
3462         gettext/autoconf-lib-link.
3463         * tests/havelib/rpathlx/configure.ac: New file, from
3464         gettext/autoconf-lib-link with modifications.
3465         * tests/havelib/rpathly/usey.c: New file, from
3466         gettext/autoconf-lib-link.
3467         * tests/havelib/rpathly/Makefile.am: New file, from
3468         gettext/autoconf-lib-link.
3469         * tests/havelib/rpathly/configure.ac: New file, from
3470         gettext/autoconf-lib-link with modifications.
3471         * tests/havelib/rpathlz/usez.c: New file, from
3472         gettext/autoconf-lib-link.
3473         * tests/havelib/rpathlz/Makefile.am: New file, from
3474         gettext/autoconf-lib-link.
3475         * tests/havelib/rpathlz/configure.ac: New file, from
3476         gettext/autoconf-lib-link with modifications.
3477         * tests/havelib/rpathlyx/usey.c: New file, from
3478         gettext/autoconf-lib-link.
3479         * tests/havelib/rpathlyx/Makefile.am: New file, from
3480         gettext/autoconf-lib-link.
3481         * tests/havelib/rpathlyx/configure.ac: New file, from
3482         gettext/autoconf-lib-link with modifications.
3483         * tests/havelib/rpathlzyx/usez.c: New file, from
3484         gettext/autoconf-lib-link.
3485         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3486         gettext/autoconf-lib-link.
3487         * tests/havelib/rpathlzyx/configure.ac: New file, from
3488         gettext/autoconf-lib-link with modifications.
3489         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3490         with modifications.
3491
3492 2010-04-02  Bruno Haible  <bruno@clisp.org>
3493
3494         gnulib-tool: Create distributed built sources also for the tests.
3495         * gnulib-tool (func_create_testdir): Also generate distributed built
3496         sources in the tests directory.
3497
3498 2010-04-02  Bruno Haible  <bruno@clisp.org>
3499
3500         gnulib-tool: Obey user's environment variables.
3501         * gnulib-tool (func_create_testdir): When creating built sources,
3502         respect the environment variables for autoconf, automake, etc. given by
3503         the user.
3504
3505 2010-04-02  Bruno Haible  <bruno@clisp.org>
3506
3507         gnulib-tool: Provide the value of --m4-base to modules.
3508         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3509         of gl_m4_base.
3510
3511 2010-04-02  Eric Blake  <eblake@redhat.com>
3512
3513         maint.mk: fix some fallout
3514         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3515         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3516
3517 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3518
3519         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3520         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3521         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3522         (sc_cast_of_x_alloc_return_value): Likewise.
3523         (sc_cast_of_alloca_return_value): Likewise.
3524         (sc_space_tab): Likewise.
3525         (sc_prohibit_atoi_atof): Likewise.
3526         (sc_prohibit_magic_number_exit): Likewise.
3527         (sc_error_exit_success): Likewise.
3528         (sc_file_system): Likewise.
3529         (sc_prohibit_have_config_h): Likewise.
3530         (sc_require_config_h): Likewise.
3531         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3532         (sc_obsolete_symbols): Likewise.
3533         (sc_changelog): Likewise.
3534         (sc_program_name): Likewise.
3535         (sc_the_the): Likewise.
3536         (sc_trailing_blank): Likewise.
3537         (sc_two_space_separator_in_usage): Likewise.
3538         (sc_useless_cpp_parens): Likewise.
3539         (sc_GPL_version): Likewise.
3540         (sc_GFDL_version): Likewise.
3541         (sc_texinfo_acronym): Likewise.
3542         (sc_prohibit_cvs_keyword): Likewise.
3543         (sc_prohibit_stat_st_blocks): Likewise.
3544         (sc_prohibit_S_IS_definition): Likewise.
3545         (sc_redundant_const): Likewise.
3546         (sc_makefile_TAB_only_indentation): Likewise.
3547         (sc_m4_quote_check): Likewise.
3548         (sc_makefile_path_separator_check): Likewise.
3549         (sc_copyright_check): Likewise.
3550         (sc_Wundef_boolean): Likewise.
3551         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3552
3553         maint.mk: match 0 or more whitespace-before-function-call '('
3554         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3555         that have zero or two-and-more spaces between the function name
3556         and the open parenthesis.
3557         (sc_error_message_warn_fatal): Likewise.
3558         (sc_error_message_uppercase): Likewise.
3559         (sc_error_message_period): Likewise.
3560
3561 2010-03-31  Eric Blake  <eblake@redhat.com>
3562
3563         maint.mk: check for [ as well as test
3564         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3565         Based on a libvirt report by Matthias Bolte.
3566
3567         gnumakefile: don't squelch _version output
3568         * top/GNUmakefile (_version): Create one-shot dependency rather
3569         than using $(shell) when version must be regenerated.
3570         (_autoreconf): Run verbosely, by default.
3571
3572         sys_time: avoid compiler warnings
3573         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3574         unconditional, fixing regression from 2010-03-29.
3575         Reported by Simon Josefsson.
3576
3577 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3578
3579         maint.mk: s/_header_without_use/_sc_header_without_use/
3580         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3581         (sc_prohibit_assert_without_use): Use the new name.
3582         (sc_prohibit_close_stream_without_use): Likewise.
3583         (sc_prohibit_getopt_without_use): Likewise.
3584         (sc_prohibit_quotearg_without_use): Likewise.
3585         (sc_prohibit_quote_without_use): Likewise.
3586         (sc_prohibit_long_options_without_use): Likewise.
3587         (sc_prohibit_inttostr_without_use): Likewise.
3588         (sc_prohibit_ignore_value_without_use): Likewise.
3589         (sc_prohibit_error_without_use): Likewise.
3590         (sc_prohibit_xalloc_without_use): Likewise.
3591         (sc_prohibit_hash_without_use): Likewise.
3592         (sc_prohibit_hash_pjw_without_use): Likewise.
3593         (sc_prohibit_safe_read_without_use): Likewise.
3594         (sc_prohibit_argmatch_without_use): Likewise.
3595         (sc_prohibit_canonicalize_without_use): Likewise.
3596         (sc_prohibit_root_dev_ino_without_use): Likewise.
3597         (sc_prohibit_openat_without_use): Likewise.
3598         (sc_prohibit_c_ctype_without_use): Likewise.
3599         (sc_prohibit_signal_without_use): Likewise.
3600         (sc_prohibit_intprops_without_use): Likewise.
3601
3602 2010-03-30  Eric Blake  <eblake@redhat.com>
3603
3604         maint: improve module indicators
3605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3606         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3607         columns, and avoid extra macro expansion.
3608
3609         fdopendir: work around FreeBSD bug
3610         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3611         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3612         * modules/dirent (Makefile.am): Substitute it.
3613         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3614         declaration.
3615         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3616         fix.
3617         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3618
3619 2010-03-29  Bruno Haible  <bruno@clisp.org>
3620
3621         Emit #pragma system_header after the inclusion guard, not before.
3622         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3623         guard that spans the entire file, not before. This enables an
3624         optimization in GCC's preprocessor.
3625         * lib/ctype.in.h: Likewise.
3626         * lib/dirent.in.h: Likewise.
3627         * lib/errno.in.h: Likewise.
3628         * lib/float.in.h: Likewise.
3629         * lib/getopt.in.h: Likewise.
3630         * lib/iconv.in.h: Likewise.
3631         * lib/langinfo.in.h: Likewise.
3632         * lib/locale.in.h: Likewise.
3633         * lib/math.in.h: Likewise.
3634         * lib/netdb.in.h: Likewise.
3635         * lib/netinet_in.in.h: Likewise.
3636         * lib/pty.in.h: Likewise.
3637         * lib/sched.in.h: Likewise.
3638         * lib/se-selinux.in.h: Likewise.
3639         * lib/search.in.h: Likewise.
3640         * lib/spawn.in.h: Likewise.
3641         * lib/stdarg.in.h: Likewise.
3642         * lib/stdint.in.h: Likewise.
3643         * lib/string.in.h: Likewise.
3644         * lib/strings.in.h: Likewise.
3645         * lib/sys_file.in.h: Likewise.
3646         * lib/sys_ioctl.in.h: Likewise.
3647         * lib/sys_time.in.h: Likewise.
3648         * lib/sys_times.in.h: Likewise.
3649         * lib/sys_utsname.in.h: Likewise.
3650         * lib/sys_wait.in.h: Likewise.
3651         * lib/sysexits.in.h: Likewise.
3652         * lib/wctype.in.h: Likewise.
3653
3654 2010-03-28  James Youngman  <jay@gnu.org>
3655
3656         save-cwd: don't leak a file descriptor when the caller execs.
3657         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3658         saved file descriptor.
3659         * modules/save-cwd (Depends-on): Depend on cloexec.
3660
3661 2010-03-29  Bruno Haible  <bruno@clisp.org>
3662
3663         Remove vestiges of fts-lgpl module.
3664         * lib/fts_.h: Assume GNULIB_FTS is 1.
3665         * lib/fts.c: Likewise.
3666         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3667
3668 2010-03-28  Bruno Haible  <bruno@clisp.org>
3669
3670         Fix definition of tests witness macro.
3671         * gnulib-tool (func_import): Fix definition of witness macro.
3672
3673 2010-03-28  Bruno Haible  <bruno@clisp.org>
3674
3675         Fix ioctl's protoype on glibc systems.
3676         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3677         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3678         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3679         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3680         signature. If not, arrange to replace the ioctl function.
3681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3682         REPLACE_IOCTL.
3683         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3684         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3685         Reported by Ludovic Courtès <ludo@gnu.org>.
3686
3687 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3688
3689         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3690         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3691         made it so grep -r --include=GLOB* ... did not work.
3692
3693 2010-03-26  Jim Meyering  <meyering@redhat.com>
3694             Eric Blake  <eblake@redhat.com>
3695
3696         maint.mk: prohibit use of test's -o and -a operators
3697         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3698
3699 2010-03-28  Bruno Haible  <bruno@clisp.org>
3700
3701         Remove unused GNULIB_XYZ macro definitions.
3702         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3703         invocation.
3704
3705 2010-03-28  Bruno Haible  <bruno@clisp.org>
3706
3707         Mark privileged tests modules.
3708         * modules/idpriv-drop-tests (Status): New section.
3709         * modules/idpriv-droptemp-tests (Status): New section.
3710
3711 2010-03-28  Bruno Haible  <bruno@clisp.org>
3712
3713         Split C++ tests into separate tests modules.
3714         * modules/dirent-c++-tests: New file, extracted from
3715         modules/dirent-tests.
3716         * modules/dirent-tests: Depend on it.
3717         * modules/fcntl-h-c++-tests: New file, extracted from
3718         modules/fcntl-h-tests.
3719         * modules/fcntl-h-tests: Depend on it.
3720         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3721         * modules/glob-tests: Depend on it.
3722         * modules/iconv-h-c++-tests: New file, extracted from
3723         modules/iconv-h-tests.
3724         * modules/iconv-h-tests: Depend on it.
3725         * modules/langinfo-c++-tests: New file, extracted from
3726         modules/langinfo-tests.
3727         * modules/langinfo-tests: Depend on it.
3728         * modules/locale-c++-tests: New file, extracted from
3729         modules/locale-tests.
3730         * modules/locale-tests: Depend on it.
3731         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3732         * modules/math-tests: Depend on it.
3733         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3734         * modules/pty-tests: Depend on it.
3735         * modules/search-c++-tests: New file, extracted from
3736         modules/search-tests.
3737         * modules/search-tests: Depend on it.
3738         * modules/signal-c++-tests: New file, extracted from
3739         modules/signal-tests.
3740         * modules/signal-tests: Depend on it.
3741         * modules/spawn-c++-tests: New file, extracted from
3742         modules/spawn-tests.
3743         * modules/spawn-tests: Depend on it.
3744         * modules/stdio-c++-tests: New file, extracted from
3745         modules/stdio-tests.
3746         * modules/stdio-tests: Depend on it.
3747         * modules/stdlib-c++-tests: New file, extracted from
3748         modules/stdlib-tests.
3749         * modules/stdlib-tests: Depend on it.
3750         * modules/string-c++-tests: New file, extracted from
3751         modules/string-tests.
3752         * modules/string-tests: Depend on it.
3753         * modules/sys_ioctl-c++-tests: New file, extracted from
3754         modules/sys_ioctl-tests.
3755         * modules/sys_ioctl-tests: Depend on it.
3756         * modules/sys_select-c++-tests: New file, extracted from
3757         modules/sys_select-tests.
3758         * modules/sys_select-tests: Depend on it.
3759         * modules/sys_socket-c++-tests: New file, extracted from
3760         modules/sys_socket-tests.
3761         * modules/sys_socket-tests: Depend on it.
3762         * modules/sys_stat-c++-tests: New file, extracted from
3763         modules/sys_stat-tests.
3764         * modules/sys_stat-tests: Depend on it.
3765         * modules/sys_time-c++-tests: New file, extracted from
3766         modules/sys_time-tests.
3767         * modules/sys_time-tests: Depend on it.
3768         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3769         * modules/time-tests: Depend on it.
3770         * modules/unistd-c++-tests: New file, extracted from
3771         modules/unistd-tests.
3772         * modules/unistd-tests: Depend on it.
3773         * modules/wchar-c++-tests: New file, extracted from
3774         modules/wchar-tests.
3775         * modules/wchar-tests: Depend on it.
3776         * modules/wctype-c++-tests: New file, extracted from
3777         modules/wctype-tests.
3778         * modules/wctype-tests: Depend on it.
3779         Reported by Simon Josefsson.
3780
3781 2010-03-28  Bruno Haible  <bruno@clisp.org>
3782
3783         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3784         * gnulib-tool (func_exists_module): New function, extracted from
3785         func_verify_module.
3786         (func_verify_module): Use it.
3787         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3788         'foo' only if 'foo' exists.
3789         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3790         module.
3791
3792 2010-03-28  Bruno Haible  <bruno@clisp.org>
3793
3794         gnulib-tool: Add support for special categories of tests.
3795         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3796         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3797         (func_usage): Document them.
3798         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3799         inc_unportable_tests, inc_all_tests): New variables.
3800         (func_acceptable): Consider these variables.
3801         (func_modules_transitive_closure): Make it work when the 'Status' field
3802         consists of multiple words.
3803         (func_import): Store and restore the values of inc_cxx_tests,
3804         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3805         inc_all_tests in gnulib-comp.m4.
3806         (func_create_testdir): Set inc_all_tests to true.
3807         * doc/gnulib.texi (Extra tests modules): New section.
3808         Suggested by Jim Meyering.
3809
3810 2010-03-28  Bruno Haible  <bruno@clisp.org>
3811
3812         ansi-c++-opt: Allow turning off the C++ build by default.
3813         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3814         gl_CXX_CHOICE_DEFAULT_NO is defined.
3815         Requested by Eric Blake.
3816
3817 2010-03-28  Bruno Haible  <bruno@clisp.org>
3818
3819         unistd: Avoid #define replacements in C++ mode.
3820         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3821         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3822         setsockopt, shutdown, select): In C++, attach a warning to the function
3823         if possible, rather than #defining the symbol to a dysfunctional alias.
3824         Reported by John W. Eaton <jwe@gnu.org>.
3825
3826 2010-03-28  Bruno Haible  <bruno@clisp.org>
3827
3828         Fix link errors on mingw.
3829         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3830         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3831         $(LIBSOCKET).
3832         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3833         $(LIBSOCKET).
3834
3835 2010-03-28  Bruno Haible  <bruno@clisp.org>
3836             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3837
3838         lib-ignore: Determine different options for different compilers.
3839         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3840         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3841         Add comments.
3842         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3843         * NEWS: Mention the change.
3844
3845 2010-03-27  Bruno Haible  <bruno@clisp.org>
3846
3847         Remove unused GNULIB_XYZ macro definitions.
3848         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3849         * modules/fseek (configure.ac): Likewise.
3850         * modules/ioctl (configure.ac): Likewise.
3851         * modules/open (configure.ac): Likewise.
3852         * modules/stdlib-safer (configure.ac): Likewise.
3853
3854 2010-03-27  Bruno Haible  <bruno@clisp.org>
3855
3856         Add a remark about certain modules.
3857         * modules/malloc (Comment): New section.
3858         * modules/realloc (Comment): Likewise.
3859         * modules/sigpipe (Comment): Likewise.
3860
3861 2010-03-27  Bruno Haible  <bruno@clisp.org>
3862
3863         Resolve conflict between the two kinds of module indicators.
3864         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3865         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3866         * modules/canonicalize (configure.ac): Invoke
3867         gl_MODULE_INDICATOR_FOR_TESTS.
3868         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3869         GNULIB_XYZ.
3870         * tests/test-dirent-c++.cc: Likewise.
3871         * tests/test-dirent-safer.c: Likewise.
3872         * tests/test-dup2.c: Likewise.
3873         * tests/test-fchdir.c: Likewise.
3874         * tests/test-fcntl-h-c++.cc: Likewise.
3875         * tests/test-getopt.c: Likewise.
3876         * tests/test-getopt.h: Likewise.
3877         * tests/test-langinfo-c++.cc: Likewise.
3878         * tests/test-locale-c++.cc: Likewise.
3879         * tests/test-math-c++.cc: Likewise.
3880         * tests/test-pty-c++.cc: Likewise.
3881         * tests/test-search-c++.cc: Likewise.
3882         * tests/test-signal-c++.cc: Likewise.
3883         * tests/test-spawn-c++.cc: Likewise.
3884         * tests/test-stdio-c++.cc: Likewise.
3885         * tests/test-stdlib-c++.cc: Likewise.
3886         * tests/test-string-c++.cc: Likewise.
3887         * tests/test-sys_ioctl-c++.cc: Likewise.
3888         * tests/test-sys_select-c++.cc: Likewise.
3889         * tests/test-sys_socket-c++.cc: Likewise.
3890         * tests/test-sys_stat-c++.cc: Likewise.
3891         * tests/test-sys_time-c++.cc: Likewise.
3892         * tests/test-time-c++.cc: Likewise.
3893         * tests/test-unistd-c++.cc: Likewise.
3894         * tests/test-wchar-c++.cc: Likewise.
3895         * tests/uninorm/test-u8-nfc.c: Likewise.
3896         * tests/uninorm/test-u8-nfd.c: Likewise.
3897         * tests/uninorm/test-u8-nfkc.c: Likewise.
3898         * tests/uninorm/test-u8-nfkd.c: Likewise.
3899         * tests/uninorm/test-u16-nfc.c: Likewise.
3900         * tests/uninorm/test-u16-nfd.c: Likewise.
3901         * tests/uninorm/test-u16-nfkc.c: Likewise.
3902         * tests/uninorm/test-u16-nfkd.c: Likewise.
3903         * tests/uninorm/test-u32-nfc.c: Likewise.
3904         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3905         * tests/uninorm/test-u32-nfd.c: Likewise.
3906         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3907         * tests/uninorm/test-u32-nfkc.c: Likewise.
3908         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3909         * tests/uninorm/test-u32-nfkd.c: Likewise.
3910         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3911         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3912
3913 2010-03-27  Bruno Haible  <bruno@clisp.org>
3914
3915         Distinguish two kinds of module indicators.
3916         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
3917         gl_MODULE_INDICATOR.
3918         (gl_MODULE_INDICATOR): New macro.
3919         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
3920         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
3921         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3922         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3923         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3924         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3925         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3926         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3927         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3928         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3930         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3932         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3933         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3935         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3936         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3937         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3938         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3939         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3940         * modules/cloexec (configure.ac): Likewise.
3941         * modules/getopt-gnu (configure.ac): Likewise.
3942         * modules/uninorm/u8-normalize (configure.ac): Likewise.
3943         * modules/uninorm/u16-normalize (configure.ac): Likewise.
3944         * modules/uninorm/u32-normalize (configure.ac): Likewise.
3945         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
3946
3947 2010-03-27  Bruno Haible  <bruno@clisp.org>
3948
3949         New module description field 'Comment'.
3950         * gnulib-tool: New option --extract-comment.
3951         (func_usage): Document it.
3952         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
3953         (func_get_comment): New function.
3954         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
3955
3956 2010-03-27  Bruno Haible  <bruno@clisp.org>
3957
3958         Addendum to 2010-02-07 commit.
3959         * gnulib-tool (func_usage): Document --extract-applicability option.
3960
3961 2010-03-27  Bruno Haible  <bruno@clisp.org>
3962
3963         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
3964         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
3965         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
3966         rather than link errors.
3967
3968 2010-03-27  Bruno Haible  <bruno@clisp.org>
3969
3970         Avoid side effects from tests-related modules on the compilation of lib.
3971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
3972         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
3973         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
3974         parameter. Emit into AM_CPPFLAGS a definition of the designated C
3975         macro.
3976         (func_import): Define a witness macro. Assign it a value that depends
3977         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
3978         tests-related modules.
3979         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
3980         Reported by Jim Meyering.
3981
3982 2010-03-27  Bruno Haible  <bruno@clisp.org>
3983
3984         Factorize common .m4 code.
3985         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
3986         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
3987         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
3988         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
3989         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3990         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
3991         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
3992         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3993         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3994         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3995         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
3996         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3997         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3998         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3999         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4000         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4001         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4002         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4003         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4004         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4005         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4006         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4007         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4008         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4009         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4010         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4011         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4013         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4014         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4015         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4016         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4017
4018 2010-03-27  Bruno Haible  <bruno@clisp.org>
4019
4020         Fix a compilation error on Cygwin with g++ >= 4.3.
4021         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4022         if it is undefined or if we alias it to chmod.
4023         (lstat): Don't warn about the use of this function if it is undefined
4024         or if we alias it to stat.
4025         Reported by Simon Josefsson.
4026
4027 2010-03-27  Bruno Haible  <bruno@clisp.org>
4028
4029         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4030         * modules/getlogin (configure.ac): Update.
4031
4032         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4033         * modules/getlogin_r (configure.ac): Update.
4034
4035         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4037         * modules/inet_ntop (configure.ac): Update.
4038
4039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4040         * modules/inet_pton (configure.ac): Update.
4041
4042         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4043         * modules/mbslen (configure.ac): Update.
4044
4045         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4046         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4047         * modules/forkpty (configure.ac): Update.
4048         * modules/openpty (configure.ac): Update.
4049
4050 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4051
4052         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4053         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4054
4055 2010-03-25  Eric Blake  <eblake@redhat.com>
4056
4057         maint: use pragma consistently across replacement headers
4058         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4059         * lib/dirent.in.h (system_header): Likewise.
4060         * lib/errno.in.h (system_header): Likewise.
4061         * lib/float.in.h (system_header): Likewise.
4062         * lib/getopt.in.h (system_header): Likewise.
4063         * lib/iconv.in.h (system_header): Likewise.
4064         * lib/inttypes.in.h (system_header): Likewise.
4065         * lib/langinfo.in.h (system_header): Likewise.
4066         * lib/locale.in.h (system_header): Likewise.
4067         * lib/math.in.h (system_header): Likewise.
4068         * lib/netdb.in.h (system_header): Likewise.
4069         * lib/netinet_in.in.h (system_header): Likewise.
4070         * lib/pty.in.h (system_header): Likewise.
4071         * lib/sched.in.h (system_header): Likewise.
4072         * lib/se-selinux.in.h (system_header): Likewise.
4073         * lib/search.in.h (system_header): Likewise.
4074         * lib/spawn.in.h (system_header): Likewise.
4075         * lib/stdarg.in.h (system_header): Likewise.
4076         * lib/stdint.in.h (system_header): Likewise.
4077         * lib/string.in.h (system_header): Likewise.
4078         * lib/strings.in.h (system_header): Likewise.
4079         * lib/sys_file.in.h (system_header): Likewise.
4080         * lib/sys_ioctl.in.h (system_header): Likewise.
4081         * lib/sys_socket.in.h (system_header): Likewise.
4082         * lib/sys_times.in.h (system_header): Likewise.
4083         * lib/sys_utsname.in.h (system_header): Likewise.
4084         * lib/sys_wait.in.h (system_header): Likewise.
4085         * lib/sysexits.in.h (system_header): Likewise.
4086         * lib/unistd.in.h (system_header): Likewise.
4087         * lib/wctype.in.h (system_header): Likewise.
4088
4089         arpa/inet: fix mingw compilation warning
4090         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4091         Reported by Matthew Bolte.
4092
4093 2010-03-25  Bruno Haible  <bruno@clisp.org>
4094
4095         Avoid collision between gnulib wrapper and libintl wrapper.
4096         * lib/printf.c (printf): Don't define if a printf wrapper is already
4097         defined in intl/printf.c.
4098         Reported by Michel Boaventura <michel@michelboaventura.com>.
4099
4100 2010-03-25  Bruno Haible  <bruno@clisp.org>
4101
4102         Use ANSI C.
4103         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4104
4105 2010-03-25  Bruno Haible  <bruno@clisp.org>
4106
4107         Minor formatting changes.
4108         * lib/acosl.c: Insert space before function argument list.
4109         * lib/argz.c: Likewise.
4110         * lib/asinl.c: Likewise.
4111         * lib/expl.c: Likewise.
4112         * lib/gen-uni-tables.c: Likewise.
4113         * lib/gettext.h: Likewise.
4114         * lib/glthread/lock.h: Likewise.
4115         * lib/tanl.c: Likewise.
4116         * lib/uniname/uniname.c: Likewise.
4117         * tests/test-idpriv-drop.c: Likewise.
4118         * tests/test-idpriv-droptemp.c: Likewise.
4119         * tests/test-lock.c: Likewise.
4120         * tests/test-tls.c: Likewise.
4121         * lib/argp-help.c: Insert space before function-like macro argument
4122         list.
4123         * lib/memcmp.c: Likewise.
4124         * tests/test-base64.c: Likewise.
4125         * lib/localename.c: Insert space before sizeof's argument list.
4126         * lib/safe-alloc.h: Likewise.
4127         * lib/file-set.h: Insert space before macro argument list.
4128         * tests/test-argp.c: Likewise.
4129         * lib/argp-namefrob.h: Insert space before function parameter list.
4130         * lib/getaddrinfo.c: Likewise.
4131         * lib/netdb.in.h: Likewise.
4132         * lib/parse-duration.h: Likewise.
4133         * lib/parse-duration.c: Likewise.
4134         * lib/poll.c: Likewise.
4135         * lib/select.c: Likewise.
4136         * lib/trim.h: Likewise.
4137         * tests/test-usleep.c: Likewise.
4138         * lib/ldexpl.c: Insert space before function parameter list and before
4139         function argument list.
4140         * lib/logl.c: Likewise.
4141         * lib/sqrtl.c: Likewise.
4142         * lib/trim.c: Likewise.
4143         * lib/cosl.c: Use GNU style indentation. Insert space before function
4144         argument list.
4145         * lib/sinl.c: Likewise.
4146         * lib/tsearch.c: Insert space after 'for'.
4147         Reported by Jim Meyering.
4148
4149 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4150
4151         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4152         config header before grepping, as it's not present before
4153         autoreconf/configure are run.  Reported by Simon Josefsson.
4154
4155 2010-03-23  Bruno Haible  <bruno@clisp.org>
4156
4157         pt_chown: Make it work with automake < 1.11.
4158         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4159         Reported by Simon Josefsson.
4160
4161 2010-03-23  Bruno Haible  <bruno@clisp.org>
4162
4163         pt_chown: Don't depend on GPLed modules.
4164         * lib/pt_chown.c: Don't include idpriv.h.
4165         (main): Don't drop privileges.
4166         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4167         Reported by Simon Josefsson.
4168
4169 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4170
4171         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4172         suggestions from karl@freefriends.org (Karl Berry).
4173
4174 2010-03-22  Eric Blake  <eblake@redhat.com>
4175
4176         gethostname: further tweaks
4177         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4178         are overriding gethostname.
4179         Suggested by Bruno Haible.
4180
4181 2010-03-21  Bruno Haible  <bruno@clisp.org>
4182
4183         Fix comments.
4184         * lib/forkpty.c (rpl_forkpty): Fix comment.
4185         * lib/openpty.c (rpl_openpty): Likewise.
4186         Reported by Eric Blake.
4187
4188 2010-03-22  Eric Blake  <eblake@redhat.com>
4189
4190         gethostname: fix build on mingw
4191         * lib/unistd.in.h (includes): Work around fact that mingw
4192         <winsock2.h> re-includes <unistd.h>, by avoiding any
4193         redeclarations if we are being included by <winsock2.h>.
4194         Reported by Matthias Bolte.
4195
4196 2010-03-21  Bruno Haible  <bruno@clisp.org>
4197
4198         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4199         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4200         modifications.
4201         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4202         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4203         provide the replacement.
4204         * modules/forkpty (Depends-on): Add openpty, login_tty.
4205         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4206         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4207         * doc/glibc-functions/forkpty.texi: More supported platforms.
4208         * config/srclist.txt: Add forkpty.c (commented).
4209
4210 2010-03-21  Bruno Haible  <bruno@clisp.org>
4211
4212         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4213         (Makefile.am): Verify that PTY_LIB is defined.
4214
4215         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4216
4217 2010-03-21  Bruno Haible  <bruno@clisp.org>
4218
4219         Tests for module 'login_tty'.
4220         * modules/login_tty-tests: New file.
4221         * tests/test-login_tty.c: New file.
4222
4223         New module 'login_tty'.
4224         * lib/login_tty.c: New file.
4225         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4226         * modules/login_tty: New file.
4227         * doc/glibc-functions/login_tty.texi: Mention the new module.
4228
4229 2010-03-21  Bruno Haible  <bruno@clisp.org>
4230
4231         login_tty: Documentation.
4232         * doc/glibc-functions/login_tty.texi: New file.
4233         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4234
4235 2010-03-21  Bruno Haible  <bruno@clisp.org>
4236
4237         pty: Consistent macro naming.
4238         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4239         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4240         * modules/pty (configure.ac): Update.
4241
4242 2010-03-21  Bruno Haible  <bruno@clisp.org>
4243
4244         Tests for openpty: Make stricter.
4245         * tests/test-openpty.c (main): Add test of canonical processing and
4246         erase.
4247         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4248
4249         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4250         * lib/openpty.c (openpty): New replacement function.
4251         * lib/pty.in.h: Include <termios.h>.
4252         (openpty): Update declaration. Add comments.
4253         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4254         is not declared, arrange to provide the replacement. Check for _getpty
4255         and posix_openpt.
4256         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4257         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4258         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4259         * modules/pty-tests (test_pty_c___LDADD): New variable.
4260         * doc/glibc-functions/openpty.texi: More supported platforms.
4261
4262 2010-03-21  Bruno Haible  <bruno@clisp.org>
4263
4264         setenv: Tweaks.
4265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4266         the test program.
4267         * doc/posix-functions/setenv.texi: Update platforms list.
4268
4269 2010-03-21  Bruno Haible  <bruno@clisp.org>
4270
4271         New module 'unlockpt'.
4272         * lib/unlockpt.c: New file, from glibc with modifications.
4273         * m4/unlockpt.m4: New file.
4274         * modules/unlockpt: New file.
4275         * lib/stdlib.in.h (unlockpt): New declaration.
4276         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4277         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4278         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4279         HAVE_UNLOCKPT.
4280         * doc/posix-functions/unlockpt.texi: Mention the new module.
4281         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4282         * config/srclist.txt: Add unlockpt.c (commented).
4283
4284 2010-03-21  Jim Meyering  <meyering@redhat.com>
4285
4286         maint.mk: prohibit inclusion of "intprops.h" without use
4287         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4288
4289 2010-03-21  Bruno Haible  <bruno@clisp.org>
4290
4291         New module 'grantpt'.
4292         * lib/grantpt.c: New file, from glibc with modifications.
4293         * m4/grantpt.m4: New file.
4294         * modules/grantpt: New file.
4295         * lib/stdlib.in.h (grantpt): New declaration.
4296         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4297         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4298         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4299         HAVE_GRANTPT.
4300         * doc/posix-functions/grantpt.texi: Mention the new module.
4301         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4302         * config/srclist.txt: Add grantpt.c (commented).
4303
4304 2010-03-21  Bruno Haible  <bruno@clisp.org>
4305
4306         New module 'pt_chown'.
4307         * lib/pt_chown.c: New file, from glibc with modifications.
4308         * lib/pty-private.h: New file, from glibc with modifications.
4309         * modules/pt_chown: New file.
4310         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4311
4312 2010-03-21  Bruno Haible  <bruno@clisp.org>
4313
4314         Tests for module 'ptsname'.
4315         * modules/ptsname-tests: New file.
4316         * tests/test-ptsname.c: New file.
4317
4318         New module 'ptsname'.
4319         * lib/ptsname.c: New file, from glibc with modifications.
4320         * m4/ptsname.m4: New file.
4321         * modules/ptsname: New file.
4322         * lib/stdlib.in.h (ptsname): New declaration.
4323         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4324         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4325         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4326         HAVE_PTSNAME.
4327         * doc/posix-functions/ptsname.texi: Mention the new module.
4328         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4329         * config/srclist.txt: Add ptsname.c (commented).
4330
4331 2010-03-21  Bruno Haible  <bruno@clisp.org>
4332
4333         Tests for module 'ttyname_r'.
4334         * modules/ttyname_r-tests: New file.
4335         * tests/test-ttyname_r.c: New file.
4336
4337         New module 'ttyname_r'.
4338         * lib/ttyname_r.c: New file.
4339         * m4/ttyname_r.m4: New file.
4340         * modules/ttyname_r: New file.
4341         * lib/unistd.in.h (ttyname_r): New declaration.
4342         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4343         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4344         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4345         HAVE_TTYNAME_R.
4346         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4347         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4348
4349 2010-03-20  Bruno Haible  <bruno@clisp.org>
4350
4351         signal: Undefine macro definitions in C++ mode.
4352         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4353         sigfillset): Undefine macro definitions from the system header in C++
4354         mode.
4355         Reported by John W. Eaton <jwe@gnu.org>.
4356
4357 2010-03-20  Bruno Haible  <bruno@clisp.org>
4358
4359         Ensure no #include statements inside extern "C" { ... }.
4360         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4361         contain #include statements.
4362         * lib/time.in.h: Likewise.
4363
4364 2010-03-20  Bruno Haible  <bruno@clisp.org>
4365
4366         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4367         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4368         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4369         Reported by John W. Eaton <jwe@gnu.org>.
4370
4371 2010-03-20  Bruno Haible  <bruno@clisp.org>
4372
4373         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4374         Reported by Jim Meyering.
4375
4376 2010-03-20  Bruno Haible  <bruno@clisp.org>
4377
4378         pipe: Set errno upon failure.
4379         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4380         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4381         errno value in error message.
4382
4383 2010-03-20  Bruno Haible  <bruno@clisp.org>
4384             Jim Meyering  <meyering@redhat.com>
4385
4386         lchown: Avoid "unused variable" warning.
4387         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4388
4389 2010-03-20  Bruno Haible  <bruno@clisp.org>
4390
4391         Work around unlink() bug on MacOS X 10.5.6.
4392         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4393         attempting to unlink a parent directory.
4394         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4395         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4396         activate for the replacement function.
4397         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4398
4399 2010-03-20  Bruno Haible  <bruno@clisp.org>
4400
4401         Fix link errors on Solaris 8.
4402         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4403         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4404
4405 2010-03-19  Jim Meyering  <meyering@redhat.com>
4406
4407         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4408         The _LIBC implementation of build_range_exp correctly honors the
4409         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4410         However, the non-_LIBC implementation would ignore that syntax-bit
4411         flag and return REG_ERANGE unconditionally.
4412         This change makes it honor that flag.
4413         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4414         Make two pointer parameters "const".
4415         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4416         (parse_bracket_exp): Update caller.
4417
4418         regex.m4: correct the reversed range endpoint ([b-a]) test
4419         * m4/regex.m4: When requiring that [b-a] evoke failure,
4420         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4421         test pass once again for x86-based systems.
4422
4423 2010-03-19  Bruno Haible  <bruno@clisp.org>
4424
4425         scandir: Fix link error on Solaris 8.
4426         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4427         macros.
4428
4429 2010-03-19  Bruno Haible  <bruno@clisp.org>
4430
4431         getusershell: Fix documentation.
4432         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4433         module.
4434         * doc/glibc-functions/setusershell.texi: Likewise.
4435
4436         getusershell: Provide declaration, missing on Solaris 9.
4437         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4438         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4439         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4440         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4442         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4443         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4444         HAVE_GETUSERSHELL.
4445         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4446
4447 2010-03-19  Bruno Haible  <bruno@clisp.org>
4448
4449         wctype: Provide iswblank function.
4450         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4451         exists and is fine.
4452         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4453         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4454         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4455         * doc/posix-functions/iswblank.texi: Update.
4456
4457 2010-03-19  Bruno Haible  <bruno@clisp.org>
4458
4459         Tests of module 'pty' in C++ mode.
4460         * modules/pty-tests: New file.
4461         * tests/test-pty-c++.cc: New file.
4462         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4463
4464 2010-03-19  Eric Blake  <eblake@redhat.com>
4465
4466         logb: fix documentation
4467         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4468         1.5 declaration bug.
4469
4470         forkpty, openpty: prefer glibc's const-safe prototype
4471         * lib/forkpty.c (rpl_forkpty): New file.
4472         * lib/openpty.c (rpl_openpty): Likewise.
4473         * modules/forkpty (Files): Distribute it.
4474         * modules/openpty (Files): Likewise.
4475         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4476         check...
4477         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4478         replacement for for non-const BSD signature.
4479         * modules/pty (Makefile.am): Substitute witnesses.
4480         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4481         * tests/test-forkpty.c: Update signature check.
4482         * tests/test-openpty.c: Likewise.
4483         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4484         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4485
4486         forkpty, openpty: split functions into new modules
4487         * modules/pty (Makefile.am): Substitute new witnesses.
4488         (Libraries): Move library detection...
4489         * modules/forkpty: ...into new module.
4490         * modules/openpty: Another new module.
4491         * modules/pty-tests: Rename and split...
4492         * modules/forkpty-tests: ...to this...
4493         * modules/openpty-tests: ...and this.
4494         * tests/test-pty.c: Rename and split...
4495         * tests/test-forkpty.c: ...to this...
4496         * tests/test-openpty.c: ...and this.
4497         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4498         (gl_PTY): Split library searching...
4499         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4500         (gl_FORKPTY, gl_OPENPTY): New macros.
4501         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4502         * NEWS: Mention the split.
4503         * MODULES.html.sh (Misc): Document the modules.
4504         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4505         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4506
4507         pty: improve replacement header
4508         * lib/pty.in.h: New file.
4509         * modules/pty (Files): Ship it.
4510         (Makefile.am): Always build replacement.
4511         * m4/pty.m4: Rename...
4512         * m4/pty_h.m4: ...to this.
4513         (gl_PTY): Modernize setting of witness macros; update check of
4514         forkpty to take proper advantage of cache.
4515         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4516
4517         getopt: avoid compiler warning
4518         * lib/getopt.c (attribute_hidden): Remove unused macro.
4519
4520 2010-03-18  Bruno Haible  <bruno@clisp.org>
4521
4522         Fix link errors on Solaris 8.
4523         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4524         * modules/search-tests (test_search_c___LDADD): Likewise.
4525         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4526         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4527         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4528         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4529         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4530         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4531         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4532
4533 2010-03-18  Bruno Haible  <bruno@clisp.org>
4534
4535         Fix bug introduced on 2010-03-14.
4536         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4537         (gl_SPAWN_H): Require it.
4538         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4539         Reported by Simon Josefsson.
4540
4541 2010-03-18  Bruno Haible  <bruno@clisp.org>
4542
4543         Fix typo introduced on 2009-12-31.
4544         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4545         posix_spawn_file_actions_adddup2.
4546
4547 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4548         and Eric Blake  <eblake@redhat.com>
4549
4550         test-vc-list-files-git: make more robust
4551         * tests/test-vc-list-files-git.sh: Unset problematic environment
4552         variables.  Chain commands together.
4553
4554 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4555
4556         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4557         `AC_CHECK_DECL' invocation.
4558
4559 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4560
4561         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4562         appears before executable statements. Suggested by Petr Sumbera
4563         <Petr.Sumbera@Sun.COM>.
4564
4565 2010-03-14  Bruno Haible  <bruno@clisp.org>
4566
4567         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4568         portability problems. Instead use a simpler test.
4569         (main): Check that invalid arguments are rejected only on Linux.
4570
4571 2010-03-14  Bruno Haible  <bruno@clisp.org>
4572
4573         Fix bug introduced on 2009-12-31.
4574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4575         gl_PREREQ_SYS_H_WINSOCK2 always.
4576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4577         SYS_SOCKET_H variable.
4578         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4579         Update comments.
4580         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4581         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4582         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4583         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4585
4586 2010-03-14  Bruno Haible  <bruno@clisp.org>
4587
4588         Fix values returned by sinl, cosl.
4589         * lib/trigl.h: Add specification comments.
4590         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4591         that combines the values from the precomputed table with the values of
4592         the Chebyshev polynomials.
4593
4594 2010-03-14  Bruno Haible  <bruno@clisp.org>
4595
4596         Fix compilation error when modules 'posix_spawn[p]' are not used.
4597         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4599
4600 2010-03-14  Bruno Haible  <bruno@clisp.org>
4601
4602         Fix compilation error on mingw when module 'time_r' is not used.
4603         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4604         is 1.
4605         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4606         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4607         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4609
4610 2010-03-14  Bruno Haible  <bruno@clisp.org>
4611
4612         Fix compilation error with Sun C.
4613         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4614         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4615         instead of GCC specific ULONG_LONG_MAX.
4616         * lib/xstrtoll.c: Likewise.
4617         * lib/xstrtoull.c: Likewise.
4618
4619 2010-03-13  Bruno Haible  <bruno@clisp.org>
4620
4621         Allow the user to disable C++ code and tests.
4622         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4623         (gl_PROG_ANSI_CXX): Require it.
4624
4625 2010-03-13  Bruno Haible  <bruno@clisp.org>
4626
4627         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4628         cases.
4629
4630 2010-03-13  Bruno Haible  <bruno@clisp.org>
4631
4632         Test that gnulib does not break the standard C++ headers.
4633         * tests/test-locale-c++2.cc: New file.
4634         * modules/locale-tests (Files): Add it.
4635         (Makefile.am): Compile it for test-locale-c++.
4636         * tests/test-math-c++2.cc: New file.
4637         * modules/math-tests (Files): Add it.
4638         (Makefile.am): Compile it for test-math-c++.
4639         * tests/test-signal-c++2.cc: New file.
4640         * modules/signal-tests (Files): Add it.
4641         (Makefile.am): Compile it for test-signal-c++.
4642         * tests/test-stdio-c++2.cc: New file.
4643         * modules/stdio-tests (Files): Add it.
4644         (Makefile.am): Compile it for test-stdio-c++.
4645         * tests/test-stdlib-c++2.cc: New file.
4646         * modules/stdlib-tests (Files): Add it.
4647         (Makefile.am): Compile it for test-stdlib-c++.
4648         * tests/test-string-c++2.cc: New file.
4649         * modules/string-tests (Files): Add it.
4650         (Makefile.am): Compile it for test-string-c++.
4651         * tests/test-time-c++2.cc: New file.
4652         * modules/time-tests (Files): Add it.
4653         (Makefile.am): Compile it for test-time-c++.
4654         Reported by John W. Eaton <jwe@gnu.org>.
4655
4656 2010-03-13  Bruno Haible  <bruno@clisp.org>
4657
4658         * gnulib-tool (func_usage): Clarify which options are available for
4659         --create-testdir and --create-megatestdir.
4660
4661 2010-03-13  Bruno Haible  <bruno@clisp.org>
4662
4663         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4664         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4665         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4666         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4667         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4668         when appropriate.
4669         Reported by Jim Meyering.
4670
4671 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4672
4673         * gnulib-tool (func_import): Explain origin of code.
4674
4675 2010-03-12  Bruno Haible  <bruno@clisp.org>
4676
4677         Fix problem with automake's definition of CXXLINK.
4678         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4679         Reported by Simon Josefsson and Ludovic Courtès.
4680
4681 2010-03-12  Bruno Haible  <bruno@clisp.org>
4682
4683         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4684         stable releases.
4685
4686 2010-03-11  Bruno Haible  <bruno@clisp.org>
4687
4688         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4689         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4690         whether the system provides one variant or multiple variants of the
4691         function.
4692         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4693         C++ compilers.
4694         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4695         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4696         Reported by Jim Meyering.
4697
4698 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4699
4700         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4701
4702 2010-03-08  Bruno Haible  <bruno@clisp.org>
4703
4704         gnulib-tool: Add support for --libtool in --create-testdir.
4705         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4706         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4707
4708 2010-03-08  Eric Blake  <eblake@redhat.com>
4709
4710         gnulib-tool.texi: mention possibility of git submodule
4711         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4712         submodules.
4713         * doc/.gitignore: Ignore another generated file.
4714
4715 2010-03-08  Karl Berry  <karl@gnu.org>
4716
4717         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4718         of committing gnulib files while skipping others.
4719
4720 2010-03-07  Bruno Haible  <bruno@clisp.org>
4721
4722         Tests of module 'wctype' in C++ mode.
4723         * tests/test-wctype-c++.cc: New file.
4724         * modules/wctype-tests (Files): Add it and tests/signature.h.
4725         (Depends-on): Add ansi-c++-opt.
4726         (Makefile.am): Arrange to compile and run test-wctype-c++.
4727
4728         Tests of module 'wchar' in C++ mode.
4729         * tests/test-wchar-c++.cc: New file.
4730         * modules/wchar-tests (Files): Add it and tests/signature.h.
4731         (Depends-on): Add ansi-c++-opt.
4732         (Makefile.am): Arrange to compile and run test-wchar-c++.
4733         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4734         gl_MODULE_INDICATOR.
4735
4736         Tests of module 'unistd' in C++ mode.
4737         * tests/test-unistd-c++.cc: New file.
4738         * modules/unistd-tests (Files): Add it and tests/signature.h.
4739         (Depends-on): Add ansi-c++-opt.
4740         (Makefile.am): Arrange to compile and run test-unistd-c++.
4741         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4742         gl_MODULE_INDICATOR.
4743
4744         Tests of module 'time' in C++ mode.
4745         * tests/test-time-c++.cc: New file.
4746         * modules/time-tests (Files): Add it and tests/signature.h.
4747         (Depends-on): Add ansi-c++-opt.
4748         (Makefile.am): Arrange to compile and run test-time-c++.
4749         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4750
4751         Tests of module 'sys_time' in C++ mode.
4752         * tests/test-sys_time-c++.cc: New file.
4753         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4754         (Depends-on): Add ansi-c++-opt.
4755         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4756         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4757         gl_MODULE_INDICATOR.
4758
4759         Tests of module 'sys_stat' in C++ mode.
4760         * tests/test-sys_stat-c++.cc: New file.
4761         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4762         (Depends-on): Add ansi-c++-opt.
4763         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4764         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4765         gl_MODULE_INDICATOR.
4766
4767         Tests of module 'sys_socket' in C++ mode.
4768         * tests/test-sys_socket-c++.cc: New file.
4769         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4770         (Depends-on): Add ansi-c++-opt.
4771         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4772         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4773         gl_MODULE_INDICATOR.
4774
4775         Tests of module 'sys_select' in C++ mode.
4776         * tests/test-sys_select-c++.cc: New file.
4777         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4778         (Depends-on): Add ansi-c++-opt.
4779         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4780         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4781         gl_MODULE_INDICATOR.
4782
4783         Tests of module 'sys_ioctl' in C++ mode.
4784         * tests/test-sys_ioctl-c++.cc: New file.
4785         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4786         (Depends-on): Add ansi-c++-opt.
4787         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4789         gl_MODULE_INDICATOR.
4790
4791         Tests of module 'string' in C++ mode.
4792         * tests/test-string-c++.cc: New file.
4793         * modules/string-tests (Files): Add it and tests/signature.h.
4794         (Depends-on): Add ansi-c++-opt.
4795         (Makefile.am): Arrange to compile and run test-string-c++.
4796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4797         gl_MODULE_INDICATOR.
4798
4799         Tests of module 'stdlib' in C++ mode.
4800         * tests/test-stdlib-c++.cc: New file.
4801         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4802         (Depends-on): Add ansi-c++-opt.
4803         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4804         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4805         gl_MODULE_INDICATOR.
4806
4807         Tests of module 'stdio' in C++ mode.
4808         * tests/test-stdio-c++.cc: New file.
4809         * modules/stdio-tests (Files): Add it and tests/signature.h.
4810         (Depends-on): Add ansi-c++-opt.
4811         (Makefile.am): Arrange to compile and run test-stdio-c++.
4812         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4813         gl_MODULE_INDICATOR.
4814
4815         Tests of module 'spawn' in C++ mode.
4816         * tests/test-spawn-c++.cc: New file.
4817         * modules/spawn-tests (Files): Add it and tests/signature.h.
4818         (Depends-on): Add ansi-c++-opt.
4819         (Makefile.am): Arrange to compile and run test-spawn-c++.
4820         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4821         gl_MODULE_INDICATOR.
4822
4823         Tests of module 'signal' in C++ mode.
4824         * tests/test-signal-c++.cc: New file.
4825         * modules/signal-tests (Files): Add it and tests/signature.h.
4826         (Depends-on): Add ansi-c++-opt.
4827         (Makefile.am): Arrange to compile and run test-signal-c++.
4828         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4829         gl_MODULE_INDICATOR.
4830
4831         Tests of module 'search' in C++ mode.
4832         * tests/test-search-c++.cc: New file.
4833         * modules/search-tests (Files): Add it and tests/signature.h.
4834         (Depends-on): Add ansi-c++-opt.
4835         (Makefile.am): Arrange to compile and run test-search-c++.
4836         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4837         gl_MODULE_INDICATOR.
4838
4839         Tests of module 'math' in C++ mode.
4840         * tests/test-math-c++.cc: New file.
4841         * modules/math-tests (Files): Add it and tests/signature.h.
4842         (Depends-on): Add ansi-c++-opt.
4843         (Makefile.am): Arrange to compile and run test-math-c++.
4844         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4845
4846         Tests of module 'locale' in C++ mode.
4847         * tests/test-locale-c++.cc: New file.
4848         * modules/locale-tests (Files): Add it and tests/signature.h.
4849         (Depends-on): Add ansi-c++-opt.
4850         (Makefile.am): Arrange to compile and run test-locale-c++.
4851         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4852         gl_MODULE_INDICATOR.
4853
4854         Tests of module 'langinfo' in C++ mode.
4855         * tests/test-langinfo-c++.cc: New file.
4856         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4857         (Depends-on): Add ansi-c++-opt.
4858         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4859         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4860         gl_MODULE_INDICATOR.
4861
4862         Tests of module 'iconv-h' in C++ mode.
4863         * tests/test-iconv-h-c++.cc: New file.
4864         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4865         (Depends-on): Add ansi-c++-opt.
4866         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4867
4868         Tests of module 'glob' in C++ mode.
4869         * tests/test-glob-c++.cc: New file.
4870         * modules/glob-tests (Files): Add it.
4871         (Depends-on): Add ansi-c++-opt.
4872         (Makefile.am): Arrange to compile and run test-glob-c++.
4873
4874         Tests of module 'fcntl-h' in C++ mode.
4875         * tests/test-fcntl-h-c++.cc: New file.
4876         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
4877         (Depends-on): Add ansi-c++-opt.
4878         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
4879         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
4880         gl_MODULE_INDICATOR.
4881
4882         Tests of module 'dirent' in C++ mode.
4883         * tests/test-dirent-c++.cc: New file.
4884         * modules/dirent-tests (Files): Add it and tests/signature.h.
4885         (Depends-on): Add ansi-c++-opt.
4886         (Makefile.am): Arrange to compile and run test-dirent-c++.
4887         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4888         gl_MODULE_INDICATOR.
4889
4890         New module 'ansi-c++-opt'.
4891         * modules/ansi-c++-opt: New file.
4892         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
4893
4894         Document C++ namespace mode.
4895         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
4896
4897         wctype: Avoid #define replacements in C++ mode.
4898         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
4899         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
4900         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
4901         In C++, define a namespaced alias symbol.
4902         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
4903         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
4904         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
4905         rule.
4906
4907         wchar: Avoid #define replacements in C++ mode.
4908         * lib/wchar.in.h: Include c++defs.h.
4909         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
4910         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
4911         symbol.
4912         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
4913         * modules/wchar (Depends-on): Add c++defs.
4914         (Makefile.am): Update wchar.h rule.
4915
4916         unistd: Avoid #define replacements in C++ mode.
4917         * lib/unistd.in.h: Include c++defs.h.
4918         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
4919         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
4920         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
4921         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
4922         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
4923         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
4924         symbol.
4925         (environ): Update.
4926         * modules/unistd (Depends-on): Add c++defs.
4927         (Makefile.am): Update unistd.h rule.
4928
4929         time: Avoid #define replacements in C++ mode.
4930         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
4931         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
4932         define a namespaced alias symbol.
4933         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
4934         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
4935         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
4936         * modules/time (Depends-on): Add c++defs, warn-on-use.
4937         (Makefile.am): Update time.h rule.
4938         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4939         * modules/nanosleep (configure.ac): Likewise.
4940         * modules/strptime (configure.ac): Likewise.
4941         * modules/timegm (configure.ac): Likewise.
4942
4943         sys_time: Avoid #define replacements in C++ mode.
4944         * lib/sys_time.in.h: Include c++defs.h.
4945         (gettimeofday): In C++, define a namespaced alias symbol.
4946         * modules/sys_time (Depends-on): Add c++defs.
4947         (Makefile.am): Update sys/time.h rule.
4948
4949         sys_stat: Avoid #define replacements in C++ mode.
4950         * lib/sys_stat.in.h: Include c++defs.h.
4951         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
4952         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
4953         namespaced alias symbol.
4954         In C++, define a namespaced alias symbol.
4955         * modules/sys_stat (Depends-on): Add c++defs.
4956         (Makefile.am): Update sys/stat.h rule.
4957
4958         sys_socket: Avoid #define replacements in C++ mode.
4959         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
4960         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
4961         definitions also when the system has a <sys/socket.h>.
4962         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4963         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
4964         In C++, define a namespaced alias symbol.
4965         * modules/sys_socket (Depends-on): Add c++defs.
4966         (Makefile.am): Update sys/socket.h rule.
4967
4968         sys_select: Avoid #define replacements in C++ mode.
4969         * lib/sys_select.in.h: Include c++defs.h. Enable the function
4970         definitions also when the system has a <sys/select.h>.
4971         (select): In C++, define a namespaced alias symbol.
4972         * modules/sys_select (Depends-on): Add c++defs.
4973         (Makefile.am): Update sys/select.h rule.
4974
4975         sys_ioctl: Avoid #define replacements in C++ mode.
4976         * lib/sys_ioctl.in.h: Include c++defs.h.
4977         (ioctl): In C++, define a namespaced alias symbol.
4978         * modules/sys_ioctl (Depends-on): Add c++defs.
4979         (Makefile.am): Update sys/ioctl.h rule.
4980
4981         string: Avoid #define replacements in C++ mode.
4982         * lib/string.in.h: Include c++defs.h.
4983         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
4984         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4985         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4986         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
4987         strsignal, strverscmp): In C++, define a namespaced alias symbol.
4988         * modules/string (Depends-on): Add c++defs.
4989         (Makefile.am): Update string.h rule.
4990
4991         stdlib: Avoid #define replacements in C++ mode.
4992         * lib/stdlib.in.h: Include c++defs.h.
4993         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
4994         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
4995         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
4996         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
4997         symbol.
4998         * modules/stdlib (Depends-on): Add c++defs.
4999         (Makefile.am): Update stdlib.h rule.
5000
5001         stdio: Avoid #define replacements in C++ mode.
5002         * lib/stdio.in.h: Include c++defs.h.
5003         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5004         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5005         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5006         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5007         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5008         namespaced alias symbol.
5009         * modules/stdio (Depends-on): Add c++defs.
5010         (Makefile.am): Update stdio.h rule.
5011
5012         spawn: Avoid #define replacements in C++ mode.
5013         * lib/spawn.in.h: Include c++defs.h.
5014         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5015         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5016         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5017         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5018         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5019         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5020         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5021         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5022         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5023         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5024         In C++, define a namespaced alias symbol.
5025         * modules/spawn (Depends-on): Add c++defs.
5026         (Makefile.am): Update spawn.h rule.
5027
5028         signal: Avoid #define replacements in C++ mode.
5029         * lib/signal.in.h: Include c++defs.h.
5030         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5031         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5032         namespaced alias symbol.
5033         * modules/signal (Depends-on): Add c++defs.
5034         (Makefile.am): Update signal.h rule.
5035
5036         search: Avoid #define replacements in C++ mode.
5037         * lib/search.in.h: Include c++defs.h.
5038         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5039         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5040         symbol.
5041         * modules/search (Depends-on): Add c++defs.
5042         (Makefile.am): Update search.h rule.
5043
5044         math: Avoid #define replacements in C++ mode.
5045         * lib/math.in.h: Include c++defs.h.
5046         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5047         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5048         trunc, truncl): In C++, define a namespaced alias symbol.
5049         * modules/math (Depends-on): Add c++defs.
5050         (Makefile.am): Update math.h rule.
5051
5052         locale: Avoid #define replacements in C++ mode.
5053         * lib/locale.in.h: Include c++defs.h.
5054         (duplocale): In C++, define a namespaced alias symbol.
5055         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5056         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5057         * modules/locale (Depends-on): Add c++defs.
5058         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5059
5060         langinfo: Avoid #define replacements in C++ mode.
5061         * lib/langinfo.in.h: Include c++defs.h.
5062         (nl_langinfo): In C++, define a namespaced alias symbol.
5063         * modules/langinfo (Depends-on): Add c++defs.
5064         (Makefile.am): Update langinfo.h rule.
5065
5066         iconv-h: Avoid #define replacements in C++ mode.
5067         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5068         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5069         symbol.
5070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5071         whenever iconv is present.
5072         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5073         (Makefile.am): Update iconv.h rule.
5074
5075         glob: Avoid #define replacements in C++ mode.
5076         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5077         (_gl_glob_errfunc_fn): New type.
5078         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5079         symbol.
5080         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5081         (Makefile.am): Update glob.h rule.
5082
5083         fcntl-h: Avoid #define replacements in C++ mode.
5084         * lib/fcntl.in.h: Include c++defs.h.
5085         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5086         * modules/fcntl-h (Depends-on): Add c++defs.
5087         (Makefile.am): Update fcntl.h rule.
5088
5089         dirent: Avoid #define replacements in C++ mode.
5090         * lib/dirent.in.h: Include c++defs.h.
5091         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5092         namespaced alias symbol.
5093         (dirfd): Update declaration.
5094         * modules/dirent (Depends-on): Add c++defs.
5095         (Makefile.am): Update dirent.h rule.
5096
5097         ctype: Make it usable in C++ code.
5098         * lib/ctype.in.h: Include c++defs.h.
5099         (isblank): Declare as extern "C".
5100         * modules/ctype (Depends-on): Add c++defs.
5101         (Makefile.am): Update ctype.h rule.
5102
5103         New module 'c++defs'.
5104         * modules/c++defs: New file.
5105         * build-aux/c++defs.h: New file.
5106         Reported by John W. Eaton <jwe@gnu.org>.
5107
5108 2010-03-07  Bruno Haible  <bruno@clisp.org>
5109
5110         logb: Provide missing declaration for Cygwin.
5111         * lib/math.in.h (logb): New declaration.
5112         * m4/logb.m4: New file.
5113         * modules/logb (Files): Add m4/logb.m4.
5114         (Depends-on): Add math.
5115         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5116         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5118         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5119         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5120
5121 2010-03-07  Bruno Haible  <bruno@clisp.org>
5122
5123         Fix test-cond link error.
5124         * tests/test-cond.c: Include <stdio.h>.
5125
5126 2010-03-07  Bruno Haible  <bruno@clisp.org>
5127
5128         Fix test-dirent-safer link error.
5129         * modules/dirent-safer-tests (Makefile.am): Define
5130         test_dirent_safer_LDADD.
5131
5132 2010-03-07  Bruno Haible  <bruno@clisp.org>
5133
5134         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5135         among default module list.
5136
5137 2010-03-07  Bruno Haible  <bruno@clisp.org>
5138
5139         Fix link error on platforms with GNU libiconv.
5140         * modules/unistr/u8-strcoll-tests (Makefile): Define
5141         test_u8_strcoll_LDADD.
5142         * modules/unistr/u16-strcoll-tests (Makefile): Define
5143         test_u16_strcoll_LDADD.
5144         * modules/unistr/u32-strcoll-tests (Makefile): Define
5145         test_u32_strcoll_LDADD.
5146
5147 2010-03-07  Bruno Haible  <bruno@clisp.org>
5148
5149         Use POSIX declarations for socket functions.
5150         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5151         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5152         rpl_sendto): Change declaration to match POSIX.
5153         * lib/connect.c (rpl_connect): Likewise.
5154         * lib/accept.c (rpl_accept): Likewise.
5155         * lib/bind.c (rpl_bind): Likewise.
5156         * lib/getpeername.c (rpl_getpeername): Likewise.
5157         * lib/getsockname.c (rpl_getsockname): Likewise.
5158         * lib/recv.c (rpl_recv): Likewise.
5159         * lib/send.c (rpl_send): Likewise.
5160         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5161         * lib/sendto.c (rpl_sendto): Likewise.
5162
5163 2010-03-06  Bruno Haible  <bruno@clisp.org>
5164
5165         Clarify access, euidaccess, faccessat.
5166         * doc/posix-functions/faccessat.texi: Mention security problem under
5167         "Other problems", not "Portability problems".
5168         * doc/posix-functions/access.texi: Likewise. Mention a related security
5169         problem.
5170         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5171         * lib/euidaccess.c: Add comments about platforms.
5172         * lib/unistd.in.h (access, euidaccess): Add warnings.
5173
5174 2010-03-07  Bruno Haible  <bruno@clisp.org>
5175
5176         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5177         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5178         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5179         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5180         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5181         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5182         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5183         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5184         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5186         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5187         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5188         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5189         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5190         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5191         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5192         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5193         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5194         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5195         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5196         Likewise.
5197         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5198         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5199         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5200         Likewise.
5201         * tests/test-spawn.c (main): Make it work when
5202         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5203
5204 2010-03-07  Bruno Haible  <bruno@clisp.org>
5205
5206         Fix incorrect Makefile.am generation in German locale.
5207         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5208         Execute sed command with character range in C locale.
5209
5210 2010-03-06  Bruno Haible  <bruno@clisp.org>
5211
5212         Tests for module 'iconv-h'.
5213         * modules/iconv-h-tests: New file.
5214         * tests/test-iconv-h.c: New file.
5215
5216         New module 'iconv-h'.
5217         * modules/iconv-h: New file.
5218         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5219         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5220         (configure.ac): Remove gl_ICONV_H.
5221         (Makefile.am): Remove rule for iconv.h.
5222
5223 2010-03-06  Bruno Haible  <bruno@clisp.org>
5224
5225         More consistent naming of *.m4 files.
5226         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5227         * modules/wctype (Files): Update.
5228
5229         More consistent naming of *.m4 files.
5230         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5231         * modules/wchar (Files): Update.
5232
5233 2010-03-06  Jim Meyering  <meyering@redhat.com>
5234
5235         euidaccess: relax license to LGPLv2+
5236         * modules/euidaccess (License): Relax to LGPLv2+.
5237
5238 2010-03-06  Bruno Haible  <bruno@clisp.org>
5239
5240         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5241         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5242         (Makefile.am): Augment lib_SOURCES instead.
5243
5244 2010-03-04  Jim Meyering  <meyering@redhat.com>
5245
5246         utime: remove obsolete module
5247         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5248         unnecessary for years, and has been marked as obsolete for 10 months.
5249         * modules/utime: Remove file.
5250         * lib/utime.c: Remove file.
5251         * m4/utime.m4: Remove file.
5252         * m4/utimes-null.m4: Remove file.
5253         * doc/posix-functions/utime.texi (utime): Remove reference to
5254         the module.  Move the sole "fixed by gnulib" item into the
5255         "problems not fixed by Gnulib" list.
5256         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5257
5258 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5259
5260         * modules/exit (License): Relax license to LGPLv2+.
5261         (Status): Mark as obsolete.
5262         * NEWS: Mention deprecated 'exit' module.
5263         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5264         of now obsolete 'exit'.
5265
5266 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5267
5268         fts-lgpl: remove unused module
5269         * modules/fts-lgpl: Remove.
5270         * MODULES.html.sh (func_all_modules): Adjust.
5271         * check-module (find_included_lib_files): Adjust.
5272         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5273
5274 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5275
5276         copy-acl: enhance Solaris ACL error handling
5277         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5278         * lib/set-mode-acl.c (qset_acl): Likewise.
5279
5280 2010-03-02  Bruno Haible  <bruno@clisp.org>
5281
5282         spawn: Don't override the system defined values on FreeBSD 8.
5283         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5284         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5285         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5286         if HAVE_POSIX_SPAWN is 1.
5287         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5288
5289 2010-03-01  Bruno Haible  <bruno@clisp.org>
5290
5291         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5292         regarding Automake.
5293
5294 2010-02-25  Bruno Haible  <bruno@clisp.org>
5295
5296         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5297         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5298         setting, not afterwards.
5299         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5300
5301 2010-02-24  Eric Blake  <eblake@redhat.com>
5302
5303         bootstrap, git-version-gen: use timestamp
5304         * build-aux/git-version-gen (scriptversion): Force UTC.
5305         * build-aux/bootstrap (scriptversion): New variable.
5306
5307         bootstrap: allow older git
5308         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5309         older than 1.6.4.  Requested by the libvirt project.
5310
5311 2010-02-23  Eric Blake  <eblake@redhat.com>
5312
5313         warn-on-use: work with old autoconf
5314         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5315         AS_VAR semantics of autoconf 2.60.
5316         Reported by Bruno Haible.
5317
5318         bootstrap: improve some comments
5319         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5320         clarification comments.
5321
5322         gettimeofday: provide correct function
5323         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5324         when replacement is declared, otherwise provide gettimeofday.
5325         Reported by Michael Goffioul.
5326
5327 2010-02-23  Jim Meyering  <meyering@redhat.com>
5328
5329         lib-ignore: relax license to "unlimited", not LGPLv2+
5330         * modules/lib-ignore (License): Relax to "unlimited".
5331
5332 2010-02-23  Jim Meyering  <meyering@redhat.com>
5333
5334         lib-ignore: relax license to LGPLv2+
5335         * modules/lib-ignore (License): Relax to LGPLv2+.
5336
5337 2010-02-22  Eric Blake  <eblake@redhat.com>
5338
5339         lseek: avoid bash 3.2 broken pipe bug
5340         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5341         warning from bash 3.2.
5342         Reported by Ben Pfaff, with analysis from Bruno Haible.
5343
5344         bootstrap: support non-FSF copyright holder
5345         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5346         bootstrap.conf override of COPYRIGHT_HOLDER.
5347         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5348
5349         bootstrap: interoperate with gettext 0.14.1
5350         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5351
5352         bootstrap: allow for alternate submodule location
5353         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5354         hardcoding submodule location.
5355         (gnulib_mk): Allow direct use of Makefile.am.
5356
5357         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5358         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5359         rather than reconfiguring where the submodule points.
5360
5361         gettimeofday: restore support for platforms that lack function
5362         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5363         replacement if function is missing.
5364         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5365         * modules/sys_time (Makefile.am): Substitute it.
5366         * lib/sys_time.in.h (gettimeofday): Check it.
5367         Reported by Michael Goffioul.
5368
5369 2010-02-21  Bruno Haible  <bruno@clisp.org>
5370
5371         * lib/stdio.in.h (obstack_printf): Fix typo.
5372
5373 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5374
5375         vc-list-files: use bzr ls's -R option
5376         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5377         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5378
5379 2010-02-21  Jim Meyering  <meyering@redhat.com>
5380
5381         init.sh: fix EXEEXT shims to work also for names like test-prog
5382         * tests/init.sh: Re-exec a better shell, when needed.
5383         If the current shell lacks support for posix $(...), an init.sh-using
5384         test will now try to find a shell that supports that.  If EXEEXT is
5385         nonempty, we also require support for hyphen-in-alias-name and shell
5386         substitutions like ${var#glob}.  Failure to find such a shell results
5387         in a skipped test.
5388
5389 2010-02-21  Bruno Haible  <bruno@clisp.org>
5390
5391         Really work around around "broken pipe" error message from bash 3.2.
5392         * gnulib-tool (func_reset_sigpipe): Remove function.
5393         (echo): In bash 3.2, define to a function that uses printf.
5394         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5395
5396 2010-02-20  Bruno Haible  <bruno@clisp.org>
5397
5398         Restore support for automake 1.9.6 with autoconf 2.61.
5399         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5400         Reported by James Youngman <jay@gnu.org>.
5401
5402 2010-02-20  Bruno Haible  <bruno@clisp.org>
5403
5404         Improve *printf warning condition.
5405         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5406         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5407         and the function is overridden due to SIGPIPE emulation.
5408
5409 2010-02-20  Bruno Haible  <bruno@clisp.org>
5410
5411         * lib/stdio.in.h: Tweak comments.
5412
5413 2010-02-19  Bruno Haible  <bruno@clisp.org>
5414
5415         Make it easier to find modules. New gnulib-tool option '--find'.
5416         * gnulib-tool: New option --find.
5417         (func_usage): Document it.
5418         (func_sanitize_modulelist): New function, extracted from
5419         func_all_modules.
5420         (func_all_modules): Invoke it.
5421         * doc/gnulib-tool.texi (Which modules?): New node.
5422
5423 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5424
5425         * lib/sys_select.in.h: Provide select replacement even if
5426         sys/select.h exists on a system, for Interix.
5427
5428 2010-02-18  Jim Meyering  <meyering@redhat.com>
5429
5430         init.sh: don't use $(...) just yet
5431         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5432         to accommodate e.g., Solaris' /bin/sh.
5433
5434 2010-02-17  Bruno Haible  <bruno@clisp.org>
5435
5436         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5437         Reported by Ludovic Courtès <ludo@gnu.org>.
5438
5439 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5440
5441         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5442         linking with -lintl.
5443
5444 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5445
5446         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5447         if not provided by the system's netdb.h.  Reported by
5448         ludo@gnu.org (Ludovic Courtès).
5449
5450 2010-02-15  Jim Meyering  <meyering@redhat.com>
5451
5452         init.sh: improve portability and efficiency
5453         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5454         "dummy" in a for loop.
5455         Use '!', not '^' to select the complement of a character set used
5456         in a "case" statement.
5457         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5458         Suggestions from Eric Blake.
5459
5460         init.sh: automatically accommodate programs with the .exe suffix
5461         Automatically arrange for an invocation of "prog" to execute the
5462         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5463         may use the simpler "prog", yet still work when built on a system
5464         that requires specifying the added suffix.
5465         Do this by constructing a function named "prog" that invokes
5466         "prog.exe" for each .exe file in selected directories.
5467         * tests/init.sh (find_exe_basenames_): New function.
5468         (create_exe_shim_functions_): New function.
5469         (path_prepend_): Use it.
5470
5471         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5472         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5473         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5474
5475 2010-02-14  Jim Meyering  <meyering@redhat.com>
5476
5477         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5478         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5479         (sc_prohibit_hash_pjw_without_use): New rule.
5480
5481         maint.mk: allow the default upload destination dir to be overridden
5482         * top/maint.mk (upload_dest_dir_): Define with a default that
5483         preserves the status quo.
5484         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5485         Reported by Peter Simons.
5486
5487         maint.mk: prohibit inclusion of "hash.h" without_use
5488         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5489
5490 2010-02-10  Jim Meyering  <meyering@redhat.com>
5491
5492         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5493         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5494
5495 2010-02-09  Eric Blake  <ebb9@byu.net>
5496         and Bruno Haible  <bruno@clisp.org>
5497
5498         obstack-printf-posix: ensure declaration
5499         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5500         extracted from gl_FUNC_OBSTACK_PRINTF.
5501         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5502         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5503         Likewise.
5504         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5505         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5506         0.
5507
5508 2010-02-08  Bruno Haible  <bruno@clisp.org>
5509
5510         gnulib-tool: Fix typo in 2010-02-07 commit.
5511         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5512         Reported by Eric Blake.
5513
5514 2010-02-07  Bruno Haible  <bruno@clisp.org>
5515
5516         gnulib-tool: Fix up caching patches.
5517         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5518         option --no-cache. Use associative arrays when supported by the shell.
5519         (sed_comments): New variable.
5520         (modcache): Renamed from do_cache.
5521         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5522         abbreviate unnecessarily.
5523         (have_associative): New variable.
5524         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5525         way also for ksh and zsh.
5526         (func_init_sed_convert_to_cache_statements): New function, extracted
5527         from func_cache_lookup_module. Add support for associative arrays.
5528         Don't set the c_MODULE_cached variable here. Ignore all lines before
5529         the first field header. Remove only the final newline, not all trailing
5530         newlines. Support empty fields correctly. Limit the use of 'eval' to
5531         assignments.
5532         (func_get_description, func_get_status, func_get_notice,
5533         func_get_applicability, func_get_filelist, func_get_dependencies,
5534         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5535         func_get_automake_snippet, func_get_include_directive,
5536         func_get_link_directive, func_get_license, func_get_maintainer):
5537         Update documentation. List the unoptimized code first. Add support for
5538         associative arrays. Limit the use of 'eval' to assignments.
5539         (func_get_applicability): Undo stylistic pessimisations.
5540         (func_get_automake_snippet, func_get_include_directive): Reduce code
5541         duplication.
5542         (func_modules_transitive_closure, func_modules_add_dummy,
5543         func_modules_notice, func_modules_to_filelist, func_add_file,
5544         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5545         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5546         func_create_testdir, func_create_megatestdir): Update documentation.
5547
5548 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5549
5550         * gnulib-tool (func_cache_lookup_module): Store the module name
5551         belonging to the cache variable; error out if two different
5552         module names map to the same cache variable name.
5553
5554 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5555
5556         gnulib-tool: Make caching optional.
5557         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5558         Update matching short versions of --no-changelog.
5559         (func_usage): Update.
5560         (sed_extract_cache_prog): Renamed from ...
5561         (sed_extract_prog): ... this; revert to old extraction script.
5562         (func_get_description, func_get_status)
5563         (func_get_notice, func_get_applicability, func_get_filelist)
5564         (func_get_dependencies, func_get_autoconf_early_snippet)
5565         (func_get_autoconf_snippet, func_get_automake_snippet)
5566         (func_get_include_directive, func_get_link_directive)
5567         (func_get_license, func_get_maintainer): If $do_cache is false,
5568         use old, non-caching extraction scripts.
5569         Suggestion by Bruno Haible.
5570
5571 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5572
5573         gnulib-tool: cache module metainformation.
5574         * gnulib-tool (sed_extract_prog): Match newline before each
5575         header, and rewrite header to a shell variable suffix.
5576         (func_cache_var, func_cache_lookup_module): New functions,
5577         to turn a module name into a cache variable prefix, and to
5578         look up and cache module metainformation.
5579         (func_get_description, func_get_status)
5580         (func_get_notice, func_get_applicability, func_get_filelist)
5581         (func_get_dependencies, func_get_autoconf_early_snippet)
5582         (func_get_autoconf_snippet, func_get_automake_snippet)
5583         (func_get_include_directive, func_get_link_directive)
5584         (func_get_license, func_get_maintainer): Use
5585         func_cache_lookup_module.
5586
5587 2010-02-07  Bruno Haible  <bruno@clisp.org>
5588
5589         fnctl: Fix missing dependency.
5590         * modules/fcntl (Depends-on): Add getdtablesize.
5591         Reported by John W. Eaton <jwe@gnu.org>.
5592
5593 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5594
5595         Argp: fix recognition of short alias options.
5596
5597         * lib/argp-parse.c (convert_options): Fix improper use of
5598         `|' between character values.
5599         * tests/test-argp.c (group1_option): New alias option
5600         --read (-r).
5601         (group1_parser): Special handling for 'r'.
5602         (test15): New test case.
5603         (test_fun): Add test15.
5604         * tests/test-argp-2.sh: Update expected --help and --usage
5605         outputs.
5606
5607 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5608
5609         * tests/test-argp.c: Fix indentation.
5610
5611 2010-02-04  Eric Blake  <ebb9@byu.net>
5612
5613         gettimeofday: expose type of second argument
5614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5615         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5616         * tests/test-gettimeofday.c: Use it to silence warning.
5617         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5618         the issue.
5619
5620 2010-02-03  Jim Meyering  <meyering@redhat.com>
5621
5622         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5623         * lib/regcomp.c (TYPE_SIGNED): Define.
5624         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5625
5626         regcomp.c: avoid a new -Wshadow warning
5627         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5628
5629 2010-02-01  Jim Meyering  <meyering@redhat.com>
5630
5631         removing useless parentheses in cpp #define directives
5632         For motivation, see commit c0221df4, "define STREQ(a,b)
5633         consistently, removing useless parentheses"
5634         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5635         * lib/mountlist.c (MNT_IGNORE): Likewise.
5636         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5637
5638 2010-02-01  Eric Blake  <ebb9@byu.net>
5639
5640         sys_time: use link-warning
5641         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5642         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5643         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5644         * modules/sys_time (Depends-on): Add warn-on-use.
5645         (Makefile.am): Always build replacement.
5646         (configure.ac): Update substitutions.
5647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5648         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5649         bother with SYS_TIME_H.
5650         * modules/gettimeofday (configure.ac): Declare indicator.
5651         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5652         in use.
5653
5654         closein-tests: silence compiler warning
5655         * tests/test-closein.c (main): Ignore fread result.
5656         * modules/closein-tests (Depends-on): Add ignore-value.
5657
5658         tests: silence warning about system return
5659         * tests/test-areadlink-with-size.c (main): Ignore system result.
5660         * tests/test-areadlink.c (main): Likewise.
5661         * tests/test-areadlinkat-with-size.c (main): Likewise.
5662         * tests/test-areadlinkat.c (main): Likewise.
5663         * tests/test-canonicalize-lgpl.c (main): Likewise.
5664         * tests/test-canonicalize.c (main): Likewise.
5665         * tests/test-chown.c (main): Likewise.
5666         * tests/test-fchownat.c (main): Likewise.
5667         * tests/test-fdutimensat.c (main): Likewise.
5668         * tests/test-fstatat.c (main): Likewise.
5669         * tests/test-futimens.c (main): Likewise.
5670         * tests/test-lchown.c (main): Likewise.
5671         * tests/test-link.c (main): Likewise.
5672         * tests/test-linkat.c (main): Likewise.
5673         * tests/test-lstat.c (main): Likewise.
5674         * tests/test-mkdir.c (main): Likewise.
5675         * tests/test-mkdirat.c (main): Likewise.
5676         * tests/test-mkfifo.c (main): Likewise.
5677         * tests/test-mkfifoat.c (main): Likewise.
5678         * tests/test-mknod.c (main): Likewise.
5679         * tests/test-readlink.c (main): Likewise.
5680         * tests/test-remove.c (main): Likewise.
5681         * tests/test-rename.c (main): Likewise.
5682         * tests/test-renameat.c (main): Likewise.
5683         * tests/test-rmdir.c (main): Likewise.
5684         * tests/test-symlink.c (main): Likewise.
5685         * tests/test-symlinkat.c (main): Likewise.
5686         * tests/test-unlink.c (main): Likewise.
5687         * tests/test-unlinkat.c (main): Likewise.
5688         * tests/test-utimens.c (main): Likewise.
5689         * tests/test-utimensat.c (main): Likewise.
5690         * modules/areadlink-tests (Depends-on): Add ignore-value.
5691         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5692         * modules/areadlinkat-tests (Depends-on): Likewise.
5693         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5694         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5695         * modules/canonicalize-tests (Depends-on): Likewise.
5696         * modules/chown-tests (Depends-on): Likewise.
5697         * modules/fdutimensat-tests (Depends-on): Likewise.
5698         * modules/futimens-tests (Depends-on): Likewise.
5699         * modules/lchown-tests (Depends-on): Likewise.
5700         * modules/link-tests (Depends-on): Likewise.
5701         * modules/linkat-tests (Depends-on): Likewise.
5702         * modules/lstat-tests (Depends-on): Likewise.
5703         * modules/mkdir-tests (Depends-on): Likewise.
5704         * modules/mkfifo-tests (Depends-on): Likewise.
5705         * modules/mkfifoat-tests (Depends-on): Likewise.
5706         * modules/mknod-tests (Depends-on): Likewise.
5707         * modules/openat-tests (Depends-on): Likewise.
5708         * modules/readlink-tests (Depends-on): Likewise.
5709         * modules/remove-tests (Depends-on): Likewise.
5710         * modules/rename-tests (Depends-on): Likewise.
5711         * modules/renameat-tests (Depends-on): Likewise.
5712         * modules/rmdir-tests (Depends-on): Likewise.
5713         * modules/symlink-tests (Depends-on): Likewise.
5714         * modules/symlinkat-tests (Depends-on): Likewise.
5715         * modules/unlink-tests (Depends-on): Likewise.
5716         * modules/utimens-tests (Depends-on): Likewise.
5717         * modules/utimensat-tests (Depends-on): Likewise.
5718
5719 2010-01-31  Bruno Haible  <bruno@clisp.org>
5720
5721         Perform the same test for many <math.h> functions.
5722         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5723         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5724         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5725         of gl_MATHFUNC.
5726         * modules/acos (configure.ac): Likewise.
5727         * modules/asin (configure.ac): Likewise.
5728         * modules/atan (configure.ac): Likewise.
5729         * modules/atan2 (configure.ac): Likewise.
5730         * modules/cbrt (configure.ac): Likewise.
5731         * modules/copysign (configure.ac): Likewise.
5732         * modules/cos (configure.ac): Likewise.
5733         * modules/cosh (configure.ac): Likewise.
5734         * modules/erf (configure.ac): Likewise.
5735         * modules/erfc (configure.ac): Likewise.
5736         * modules/exp (configure.ac): Likewise.
5737         * modules/fmod (configure.ac): Likewise.
5738         * modules/hypot (configure.ac): Likewise.
5739         * modules/j0 (configure.ac): Likewise.
5740         * modules/j1 (configure.ac): Likewise.
5741         * modules/jn (configure.ac): Likewise.
5742         * modules/lgamma (configure.ac): Likewise.
5743         * modules/log (configure.ac): Likewise.
5744         * modules/log10 (configure.ac): Likewise.
5745         * modules/log1p (configure.ac): Likewise.
5746         * modules/pow (configure.ac): Likewise.
5747         * modules/remainder (configure.ac): Likewise.
5748         * modules/sin (configure.ac): Likewise.
5749         * modules/sinh (configure.ac): Likewise.
5750         * modules/tan (configure.ac): Likewise.
5751         * modules/tanh (configure.ac): Likewise.
5752         * modules/y0 (configure.ac): Likewise.
5753         * modules/y1 (configure.ac): Likewise.
5754         * modules/yn (configure.ac): Likewise.
5755         Suggested by Paolo Bonzini.
5756
5757 2010-01-31  Bruno Haible  <bruno@clisp.org>
5758
5759         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5760
5761 2010-01-31  Bruno Haible  <bruno@clisp.org>
5762
5763         Work around getdelim() bug on FreeBSD 8.0.
5764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5765         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5766         not work.
5767         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5768         is 1.
5769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5770         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5771         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5772         a non-zero size.
5773         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5774
5775 2010-01-31  Bruno Haible  <bruno@clisp.org>
5776
5777         Work around getline() bug on FreeBSD 8.0.
5778         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5779         and a non-zero size.
5780         * tests/test-getline.c (main): Likewise.
5781         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5782         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5783
5784 2010-01-28  Eric Blake  <ebb9@byu.net>
5785
5786         regex: fix build failure
5787         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5788         platforms.
5789
5790 2010-01-28  Jim Meyering  <meyering@redhat.com>
5791
5792         regex: do not ignore memory allocation failure
5793         * lib/regex_internal.c (create_cd_newstate): Detect
5794         re_node_set_init_copy failure.   Extracted from glibc commit
5795         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5796
5797         regex: sync more white-space changes from libc
5798         * lib/regex_internal.c: White-space only changes.
5799         * lib/regexec.c: Likewise.
5800
5801         regex: add many uses of __attribute_warn_unused_result__
5802         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5803         * lib/regexec.c: Likewise.
5804         Extracted from a messy glibc commit.
5805
5806         regcomp.c: spelling and merge-artifact from glibc
5807         * lib/regcomp.c: Merge remainder of glibc's
5808         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5809
5810         regcomp.c: sync white-space changes from glibc
5811         * lib/regcomp.c: Merge to accommodate white space
5812         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5813
5814         regcomp.c: do not ignore internal return values
5815         * lib/regcomp.c: Do not ignore internal return values.
5816         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5817         but without its white-space changes and spelling fixes.
5818
5819         regex_internal.h: define __attribute_warn_unused_result__
5820         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5821
5822         maint: add a syntax-check rule to check for vulnerable Makefile.in
5823         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5824
5825 2010-01-27  Jim Meyering  <meyering@redhat.com>
5826
5827         ncftpput-ftp: clean up spaces
5828         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5829         Remove trailing blanks.
5830
5831 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5832
5833         * build-aux/git-version-gen: Fix copyright statement.
5834         * build-aux/gnupload: Likewise.
5835         * tests/test-arcfour.c: Likewise.
5836         * tests/test-arctwo.c: Likewise.
5837         * tests/test-count-one-bits.c: Likewise.
5838         * tests/test-crc.c: Likewise.
5839         * tests/test-des.c: Likewise.
5840         * tests/test-gc-arcfour.c: Likewise.
5841         * tests/test-gc-arctwo.c: Likewise.
5842         * tests/test-gc-des.c: Likewise.
5843         * tests/test-gc-hmac-md5.c: Likewise.
5844         * tests/test-gc-hmac-sha1.c: Likewise.
5845         * tests/test-gc-md2.c: Likewise.
5846         * tests/test-gc-md4.c: Likewise.
5847         * tests/test-gc-md5.c: Likewise.
5848         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5849         * tests/test-gc-rijndael.c: Likewise.
5850         * tests/test-gc-sha1.c: Likewise.
5851         * tests/test-gc.c: Likewise.
5852         * tests/test-gethostname.c: Likewise.
5853         * tests/test-gettimeofday.c: Likewise.
5854         * tests/test-hash.c: Likewise.
5855         * tests/test-hmac-md5.c: Likewise.
5856         * tests/test-hmac-sha1.c: Likewise.
5857         * tests/test-md2.c: Likewise.
5858         * tests/test-md4.c: Likewise.
5859         * tests/test-md5.c: Likewise.
5860         * tests/test-memchr.c: Likewise.
5861         * tests/test-memchr2.c: Likewise.
5862         * tests/test-memcmp.c: Likewise.
5863         * tests/test-memmem.c: Likewise.
5864         * tests/test-memrchr.c: Likewise.
5865         * tests/test-rawmemchr.c: Likewise.
5866         * tests/test-read-file.c: Likewise.
5867         * tests/test-rijndael.c: Likewise.
5868         * tests/test-sockets.c: Likewise.
5869         * tests/test-strchrnul.c: Likewise.
5870         * tests/test-strstr.c: Likewise.
5871         * tests/test-strtod.c: Likewise.
5872         * build-aux/ncftpput-ftp: Likewise.
5873
5874 2010-01-26  Eric Blake  <ebb9@byu.net>
5875
5876         ignore-value: update recommended header name
5877         * modules/ignore-value (Include): Only use <> for headers that
5878         exist in glibc.
5879
5880 2010-01-26  Jim Meyering  <meyering@redhat.com>
5881
5882         test-userspec.c: avoid compiler warnings
5883         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
5884         and "initialization discards qualifiers..." warnings.
5885         Put the first "uid" in its own scope, and make char* members "const".
5886
5887 2010-01-25  Bruno Haible  <bruno@clisp.org>
5888
5889         gnulib-tool: Make warning diagnostics consistent.
5890         * gnulib-tool (func_warning): New function.
5891         Use it everywhere where gnulib-tool produces output to stderr and it is
5892         not a fatal error.
5893
5894 2010-01-25  Bruno Haible  <bruno@clisp.org>
5895
5896         Fix test dependencies.
5897         * modules/xstrtol-tests (Depends-on): Add inttypes.
5898         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
5899
5900 2010-01-25 Pádraig Brady <P@draigBrady.com>
5901
5902         syntax-check: detect incorrect boolean macro values in config.h
5903         * modules/maintainer-makefile (configure.ac): Parameterize the location
5904         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
5905         The logic is from Eric Blake and the location indicated by Jim Meyering.
5906         Note the more natural CONFIG_HEADER name is prohibited by automake
5907         for backwards compatibility reasons.
5908         * top/maint.mk (sc_Wundef_boolean): New rule.
5909
5910 2010-01-25  Jim Meyering  <meyering@redhat.com>
5911
5912         bootstrap: detect MacOS 10.6's shasum, too
5913         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
5914         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
5915
5916 2010-01-23  Jim Meyering  <meyering@redhat.com>
5917
5918         xstrtoll: new module
5919         * modules/xstrtoll: New file.
5920         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
5921         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
5922         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
5923         ./configure fails if you use this module and lack "long long".
5924         * modules/xstrtoll-tests: New module.
5925         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
5926         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
5927         new init.sh-based test framework.
5928
5929 2010-01-24  Bruno Haible  <bruno@clisp.org>
5930
5931         Tests for module 'yn'.
5932         * modules/yn-tests: New file.
5933         * tests/test-yn.c: New file.
5934
5935         Tests for module 'y1'.
5936         * modules/y1-tests: New file.
5937         * tests/test-y1.c: New file.
5938
5939         Tests for module 'y0'.
5940         * modules/y0-tests: New file.
5941         * tests/test-y0.c: New file.
5942
5943         Tests for module 'tanh'.
5944         * modules/tanh-tests: New file.
5945         * tests/test-tanh.c: New file.
5946
5947         Tests for module 'tan'.
5948         * modules/tan-tests: New file.
5949         * tests/test-tan.c: New file.
5950
5951         Tests for module 'sqrt'.
5952         * modules/sqrt-tests: New file.
5953         * tests/test-sqrt.c: New file.
5954
5955         Tests for module 'sinh'.
5956         * modules/sinh-tests: New file.
5957         * tests/test-sinh.c: New file.
5958
5959         Tests for module 'sin'.
5960         * modules/sin-tests: New file.
5961         * tests/test-sin.c: New file.
5962
5963         Tests for module 'rint'.
5964         * modules/rint-tests: New file.
5965         * tests/test-rint.c: New file.
5966
5967         Tests for module 'remainder'.
5968         * modules/remainder-tests: New file.
5969         * tests/test-remainder.c: New file.
5970
5971         Tests for module 'pow'.
5972         * modules/pow-tests: New file.
5973         * tests/test-pow.c: New file.
5974
5975         Tests for module 'nextafter'.
5976         * modules/nextafter-tests: New file.
5977         * tests/test-nextafter.c: New file.
5978
5979         Tests for module 'modf'.
5980         * modules/modf-tests: New file.
5981         * tests/test-modf.c: New file.
5982
5983         Tests for module 'logb'.
5984         * modules/logb-tests: New file.
5985         * tests/test-logb.c: New file.
5986
5987         Tests for module 'log1p'.
5988         * modules/log1p-tests: New file.
5989         * tests/test-log1p.c: New file.
5990
5991         Tests for module 'log10'.
5992         * modules/log10-tests: New file.
5993         * tests/test-log10.c: New file.
5994
5995         Tests for module 'log'.
5996         * modules/log-tests: New file.
5997         * tests/test-log.c: New file.
5998
5999         Tests for module 'lgamma'.
6000         * modules/lgamma-tests: New file.
6001         * tests/test-lgamma.c: New file.
6002
6003         Tests for module 'ldexp'.
6004         * modules/ldexp-tests: New file.
6005         * tests/test-ldexp.c: New file.
6006
6007         Tests for module 'jn'.
6008         * modules/jn-tests: New file.
6009         * tests/test-jn.c: New file.
6010
6011         Tests for module 'j1'.
6012         * modules/j1-tests: New file.
6013         * tests/test-j1.c: New file.
6014
6015         Tests for module 'j0'.
6016         * modules/j0-tests: New file.
6017         * tests/test-j0.c: New file.
6018
6019         Tests for module 'hypot'.
6020         * modules/hypot-tests: New file.
6021         * tests/test-hypot.c: New file.
6022
6023         Tests for module 'fmod'.
6024         * modules/fmod-tests: New file.
6025         * tests/test-fmod.c: New file.
6026
6027         Tests for module 'fabs'.
6028         * modules/fabs-tests: New file.
6029         * tests/test-fabs.c: New file.
6030
6031         Tests for module 'exp'.
6032         * modules/exp-tests: New file.
6033         * tests/test-exp.c: New file.
6034
6035         Tests for module 'erfc'.
6036         * modules/erfc-tests: New file.
6037         * tests/test-erfc.c: New file.
6038
6039         Tests for module 'erf'.
6040         * modules/erf-tests: New file.
6041         * tests/test-erf.c: New file.
6042
6043         Tests for module 'cosh'.
6044         * modules/cosh-tests: New file.
6045         * tests/test-cosh.c: New file.
6046
6047         Tests for module 'cos'.
6048         * modules/cos-tests: New file.
6049         * tests/test-cos.c: New file.
6050
6051         Tests for module 'copysign'.
6052         * modules/copysign-tests: New file.
6053         * tests/test-copysign.c: New file.
6054
6055         Tests for module 'cbrt'.
6056         * modules/cbrt-tests: New file.
6057         * tests/test-cbrt.c: New file.
6058
6059         Tests for module 'atan2'.
6060         * modules/atan2-tests: New file.
6061         * tests/test-atan2.c: New file.
6062
6063         Tests for module 'atan'.
6064         * modules/atan-tests: New file.
6065         * tests/test-atan.c: New file.
6066
6067         Tests for module 'asin'.
6068         * modules/asin-tests: New file.
6069         * tests/test-asin.c: New file.
6070
6071         Tests for module 'acos'.
6072         * modules/acos-tests: New file.
6073         * tests/test-acos.c: New file.
6074
6075 2010-01-24  Bruno Haible  <bruno@clisp.org>
6076
6077         Fix tests for common <math.h> functions.
6078         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6079         code snippet that references the function pointer, rather than merely
6080         calling the function. Substitute the FUNC_LIBM variable.
6081         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6082         * modules/acos (configure.ac): Likewise.
6083         * modules/asin (configure.ac): Likewise.
6084         * modules/atan (configure.ac): Likewise.
6085         * modules/atan2 (configure.ac): Likewise.
6086         * modules/cbrt (configure.ac): Likewise.
6087         * modules/copysign (configure.ac): Likewise.
6088         * modules/cos (configure.ac): Likewise.
6089         * modules/cosh (configure.ac): Likewise.
6090         * modules/erf (configure.ac): Likewise.
6091         * modules/erfc (configure.ac): Likewise.
6092         * modules/exp (configure.ac): Likewise.
6093         * modules/fabs (configure.ac): Likewise.
6094         * modules/fmod (configure.ac): Likewise.
6095         * modules/hypot (configure.ac): Likewise.
6096         * modules/j0 (configure.ac): Likewise.
6097         * modules/j1 (configure.ac): Likewise.
6098         * modules/jn (configure.ac): Likewise.
6099         * modules/ldexp (configure.ac): Likewise.
6100         * modules/lgamma (configure.ac): Likewise.
6101         * modules/log (configure.ac): Likewise.
6102         * modules/log10 (configure.ac): Likewise.
6103         * modules/log1p (configure.ac): Likewise.
6104         * modules/logb (configure.ac): Likewise.
6105         * modules/modf (configure.ac): Likewise.
6106         * modules/nextafter (configure.ac): Likewise.
6107         * modules/pow (configure.ac): Likewise.
6108         * modules/remainder (configure.ac): Likewise.
6109         * modules/rint (configure.ac): Likewise.
6110         * modules/sin (configure.ac): Likewise.
6111         * modules/sinh (configure.ac): Likewise.
6112         * modules/tan (configure.ac): Likewise.
6113         * modules/tanh (configure.ac): Likewise.
6114         * modules/y0 (configure.ac): Likewise.
6115         * modules/y1 (configure.ac): Likewise.
6116         * modules/yn (configure.ac): Likewise.
6117
6118 2010-01-24  Bruno Haible  <bruno@clisp.org>
6119
6120         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6121         * tests/test-acosl.c (x): New variable.
6122         (main): Store argument in x and fetch it from x.
6123         * tests/test-asinl.c (x): New variable.
6124         (main): Store argument in x and fetch it from x.
6125         * tests/test-atanl.c (x): New variable.
6126         (main): Store argument in x and fetch it from x.
6127         * tests/test-cosl.c (x): New variable.
6128         (main): Store argument in x and fetch it from x.
6129         * tests/test-expl.c (x): New variable.
6130         (main): Store argument in x and fetch it from x.
6131         * tests/test-logl.c (x): New variable.
6132         (main): Store argument in x and fetch it from x.
6133         * tests/test-sinl.c (x): New variable.
6134         (main): Store argument in x and fetch it from x.
6135         * tests/test-sqrtl.c (x): New variable.
6136         (main): Store argument in x and fetch it from x.
6137         * tests/test-tanl.c (x): New variable.
6138         (main): Store argument in x and fetch it from x.
6139
6140 2010-01-24  Bruno Haible  <bruno@clisp.org>
6141
6142         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6143         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6144         assignments to the initial TESTS_ENVIRONMENT.
6145         * doc/gnulib.texi (Unit test modules): Document it.
6146         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6147         TESTS_ENVIRONMENT.
6148         * modules/btowc-tests (Makefile.am): Likewise.
6149         * modules/c-stack-tests (Makefile.am): Likewise.
6150         * modules/c-strcase-tests (Makefile.am): Likewise.
6151         * modules/copy-file-tests (Makefile.am): Likewise.
6152         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6153         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6154         * modules/mbrtowc-tests (Makefile.am): Likewise.
6155         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6156         * modules/mbscasestr-tests (Makefile.am): Likewise.
6157         * modules/mbschr-tests (Makefile.am): Likewise.
6158         * modules/mbscspn-tests (Makefile.am): Likewise.
6159         * modules/mbsinit-tests (Makefile.am): Likewise.
6160         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6161         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6162         * modules/mbspbrk-tests (Makefile.am): Likewise.
6163         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6164         * modules/mbsrchr-tests (Makefile.am): Likewise.
6165         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6166         * modules/mbsspn-tests (Makefile.am): Likewise.
6167         * modules/mbsstr-tests (Makefile.am): Likewise.
6168         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6169         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6170         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6171         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6172         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6173         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6174         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6175         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6176         * modules/wcrtomb-tests (Makefile.am): Likewise.
6177         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6178         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6179         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6180         assignments from TESTS_ENVIRONMENT.
6181         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6182         augmentation.
6183         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6184         * modules/atexit-tests (Makefile.am): Likewise.
6185         * modules/binary-io-tests (Makefile.am): Likewise.
6186         * modules/closein-tests (Makefile.am): Likewise.
6187         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6188         * modules/exclude-tests (Makefile.am): Likewise.
6189         * modules/fflush-tests (Makefile.am): Likewise.
6190         * modules/fpending-tests (Makefile.am): Likewise.
6191         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6192         * modules/freadahead-tests (Makefile.am): Likewise.
6193         * modules/freadptr-tests (Makefile.am): Likewise.
6194         * modules/freadseek-tests (Makefile.am): Likewise.
6195         * modules/fseek-tests (Makefile.am): Likewise.
6196         * modules/fseeko-tests (Makefile.am): Likewise.
6197         * modules/ftell-tests (Makefile.am): Likewise.
6198         * modules/ftello-tests (Makefile.am): Likewise.
6199         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6200         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6201         * modules/lseek-tests (Makefile.am): Likewise.
6202         * modules/parse-duration-tests (Makefile.am): Likewise.
6203         * modules/perror-tests (Makefile.am): Likewise.
6204         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6205         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6206         * modules/pipe-tests (Makefile.am): Likewise.
6207         * modules/pread-tests (Makefile.am): Likewise.
6208         * modules/printf-posix-tests (Makefile.am): Likewise.
6209         * modules/select-tests (Makefile.am): Likewise.
6210         * modules/sigpipe-tests (Makefile.am): Likewise.
6211         * modules/tsearch-tests (Makefile.am): Likewise.
6212         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6213         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6214         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6215         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6216         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6217         * modules/version-etc-tests (Makefile.am): Likewise.
6218         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6219         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6220         * modules/xalloc-die-tests (Makefile.am): Likewise.
6221         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6222         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6223         * modules/xstrtol-tests (Makefile.am): Likewise.
6224         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6225         * modules/yesno-tests (Makefile.am): Likewise.
6226         Suggested by Jim Meyering.
6227
6228 2010-01-24  Bruno Haible  <bruno@clisp.org>
6229
6230         More documentation.
6231         * doc/gnulib.texi (Writing modules): New chapter.
6232         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6233         the new chapter.
6234
6235 2010-01-24  Jim Meyering  <meyering@redhat.com>
6236
6237         maint.mk: do not prepend "./" after filtering
6238         * top/maint.mk (_prepend_srcdir_prefix): New variable
6239         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6240         "./" when $(srcdir) is ".".
6241
6242         define STREQ(a,b) consistently, removing useless parentheses
6243         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6244         since the only risk is that "a" or "b" contains an unparenthesized
6245         comma, but if either did that, STREQ would have 3 or more arguments.
6246         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6247         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6248         * lib/hash-triple.c (STREQ): Likewise.
6249         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6250         * lib/getugroups.c (STREQ): Likewise.
6251
6252 2010-01-23  Jim Meyering  <meyering@redhat.com>
6253
6254         maint.mk: fix syntax-check in a non-srcdir build directory
6255         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6256         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6257
6258 2010-01-22  Jim Meyering  <meyering@redhat.com>
6259
6260         userspec: add unit tests
6261         * tests/test-userspec.c: New file.
6262         * modules/userspec-tests: Likewise.
6263
6264 2010-01-21  Jim Meyering  <meyering@redhat.com>
6265
6266         maint.mk: handle source file names containing "." robustly
6267         * top/maint.mk (_dot_escaped_srcdir): Define.
6268         (VC_LIST): Use it in LHS of sed substitution.
6269
6270 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6271
6272         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6273         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6274         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6275         from a non-srcdir build.
6276
6277 2010-01-20  Eric Blake  <ebb9@byu.net>
6278
6279         warn-on-use: use instead of link-warning
6280         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6281         * modules/unistd (Depends-on, Makefile.am): Likewise.
6282         * modules/arpa_inet (Depends-on): Replace link-warning with
6283         warn-on-use.
6284         (Makefile.am): Update rules accordingly.
6285         * modules/ctype (Depends-on, Makefile.am): Likewise.
6286         * modules/dirent (Depends-on, Makefile.am): Likewise.
6287         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6288         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6289         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6290         * modules/locale (Depends-on, Makefile.am): Likewise.
6291         * modules/math (Depends-on, Makefile.am): Likewise.
6292         * modules/search (Depends-on, Makefile.am): Likewise.
6293         * modules/signal (Depends-on, Makefile.am): Likewise.
6294         * modules/spawn (Depends-on, Makefile.am): Likewise.
6295         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6296         * modules/string (Depends-on, Makefile.am): Likewise.
6297         * modules/strings (Depends-on, Makefile.am): Likewise.
6298         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6299         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6300         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6301         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6302         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6303         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6304         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6305         * modules/wchar (Depends-on, Makefile.am): Likewise.
6306         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6307         should be poisoned.
6308         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6309         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6310         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6311         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6312         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6313         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6314         * m4/math_h.m4 (gl_MATH_H): Likewise.
6315         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6316         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6317         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6318         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6319         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6320         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6321         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6322         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6327         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6330         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6331         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6332         GL_LINK_WARNING.
6333         * lib/ctype.in.h: Likewise.
6334         * lib/dirent.in.h: Likewise.
6335         * lib/fcntl.in.h: Likewise.
6336         * lib/inttypes.in.h: Likewise.
6337         * lib/langinfo.in.h: Likewise.
6338         * lib/locale.in.h: Likewise.
6339         * lib/math.in.h: Likewise.
6340         * lib/search.in.h: Likewise.
6341         * lib/signal.in.h: Likewise.
6342         * lib/spawn.in.h: Likewise.
6343         * lib/stdio.in.h: Likewise.
6344         * lib/stdlib.in.h: Likewise.
6345         * lib/string.in.h: Likewise.
6346         * lib/strings.in.h: Likewise.
6347         * lib/sys_file.in.h: Likewise.
6348         * lib/sys_ioctl.in.h: Likewise.
6349         * lib/sys_select.in.h: Likewise.
6350         * lib/sys_socket.in.h: Likewise.
6351         * lib/sys_stat.in.h: Likewise.
6352         * lib/sys_times.in.h: Likewise.
6353         * lib/sys_utsname.in.h: Likewise.
6354         * lib/unistd.in.h: Likewise.
6355         * lib/wchar.in.h: Likewise.
6356
6357 2010-01-20  Bruno Haible  <bruno@clisp.org>
6358
6359         Avoid duplicate -lm.
6360         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6361         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6363         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6364         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6365         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6366         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6367         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6368         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6369         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6370         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6371         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6372         Reported by Paolo Bonzini.
6373
6374 2010-01-19  Bruno Haible  <bruno@clisp.org>
6375
6376         langinfo, nl_langinfo: Relicense under LGPLv2+.
6377         * modules/langinfo (License): Change to LGPLv2+.
6378         * modules/nl_langinfo (License): Likewise.
6379         Patch by David Lutterkort <lutter@redhat.com>.
6380
6381 2010-01-19  Bruno Haible  <bruno@clisp.org>
6382
6383         Avoid compilation error with cc on OSF/1 5.1.
6384         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6385         statement, not before.
6386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6387
6388 2010-01-18  Bruno Haible  <bruno@clisp.org>
6389
6390         Avoid a link error due to the __printf__ symbol.
6391         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6392         and 2.6.x.
6393         (__format__, __printf__): Remove definitions.
6394         * lib/argp-fmtstream.h: Likewise.
6395         * lib/argp.h: Likewise.
6396         * lib/error.h: Likewise.
6397         * lib/vasnprintf.h: Likewise.
6398         * lib/xprintf.h: Likewise.
6399         * lib/xvasprintf.h: Likewise.
6400         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6401
6402 2010-01-18  Bruno Haible  <bruno@clisp.org>
6403
6404         Tests for module 'tanl'.
6405         * modules/tanl-tests: New file.
6406         * tests/test-tanl.c: New file.
6407
6408         Tests for module 'sqrtl'.
6409         * modules/sqrtl-tests: New file.
6410         * tests/test-sqrtl.c: New file.
6411
6412         Tests for module 'sinl'.
6413         * modules/sinl-tests: New file.
6414         * tests/test-sinl.c: New file.
6415
6416         Tests for module 'logl'.
6417         * modules/logl-tests: New file.
6418         * tests/test-logl.c: New file.
6419
6420         Tests for module 'expl'.
6421         * modules/expl-tests: New file.
6422         * tests/test-expl.c: New file.
6423
6424         Tests for module 'cosl'.
6425         * modules/cosl-tests: New file.
6426         * tests/test-cosl.c: New file.
6427
6428         Tests for module 'atanl'.
6429         * modules/atanl-tests: New file.
6430         * tests/test-atanl.c: New file.
6431
6432         Tests for module 'asinl'.
6433         * modules/asinl-tests: New file.
6434         * tests/test-asinl.c: New file.
6435
6436         Tests for module 'acosl'.
6437         * modules/acosl-tests: New file.
6438         * tests/test-acosl.c: New file.
6439
6440         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6441         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6442         tanl): Use the standard gnulib idiom.
6443         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6444         * lib/sinl.c: Likewise.
6445         * lib/tanl.c: Don't include trigl.c.
6446         (kernel_tanl): Make static.
6447         * lib/sincosl.c: Include trigl.h first.
6448         * lib/trigl.c: Likewise.
6449         * m4/acosl.m4: New file.
6450         * m4/asinl.m4: New file.
6451         * m4/atanl.m4: New file.
6452         * m4/cosl.m4: New file.
6453         * m4/expl.m4: New file.
6454         * m4/logl.m4: New file.
6455         * m4/sinl.m4: New file.
6456         * m4/sqrtl.m4: New file.
6457         * m4/tanl.m4: New file.
6458         * m4/mathl.m4: Remove file.
6459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6460         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6461         Don't initialize GNULIB_MATHL.
6462         * modules/acosl: New file.
6463         * modules/asinl: New file.
6464         * modules/atanl: New file.
6465         * modules/cosl: New file.
6466         * modules/expl: New file.
6467         * modules/logl: New file.
6468         * modules/sinl: New file.
6469         * modules/sqrtl: New file.
6470         * modules/tanl: New file.
6471         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6472         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6473         substitute GNULIB_MATHL.
6474         * modules/mathl: Rewritten.
6475         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6476         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6477         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6478         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6479         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6480         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6481         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6482         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6483         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6484
6485 2010-01-18  Bruno Haible  <bruno@clisp.org>
6486
6487         sqrt: Make gl_FUNC_SQRT requirable.
6488         * m4/sqrt.m4: New file.
6489         * modules/sqrt (Files): Add it.
6490         (configure.ac): Invoke gl_FUNC_SQRT.
6491
6492 2010-01-18  Bruno Haible  <bruno@clisp.org>
6493
6494         New modules for common <math.h> functions.
6495         * m4/mathfunc.m4: New file.
6496         * modules/acos: New file.
6497         * modules/asin: New file.
6498         * modules/atan: New file.
6499         * modules/atan2: New file.
6500         * modules/cbrt: New file.
6501         * modules/copysign: New file.
6502         * modules/cos: New file.
6503         * modules/cosh: New file.
6504         * modules/erf: New file.
6505         * modules/erfc: New file.
6506         * modules/exp: New file.
6507         * modules/fabs: New file.
6508         * modules/fmod: New file.
6509         * modules/hypot: New file.
6510         * modules/j0: New file.
6511         * modules/j1: New file.
6512         * modules/jn: New file.
6513         * modules/ldexp: New file.
6514         * modules/lgamma: New file.
6515         * modules/log: New file.
6516         * modules/log10: New file.
6517         * modules/log1p: New file.
6518         * modules/logb: New file.
6519         * modules/modf: New file.
6520         * modules/nextafter: New file.
6521         * modules/pow: New file.
6522         * modules/remainder: New file.
6523         * modules/rint: New file.
6524         * modules/sin: New file.
6525         * modules/sinh: New file.
6526         * modules/sqrt: New file.
6527         * modules/tan: New file.
6528         * modules/tanh: New file.
6529         * modules/y0: New file.
6530         * modules/y1: New file.
6531         * modules/yn: New file.
6532         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6533         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6534         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6535         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6536         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6537         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6538         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6539         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6540         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6541         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6542         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6543         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6544         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6545         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6546         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6547         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6548         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6549         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6550         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6551         * doc/posix-functions/log.texi: Mention the 'log' module.
6552         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6553         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6554         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6555         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6556         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6557         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6558         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6559         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6560         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6561         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6562         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6563         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6564         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6565         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6566         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6567         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6568
6569 2010-01-18  Jim Meyering  <meyering@redhat.com>
6570
6571         ignore-value: relax license to LGPLv2+
6572         * modules/ignore-value (License): Relax to LGPLv2+.
6573
6574         getdate: don't leak when TZ contains two or more '"'s
6575         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6576         double quote in TZ after the first one.
6577
6578         readtokens: do not leak internal token_lengths buffer
6579         * lib/readtokens.c (readtokens): Free the local, lengths,
6580         when the supplied "token_lengths" parameter is NULL.
6581
6582 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6583
6584         Fix a couple of missing LIBTHREAD link failures on AIX.
6585         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6586         $(LIBTHREAD).
6587         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6588
6589         Link test-poll against INET_PTON_LIB.
6590         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6591         for inet_pton on Solaris 10.
6592
6593 2010-01-17  Bruno Haible  <bruno@clisp.org>
6594
6595         unistdio/*-sprintf: Fix typo in module description.
6596         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6597         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6598         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6599         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6600         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6601         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6602         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6604
6605 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6606
6607         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6608         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6609         variables in shell case patterns, for AIX and HP-UX ksh.
6610
6611         Split large sed scripts, for HP-UX sed.
6612         * modules/stdio: Split sed scripts around 50 sed commands,
6613         to avoid HP-UX limit of 99 commands, in the near future.
6614         * modules/string: Likewise.
6615         * modules/unistd: Likewise.
6616
6617         gnulib-tool: avoid writing in the current directory.
6618         * gnulib-tool (func_emit_lib_Makefile_am)
6619         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6620         not in the current directory, so concurrent gnulib-tool
6621         instances do not interfere.
6622
6623 2010-01-16  Jim Meyering  <meyering@redhat.com>
6624
6625         doc: update users.txt
6626         * users.txt: Add grep.
6627         (diffutils, gzip): Update URLs.
6628
6629 2010-01-12  Bruno Haible  <bruno@clisp.org>
6630
6631         posix_spawn: Avoid test failure on Cygwin.
6632         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6633         characters.
6634         Reported by Simon Josefsson.
6635
6636 2010-01-12  Bruno Haible  <bruno@clisp.org>
6637
6638         * tests/test-cond.c (main): When skipping the test, show the reason.
6639
6640 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6641
6642         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6643
6644 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6645
6646         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6647         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6648
6649 2010-01-12  Eric Blake  <ebb9@byu.net>
6650
6651         build: guarantee AS_VAR_IF
6652         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6653         (gl_AS_VAR_IF): Move...
6654         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6655         Reported by Simon Josefsson.
6656
6657 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6658
6659         * lib/stdio.in.h: Fix typo.
6660
6661 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6662
6663         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6664         libgpg-error.
6665
6666 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6667
6668         * tests/test-xalloc-die.sh: Use $EXEEXT.
6669
6670 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6671             Bruno Haible  <bruno@clisp.org>
6672
6673         getlogin, getlogin_r: Avoid test failure.
6674         * tests/test-getlogin.c: Include <stdio.h>.
6675         (main): Skip the test when the function fails because stdin is not a
6676         tty.
6677         * tests/test-getlogin_r.c: Include <stdio.h>.
6678         (main): Skip the test when the function fails because stdin is not a
6679         tty.
6680
6681 2010-01-11  Eric Blake  <ebb9@byu.net>
6682
6683         tests: avoid more large file warnings
6684         * tests/test-fflush.c: Avoid warning about ftell use.
6685         * tests/test-fseek.c: Avoid warning about fseek use.
6686
6687 2010-01-10  Bruno Haible  <bruno@clisp.org>
6688
6689         nproc: Work better on Linux when /proc and /sys are not mounted.
6690         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6691         as lower bound when, on glibc/Linux systems,
6692         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6693         Suggested by Pádraig Brady <P@draigbrady.com>.
6694         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6695
6696         nproc: Refactor.
6697         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6698         extracted from num_processors.
6699         (num_processors): Call it.
6700
6701 2010-01-11  Jim Meyering  <meyering@redhat.com>
6702
6703         utimecmp: avoid new warning from upcoming gcc-4.5.0
6704         * lib/utimecmp.c (BILLION): Define using #define rather than an
6705         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6706
6707 2010-01-11  Eric Blake  <ebb9@byu.net>
6708
6709         math: add portability warnings for classification macros
6710         * modules/math (Depends-on): Add warn-on-use.
6711         (Makefile.am): Provide new substitutions.
6712         * m4/math_h.m4 (gl_MATH_H): Require inline.
6713         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6714         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6715         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6716         implement warnings.
6717
6718         unistd: warn on use of environ without module
6719         * modules/unistd (Depends-on): Add warn-on-use.
6720         (Makefile.am): Provide new substitutions.
6721         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6722         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6723
6724         stdio: warn on suspicious uses
6725         * modules/stdio (Depends-on): Add warn-on-use.
6726         (Makefile.am): Provide new substitutions.
6727         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6728         fseeko.
6729         * lib/stdio.in.h (gets): Always warn on use.
6730         (fseek, ftell): Adjust when warnings are issued, and honor
6731         _GL_NO_LARGE_FILES as a way to silence the warning.
6732         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6733         any warning about large file offsets.
6734         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6735         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6736         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6737         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6738         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6739         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6740         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6741         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6742
6743         warn-on-use: new module
6744         * modules/warn-on-use: New file.
6745         * build-aux/warn-on-use.h: Likewise.
6746         * m4/warn-on-use.m4: Likewise.
6747         * MODULES.html.sh (Support for building): Mention it.
6748
6749 2010-01-10  Bruno Haible  <bruno@clisp.org>
6750
6751         Tests for module 'unistr/u32-strdup'.
6752         * modules/unistr/u32-strdup-tests: New file.
6753         * tests/unistr/test-u32-strdup.c: New file.
6754
6755         Tests for module 'unistr/u16-strdup'.
6756         * modules/unistr/u16-strdup-tests: New file.
6757         * tests/unistr/test-u16-strdup.c: New file.
6758
6759         Tests for module 'unistr/u8-strdup'.
6760         * modules/unistr/u8-strdup-tests: New file.
6761         * tests/unistr/test-u8-strdup.c: New file.
6762         * tests/unistr/test-strdup.h: New file.
6763
6764         Tests for module 'unistr/u32-strncmp'.
6765         * modules/unistr/u32-strncmp-tests: New file.
6766         * tests/unistr/test-u32-strncmp.c: New file.
6767
6768         Tests for module 'unistr/u16-strncmp'.
6769         * modules/unistr/u16-strncmp-tests: New file.
6770         * tests/unistr/test-u16-strncmp.c: New file.
6771
6772         Tests for module 'unistr/u8-strncmp'.
6773         * modules/unistr/u8-strncmp-tests: New file.
6774         * tests/unistr/test-u8-strncmp.c: New file.
6775         * tests/unistr/test-strncmp.h: New file.
6776
6777         Tests for module 'unistr/u32-strcoll'.
6778         * modules/unistr/u32-strcoll-tests: New file.
6779         * tests/unistr/test-u32-strcoll.c: New file.
6780
6781         Tests for module 'unistr/u16-strcoll'.
6782         * modules/unistr/u16-strcoll-tests: New file.
6783         * tests/unistr/test-u16-strcoll.c: New file.
6784
6785         Tests for module 'unistr/u8-strcoll'.
6786         * modules/unistr/u8-strcoll-tests: New file.
6787         * tests/unistr/test-u8-strcoll.c: New file.
6788
6789         Tests for module 'unistr/u32-strcmp'.
6790         * modules/unistr/u32-strcmp-tests: New file.
6791         * tests/unistr/test-u32-strcmp.c: New file.
6792         * tests/unistr/test-u32-strcmp.h: New file.
6793
6794         Tests for module 'unistr/u16-strcmp'.
6795         * modules/unistr/u16-strcmp-tests: New file.
6796         * tests/unistr/test-u16-strcmp.c: New file.
6797         * tests/unistr/test-u16-strcmp.h: New file.
6798
6799         Tests for module 'unistr/u8-strcmp'.
6800         * modules/unistr/u8-strcmp-tests: New file.
6801         * tests/unistr/test-u8-strcmp.c: New file.
6802         * tests/unistr/test-u8-strcmp.h: New file.
6803         * tests/unistr/test-strcmp.h: New file.
6804
6805         Tests for module 'unistr/u32-strncat'.
6806         * modules/unistr/u32-strncat-tests: New file.
6807         * tests/unistr/test-u32-strncat.c: New file.
6808
6809         Tests for module 'unistr/u16-strncat'.
6810         * modules/unistr/u16-strncat-tests: New file.
6811         * tests/unistr/test-u16-strncat.c: New file.
6812
6813         Tests for module 'unistr/u8-strncat'.
6814         * modules/unistr/u8-strncat-tests: New file.
6815         * tests/unistr/test-u8-strncat.c: New file.
6816         * tests/unistr/test-strncat.h: New file.
6817
6818         Tests for module 'unistr/u32-strcat'.
6819         * modules/unistr/u32-strcat-tests: New file.
6820         * tests/unistr/test-u32-strcat.c: New file.
6821
6822         Tests for module 'unistr/u16-strcat'.
6823         * modules/unistr/u16-strcat-tests: New file.
6824         * tests/unistr/test-u16-strcat.c: New file.
6825
6826         Tests for module 'unistr/u8-strcat'.
6827         * modules/unistr/u8-strcat-tests: New file.
6828         * tests/unistr/test-u8-strcat.c: New file.
6829         * tests/unistr/test-strcat.h: New file.
6830
6831         Tests for module 'unistr/u32-stpncpy'.
6832         * modules/unistr/u32-stpncpy-tests: New file.
6833         * tests/unistr/test-u32-stpncpy.c: New file.
6834
6835         Tests for module 'unistr/u16-stpncpy'.
6836         * modules/unistr/u16-stpncpy-tests: New file.
6837         * tests/unistr/test-u16-stpncpy.c: New file.
6838
6839         Tests for module 'unistr/u8-stpncpy'.
6840         * modules/unistr/u8-stpncpy-tests: New file.
6841         * tests/unistr/test-u8-stpncpy.c: New file.
6842         * tests/unistr/test-stpncpy.h: New file.
6843
6844         Tests for module 'unistr/u32-strncpy'.
6845         * modules/unistr/u32-strncpy-tests: New file.
6846         * tests/unistr/test-u32-strncpy.c: New file.
6847
6848         Tests for module 'unistr/u16-strncpy'.
6849         * modules/unistr/u16-strncpy-tests: New file.
6850         * tests/unistr/test-u16-strncpy.c: New file.
6851
6852         Tests for module 'unistr/u8-strncpy'.
6853         * modules/unistr/u8-strncpy-tests: New file.
6854         * tests/unistr/test-u8-strncpy.c: New file.
6855         * tests/unistr/test-strncpy.h: New file.
6856
6857         Tests for module 'unistr/u32-stpcpy'.
6858         * modules/unistr/u32-stpcpy-tests: New file.
6859         * tests/unistr/test-u32-stpcpy.c: New file.
6860
6861         Tests for module 'unistr/u16-stpcpy'.
6862         * modules/unistr/u16-stpcpy-tests: New file.
6863         * tests/unistr/test-u16-stpcpy.c: New file.
6864
6865         Tests for module 'unistr/u8-stpcpy'.
6866         * modules/unistr/u8-stpcpy-tests: New file.
6867         * tests/unistr/test-u8-stpcpy.c: New file.
6868         * tests/unistr/test-stpcpy.h: New file.
6869
6870         Tests for module 'unistr/u32-strcpy'.
6871         * modules/unistr/u32-strcpy-tests: New file.
6872         * tests/unistr/test-u32-strcpy.c: New file.
6873
6874         Tests for module 'unistr/u16-strcpy'.
6875         * modules/unistr/u16-strcpy-tests: New file.
6876         * tests/unistr/test-u16-strcpy.c: New file.
6877
6878         Tests for module 'unistr/u8-strcpy'.
6879         * modules/unistr/u8-strcpy-tests: New file.
6880         * tests/unistr/test-u8-strcpy.c: New file.
6881         * tests/unistr/test-strcpy.h: New file.
6882
6883         Tests for module 'unistr/u32-strnlen'.
6884         * modules/unistr/u32-strnlen-tests: New file.
6885         * tests/unistr/test-u32-strnlen.c: New file.
6886
6887         Tests for module 'unistr/u16-strnlen'.
6888         * modules/unistr/u16-strnlen-tests: New file.
6889         * tests/unistr/test-u16-strnlen.c: New file.
6890
6891         Tests for module 'unistr/u8-strnlen'.
6892         * modules/unistr/u8-strnlen-tests: New file.
6893         * tests/unistr/test-u8-strnlen.c: New file.
6894         * tests/unistr/test-strnlen.h: New file.
6895
6896         Tests for module 'unistr/u32-strlen'.
6897         * modules/unistr/u32-strlen-tests: New file.
6898         * tests/unistr/test-u32-strlen.c: New file.
6899
6900         Tests for module 'unistr/u16-strlen'.
6901         * modules/unistr/u16-strlen-tests: New file.
6902         * tests/unistr/test-u16-strlen.c: New file.
6903
6904         Tests for module 'unistr/u8-strlen'.
6905         * modules/unistr/u8-strlen-tests: New file.
6906         * tests/unistr/test-u8-strlen.c: New file.
6907
6908         Tests for module 'unistr/u32-prev'.
6909         * modules/unistr/u32-prev-tests: New file.
6910         * tests/unistr/test-u32-prev.c: New file.
6911
6912         Tests for module 'unistr/u16-prev'.
6913         * modules/unistr/u16-prev-tests: New file.
6914         * tests/unistr/test-u16-prev.c: New file.
6915
6916         Tests for module 'unistr/u8-prev'.
6917         * modules/unistr/u8-prev-tests: New file.
6918         * tests/unistr/test-u8-prev.c: New file.
6919
6920         Tests for module 'unistr/u32-next'.
6921         * modules/unistr/u32-next-tests: New file.
6922         * tests/unistr/test-u32-next.c: New file.
6923
6924         Tests for module 'unistr/u16-next'.
6925         * modules/unistr/u16-next-tests: New file.
6926         * tests/unistr/test-u16-next.c: New file.
6927
6928         Tests for module 'unistr/u8-next'.
6929         * modules/unistr/u8-next-tests: New file.
6930         * tests/unistr/test-u8-next.c: New file.
6931
6932         Tests for module 'unistr/u32-strmbtouc'.
6933         * modules/unistr/u32-strmbtouc-tests: New file.
6934         * tests/unistr/test-u32-strmbtouc.c: New file.
6935
6936         Tests for module 'unistr/u16-strmbtouc'.
6937         * modules/unistr/u16-strmbtouc-tests: New file.
6938         * tests/unistr/test-u16-strmbtouc.c: New file.
6939
6940         Tests for module 'unistr/u8-strmbtouc'.
6941         * modules/unistr/u8-strmbtouc-tests: New file.
6942         * tests/unistr/test-u8-strmbtouc.c: New file.
6943
6944         Tests for module 'unistr/u32-strmblen'.
6945         * modules/unistr/u32-strmblen-tests: New file.
6946         * tests/unistr/test-u32-strmblen.c: New file.
6947
6948         Tests for module 'unistr/u16-strmblen'.
6949         * modules/unistr/u16-strmblen-tests: New file.
6950         * tests/unistr/test-u16-strmblen.c: New file.
6951
6952         Tests for module 'unistr/u8-strmblen'.
6953         * modules/unistr/u8-strmblen-tests: New file.
6954         * tests/unistr/test-u8-strmblen.c: New file.
6955
6956         Tests for module 'unistr/u32-cpy-alloc'.
6957         * modules/unistr/u32-cpy-alloc-tests: New file.
6958         * tests/unistr/test-u32-cpy-alloc.c: New file.
6959
6960         Tests for module 'unistr/u16-cpy-alloc'.
6961         * modules/unistr/u16-cpy-alloc-tests: New file.
6962         * tests/unistr/test-u16-cpy-alloc.c: New file.
6963
6964         Tests for module 'unistr/u8-cpy-alloc'.
6965         * modules/unistr/u8-cpy-alloc-tests: New file.
6966         * tests/unistr/test-u8-cpy-alloc.c: New file.
6967         * tests/unistr/test-cpy-alloc.h: New file.
6968
6969         Tests for module 'unistr/u32-mbsnlen'.
6970         * modules/unistr/u32-mbsnlen-tests: New file.
6971         * tests/unistr/test-u32-mbsnlen.c: New file.
6972
6973         Tests for module 'unistr/u16-mbsnlen'.
6974         * modules/unistr/u16-mbsnlen-tests: New file.
6975         * tests/unistr/test-u16-mbsnlen.c: New file.
6976
6977         Tests for module 'unistr/u8-mbsnlen'.
6978         * modules/unistr/u8-mbsnlen-tests: New file.
6979         * tests/unistr/test-u8-mbsnlen.c: New file.
6980
6981         Tests for module 'unistr/u32-chr'.
6982         * modules/unistr/u32-chr-tests: New file.
6983         * tests/unistr/test-u32-chr.c: New file.
6984
6985         Tests for module 'unistr/u16-chr'.
6986         * modules/unistr/u16-chr-tests: New file.
6987         * tests/unistr/test-u16-chr.c: New file.
6988
6989         Tests for module 'unistr/u8-chr'.
6990         * modules/unistr/u8-chr-tests: New file.
6991         * tests/unistr/test-u8-chr.c: New file.
6992         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
6993
6994         Tests for module 'unistr/u32-cmp2'.
6995         * modules/unistr/u32-cmp2-tests: New file.
6996         * tests/unistr/test-u32-cmp2.c: New file.
6997
6998         Tests for module 'unistr/u16-cmp2'.
6999         * modules/unistr/u16-cmp2-tests: New file.
7000         * tests/unistr/test-u16-cmp2.c: New file.
7001
7002         Tests for module 'unistr/u8-cmp2'.
7003         * modules/unistr/u8-cmp2-tests: New file.
7004         * tests/unistr/test-u8-cmp2.c: New file.
7005         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7006
7007         Tests for module 'unistr/u32-cmp'.
7008         * modules/unistr/u32-cmp-tests: New file.
7009         * tests/unistr/test-u32-cmp.c: New file.
7010
7011         Tests for module 'unistr/u16-cmp'.
7012         * modules/unistr/u16-cmp-tests: New file.
7013         * tests/unistr/test-u16-cmp.c: New file.
7014
7015         Tests for module 'unistr/u8-cmp'.
7016         * modules/unistr/u8-cmp-tests: New file.
7017         * tests/unistr/test-u8-cmp.c: New file.
7018         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7019
7020         Tests for module 'unistr/u32-set'.
7021         * modules/unistr/u32-set-tests: New file.
7022         * tests/unistr/test-u32-set.c: New file.
7023
7024         Tests for module 'unistr/u16-set'.
7025         * modules/unistr/u16-set-tests: New file.
7026         * tests/unistr/test-u16-set.c: New file.
7027
7028         Tests for module 'unistr/u8-set'.
7029         * modules/unistr/u8-set-tests: New file.
7030         * tests/unistr/test-u8-set.c: New file.
7031         * tests/unistr/test-set.h: New file.
7032
7033         Tests for module 'unistr/u32-move'.
7034         * modules/unistr/u32-move-tests: New file.
7035         * tests/unistr/test-u32-move.c: New file.
7036
7037         Tests for module 'unistr/u16-move'.
7038         * modules/unistr/u16-move-tests: New file.
7039         * tests/unistr/test-u16-move.c: New file.
7040
7041         Tests for module 'unistr/u8-move'.
7042         * modules/unistr/u8-move-tests: New file.
7043         * tests/unistr/test-u8-move.c: New file.
7044         * tests/unistr/test-move.h: New file.
7045
7046         Tests for module 'unistr/u32-cpy'.
7047         * modules/unistr/u32-cpy-tests: New file.
7048         * tests/unistr/test-u32-cpy.c: New file.
7049
7050         Tests for module 'unistr/u16-cpy'.
7051         * modules/unistr/u16-cpy-tests: New file.
7052         * tests/unistr/test-u16-cpy.c: New file.
7053
7054         Tests for module 'unistr/u8-cpy'.
7055         * modules/unistr/u8-cpy-tests: New file.
7056         * tests/unistr/test-u8-cpy.c: New file.
7057         * tests/unistr/test-cpy.h: New file.
7058
7059 2010-01-09  Bruno Haible  <bruno@clisp.org>
7060
7061         Tests for module 'unistr/u32-uctomb'.
7062         * modules/unistr/u32-uctomb-tests: New file.
7063         * tests/unistr/test-u32-uctomb.c: New file.
7064
7065         Tests for module 'unistr/u16-uctomb'.
7066         * modules/unistr/u16-uctomb-tests: New file.
7067         * tests/unistr/test-u16-uctomb.c: New file.
7068
7069         Tests for module 'unistr/u8-uctomb'.
7070         * modules/unistr/u8-uctomb-tests: New file.
7071         * tests/unistr/test-u8-uctomb.c: New file.
7072
7073         Tests for module 'unistr/u32-mbtoucr'.
7074         * modules/unistr/u32-mbtoucr-tests: New file.
7075         * tests/unistr/test-u32-mbtoucr.c: New file.
7076
7077         Tests for module 'unistr/u16-mbtoucr'.
7078         * modules/unistr/u16-mbtoucr-tests: New file.
7079         * tests/unistr/test-u16-mbtoucr.c: New file.
7080
7081         Tests for module 'unistr/u8-mbtoucr'.
7082         * modules/unistr/u8-mbtoucr-tests: New file.
7083         * tests/unistr/test-u8-mbtoucr.c: New file.
7084
7085         Tests for module 'unistr/u32-mbtouc'.
7086         * modules/unistr/u32-mbtouc-tests: New file.
7087         * tests/unistr/test-u32-mbtouc.c: New file.
7088
7089         Tests for module 'unistr/u16-mbtouc'.
7090         * modules/unistr/u16-mbtouc-tests: New file.
7091         * tests/unistr/test-u16-mbtouc.c: New file.
7092
7093         Tests for module 'unistr/u8-mbtouc'.
7094         * modules/unistr/u8-mbtouc-tests: New file.
7095         * tests/unistr/test-u8-mbtouc.c: New file.
7096
7097         Tests for module 'unistr/u32-mbtouc-unsafe'.
7098         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7099         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7100         * tests/unistr/test-u32-mbtouc.h: New file.
7101
7102         Tests for module 'unistr/u16-mbtouc-unsafe'.
7103         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7104         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7105         * tests/unistr/test-u16-mbtouc.h: New file.
7106
7107         Tests for module 'unistr/u8-mbtouc-unsafe'.
7108         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7109         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7110         * tests/unistr/test-u8-mbtouc.h: New file.
7111
7112         Tests for module 'unistr/u32-mblen'.
7113         * modules/unistr/u32-mblen-tests: New file.
7114         * tests/unistr/test-u32-mblen.c: New file.
7115
7116         Tests for module 'unistr/u16-mblen'.
7117         * modules/unistr/u16-mblen-tests: New file.
7118         * tests/unistr/test-u16-mblen.c: New file.
7119
7120         Tests for module 'unistr/u8-mblen'.
7121         * modules/unistr/u8-mblen-tests: New file.
7122         * tests/unistr/test-u8-mblen.c: New file.
7123
7124         Tests for module 'unistr/u32-to-u16'.
7125         * modules/unistr/u32-to-u16-tests: New file.
7126         * tests/unistr/test-u32-to-u16.c: New file.
7127
7128         Tests for module 'unistr/u32-to-u8'.
7129         * modules/unistr/u32-to-u8-tests: New file.
7130         * tests/unistr/test-u32-to-u8.c: New file.
7131
7132         Tests for module 'unistr/u16-to-u32'.
7133         * modules/unistr/u16-to-u32-tests: New file.
7134         * tests/unistr/test-u16-to-u32.c: New file.
7135
7136         Tests for module 'unistr/u16-to-u8'.
7137         * modules/unistr/u16-to-u8-tests: New file.
7138         * tests/unistr/test-u16-to-u8.c: New file.
7139
7140         Tests for module 'unistr/u8-to-u32'.
7141         * modules/unistr/u8-to-u32-tests: New file.
7142         * tests/unistr/test-u8-to-u32.c: New file.
7143
7144         Tests for module 'unistr/u8-to-u16'.
7145         * modules/unistr/u8-to-u16-tests: New file.
7146         * tests/unistr/test-u8-to-u16.c: New file.
7147
7148         Tests for module 'unistr/u32-check'.
7149         * modules/unistr/u32-check-tests: New file.
7150         * tests/unistr/test-u32-check.c: New file.
7151
7152         Tests for module 'unistr/u16-check'.
7153         * modules/unistr/u16-check-tests: New file.
7154         * tests/unistr/test-u16-check.c: New file.
7155
7156         Tests for module 'unistr/u8-check'.
7157         * modules/unistr/u8-check-tests: New file.
7158         * tests/unistr/test-u8-check.c: New file.
7159
7160         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7161         (category_equals): New function.
7162         (main): Add more tests.
7163         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7164
7165         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7166
7167 2010-01-10  Bruno Haible  <bruno@clisp.org>
7168
7169         unistr/u*-strcoll: Try harder to distinguish different strings.
7170         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7171         compare s1 and s2 to see if they are different.
7172
7173 2010-01-10  Bruno Haible  <bruno@clisp.org>
7174
7175         unistr/u*-stpncpy: Fix the return value.
7176         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7177         description of the return value consistent with stpncpy in glibc.
7178         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7179         written non-NUL unit.
7180
7181 2010-01-10  Bruno Haible  <bruno@clisp.org>
7182
7183         unistr/u*-next: Add missing dependencies.
7184         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7185         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7186         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7187
7188 2010-01-10  Bruno Haible  <bruno@clisp.org>
7189
7190         unistr/u8-mbsnlen: Fix return value for incomplete character.
7191         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7192         u8_mblen.
7193         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7194         Remove unistr/u8-mblen.
7195         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7196         u16_mblen.
7197         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7198         Remove unistr/u16-mblen.
7199
7200 2010-01-10  Bruno Haible  <bruno@clisp.org>
7201
7202         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7203         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7204         Reported by Brian Gough <bjg@gnu.org> and
7205         Chris Clayton <chris2553@googlemail.com> via
7206         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7207
7208 2010-01-09  Bruno Haible  <bruno@clisp.org>
7209
7210         unistr/u16-to-u32: Reject invalid input.
7211         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7212         u16_mbtouc.
7213         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7214         Remove unistr/u16-mbtouc.
7215
7216         unistr/u16-to-u8: Reject invalid input.
7217         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7218         u16_mbtouc.
7219         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7220         Remove unistr/u16-mbtouc.
7221
7222         unistr/u8-to-u32: Reject invalid input.
7223         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7224         u8_mbtouc.
7225         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7226         Remove unistr/u8-mbtouc.
7227
7228         unistr/u8-to-u16: Reject invalid input.
7229         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7230         u8_mbtouc.
7231         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7232         Remove unistr/u8-mbtouc.
7233
7234 2010-01-09  Bruno Haible  <bruno@clisp.org>
7235
7236         Tests for module 'getlogin'.
7237         * modules/getlogin-tests: New file.
7238         * tests/test-getlogin.c: New file.
7239
7240         New module 'getlogin'.
7241         * lib/unistd.in.h (getlogin): New declaration.
7242         * lib/getlogin.c: New file.
7243         * m4/getlogin.m4: New file.
7244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7245         HAVE_GETLOGIN.
7246         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7247         HAVE_GETLOGIN.
7248         * modules/getlogin: New file.
7249         * doc/posix-functions/getlogin.texi: Mention the new module.
7250         Reported by John W. Eaton <jwe@gnu.org>.
7251
7252 2010-01-09  Bruno Haible  <bruno@clisp.org>
7253
7254         getlogin_r: Support for native Windows.
7255         * lib/getlogin_r.c: Include <windows.h>
7256         (getlogin_r): Implement for native Windows.
7257         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7258         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7259         via John W. Eaton <jwe@gnu.org>.
7260
7261 2010-01-09  Bruno Haible  <bruno@clisp.org>
7262
7263         getlogin_r: Small fixes.
7264         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7265         succeeds.
7266         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7267         before testing whether getlogin_r is declared. No need to set
7268         HAVE_DECL_GETLOGIN_R to 1.
7269         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7270
7271 2010-01-09  Bruno Haible  <bruno@clisp.org>
7272
7273         * lib/unistd.in.h (getlogin_r): Add comment.
7274
7275 2010-01-09  Bruno Haible  <bruno@clisp.org>
7276
7277         Tests for module 'getlogin_r'.
7278         * modules/getlogin_r-tests: New file.
7279         * tests/test-getlogin_r.c: New file.
7280
7281 2010-01-09  Jim Meyering  <meyering@redhat.com>
7282
7283         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7284         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7285         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7286
7287 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7288
7289         * lib/dup2.c (rpl_dup2): Improve comment.
7290
7291 2010-01-08  Eric Blake  <ebb9@byu.net>
7292
7293         maint.mk: allow packages to add makefile @@ exceptions
7294         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7295         (sc_makefile_check): Rename...
7296         (sc_makefile_at_at_check): ...to this, and use hook.
7297
7298         dup2: work around mingw bug
7299         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7300         Reported by Simon Josefsson.
7301
7302 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7303
7304         glob: Fix C++ compilation.
7305         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7306         C++.
7307
7308 2010-01-07  Bruno Haible  <bruno@clisp.org>
7309
7310         Fix indentation of wctype.in.h, broken since 2007-01-06.
7311         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7312
7313 2010-01-07  Bruno Haible  <bruno@clisp.org>
7314
7315         mbslen: Avoid collision with system function.
7316         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7317         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7318         * m4/mbslen.m4: New file.
7319         * modules/mbslen (Files): Add it.
7320         (configure.ac): Invoke gl_MBSLEN.
7321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7322         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7323         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7324         via Ian Beckwith <ianb@erislabs.net>.
7325
7326 2010-01-07  Bruno Haible  <bruno@clisp.org>
7327
7328         dirent: Document the last fix.
7329         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7330
7331 2010-01-07  Bruno Haible  <bruno@clisp.org>
7332
7333         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7334         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7335         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7336         va_list are defined.
7337         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7338         Reported by Eric Blake.
7339
7340 2010-01-07  Bruno Haible  <bruno@clisp.org>
7341
7342         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7343         * modules/xlist (Depends-on): Add 'list',
7344         * modules/xoset (Depends-on): Add 'oset'.
7345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7346
7347 2010-01-07  Bruno Haible  <bruno@clisp.org>
7348
7349         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7350         * doc/posix-functions/strncasecmp.texi: Likewise.
7351
7352 2010-01-07  Bruno Haible  <bruno@clisp.org>
7353
7354         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7355
7356 2010-01-07  John W. Eaton  <jwe@octave.org>
7357
7358         wctype: allow C++ use
7359         * lib/wctype.in.h: Add extern "C" block for C++.
7360
7361 2010-01-06  Eric Blake  <ebb9@byu.net>
7362
7363         maint.mk: detect incorrect GFDL usage
7364         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7365
7366 2010-01-06  Jim Meyering  <meyering@redhat.com>
7367         and Eric Blake  <ebb9@byu.net>
7368
7369         maint.mk: ignore multi-line copyright in NEWS
7370         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7371
7372 2010-01-06  Eric Blake  <ebb9@byu.net>
7373
7374         select: add missing dependency
7375         * modules/select-tests (Depends-on): Move sockets dependency...
7376         * modules/select (Depends-on): ...here.
7377         Reported by Ian Beckwith.
7378
7379         doc: regenerate INSTALL
7380         * doc/INSTALL: Reflect recent autoconf update.
7381         * doc/INSTALL.ISO: Likewise.
7382         * doc/INSTALL.UTF-8: Likewise.
7383
7384         pread: fix compilation on glibc
7385         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7386         Reported by Ralf Wildenhues.
7387
7388         dirent: fix test failure
7389         * lib/dirent.in.h (includes): Guarantee ino_t.
7390         Reported by Ralf Wildenhues.
7391
7392 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7393
7394         linkat, renameat: avoid bad free
7395         * lib/at-func2.c (at_func2): Fix typo.
7396         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7397
7398 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7399
7400         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7401         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7402         to avoid failure of symlink test later.
7403
7404 2010-01-06  Eric Blake  <ebb9@byu.net>
7405
7406         stdio, unistd: guarantee ssize_t
7407         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7408         2008 are exposed when needed.
7409         * lib/stdio.in.h (includes): Likewise.
7410         Reported by Ralf Wildenhues.
7411
7412 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7413
7414         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7415         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7416         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7417
7418 2010-01-06  Jim Meyering  <meyering@redhat.com>
7419
7420         readtokens: this module *does* require xalloc.h
7421         It uses only functions that were omitted by the old syntax-check rule.
7422         * lib/readtokens.c: Include "xalloc.h" once again.
7423         * modules/readtokens (Depends-on): Add xalloc.
7424         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7425
7426 2010-01-05  Eric Blake  <ebb9@byu.net>
7427
7428         maint: support 'make announcement' from a VPATH build
7429         * top/maint.mk (announcement): Look for correct NEWS file.
7430
7431 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7432
7433         utimens (fdutimens): ignore a negative FD, per contract
7434         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7435         when we have a valid file descriptor.  Otherwise, using a brand
7436         new glibc (with just-patched futimens that now fails with EBADF)
7437         would cause this function to fail with ENOSYS.
7438         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7439         See also http://bugzilla.redhat.com/552320.
7440
7441 2010-01-05  Eric Blake  <ebb9@byu.net>
7442
7443         strcase: document what it provides
7444         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7445         gnulib module.
7446         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7447         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7448
7449 2010-01-05  Jim Meyering  <meyering@redhat.com>
7450
7451         maint: remove useless inclusions of "xalloc.h"
7452         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7453         * lib/readtokens.c: Likewise.
7454         * lib/same.c: Likewise.
7455         * modules/getloadavg (Depends-on): Remove xalloc.
7456         * modules/readtokens: Likewise.
7457         * modules/same: Likewise.
7458
7459         maint.mk: include 4 more function names in alloca.h-checking regexp
7460         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7461         regexp.  Before, we would give a false-positive (saying alloca.h
7462         is included unnecessarily) when the only uses involved omitted symbols.
7463
7464         xalloc.h: use consistent formatting
7465         * lib/xalloc.h: Move declarations to start in the first column.
7466
7467 2010-01-05  Eric Blake  <ebb9@byu.net>
7468
7469         mkdir: avoid xalloc
7470         * lib/mkdir.c (includes): Drop unused header.
7471         Reported by John W. Eaton.
7472
7473 2010-01-04  Jim Meyering  <meyering@redhat.com>
7474
7475         nl_langinfo: avoid configure-time syntax error
7476         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7477         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7478         the empty string.  Don't let that provoke a shell syntax error.
7479
7480         regcomp, regexec, fnmatch: avoid array bounds read error
7481         * lib/regcomp.c (build_equiv_class): From glibc:
7482         Use only the low 24 bits of a findidx return value as an index
7483         into the weights array.  Patch by Ulrich Drepper:
7484         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7485         * lib/regexec.c (check_node_accept_bytes): Likewise.
7486         * lib/fnmatch_loop.c (FCT): Likewise.
7487
7488         regcomp: skip collseq lookup when there are no rules
7489         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7490         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7491
7492         regcomp: recognize ill-formed { } expressions
7493         * lib/regcomp.c (parse_dup_op): From glibc:
7494         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7495
7496         regcomp: fix typo in comment
7497         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7498         s/satisfy/satisfies/.
7499
7500         regcomp: sync from glibc: remove dead store
7501         * lib/regcomp.c (duplicate_node_closure): Remove useless
7502         search_duplicated_node call and dead store.
7503
7504         regcomp: sync from glibc; always use nl_langinfo
7505         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7506         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7507         * modules/regex (Depends-on): Add nl_langinfo.
7508
7509 2010-01-04  Eric Blake  <ebb9@byu.net>
7510
7511         fdopendir: fix configure test
7512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7513
7514 2010-01-01  Bruno Haible  <bruno@clisp.org>
7515
7516         wchar: Remove unused configure check.
7517         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7518
7519 2010-01-01  Eric Blake  <ebb9@byu.net>
7520
7521         headers: make check of system header explicit
7522         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7523         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7524         ourselves.
7525         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7528         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7529         internals.
7530         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7531         missing.
7532         Suggested by Bruno Haible.
7533
7534 2010-01-01  Jim Meyering  <meyering@redhat.com>
7535
7536         ChangeLog: tweak to eliminate unnecessary copyright line
7537         * ChangeLog: Remove a copyright line that was mistakenly updated
7538         by today's update-copyright run.  Reported by Eric Blake.
7539
7540         test-update-copyright: don't let envvar setting cause test failure
7541         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7542
7543 2010-01-01  Bruno Haible  <bruno@clisp.org>
7544
7545         localename: Avoid gcc warning.
7546         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7547         function if it is not used.
7548
7549 2010-01-01  Jim Meyering  <meyering@redhat.com>
7550
7551         update nearly all FSF copyright year lists to include 2010
7552         Use the same procedure as for 2009, outlined in
7553         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7554
7555         version-etc: set COPYRIGHT_YEAR to 2010
7556         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7557
7558 2009-12-31  Eric Blake  <ebb9@byu.net>
7559
7560         doc: correct availability of cygwin 1.5.x getopt
7561         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7562         variables.
7563         * doc/posix-functions/opterr.texi (opterr): Likewise.
7564         * doc/posix-functions/optind.texi (optind): Likewise.
7565         * doc/posix-functions/optopt.texi (optopt): Likewise.
7566         * doc/posix-functions/tzname.texi (tzname): Likewise.
7567
7568         openat: update maintainer
7569         * modules/openat (Maintainer): Add myself.
7570
7571         utimens: avoid shadowing warning
7572         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7573         buffers into one, to avoid shadowing, as well as avoiding a
7574         redundant stat.
7575         Reported by Jim Meyering.
7576
7577         test-dup2: avoid compiler warning
7578         * tests/test-dup2.c (is_inheritable): Only define if used.
7579
7580 2010-01-01  Bruno Haible  <bruno@clisp.org>
7581
7582         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7583         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7584         defined, use wctomb instead of wcrtomb.
7585
7586 2010-01-01  Bruno Haible  <bruno@clisp.org>
7587
7588         iconv: Reject native Solaris iconv.
7589         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7590         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7591
7592 2009-12-31  Bruno Haible  <bruno@clisp.org>
7593
7594         * tests/test-signal.c (main): Remove test of 'SIG'.
7595
7596 2009-12-31  Bruno Haible  <bruno@clisp.org>
7597
7598         spawn: Fix incomplete fix.
7599         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7600         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7601         warnings for GNULIB_POSIXCHECK again.
7602         Reported by Eric Blake.
7603
7604 2009-12-31  Bruno Haible  <bruno@clisp.org>
7605
7606         Avoid namespace pollution on glibc systems.
7607         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7608         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7609         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7610         glibc systems.
7611
7612 2009-12-31  Bruno Haible  <bruno@clisp.org>
7613
7614         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7615         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7616         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7617         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7618         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7619         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7620         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7621
7622 2009-12-31  Bruno Haible  <bruno@clisp.org>
7623
7624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7625         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7626         afterwards.
7627
7628 2009-12-31  Bruno Haible  <bruno@clisp.org>
7629
7630         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7631         SYS_UTSNAME_H.
7632
7633 2009-12-31  Bruno Haible  <bruno@clisp.org>
7634
7635         spawn: Fix misapplied patch.
7636         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7637         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7638         warnings for GNULIB_POSIXCHECK.
7639
7640 2009-12-31  Bruno Haible  <bruno@clisp.org>
7641
7642         times: Update after sys_times changed.
7643         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7644         * modules/times (Files): Add it.
7645         (configure.ac): Invoke gl_FUNC_TIMES.
7646
7647 2009-12-31  Bruno Haible  <bruno@clisp.org>
7648
7649         Use AC_C_INLINE where necessary.
7650         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7653         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7654         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7655         * m4/mbiter.m4 (gl_MBITER): Likewise.
7656         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7657         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7658         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7659         * modules/u64 (configure.ac): Likewise.
7660
7661 2009-12-31  Bruno Haible  <bruno@clisp.org>
7662
7663         Use AC_C_INLINE instead of module 'inline' where possible.
7664         * modules/inline (Description): Clarify purpose.
7665         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7666         * modules/count-one-bits (Depends-on): Remove inline.
7667         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7668         * modules/openat (Depends-on): Remove inline.
7669         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7670         instead of depending on module 'inline'.
7671         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7672         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7673         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7674         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7675         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7676         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7677         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7678         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7679         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7680         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7681         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7682         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7683         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7684         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7685         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7686         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7687         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7688         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7689         Likewise.
7690         * modules/unictype/property-ascii-hex-digit (Depends-on,
7691         configure.ac): Likewise.
7692         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7693         configure.ac): Likewise.
7694         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7695         configure.ac): Likewise.
7696         * modules/unictype/property-bidi-block-separator (Depends-on,
7697         configure.ac): Likewise.
7698         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7699         configure.ac): Likewise.
7700         * modules/unictype/property-bidi-common-separator (Depends-on,
7701         configure.ac): Likewise.
7702         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7703         Likewise.
7704         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7705         configure.ac): Likewise.
7706         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7707         configure.ac): Likewise.
7708         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7709         configure.ac): Likewise.
7710         * modules/unictype/property-bidi-european-digit (Depends-on,
7711         configure.ac): Likewise.
7712         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7713         configure.ac): Likewise.
7714         * modules/unictype/property-bidi-left-to-right (Depends-on,
7715         configure.ac): Likewise.
7716         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7717         configure.ac): Likewise.
7718         * modules/unictype/property-bidi-other-neutral (Depends-on,
7719         configure.ac): Likewise.
7720         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7721         Likewise.
7722         * modules/unictype/property-bidi-segment-separator (Depends-on,
7723         configure.ac): Likewise.
7724         * modules/unictype/property-bidi-whitespace (Depends-on,
7725         configure.ac): Likewise.
7726         * modules/unictype/property-combining (Depends-on, configure.ac):
7727         Likewise.
7728         * modules/unictype/property-composite (Depends-on, configure.ac):
7729         Likewise.
7730         * modules/unictype/property-currency-symbol (Depends-on,
7731         configure.ac): Likewise.
7732         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7733         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7734         Likewise.
7735         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7736         configure.ac): Likewise.
7737         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7738         Likewise.
7739         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7740         Likewise.
7741         * modules/unictype/property-extender (Depends-on, configure.ac):
7742         Likewise.
7743         * modules/unictype/property-format-control (Depends-on, configure.ac):
7744         Likewise.
7745         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7746         Likewise.
7747         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7748         Likewise.
7749         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7750         Likewise.
7751         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7752         Likewise.
7753         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7754         Likewise.
7755         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7756         Likewise.
7757         * modules/unictype/property-id-start (Depends-on, configure.ac):
7758         Likewise.
7759         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7760         Likewise.
7761         * modules/unictype/property-ids-binary-operator (Depends-on,
7762         configure.ac): Likewise.
7763         * modules/unictype/property-ids-trinary-operator (Depends-on,
7764         configure.ac): Likewise.
7765         * modules/unictype/property-ignorable-control (Depends-on,
7766         configure.ac): Likewise.
7767         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7768         Likewise.
7769         * modules/unictype/property-join-control (Depends-on, configure.ac):
7770         Likewise.
7771         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7772         Likewise.
7773         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7774         Likewise.
7775         * modules/unictype/property-logical-order-exception (Depends-on,
7776         configure.ac): Likewise.
7777         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7778         Likewise.
7779         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7780         * modules/unictype/property-non-break (Depends-on, configure.ac):
7781         Likewise.
7782         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7783         Likewise.
7784         * modules/unictype/property-numeric (Depends-on, configure.ac):
7785         Likewise.
7786         * modules/unictype/property-other-alphabetic (Depends-on,
7787         configure.ac): Likewise.
7788         * modules/unictype/property-other-default-ignorable-code-point
7789         (Depends-on, configure.ac): Likewise.
7790         * modules/unictype/property-other-grapheme-extend (Depends-on,
7791         configure.ac): Likewise.
7792         * modules/unictype/property-other-id-continue (Depends-on,
7793         configure.ac): Likewise.
7794         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7795         Likewise.
7796         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7797         Likewise.
7798         * modules/unictype/property-other-math (Depends-on, configure.ac):
7799         Likewise.
7800         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7801         Likewise.
7802         * modules/unictype/property-paired-punctuation (Depends-on,
7803         configure.ac): Likewise.
7804         * modules/unictype/property-paragraph-separator (Depends-on,
7805         configure.ac): Likewise.
7806         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7807         Likewise.
7808         * modules/unictype/property-pattern-white-space (Depends-on,
7809         configure.ac): Likewise.
7810         * modules/unictype/property-private-use (Depends-on, configure.ac):
7811         Likewise.
7812         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7813         Likewise.
7814         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7815         Likewise.
7816         * modules/unictype/property-radical (Depends-on, configure.ac):
7817         Likewise.
7818         * modules/unictype/property-sentence-terminal (Depends-on,
7819         configure.ac): Likewise.
7820         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7821         Likewise.
7822         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7823         * modules/unictype/property-terminal-punctuation (Depends-on,
7824         configure.ac): Likewise.
7825         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7826         Likewise.
7827         * modules/unictype/property-unassigned-code-value (Depends-on,
7828         configure.ac): Likewise.
7829         * modules/unictype/property-unified-ideograph (Depends-on,
7830         configure.ac): Likewise.
7831         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7832         Likewise.
7833         * modules/unictype/property-variation-selector (Depends-on,
7834         configure.ac): Likewise.
7835         * modules/unictype/property-white-space (Depends-on, configure.ac):
7836         Likewise.
7837         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7838         Likewise.
7839         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7840         Likewise.
7841         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7842         Likewise.
7843         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7844         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7845         Likewise.
7846
7847 2009-12-31  Bruno Haible  <bruno@clisp.org>
7848
7849         Remove unnecessary AC_C_INLINE invocation.
7850         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7851         since 2009-08-21.
7852
7853 2009-12-31  Jim Meyering  <meyering@redhat.com>
7854
7855         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7856         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7857         With this change, we can all remove the gpg_key_ID = ... definition
7858         from our respective cfg.mk files.
7859
7860         maint.mk: create announcement template in ~/, not in /tmp
7861         * top/maint.mk (emit_upload_commands): Adjust.
7862         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7863         Remove temporary file, .ci-msg.
7864
7865 2009-12-31  Eric Blake  <ebb9@byu.net>
7866
7867         link-warning: always build headers with link warnings
7868         * modules/arpa_inet (Makefile.am): Always build replacement
7869         header.
7870         * modules/ctype (Makefile.am): Likewise.
7871         * modules/dirent (Makefile.am): Likewise.
7872         * modules/inttypes (Makefile.am): Likewise.
7873         * modules/langinfo (Makefile.am): Likewise.
7874         * modules/locale (Makefile.am): Likewise.
7875         * modules/spawn (Makefile.am): Likewise.
7876         * modules/sys_file (Makefile.am): Likewise.
7877         * modules/sys_ioctl (Makefile.am): Likewise.
7878         * modules/sys_select (Makefile.am): Likewise.
7879         * modules/sys_socket (Makefile.am): Likewise.
7880         * modules/sys_times (Makefile.am): Likewise.
7881         * modules/sys_utsname (Makefile.am): Likewise.
7882         * modules/sys_wait (Makefile.am): Likewise.
7883         * modules/wchar (Makefile.am): Likewise.
7884         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
7885         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
7886         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
7887         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
7888         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
7889         Likewise.
7890         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7891         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7892         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
7893         Likewise.
7894         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
7895         Likewise.
7896         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7897         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
7898         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
7899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7900         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7901         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7902         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7903         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
7904         (gl_WCHAR_H_DEFAULTS): Likewise.
7905
7906 2009-12-31  Eric Blake  <ebb9@byu.net>
7907
7908         signal, spawn: use link warnings
7909         * lib/signal.in.h (sigset_t): Make unconditional.
7910         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
7911         (sigpending, sigprocmask, sigaction): Add link warnings.
7912         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
7913         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
7914         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
7915         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
7916         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
7917         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
7918         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
7919         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
7920         (posix_spawn_file_actions_destroy)
7921         (posix_spawn_file_actions_addopen)
7922         (posix_spawn_file_actions_addclose)
7923         (posix_spawn_file_actions_adddup2): Likewise.
7924         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
7925         * tests/test-signal.c (main): Enhance test.
7926
7927         spawn: improve wrapper support
7928         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
7929         (gl_SPAWN_H_DEFAULTS): New defaults.
7930         * modules/spawn (Makefile.am): Substitute them.
7931         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
7932         Only declare if missing or broken.
7933
7934         sys_times, sys_utsname: use include_next
7935         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
7936         header.
7937         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
7938         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7939         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7940         * modules/sys_times (Depends-on): Add include_next.
7941         (Makefile.am): Substitute additional values.
7942         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7943         * lib/sys_times.in.h (includes): Include native header, if
7944         available.
7945         * lib/sys_utsname.in.h (includes): Likewise.
7946         * tests/test-sys_times.c (main): Enhance test.
7947
7948         fdutimensat: revert prior patch
7949         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
7950         utimens.h.
7951         Reported by Bruno Haible.
7952
7953 2009-12-30  Eric Blake  <ebb9@byu.net>
7954
7955         sys_wait: drop link-warning dependency
7956         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
7957         link-warning efforts.
7958         * lib/sys_wait.in.h: Likewise.
7959
7960         fdutimensat: remove bogus dependency
7961         * modules/fdutimensat (Depends-on): Drop inline.
7962
7963         unistd: fix typo
7964         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
7965
7966 2009-12-30  Bruno Haible  <bruno@clisp.org>
7967
7968         Fix compilation error with Solaris cc.
7969         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
7970         * lib/unicase/u16-is-invariant.c: Likewise.
7971         * lib/unicase/u32-is-invariant.c: Likewise.
7972         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7973
7974 2009-12-30  Bruno Haible  <bruno@clisp.org>
7975
7976         Fix test crash.
7977         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
7978         locales.
7979         Reported by Simon Josefsson <simon@josefsson.org>.
7980
7981 2009-12-30  Bruno Haible  <bruno@clisp.org>
7982
7983         Fix compilation error on most platforms.
7984         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
7985         Reported by Simon Josefsson <simon@josefsson.org>
7986         and Nelson H. F. Beebe <beebe@math.utah.edu>.
7987
7988 2009-12-30  Eric Blake  <ebb9@byu.net>
7989
7990         futimens, utimensat: work around ntfs-3g bug
7991         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
7992         a ctime bug is present, and expand workaround to cover ntfs-3g.
7993         * lib/utimens.c (fdutimens, lutimens): Likewise.
7994         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
7995         (validate_timespec): Adjust return value.
7996         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
7997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7998         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
7999
8000 2009-12-29  Eric Blake  <ebb9@byu.net>
8001
8002         link-warning: make usage consistent
8003         * modules/ctype (Depends-on): Add link-warning.
8004         (Makefile.am): Update rules accordingly.
8005         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8006         * modules/locale (Depends-on, Makefile.am): Likewise.
8007         * modules/sys_file (Makefile.am): Likewise.
8008         * modules/getopt-posix (Makefile.am): Delete unused link warning
8009         efforts.
8010         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8011         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8012         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8013         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8014
8015         stdio: remove unused variables
8016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8017         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8018         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8019
8020         tests: test more substitute headers
8021         * modules/ctype-tests: New file.
8022         * modules/dirent-tests: Likewise.
8023         * modules/spawn-tests: Likewise.
8024         * modules/sys_file-tests: Likewise.
8025         * modules/sys_ioctl-tests: Likewise.
8026         * modules/sys_wait-tests: Likewise.
8027         * tests/test-ctype.c: Likewise.
8028         * tests/test-dirent.c: Likewise.
8029         * tests/test-spawn.c: Likewise.
8030         * tests/test-sys_file.c: Likewise.
8031         * tests/test-sys_ioctl.c: Likewise.
8032         * tests/test-sys_wait.c: Likewise.
8033         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8034         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8035         whether or not flock is in use.
8036
8037         tests: remove License section from module
8038         * modules/arpa_inet-tests: Remove unneeded section.
8039         * modules/byteswap-tests: Likewise.
8040         * modules/ceilf-tests: Likewise.
8041         * modules/ceill-tests: Likewise.
8042         * modules/crypto/des-tests: Likewise.
8043         * modules/crypto/gc-arcfour-tests: Likewise.
8044         * modules/crypto/gc-arctwo-tests: Likewise.
8045         * modules/crypto/gc-des-tests: Likewise.
8046         * modules/crypto/gc-hmac-md5-tests: Likewise.
8047         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8048         * modules/crypto/gc-md2-tests: Likewise.
8049         * modules/crypto/gc-md4-tests: Likewise.
8050         * modules/crypto/gc-md5-tests: Likewise.
8051         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8052         * modules/crypto/gc-rijndael-tests: Likewise.
8053         * modules/crypto/gc-sha1-tests: Likewise.
8054         * modules/crypto/gc-tests: Likewise.
8055         * modules/crypto/md2-tests: Likewise.
8056         * modules/crypto/md4-tests: Likewise.
8057         * modules/fcntl-h-tests: Likewise.
8058         * modules/floorf-tests: Likewise.
8059         * modules/floorl-tests: Likewise.
8060         * modules/frexp-nolibm-tests: Likewise.
8061         * modules/frexp-tests: Likewise.
8062         * modules/frexpl-nolibm-tests: Likewise.
8063         * modules/frexpl-tests: Likewise.
8064         * modules/getaddrinfo-tests: Likewise.
8065         * modules/inttypes-tests: Likewise.
8066         * modules/isfinite-tests: Likewise.
8067         * modules/isinf-tests: Likewise.
8068         * modules/ldexpl-tests: Likewise.
8069         * modules/locale-tests: Likewise.
8070         * modules/math-tests: Likewise.
8071         * modules/netdb-tests: Likewise.
8072         * modules/netinet_in-tests: Likewise.
8073         * modules/printf-frexp-tests: Likewise.
8074         * modules/printf-frexpl-tests: Likewise.
8075         * modules/priv-set-tests: Likewise.
8076         * modules/random_r-tests: Likewise.
8077         * modules/round-tests: Likewise.
8078         * modules/roundf-tests: Likewise.
8079         * modules/roundl-tests: Likewise.
8080         * modules/search-tests: Likewise.
8081         * modules/select-tests: Likewise.
8082         * modules/signal-tests: Likewise.
8083         * modules/stdbool-tests: Likewise.
8084         * modules/stddef-tests: Likewise.
8085         * modules/stdint-tests: Likewise.
8086         * modules/stdio-tests: Likewise.
8087         * modules/stdlib-tests: Likewise.
8088         * modules/string-tests: Likewise.
8089         * modules/strings-tests: Likewise.
8090         * modules/sys_select-tests: Likewise.
8091         * modules/sys_socket-tests: Likewise.
8092         * modules/sys_stat-tests: Likewise.
8093         * modules/sys_time-tests: Likewise.
8094         * modules/sys_utsname-tests: Likewise.
8095         * modules/sysexits-tests: Likewise.
8096         * modules/time-tests: Likewise.
8097         * modules/trunc-tests: Likewise.
8098         * modules/truncf-tests: Likewise.
8099         * modules/truncl-tests: Likewise.
8100         * modules/tsearch-tests: Likewise.
8101         * modules/unistd-tests: Likewise.
8102         * modules/wchar-tests: Likewise.
8103         * modules/wctype-tests: Likewise.
8104
8105         tests: fix license on several tests
8106         * tests/test-des.c: Update to GPLv3+.
8107         * tests/test-flock.c: Likewise.
8108         * tests/test-fsync.c: Likewise.
8109         * tests/test-futimens.h: Likewise.
8110         * tests/test-gc-arcfour.c: Likewise.
8111         * tests/test-gc-arctwo.c: Likewise.
8112         * tests/test-gc-des.c: Likewise.
8113         * tests/test-gc-hmac-md5.c: Likewise.
8114         * tests/test-gc-hmac-sha1.c: Likewise.
8115         * tests/test-gc-md2.c: Likewise.
8116         * tests/test-gc-md4.c: Likewise.
8117         * tests/test-gc-md5.c: Likewise.
8118         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8119         * tests/test-gc-rijndael.c: Likewise.
8120         * tests/test-gc-sha1.c: Likewise.
8121         * tests/test-gc.c: Likewise.
8122         * tests/test-getcwd.c: Likewise.
8123         * tests/test-link.c: Likewise.
8124         * tests/test-link.h: Likewise.
8125         * tests/test-lutimens.h: Likewise.
8126         * tests/test-md2.c: Likewise.
8127         * tests/test-md4.c: Likewise.
8128         * tests/test-mkdir.h: Likewise.
8129         * tests/test-rename.c: Likewise.
8130         * tests/test-rename.h: Likewise.
8131         * tests/test-safe-alloc.c: Likewise.
8132         * tests/test-utimens-common.h: Likewise.
8133         * tests/test-utimens.h: Likewise.
8134
8135         maint: sync license texts
8136         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8137         * doc/gpl-3.0.texi: Revert copyright year update.
8138         * doc/lgpl-3.0.texi: Likewise.
8139
8140 2009-12-29  Jim Meyering  <meyering@redhat.com>
8141
8142         update nearly all FSF copyright year lists to include 2009
8143         The files named by the following are exempted:
8144             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8145               test -f "$dst" && { echo "$dst"; continue; }
8146               test -d "$dst" || continue
8147               echo "$dst"/$(basename "$src")
8148             done > exempt
8149             git ls-files tests/unictype >> exempt
8150         In the remaining files, convert to all-interval notation if
8151         - there is already at least one year interval like 2000-2003
8152         - the file is maintained by me
8153         - the file is in lib/uni*/, where that style already prevails
8154         Otherwise, use update-copyright's default.
8155
8156 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8157         and Eric Blake  <ebb9@byu.net>
8158
8159         tests: don't require debug system() to pass
8160         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8161         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8162         * tests/test-unlink.h (test_unlink_func): Likewise.
8163         * tests/test-fstatat.c (main): ...into callers.
8164         * tests/test-lstat.c (main): Likewise.
8165         * tests/test-rmdir.c (main): Likewise.
8166         * tests/test-unlink.c (main): Likewise.
8167         * tests/test-unlinkat.c (main): Likewise.
8168         * tests/test-areadlink-with-size.c (main): Don't require a
8169         debug-only system call to pass, aiding cross-testing to mingw.
8170         * tests/test-areadlink.c (main): Likewise.
8171         * tests/test-areadlinkat-with-size.c (main): Likewise.
8172         * tests/test-areadlinkat.c (main): Likewise.
8173         * tests/test-canonicalize-lgpl.c (main): Likewise.
8174         * tests/test-canonicalize.c (main): Likewise.
8175         * tests/test-chown.c (main): Likewise.
8176         * tests/test-fchownat.c (main): Likewise.
8177         * tests/test-lchown.c (main): Likewise.
8178         * tests/test-fdutimensat.c (main): Likewise.
8179         * tests/test-futimens.c (main): Likewise.
8180         * tests/test-link.c (main): Likewise.
8181         * tests/test-linkat.c (main): Likewise.
8182         * tests/test-mkdir.c (main): Likewise.
8183         * tests/test-mkdirat.c (main): Likewise.
8184         * tests/test-mkfifo.c (main): Likewise.
8185         * tests/test-mkfifoat.c (main): Likewise.
8186         * tests/test-mknod.c (main): Likewise.
8187         * tests/test-readlink.c (main): Likewise.
8188         * tests/test-remove.c (main): Likewise.
8189         * tests/test-rename.c (main): Likewise.
8190         * tests/test-renameat.c (main): Likewise.
8191         * tests/test-symlink.c (main): Likewise.
8192         * tests/test-symlinkat.c (main): Likewise.
8193         * tests/test-utimens.c (main): Likewise.
8194         * tests/test-utimensat.c (main): Likewise.
8195
8196 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8197
8198         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8199         on $(UNUSED_PARAMETER_H) to avoid build failure.
8200
8201 2009-12-28  Jim Meyering  <meyering@redhat.com>
8202
8203         update-copyright: you may specify a max. line length other than 72
8204         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8205
8206         maint: use consistent FSF copyright line syntax
8207         * lib/posixtm.c: Add missing comma in FSF copyright line.
8208         * lib/posixtm.h: Likewise.
8209         * lib/getugroups.c: Add missing ", Inc.".
8210
8211         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8212         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8213         FSF copyright line.  Remove trailing blanks.
8214
8215 2009-12-28  Eric Blake  <ebb9@byu.net>
8216
8217         test-dup2: reduce dependencies
8218         * modules/cloexec (Configure.ac): Set witness.
8219         * modules/dup2-tests (Depends-on): Drop cloexec.
8220         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8221         not present.
8222         Suggested by Bruno Haible.
8223
8224 2009-12-26  Bruno Haible  <bruno@clisp.org>
8225
8226         Remove an unneeded dependency.
8227         * modules/fseterr (Depends-on): Remove dup2.
8228
8229 2009-12-26  Eric Blake  <ebb9@byu.net>
8230
8231         tests: use macros.h in more places
8232         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8233         (ASSERT_STREAM): Provide default of stderr.
8234         * tests/test-dirent-safer.c: Include macros.h, using alternate
8235         stream for assertions.
8236         * tests/test-dup-safer.c: Likewise.
8237         * tests/test-freopen-safer.c: Likewise.
8238         * tests/test-getopt.c: Likewise.
8239         * tests/test-openat-safer.c: Likewise.
8240         * tests/test-pipe.c: Likewise.
8241         * tests/test-popen-safer.c: Likewise.
8242         * modules/dirent-safer-tests (Files): Include macros.h.
8243         * modules/unistd-safer-tests (Files): Likewise.
8244         * modules/freopen-safer-tests (Files): Likewise.
8245         * modules/getopt-posix-tests (Files): Likewise.
8246         * modules/openat-safer-tests (Files): Likewise.
8247         * modules/pipe-tests (Files): Likewise.
8248
8249 2009-12-26  Bruno Haible  <bruno@clisp.org>
8250
8251         javacomp: Portability fix.
8252         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8253         that it also works on Solaris.
8254
8255 2009-12-26  Bruno Haible  <bruno@clisp.org>
8256
8257         localename: Fix storage allocation of gl_locale_name_thread's result.
8258         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8259         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8260         all platforms that have 'uselocale'.
8261         (gl_locale_name_thread_unsafe): New function, extracted from
8262         gl_locale_name_thread.
8263         (gl_locale_name_thread): Call struniq on all platforms that have
8264         'uselocale'.
8265         * tests/test-localename.c (test_locale_name_thread): Check that the
8266         resulting strings are permanently allocated.
8267         * modules/localename-tests (Depends-on): Add strdup.
8268
8269 2009-12-26  Bruno Haible  <bruno@clisp.org>
8270
8271         * tests/test-localename.c (categories): Fill in the strings.
8272
8273 2009-12-26  Jim Meyering  <meyering@redhat.com>
8274
8275         isdir: complete the removal of m4/isdir.m4
8276         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8277
8278         isdir: clean up, since at least grep still uses it
8279         * lib/isdir.c: Include "isdir.h".
8280         (S_ISDIR): Remove now-unneeded definition.
8281         * modules/isdir (Files): Add lib/isdir.h.
8282         * lib/isdir.h: New file, with declaration.
8283         * m4/isdir.m4: Remove file -- unneeded.
8284
8285 2009-12-25  Bruno Haible  <bruno@clisp.org>
8286
8287         selinux-h: Make generated .h files standalone.
8288         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8289         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8290         * lib/se-selinux.in.h: Likewise.
8291         * modules/selinux-h (Depends-on): Add unused-parameter.
8292         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8293         selinux/selinux.h and selinux/context.h.
8294         Suggested by Eric Blake.
8295
8296 2009-12-25  Bruno Haible  <bruno@clisp.org>
8297
8298         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8299         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8300         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8301         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8302         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8303
8304 2009-12-24  Bruno Haible  <bruno@clisp.org>
8305
8306         openat: Fix warning.
8307         * lib/openat-proc.c: Include <unistd.h>.
8308
8309 2009-12-24  Bruno Haible  <bruno@clisp.org>
8310
8311         New module 'unused-parameter'.
8312         * build-aux/unused-parameter.h: New file, extracted from earlier
8313         gnulib-common.m4.
8314         * modules/unused-parameter: New file.
8315         * lib/unistr.h: Include unused-parameter.h.
8316         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8317         _GL_UNUSED.
8318         * modules/unistr/base (Depends-on): Add unused-parameter.
8319
8320 2009-12-24  Bruno Haible  <bruno@clisp.org>
8321
8322         Add missing dependencies to 'extensions' module.
8323         * m4/extensions.m4: Add comment.
8324         * modules/accept4 (Depends-on): Add extensions.
8325         * modules/dup3 (Depends-on): Likewise.
8326         * modules/fcntl (Depends-on): Likewise.
8327         * modules/futimens (Depends-on): Likewise.
8328         * modules/mknod (Depends-on): Likewise.
8329         * modules/pipe2 (Depends-on): Likewise.
8330         * modules/stat-time (Depends-on): Likewise.
8331         * modules/strcasestr-simple (Depends-on): Likewise.
8332         * modules/strsignal (Depends-on): Likewise.
8333         * modules/utimensat (Depends-on): Likewise.
8334         * modules/localcharset (Depends-on): Likewise. Needed because of
8335         gl_FCNTL_O_FLAGS.
8336         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8337         AC_TYPE_MBSTATE_T.
8338         * modules/wcsnrtombs (Depends-on): Likewise.
8339         * modules/wcsrtombs (Depends-on): Likewise.
8340
8341 2009-12-24  Bruno Haible  <bruno@clisp.org>
8342
8343         binary-io: Avoid gcc warning due to SET_BINARY.
8344         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8345         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8346
8347 2009-12-24  Bruno Haible  <bruno@clisp.org>
8348
8349         Avoid future namespace pollution on glibc systems.
8350         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8351         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8352         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8353         glibc systems.
8354
8355 2009-12-24  Bruno Haible  <bruno@clisp.org>
8356
8357         Refactor common macros used in tests.
8358         * tests/macros.h: New file.
8359         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8360         and/or <stdlib.h>, if appropriate.
8361         (ASSERT, SIZEOF): Remove macros.
8362         * tests/test-areadlink-with-size.c: Likewise.
8363         * tests/test-areadlinkat.c: Likewise.
8364         * tests/test-areadlinkat-with-size.c: Likewise.
8365         * tests/test-argmatch.c: Likewise.
8366         * tests/test-argv-iter.c: Likewise.
8367         * tests/test-array-mergesort.c: Likewise.
8368         * tests/test-array_list.c: Likewise.
8369         * tests/test-array_oset.c: Likewise.
8370         * tests/test-avltree_list.c: Likewise.
8371         * tests/test-avltree_oset.c: Likewise.
8372         * tests/test-avltreehash_list.c: Likewise.
8373         * tests/test-base64.c: Likewise.
8374         * tests/test-binary-io.c: Likewise.
8375         * tests/test-bitrotate.c: Likewise.
8376         * tests/test-btowc.c: Likewise.
8377         * tests/test-byteswap.c: Likewise.
8378         * tests/test-c-ctype.c: Likewise.
8379         * tests/test-c-stack.c: Likewise.
8380         * tests/test-c-strcasecmp.c: Likewise.
8381         * tests/test-c-strcasestr.c: Likewise.
8382         * tests/test-c-strncasecmp.c: Likewise.
8383         * tests/test-c-strstr.c: Likewise.
8384         * tests/test-canonicalize-lgpl.c: Likewise.
8385         * tests/test-canonicalize.c: Likewise.
8386         * tests/test-carray_list.c: Likewise.
8387         * tests/test-ceilf1.c: Likewise.
8388         * tests/test-ceilf2.c: Likewise.
8389         * tests/test-ceill.c: Likewise.
8390         * tests/test-chown.c: Likewise.
8391         * tests/test-cloexec.c: Likewise.
8392         * tests/test-copy-acl.c: Likewise.
8393         * tests/test-copy-file.c: Likewise.
8394         * tests/test-count-one-bits.c: Likewise.
8395         * tests/test-dprintf-posix.c: Likewise.
8396         * tests/test-dup2.c: Likewise.
8397         * tests/test-dup3.c: Likewise.
8398         * tests/test-duplocale.c: Likewise.
8399         * tests/test-fbufmode.c: Likewise.
8400         * tests/test-fchdir.c: Likewise.
8401         * tests/test-fchownat.c: Likewise.
8402         * tests/test-fcntl-safer.c: Likewise.
8403         * tests/test-fcntl.c: Likewise.
8404         * tests/test-fdopendir.c: Likewise.
8405         * tests/test-fdutimensat.c: Likewise.
8406         * tests/test-fflush2.c: Likewise.
8407         * tests/test-file-has-acl.c: Likewise.
8408         * tests/test-filevercmp.c: Likewise.
8409         * tests/test-flock.c: Likewise.
8410         * tests/test-floorf1.c: Likewise.
8411         * tests/test-floorf2.c: Likewise.
8412         * tests/test-floorl.c: Likewise.
8413         * tests/test-fnmatch.c: Likewise.
8414         * tests/test-fopen.h: Likewise.
8415         * tests/test-fpending.c: Likewise.
8416         * tests/test-fprintf-posix.c: Likewise.
8417         * tests/test-fpurge.c: Likewise.
8418         * tests/test-freadable.c: Likewise.
8419         * tests/test-freadahead.c: Likewise.
8420         * tests/test-freading.c: Likewise.
8421         * tests/test-freadptr.c: Likewise.
8422         * tests/test-freadptr2.c: Likewise.
8423         * tests/test-freadseek.c: Likewise.
8424         * tests/test-freopen.c: Likewise.
8425         * tests/test-frexp.c: Likewise.
8426         * tests/test-frexpl.c: Likewise.
8427         * tests/test-fseek.c: Likewise.
8428         * tests/test-fseeko.c: Likewise.
8429         * tests/test-fstatat.c: Likewise.
8430         * tests/test-fstrcmp.c: Likewise.
8431         * tests/test-fsync.c: Likewise.
8432         * tests/test-ftell.c: Likewise.
8433         * tests/test-ftello.c: Likewise.
8434         * tests/test-func.c: Likewise.
8435         * tests/test-futimens.c: Likewise.
8436         * tests/test-fwritable.c: Likewise.
8437         * tests/test-fwriting.c: Likewise.
8438         * tests/test-getcwd.c: Likewise.
8439         * tests/test-getdate.c: Likewise.
8440         * tests/test-getdelim.c: Likewise.
8441         * tests/test-getdtablesize.c: Likewise.
8442         * tests/test-getgroups.c: Likewise.
8443         * tests/test-getline.c: Likewise.
8444         * tests/test-getndelim2.c: Likewise.
8445         * tests/test-glob.c: Likewise.
8446         * tests/test-hash.c: Likewise.
8447         * tests/test-i-ring.c: Likewise.
8448         * tests/test-iconv-utf.c: Likewise.
8449         * tests/test-iconv.c: Likewise.
8450         * tests/test-idpriv-drop.c: Likewise.
8451         * tests/test-idpriv-droptemp.c: Likewise.
8452         * tests/test-inet_ntop.c: Likewise.
8453         * tests/test-inet_pton.c: Likewise.
8454         * tests/test-isblank.c: Likewise.
8455         * tests/test-isfinite.c: Likewise.
8456         * tests/test-isinf.c: Likewise.
8457         * tests/test-isnan.c: Likewise.
8458         * tests/test-isnand.h: Likewise.
8459         * tests/test-isnanf.h: Likewise.
8460         * tests/test-isnanl.h: Likewise.
8461         * tests/test-lchown.c: Likewise.
8462         * tests/test-ldexpl.c: Likewise.
8463         * tests/test-link.c: Likewise.
8464         * tests/test-linkat.c: Likewise.
8465         * tests/test-linked_list.c: Likewise.
8466         * tests/test-linkedhash_list.c: Likewise.
8467         * tests/test-localename.c: Likewise.
8468         * tests/test-lseek.c: Likewise.
8469         * tests/test-lstat.c: Likewise.
8470         * tests/test-mbmemcasecmp.c: Likewise.
8471         * tests/test-mbmemcasecoll.c: Likewise.
8472         * tests/test-mbrtowc.c: Likewise.
8473         * tests/test-mbscasecmp.c: Likewise.
8474         * tests/test-mbscasestr1.c: Likewise.
8475         * tests/test-mbscasestr2.c: Likewise.
8476         * tests/test-mbscasestr3.c: Likewise.
8477         * tests/test-mbscasestr4.c: Likewise.
8478         * tests/test-mbschr.c: Likewise.
8479         * tests/test-mbscspn.c: Likewise.
8480         * tests/test-mbsinit.c: Likewise.
8481         * tests/test-mbsncasecmp.c: Likewise.
8482         * tests/test-mbsnrtowcs.c: Likewise.
8483         * tests/test-mbspbrk.c: Likewise.
8484         * tests/test-mbspcasecmp.c: Likewise.
8485         * tests/test-mbsrchr.c: Likewise.
8486         * tests/test-mbsrtowcs.c: Likewise.
8487         * tests/test-mbsspn.c: Likewise.
8488         * tests/test-mbsstr1.c: Likewise.
8489         * tests/test-mbsstr2.c: Likewise.
8490         * tests/test-mbsstr3.c: Likewise.
8491         * tests/test-memchr.c: Likewise.
8492         * tests/test-memchr2.c: Likewise.
8493         * tests/test-memcmp.c: Likewise.
8494         * tests/test-memmem.c: Likewise.
8495         * tests/test-memrchr.c: Likewise.
8496         * tests/test-mkdir.c: Likewise.
8497         * tests/test-mkdirat.c: Likewise.
8498         * tests/test-mkfifo.c: Likewise.
8499         * tests/test-mkfifoat.c: Likewise.
8500         * tests/test-mknod.c: Likewise.
8501         * tests/test-nanosleep.c: Likewise.
8502         * tests/test-nl_langinfo.c: Likewise.
8503         * tests/test-obstack-printf.c: Likewise.
8504         * tests/test-open.c: Likewise.
8505         * tests/test-openat.c: Likewise.
8506         * tests/test-pipe-filter-gi1.c: Likewise.
8507         * tests/test-pipe-filter-gi2-main.c: Likewise.
8508         * tests/test-pipe-filter-ii1.c: Likewise.
8509         * tests/test-pipe-filter-ii2-main.c: Likewise.
8510         * tests/test-pipe2.c: Likewise.
8511         * tests/test-popen.h: Likewise.
8512         * tests/test-posixtm.c: Likewise.
8513         * tests/test-pread.c: Likewise.
8514         * tests/test-printf-frexp.c: Likewise.
8515         * tests/test-printf-frexpl.c: Likewise.
8516         * tests/test-printf-posix.c: Likewise.
8517         * tests/test-priv-set.c: Likewise.
8518         * tests/test-quotearg.c: Likewise.
8519         * tests/test-random_r.c: Likewise.
8520         * tests/test-rawmemchr.c: Likewise.
8521         * tests/test-rbtree_list.c: Likewise.
8522         * tests/test-rbtree_oset.c: Likewise.
8523         * tests/test-rbtreehash_list.c: Likewise.
8524         * tests/test-readlink.c: Likewise.
8525         * tests/test-remove.c: Likewise.
8526         * tests/test-rename.c: Likewise.
8527         * tests/test-renameat.c: Likewise.
8528         * tests/test-rmdir.c: Likewise.
8529         * tests/test-round1.c: Likewise.
8530         * tests/test-roundf1.c: Likewise.
8531         * tests/test-roundl.c: Likewise.
8532         * tests/test-safe-alloc.c: Likewise.
8533         * tests/test-sameacls.c: Likewise.
8534         * tests/test-set-mode-acl.c: Likewise.
8535         * tests/test-setenv.c: Likewise.
8536         * tests/test-sigaction.c: Likewise.
8537         * tests/test-signbit.c: Likewise.
8538         * tests/test-sleep.c: Likewise.
8539         * tests/test-snprintf-posix.c: Likewise.
8540         * tests/test-snprintf.c: Likewise.
8541         * tests/test-sprintf-posix.c: Likewise.
8542         * tests/test-stat-time.c: Likewise.
8543         * tests/test-stat.c: Likewise.
8544         * tests/test-strcasestr.c: Likewise.
8545         * tests/test-strchrnul.c: Likewise.
8546         * tests/test-strerror.c: Likewise.
8547         * tests/test-striconv.c: Likewise.
8548         * tests/test-striconveh.c: Likewise.
8549         * tests/test-striconveha.c: Likewise.
8550         * tests/test-strsignal.c: Likewise.
8551         * tests/test-strstr.c: Likewise.
8552         * tests/test-strtod.c: Likewise.
8553         * tests/test-strverscmp.c: Likewise.
8554         * tests/test-symlink.c: Likewise.
8555         * tests/test-symlinkat.c: Likewise.
8556         * tests/test-trunc1.c: Likewise.
8557         * tests/test-trunc2.c: Likewise.
8558         * tests/test-truncf1.c: Likewise.
8559         * tests/test-truncf2.c: Likewise.
8560         * tests/test-truncl.c: Likewise.
8561         * tests/test-uname.c: Likewise.
8562         * tests/test-unlink.c: Likewise.
8563         * tests/test-unlinkat.c: Likewise.
8564         * tests/test-unsetenv.c: Likewise.
8565         * tests/test-usleep.c: Likewise.
8566         * tests/test-utimens.c: Likewise.
8567         * tests/test-utimensat.c: Likewise.
8568         * tests/test-vasnprintf-posix.c: Likewise.
8569         * tests/test-vasnprintf-posix2.c: Likewise.
8570         * tests/test-vasnprintf.c: Likewise.
8571         * tests/test-vasprintf-posix.c: Likewise.
8572         * tests/test-vasprintf.c: Likewise.
8573         * tests/test-vdprintf-posix.c: Likewise.
8574         * tests/test-vfprintf-posix.c: Likewise.
8575         * tests/test-vprintf-posix.c: Likewise.
8576         * tests/test-vsnprintf-posix.c: Likewise.
8577         * tests/test-vsnprintf.c: Likewise.
8578         * tests/test-vsprintf-posix.c: Likewise.
8579         * tests/test-wcrtomb.c: Likewise.
8580         * tests/test-wcsnrtombs.c: Likewise.
8581         * tests/test-wcsrtombs.c: Likewise.
8582         * tests/test-wctype.c: Likewise.
8583         * tests/test-wcwidth.c: Likewise.
8584         * tests/test-xfprintf-posix.c: Likewise.
8585         * tests/test-xmemdup0.c: Likewise.
8586         * tests/test-xprintf-posix.c: Likewise.
8587         * tests/test-xvasprintf.c: Likewise.
8588         * tests/unicase/test-locale-language.c: Likewise.
8589         * tests/unicase/test-mapping-part1.h: Likewise.
8590         * tests/unicase/test-predicate-part1.h: Likewise.
8591         * tests/unicase/test-u8-casecmp.c: Likewise.
8592         * tests/unicase/test-u8-casecoll.c: Likewise.
8593         * tests/unicase/test-u8-casefold.c: Likewise.
8594         * tests/unicase/test-u8-is-cased.c: Likewise.
8595         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8596         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8597         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8598         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8599         * tests/unicase/test-u8-tolower.c: Likewise.
8600         * tests/unicase/test-u8-totitle.c: Likewise.
8601         * tests/unicase/test-u8-toupper.c: Likewise.
8602         * tests/unicase/test-u16-casecmp.c: Likewise.
8603         * tests/unicase/test-u16-casecoll.c: Likewise.
8604         * tests/unicase/test-u16-casefold.c: Likewise.
8605         * tests/unicase/test-u16-is-cased.c: Likewise.
8606         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8607         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8608         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8609         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8610         * tests/unicase/test-u16-tolower.c: Likewise.
8611         * tests/unicase/test-u16-totitle.c: Likewise.
8612         * tests/unicase/test-u16-toupper.c: Likewise.
8613         * tests/unicase/test-u32-casecmp.c: Likewise.
8614         * tests/unicase/test-u32-casecoll.c: Likewise.
8615         * tests/unicase/test-u32-casefold.c: Likewise.
8616         * tests/unicase/test-u32-is-cased.c: Likewise.
8617         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8618         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8619         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8620         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8621         * tests/unicase/test-u32-tolower.c: Likewise.
8622         * tests/unicase/test-u32-totitle.c: Likewise.
8623         * tests/unicase/test-u32-toupper.c: Likewise.
8624         * tests/unicase/test-ulc-casecmp.c: Likewise.
8625         * tests/unicase/test-ulc-casecoll.c: Likewise.
8626         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8627         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8628         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8629         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8630         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8631         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8632         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8633         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8634         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8635         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8636         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8637         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8638         * tests/unictype/test-bidi_byname.c: Likewise.
8639         * tests/unictype/test-bidi_name.c: Likewise.
8640         * tests/unictype/test-bidi_of.c: Likewise.
8641         * tests/unictype/test-bidi_test.c: Likewise.
8642         * tests/unictype/test-block_list.c: Likewise.
8643         * tests/unictype/test-block_of.c: Likewise.
8644         * tests/unictype/test-block_test.c: Likewise.
8645         * tests/unictype/test-categ_and.c: Likewise.
8646         * tests/unictype/test-categ_and_not.c: Likewise.
8647         * tests/unictype/test-categ_byname.c: Likewise.
8648         * tests/unictype/test-categ_name.c: Likewise.
8649         * tests/unictype/test-categ_none.c: Likewise.
8650         * tests/unictype/test-categ_of.c: Likewise.
8651         * tests/unictype/test-categ_or.c: Likewise.
8652         * tests/unictype/test-categ_test_withtable.c: Likewise.
8653         * tests/unictype/test-combining.c: Likewise.
8654         * tests/unictype/test-decdigit.c: Likewise.
8655         * tests/unictype/test-digit.c: Likewise.
8656         * tests/unictype/test-mirror.c: Likewise.
8657         * tests/unictype/test-numeric.c: Likewise.
8658         * tests/unictype/test-pr_byname.c: Likewise.
8659         * tests/unictype/test-pr_test.c: Likewise.
8660         * tests/unictype/test-predicate-part1.h: Likewise.
8661         * tests/unictype/test-scripts.c: Likewise.
8662         * tests/unictype/test-sy_c_ident.c: Likewise.
8663         * tests/unictype/test-sy_java_ident.c: Likewise.
8664         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8665         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8666         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8667         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8668         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8669         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8670         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8671         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8672         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8673         * tests/uninorm/test-compat-decomposition.c: Likewise.
8674         * tests/uninorm/test-composition.c: Likewise.
8675         * tests/uninorm/test-decomposing-form.c: Likewise.
8676         * tests/uninorm/test-decomposition.c: Likewise.
8677         * tests/uninorm/test-u8-nfc.c: Likewise.
8678         * tests/uninorm/test-u8-nfd.c: Likewise.
8679         * tests/uninorm/test-u8-nfkc.c: Likewise.
8680         * tests/uninorm/test-u8-nfkd.c: Likewise.
8681         * tests/uninorm/test-u8-normcmp.c: Likewise.
8682         * tests/uninorm/test-u8-normcoll.c: Likewise.
8683         * tests/uninorm/test-u16-nfc.c: Likewise.
8684         * tests/uninorm/test-u16-nfd.c: Likewise.
8685         * tests/uninorm/test-u16-nfkc.c: Likewise.
8686         * tests/uninorm/test-u16-nfkd.c: Likewise.
8687         * tests/uninorm/test-u16-normcmp.c: Likewise.
8688         * tests/uninorm/test-u16-normcoll.c: Likewise.
8689         * tests/uninorm/test-u32-nfc.c: Likewise.
8690         * tests/uninorm/test-u32-nfd.c: Likewise.
8691         * tests/uninorm/test-u32-nfkc.c: Likewise.
8692         * tests/uninorm/test-u32-nfkd.c: Likewise.
8693         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8694         * tests/uninorm/test-u32-normcmp.c: Likewise.
8695         * tests/uninorm/test-u32-normcoll.c: Likewise.
8696         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8697         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8698         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8699         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8700         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8701         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8702         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8703         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8704         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8705         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8706         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8707         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8708         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8709         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8710         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8711         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8712         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8713         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8714         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8715         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8716         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8717         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8718         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8719         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8720         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8721         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8722         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8723         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8724         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8725         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8726         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8727         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8728         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8729         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8730         * tests/uniwidth/test-u8-width.c: Likewise.
8731         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8732         * tests/uniwidth/test-u16-width.c: Likewise.
8733         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8734         * tests/uniwidth/test-u32-width.c: Likewise.
8735         * tests/uniwidth/test-uc_width.c: Likewise.
8736         * tests/uniwidth/test-uc_width2.c: Likewise.
8737         * modules/acl-tests (Files): Add tests/macros.h.
8738         * modules/areadlink-tests (Files): Likewise.
8739         * modules/areadlink-with-size-tests (Files): Likewise.
8740         * modules/areadlinkat-tests (Files): Likewise.
8741         * modules/areadlinkat-with-size-tests (Files): Likewise.
8742         * modules/argmatch-tests (Files): Likewise.
8743         * modules/argv-iter-tests (Files): Likewise.
8744         * modules/array-list-tests (Files): Likewise.
8745         * modules/array-mergesort-tests (Files): Likewise.
8746         * modules/array-oset-tests (Files): Likewise.
8747         * modules/avltree-list-tests (Files): Likewise.
8748         * modules/avltree-oset-tests (Files): Likewise.
8749         * modules/avltreehash-list-tests (Files): Likewise.
8750         * modules/base64-tests (Files): Likewise.
8751         * modules/binary-io-tests (Files): Likewise.
8752         * modules/bitrotate-tests (Files): Likewise.
8753         * modules/btowc-tests (Files): Likewise.
8754         * modules/byteswap-tests (Files): Likewise.
8755         * modules/c-ctype-tests (Files): Likewise.
8756         * modules/c-stack-tests (Files): Likewise.
8757         * modules/c-strcase-tests (Files): Likewise.
8758         * modules/c-strcasestr-tests (Files): Likewise.
8759         * modules/c-strstr-tests (Files): Likewise.
8760         * modules/canonicalize-lgpl-tests (Files): Likewise.
8761         * modules/canonicalize-tests (Files): Likewise.
8762         * modules/carray-list-tests (Files): Likewise.
8763         * modules/ceilf-tests (Files): Likewise.
8764         * modules/ceill-tests (Files): Likewise.
8765         * modules/chown-tests (Files): Likewise.
8766         * modules/cloexec-tests (Files): Likewise.
8767         * modules/copy-file-tests (Files): Likewise.
8768         * modules/count-one-bits-tests (Files): Likewise.
8769         * modules/dprintf-posix-tests (Files): Likewise.
8770         * modules/dup2-tests (Files): Likewise.
8771         * modules/dup3-tests (Files): Likewise.
8772         * modules/duplocale-tests (Files): Likewise.
8773         * modules/fbufmode-tests (Files): Likewise.
8774         * modules/fchdir-tests (Files): Likewise.
8775         * modules/fcntl-safer-tests (Files): Likewise.
8776         * modules/fcntl-tests (Files): Likewise.
8777         * modules/fdopendir-tests (Files): Likewise.
8778         * modules/fdutimensat-tests (Files): Likewise.
8779         * modules/fflush-tests (Files): Likewise.
8780         * modules/filevercmp-tests (Files): Likewise.
8781         * modules/flock-tests (Files): Likewise.
8782         * modules/floorf-tests (Files): Likewise.
8783         * modules/floorl-tests (Files): Likewise.
8784         * modules/fnmatch-tests (Files): Likewise.
8785         * modules/fopen-safer-tests (Files): Likewise.
8786         * modules/fopen-tests (Files): Likewise.
8787         * modules/fpending-tests (Files): Likewise.
8788         * modules/fprintf-posix-tests (Files): Likewise.
8789         * modules/fpurge-tests (Files): Likewise.
8790         * modules/freadable-tests (Files): Likewise.
8791         * modules/freadahead-tests (Files): Likewise.
8792         * modules/freading-tests (Files): Likewise.
8793         * modules/freadptr-tests (Files): Likewise.
8794         * modules/freadseek-tests (Files): Likewise.
8795         * modules/freopen-tests (Files): Likewise.
8796         * modules/frexp-nolibm-tests (Files): Likewise.
8797         * modules/frexp-tests (Files): Likewise.
8798         * modules/frexpl-nolibm-tests (Files): Likewise.
8799         * modules/frexpl-tests (Files): Likewise.
8800         * modules/fseek-tests (Files): Likewise.
8801         * modules/fseeko-tests (Files): Likewise.
8802         * modules/fstrcmp-tests (Files): Likewise.
8803         * modules/fsync-tests (Files): Likewise.
8804         * modules/ftell-tests (Files): Likewise.
8805         * modules/ftello-tests (Files): Likewise.
8806         * modules/func-tests (Files): Likewise.
8807         * modules/futimens-tests (Files): Likewise.
8808         * modules/fwritable-tests (Files): Likewise.
8809         * modules/fwriting-tests (Files): Likewise.
8810         * modules/getcwd-tests (Files): Likewise.
8811         * modules/getdate-tests (Files): Likewise.
8812         * modules/getdelim-tests (Files): Likewise.
8813         * modules/getdtablesize-tests (Files): Likewise.
8814         * modules/getgroups-tests (Files): Likewise.
8815         * modules/getline-tests (Files): Likewise.
8816         * modules/getndelim2-tests (Files): Likewise.
8817         * modules/glob-tests (Files): Likewise.
8818         * modules/hash-tests (Files): Likewise.
8819         * modules/i-ring-tests (Files): Likewise.
8820         * modules/iconv-tests (Files): Likewise.
8821         * modules/iconv_open-utf-tests (Files): Likewise.
8822         * modules/idpriv-drop-tests (Files): Likewise.
8823         * modules/idpriv-droptemp-tests (Files): Likewise.
8824         * modules/inet_ntop-tests (Files): Likewise.
8825         * modules/inet_pton-tests (Files): Likewise.
8826         * modules/isblank-tests (Files): Likewise.
8827         * modules/isfinite-tests (Files): Likewise.
8828         * modules/isinf-tests (Files): Likewise.
8829         * modules/isnan-tests (Files): Likewise.
8830         * modules/isnand-nolibm-tests (Files): Likewise.
8831         * modules/isnand-tests (Files): Likewise.
8832         * modules/isnanf-nolibm-tests (Files): Likewise.
8833         * modules/isnanf-tests (Files): Likewise.
8834         * modules/isnanl-nolibm-tests (Files): Likewise.
8835         * modules/isnanl-tests (Files): Likewise.
8836         * modules/lchown-tests (Files): Likewise.
8837         * modules/ldexpl-tests (Files): Likewise.
8838         * modules/link-tests (Files): Likewise.
8839         * modules/linkat-tests (Files): Likewise.
8840         * modules/linked-list-tests (Files): Likewise.
8841         * modules/linkedhash-list-tests (Files): Likewise.
8842         * modules/localename-tests (Files): Likewise.
8843         * modules/lseek-tests (Files): Likewise.
8844         * modules/lstat-tests (Files): Likewise.
8845         * modules/mbmemcasecmp-tests (Files): Likewise.
8846         * modules/mbmemcasecoll-tests (Files): Likewise.
8847         * modules/mbrtowc-tests (Files): Likewise.
8848         * modules/mbscasecmp-tests (Files): Likewise.
8849         * modules/mbscasestr-tests (Files): Likewise.
8850         * modules/mbschr-tests (Files): Likewise.
8851         * modules/mbscspn-tests (Files): Likewise.
8852         * modules/mbsinit-tests (Files): Likewise.
8853         * modules/mbsncasecmp-tests (Files): Likewise.
8854         * modules/mbsnrtowcs-tests (Files): Likewise.
8855         * modules/mbspbrk-tests (Files): Likewise.
8856         * modules/mbspcasecmp-tests (Files): Likewise.
8857         * modules/mbsrchr-tests (Files): Likewise.
8858         * modules/mbsrtowcs-tests (Files): Likewise.
8859         * modules/mbsspn-tests (Files): Likewise.
8860         * modules/mbsstr-tests (Files): Likewise.
8861         * modules/memchr-tests (Files): Likewise.
8862         * modules/memchr2-tests (Files): Likewise.
8863         * modules/memcmp-tests (Files): Likewise.
8864         * modules/memmem-tests (Files): Likewise.
8865         * modules/memrchr-tests (Files): Likewise.
8866         * modules/mkdir-tests (Files): Likewise.
8867         * modules/mkfifo-tests (Files): Likewise.
8868         * modules/mkfifoat-tests (Files): Likewise.
8869         * modules/mknod-tests (Files): Likewise.
8870         * modules/nanosleep-tests (Files): Likewise.
8871         * modules/nl_langinfo-tests (Files): Likewise.
8872         * modules/obstack-printf-tests (Files): Likewise.
8873         * modules/open-tests (Files): Likewise.
8874         * modules/openat-tests (Files): Likewise.
8875         * modules/pipe-filter-gi-tests (Files): Likewise.
8876         * modules/pipe-filter-ii-tests (Files): Likewise.
8877         * modules/pipe2-tests (Files): Likewise.
8878         * modules/popen-safer-tests (Files): Likewise.
8879         * modules/popen-tests (Files): Likewise.
8880         * modules/posixtm-tests (Files): Likewise.
8881         * modules/pread-tests (Files): Likewise.
8882         * modules/printf-frexp-tests (Files): Likewise.
8883         * modules/printf-frexpl-tests (Files): Likewise.
8884         * modules/printf-posix-tests (Files): Likewise.
8885         * modules/priv-set-tests (Files): Likewise.
8886         * modules/quotearg-tests (Files): Likewise.
8887         * modules/random_r-tests (Files): Likewise.
8888         * modules/rawmemchr-tests (Files): Likewise.
8889         * modules/rbtree-list-tests (Files): Likewise.
8890         * modules/rbtree-oset-tests (Files): Likewise.
8891         * modules/rbtreehash-list-tests (Files): Likewise.
8892         * modules/readlink-tests (Files): Likewise.
8893         * modules/remove-tests (Files): Likewise.
8894         * modules/rename-tests (Files): Likewise.
8895         * modules/renameat-tests (Files): Likewise.
8896         * modules/rmdir-tests (Files): Likewise.
8897         * modules/round-tests (Files): Likewise.
8898         * modules/roundf-tests (Files): Likewise.
8899         * modules/roundl-tests (Files): Likewise.
8900         * modules/safe-alloc-tests (Files): Likewise.
8901         * modules/setenv-tests (Files): Likewise.
8902         * modules/sigaction-tests (Files): Likewise.
8903         * modules/signbit-tests (Files): Likewise.
8904         * modules/sleep-tests (Files): Likewise.
8905         * modules/snprintf-posix-tests (Files): Likewise.
8906         * modules/snprintf-tests (Files): Likewise.
8907         * modules/sprintf-posix-tests (Files): Likewise.
8908         * modules/stat-tests (Files): Likewise.
8909         * modules/stat-time-tests (Files): Likewise.
8910         * modules/strcasestr-tests (Files): Likewise.
8911         * modules/strchrnul-tests (Files): Likewise.
8912         * modules/strerror-tests (Files): Likewise.
8913         * modules/striconv-tests (Files): Likewise.
8914         * modules/striconveh-tests (Files): Likewise.
8915         * modules/striconveha-tests (Files): Likewise.
8916         * modules/strsignal-tests (Files): Likewise.
8917         * modules/strstr-tests (Files): Likewise.
8918         * modules/strtod-tests (Files): Likewise.
8919         * modules/strverscmp-tests (Files): Likewise.
8920         * modules/symlink-tests (Files): Likewise.
8921         * modules/symlinkat-tests (Files): Likewise.
8922         * modules/trunc-tests (Files): Likewise.
8923         * modules/truncf-tests (Files): Likewise.
8924         * modules/truncl-tests (Files): Likewise.
8925         * modules/uname-tests (Files): Likewise.
8926         * modules/unicase/cased-tests (Files): Likewise.
8927         * modules/unicase/ignorable-tests (Files): Likewise.
8928         * modules/unicase/locale-language-tests (Files): Likewise.
8929         * modules/unicase/tolower-tests (Files): Likewise.
8930         * modules/unicase/totitle-tests (Files): Likewise.
8931         * modules/unicase/toupper-tests (Files): Likewise.
8932         * modules/unicase/u8-casecmp-tests (Files): Likewise.
8933         * modules/unicase/u8-casecoll-tests (Files): Likewise.
8934         * modules/unicase/u8-casefold-tests (Files): Likewise.
8935         * modules/unicase/u8-is-cased-tests (Files): Likewise.
8936         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
8937         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
8938         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
8939         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
8940         * modules/unicase/u8-tolower-tests (Files): Likewise.
8941         * modules/unicase/u8-totitle-tests (Files): Likewise.
8942         * modules/unicase/u8-toupper-tests (Files): Likewise.
8943         * modules/unicase/u16-casecmp-tests (Files): Likewise.
8944         * modules/unicase/u16-casecoll-tests (Files): Likewise.
8945         * modules/unicase/u16-casefold-tests (Files): Likewise.
8946         * modules/unicase/u16-is-cased-tests (Files): Likewise.
8947         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
8948         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
8949         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
8950         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
8951         * modules/unicase/u16-tolower-tests (Files): Likewise.
8952         * modules/unicase/u16-totitle-tests (Files): Likewise.
8953         * modules/unicase/u16-toupper-tests (Files): Likewise.
8954         * modules/unicase/u32-casecmp-tests (Files): Likewise.
8955         * modules/unicase/u32-casecoll-tests (Files): Likewise.
8956         * modules/unicase/u32-casefold-tests (Files): Likewise.
8957         * modules/unicase/u32-is-cased-tests (Files): Likewise.
8958         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
8959         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
8960         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
8961         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
8962         * modules/unicase/u32-tolower-tests (Files): Likewise.
8963         * modules/unicase/u32-totitle-tests (Files): Likewise.
8964         * modules/unicase/u32-toupper-tests (Files): Likewise.
8965         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
8966         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
8967         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
8968         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
8969         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
8970         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
8971         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
8972         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
8973         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
8974         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
8975         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
8976         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
8977         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
8978         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
8979         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
8980         * modules/unictype/bidicategory-name-tests (Files): Likewise.
8981         * modules/unictype/bidicategory-of-tests (Files): Likewise.
8982         * modules/unictype/bidicategory-test-tests (Files): Likewise.
8983         * modules/unictype/block-list-tests (Files): Likewise.
8984         * modules/unictype/block-of-tests (Files): Likewise.
8985         * modules/unictype/block-test-tests (Files): Likewise.
8986         * modules/unictype/category-C-tests (Files): Likewise.
8987         * modules/unictype/category-Cc-tests (Files): Likewise.
8988         * modules/unictype/category-Cf-tests (Files): Likewise.
8989         * modules/unictype/category-Cn-tests (Files): Likewise.
8990         * modules/unictype/category-Co-tests (Files): Likewise.
8991         * modules/unictype/category-Cs-tests (Files): Likewise.
8992         * modules/unictype/category-L-tests (Files): Likewise.
8993         * modules/unictype/category-Ll-tests (Files): Likewise.
8994         * modules/unictype/category-Lm-tests (Files): Likewise.
8995         * modules/unictype/category-Lo-tests (Files): Likewise.
8996         * modules/unictype/category-Lt-tests (Files): Likewise.
8997         * modules/unictype/category-Lu-tests (Files): Likewise.
8998         * modules/unictype/category-M-tests (Files): Likewise.
8999         * modules/unictype/category-Mc-tests (Files): Likewise.
9000         * modules/unictype/category-Me-tests (Files): Likewise.
9001         * modules/unictype/category-Mn-tests (Files): Likewise.
9002         * modules/unictype/category-N-tests (Files): Likewise.
9003         * modules/unictype/category-Nd-tests (Files): Likewise.
9004         * modules/unictype/category-Nl-tests (Files): Likewise.
9005         * modules/unictype/category-No-tests (Files): Likewise.
9006         * modules/unictype/category-P-tests (Files): Likewise.
9007         * modules/unictype/category-Pc-tests (Files): Likewise.
9008         * modules/unictype/category-Pd-tests (Files): Likewise.
9009         * modules/unictype/category-Pe-tests (Files): Likewise.
9010         * modules/unictype/category-Pf-tests (Files): Likewise.
9011         * modules/unictype/category-Pi-tests (Files): Likewise.
9012         * modules/unictype/category-Po-tests (Files): Likewise.
9013         * modules/unictype/category-Ps-tests (Files): Likewise.
9014         * modules/unictype/category-S-tests (Files): Likewise.
9015         * modules/unictype/category-Sc-tests (Files): Likewise.
9016         * modules/unictype/category-Sk-tests (Files): Likewise.
9017         * modules/unictype/category-Sm-tests (Files): Likewise.
9018         * modules/unictype/category-So-tests (Files): Likewise.
9019         * modules/unictype/category-Z-tests (Files): Likewise.
9020         * modules/unictype/category-Zl-tests (Files): Likewise.
9021         * modules/unictype/category-Zp-tests (Files): Likewise.
9022         * modules/unictype/category-Zs-tests (Files): Likewise.
9023         * modules/unictype/category-and-not-tests (Files): Likewise.
9024         * modules/unictype/category-and-tests (Files): Likewise.
9025         * modules/unictype/category-byname-tests (Files): Likewise.
9026         * modules/unictype/category-name-tests (Files): Likewise.
9027         * modules/unictype/category-none-tests (Files): Likewise.
9028         * modules/unictype/category-of-tests (Files): Likewise.
9029         * modules/unictype/category-or-tests (Files): Likewise.
9030         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9031         * modules/unictype/combining-class-tests (Files): Likewise.
9032         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9033         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9034         * modules/unictype/ctype-blank-tests (Files): Likewise.
9035         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9036         * modules/unictype/ctype-digit-tests (Files): Likewise.
9037         * modules/unictype/ctype-graph-tests (Files): Likewise.
9038         * modules/unictype/ctype-lower-tests (Files): Likewise.
9039         * modules/unictype/ctype-print-tests (Files): Likewise.
9040         * modules/unictype/ctype-punct-tests (Files): Likewise.
9041         * modules/unictype/ctype-space-tests (Files): Likewise.
9042         * modules/unictype/ctype-upper-tests (Files): Likewise.
9043         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9044         * modules/unictype/decimal-digit-tests (Files): Likewise.
9045         * modules/unictype/digit-tests (Files): Likewise.
9046         * modules/unictype/mirror-tests (Files): Likewise.
9047         * modules/unictype/numeric-tests (Files): Likewise.
9048         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9049         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9050         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9051         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9052         Likewise.
9053         * modules/unictype/property-bidi-block-separator-tests (Files):
9054         Likewise.
9055         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9056         Likewise.
9057         * modules/unictype/property-bidi-common-separator-tests (Files):
9058         Likewise.
9059         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9060         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9061         Likewise.
9062         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9063         Likewise.
9064         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9065         Likewise.
9066         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9067         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9068         Likewise.
9069         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9070         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9071         Likewise.
9072         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9073         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9074         * modules/unictype/property-bidi-segment-separator-tests (Files):
9075         Likewise.
9076         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9077         * modules/unictype/property-byname-tests (Files): Likewise.
9078         * modules/unictype/property-combining-tests (Files): Likewise.
9079         * modules/unictype/property-composite-tests (Files): Likewise.
9080         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9081         * modules/unictype/property-dash-tests (Files): Likewise.
9082         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9083         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9084         Likewise.
9085         * modules/unictype/property-deprecated-tests (Files): Likewise.
9086         * modules/unictype/property-diacritic-tests (Files): Likewise.
9087         * modules/unictype/property-extender-tests (Files): Likewise.
9088         * modules/unictype/property-format-control-tests (Files): Likewise.
9089         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9090         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9091         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9092         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9093         * modules/unictype/property-hyphen-tests (Files): Likewise.
9094         * modules/unictype/property-id-continue-tests (Files): Likewise.
9095         * modules/unictype/property-id-start-tests (Files): Likewise.
9096         * modules/unictype/property-ideographic-tests (Files): Likewise.
9097         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9098         * modules/unictype/property-ids-trinary-operator-tests (Files):
9099         Likewise.
9100         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9101         * modules/unictype/property-iso-control-tests (Files): Likewise.
9102         * modules/unictype/property-join-control-tests (Files): Likewise.
9103         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9104         * modules/unictype/property-line-separator-tests (Files): Likewise.
9105         * modules/unictype/property-logical-order-exception-tests (Files):
9106         Likewise.
9107         * modules/unictype/property-lowercase-tests (Files): Likewise.
9108         * modules/unictype/property-math-tests (Files): Likewise.
9109         * modules/unictype/property-non-break-tests (Files): Likewise.
9110         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9111         * modules/unictype/property-numeric-tests (Files): Likewise.
9112         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9113         * modules/unictype/property-other-default-ignorable-code-point-tests
9114         (Files): Likewise.
9115         * modules/unictype/property-other-grapheme-extend-tests (Files):
9116         Likewise.
9117         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9118         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9119         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9120         * modules/unictype/property-other-math-tests (Files): Likewise.
9121         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9122         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9123         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9124         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9125         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9126         * modules/unictype/property-private-use-tests (Files): Likewise.
9127         * modules/unictype/property-punctuation-tests (Files): Likewise.
9128         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9129         * modules/unictype/property-radical-tests (Files): Likewise.
9130         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9131         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9132         * modules/unictype/property-space-tests (Files): Likewise.
9133         * modules/unictype/property-terminal-punctuation-tests (Files):
9134         Likewise.
9135         * modules/unictype/property-test-tests (Files): Likewise.
9136         * modules/unictype/property-titlecase-tests (Files): Likewise.
9137         * modules/unictype/property-unassigned-code-value-tests (Files):
9138         Likewise.
9139         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9140         * modules/unictype/property-uppercase-tests (Files): Likewise.
9141         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9142         * modules/unictype/property-white-space-tests (Files): Likewise.
9143         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9144         * modules/unictype/property-xid-start-tests (Files): Likewise.
9145         * modules/unictype/property-zero-width-tests (Files): Likewise.
9146         * modules/unictype/scripts-tests (Files): Likewise.
9147         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9148         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9149         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9150         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9151         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9152         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9153         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9154         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9155         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9156         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9157         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9158         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9159         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9160         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9161         * modules/uninorm/composition-tests (Files): Likewise.
9162         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9163         * modules/uninorm/decomposition-tests (Files): Likewise.
9164         * modules/uninorm/filter-tests (Files): Likewise.
9165         * modules/uninorm/nfc-tests (Files): Likewise.
9166         * modules/uninorm/nfd-tests (Files): Likewise.
9167         * modules/uninorm/nfkc-tests (Files): Likewise.
9168         * modules/uninorm/nfkd-tests (Files): Likewise.
9169         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9170         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9171         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9172         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9173         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9174         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9175         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9176         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9177         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9178         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9179         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9180         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9181         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9182         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9183         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9184         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9185         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9186         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9187         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9188         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9189         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9190         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9191         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9192         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9193         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9194         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9195         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9196         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9197         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9198         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9199         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9200         * modules/uniwidth/u8-width-tests (Files): Likewise.
9201         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9202         * modules/uniwidth/u16-width-tests (Files): Likewise.
9203         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9204         * modules/uniwidth/u32-width-tests (Files): Likewise.
9205         * modules/uniwidth/width-tests (Files): Likewise.
9206         * modules/unlink-tests (Files): Likewise.
9207         * modules/unsetenv-tests (Files): Likewise.
9208         * modules/usleep-tests (Files): Likewise.
9209         * modules/utimens-tests (Files): Likewise.
9210         * modules/utimensat-tests (Files): Likewise.
9211         * modules/vasnprintf-posix-tests (Files): Likewise.
9212         * modules/vasnprintf-tests (Files): Likewise.
9213         * modules/vasprintf-posix-tests (Files): Likewise.
9214         * modules/vasprintf-tests (Files): Likewise.
9215         * modules/vdprintf-posix-tests (Files): Likewise.
9216         * modules/vfprintf-posix-tests (Files): Likewise.
9217         * modules/vprintf-posix-tests (Files): Likewise.
9218         * modules/vsnprintf-posix-tests (Files): Likewise.
9219         * modules/vsnprintf-tests (Files): Likewise.
9220         * modules/vsprintf-posix-tests (Files): Likewise.
9221         * modules/wcrtomb-tests (Files): Likewise.
9222         * modules/wcsnrtombs-tests (Files): Likewise.
9223         * modules/wcsrtombs-tests (Files): Likewise.
9224         * modules/wctype-tests (Files): Likewise.
9225         * modules/wcwidth-tests (Files): Likewise.
9226         * modules/xmemdup0-tests (Files): Likewise.
9227         * modules/xprintf-posix-tests (Files): Likewise.
9228         * modules/xvasprintf-tests (Files): Likewise.
9229
9230 2009-12-24  Eric Blake  <ebb9@byu.net>
9231
9232         test-nanosleep: fix typo
9233         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9234         patch.
9235         Reported by Bruno Haible.
9236
9237 2009-12-24  Bruno Haible  <bruno@clisp.org>
9238
9239         Reduce namespace pollution on glibc systems.
9240         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9241         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9242         systems.
9243         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9244         <getopt.h> on glibc systems.
9245         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9246         systems.
9247         * lib/fcntl.c: Include <unistd.h> here instead.
9248
9249 2009-12-24  Bruno Haible  <bruno@clisp.org>
9250
9251         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9252
9253 2009-12-24  Eric Blake  <ebb9@byu.net>
9254
9255         tests: add signature checks
9256         * tests/signature.h (SIGNATURE_CHECK): New file.
9257         * modules/atexit-tests (Files): Use it.
9258         * modules/btowc-tests (Files): Likewise.
9259         * modules/canonicalize-lgpl-tests (Files): Likewise.
9260         * modules/ceilf-tests (Files): Likewise.
9261         * modules/ceill-tests (Files): Likewise.
9262         * modules/chown-tests (Files): Likewise.
9263         * modules/dprintf-posix-tests (Files): Likewise.
9264         * modules/dup2-tests (Files): Likewise.
9265         * modules/dup3-tests (Files): Likewise.
9266         * modules/duplocale-tests (Files): Likewise.
9267         * modules/fchdir-tests (Files): Likewise.
9268         * modules/fcntl-tests (Files): Likewise.
9269         * modules/fdopendir-tests (Files): Likewise.
9270         * modules/fflush-tests (Files): Likewise.
9271         * modules/flock-tests (Files): Likewise.
9272         * modules/floorf-tests (Files): Likewise.
9273         * modules/floorl-tests (Files): Likewise.
9274         * modules/fnmatch-tests (Files): Likewise.
9275         * modules/fopen-tests (Files): Likewise.
9276         * modules/fprintf-posix-tests (Files): Likewise.
9277         * modules/freopen-tests (Files): Likewise.
9278         * modules/frexp-nolibm-tests (Files): Likewise.
9279         * modules/frexp-tests (Files): Likewise.
9280         * modules/frexpl-nolibm-tests (Files): Likewise.
9281         * modules/frexpl-tests (Files): Likewise.
9282         * modules/fseek-tests (Files): Likewise.
9283         * modules/fseeko-tests (Files): Likewise.
9284         * modules/fsync-tests (Files): Likewise.
9285         * modules/ftell-tests (Files): Likewise.
9286         * modules/ftello-tests (Files): Likewise.
9287         * modules/futimens-tests (Files): Likewise.
9288         * modules/getaddrinfo-tests (Files): Likewise.
9289         * modules/getcwd-tests (Files): Likewise.
9290         * modules/getdelim-tests (Files): Likewise.
9291         * modules/getdtablesize-tests (Files): Likewise.
9292         * modules/getgroups-tests (Files): Likewise.
9293         * modules/gethostname-tests (Files): Likewise.
9294         * modules/getline-tests (Files): Likewise.
9295         * modules/getopt-posix-tests (Files): Likewise.
9296         * modules/gettimeofday-tests (Files): Likewise.
9297         * modules/glob-tests (Files): Likewise.
9298         * modules/iconv-tests (Files): Likewise.
9299         * modules/inet_ntop-tests (Files): Likewise.
9300         * modules/inet_pton-tests (Files): Likewise.
9301         * modules/isblank-tests (Files): Likewise.
9302         * modules/lchown-tests (Files): Likewise.
9303         * modules/ldexpl-tests (Files): Likewise.
9304         * modules/link-tests (Files): Likewise.
9305         * modules/linkat-tests (Files): Likewise.
9306         * modules/lseek-tests (Files): Likewise.
9307         * modules/lstat-tests (Files): Likewise.
9308         * modules/mbrtowc-tests (Files): Likewise.
9309         * modules/mbsinit-tests (Files): Likewise.
9310         * modules/mbsnrtowcs-tests (Files): Likewise.
9311         * modules/mbsrtowcs-tests (Files): Likewise.
9312         * modules/memchr-tests (Files): Likewise.
9313         * modules/memcmp-tests (Files): Likewise.
9314         * modules/memmem-tests (Files): Likewise.
9315         * modules/memrchr-tests (Files): Likewise.
9316         * modules/mkdir-tests (Files): Likewise.
9317         * modules/mkfifo-tests (Files): Likewise.
9318         * modules/mkfifoat-tests (Files): Likewise.
9319         * modules/mknod-tests (Files): Likewise.
9320         * modules/nanosleep-tests (Files): Likewise.
9321         * modules/nl_langinfo-tests (Files): Likewise.
9322         * modules/obstack-printf-tests (Files): Likewise.
9323         * modules/open-tests (Files): Likewise.
9324         * modules/openat-tests (Files): Likewise.
9325         * modules/perror-tests (Files): Likewise.
9326         * modules/pipe2-tests (Files): Likewise.
9327         * modules/poll-tests (Files): Likewise.
9328         * modules/popen-tests (Files): Likewise.
9329         * modules/posix_spawn-tests (Files): Likewise.
9330         * modules/posix_spawnp-tests (Files): Likewise.
9331         * modules/pread-tests (Files): Likewise.
9332         * modules/printf-posix-tests (Files): Likewise.
9333         * modules/pty-tests (Files): Likewise.
9334         * modules/random_r-tests (Files): Likewise.
9335         * modules/rawmemchr-tests (Files): Likewise.
9336         * modules/readlink-tests (Files): Likewise.
9337         * modules/remove-tests (Files): Likewise.
9338         * modules/rename-tests (Files): Likewise.
9339         * modules/renameat-tests (Files): Likewise.
9340         * modules/rmdir-tests (Files): Likewise.
9341         * modules/round-tests (Files): Likewise.
9342         * modules/roundf-tests (Files): Likewise.
9343         * modules/roundl-tests (Files): Likewise.
9344         * modules/select-tests (Files): Likewise.
9345         * modules/setenv-tests (Files): Likewise.
9346         * modules/sigaction-tests (Files): Likewise.
9347         * modules/sleep-tests (Files): Likewise.
9348         * modules/snprintf-posix-tests (Files): Likewise.
9349         * modules/snprintf-tests (Files): Likewise.
9350         * modules/sprintf-posix-tests (Files): Likewise.
9351         * modules/stat-tests (Files): Likewise.
9352         * modules/strcasestr-tests (Files): Likewise.
9353         * modules/strchrnul-tests (Files): Likewise.
9354         * modules/strerror-tests (Files): Likewise.
9355         * modules/strsignal-tests (Files): Likewise.
9356         * modules/strstr-tests (Files): Likewise.
9357         * modules/strtod-tests (Files): Likewise.
9358         * modules/strverscmp-tests (Files): Likewise.
9359         * modules/symlink-tests (Files): Likewise.
9360         * modules/symlinkat-tests (Files): Likewise.
9361         * modules/times-tests (Files): Likewise.
9362         * modules/trunc-tests (Files): Likewise.
9363         * modules/truncf-tests (Files): Likewise.
9364         * modules/truncl-tests (Files): Likewise.
9365         * modules/tsearch-tests (Files): Likewise.
9366         * modules/uname-tests (Files): Likewise.
9367         * modules/unlink-tests (Files): Likewise.
9368         * modules/unsetenv-tests (Files): Likewise.
9369         * modules/usleep-tests (Files): Likewise.
9370         * modules/utimensat-tests (Files): Likewise.
9371         * modules/vasprintf-tests (Files): Likewise.
9372         * modules/vdprintf-posix-tests (Files): Likewise.
9373         * modules/vfprintf-posix-tests (Files): Likewise.
9374         * modules/vprintf-posix-tests (Files): Likewise.
9375         * modules/vsnprintf-posix-tests (Files): Likewise.
9376         * modules/vsnprintf-tests (Files): Likewise.
9377         * modules/vsprintf-posix-tests (Files): Likewise.
9378         * modules/wcrtomb-tests (Files): Likewise.
9379         * modules/wcsnrtombs-tests (Files): Likewise.
9380         * modules/wcsrtombs-tests (Files): Likewise.
9381         * modules/wcwidth-tests (Files): Likewise.
9382         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9383         * tests/test-isinf.c (isinf): Likewise.
9384         * tests/test-isnan.c (isnan): Likewise.
9385         * tests/test-signbit.c (signbit): Likewise.
9386         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9387         declaration, either as macro or with correct signature.
9388         (select): Ensure function under test is declared with correct
9389         signature in correct header.
9390         * tests/test-atexit.c (atexit): Likewise.
9391         * tests/test-btowc.c (btowc): Likewise.
9392         * tests/test-canonicalize-lgpl.c (realpath)
9393         (canonicalize_file_name): Likewise.
9394         * tests/test-ceilf1.c (ceilf): Likewise.
9395         * tests/test-ceill.c (ceill): Likewise.
9396         * tests/test-chown.c (chown): Likewise.
9397         * tests/test-dprintf-posix.c (dprintf): Likewise.
9398         * tests/test-dup2.c (dup2): Likewise.
9399         * tests/test-dup3.c (dup3): Likewise.
9400         * tests/test-duplocale.c (duplocale): Likewise.
9401         * tests/test-fchdir.c (fchdir): Likewise.
9402         * tests/test-fchownat.c (fchownat): Likewise.
9403         * tests/test-fcntl.c (fcntl): Likewise.
9404         * tests/test-fdopendir.c (fdopendir): Likewise.
9405         * tests/test-fflush.c (fflush): Likewise.
9406         * tests/test-flock.c (flock): Likewise.
9407         * tests/test-floorf1.c (floorf): Likewise.
9408         * tests/test-floorl.c (floorl): Likewise.
9409         * tests/test-fnmatch.c (fnmatch): Likewise.
9410         * tests/test-fopen.c (fopen): Likewise.
9411         * tests/test-fprintf-posix.c (fprintf): Likewise.
9412         * tests/test-freopen.c (freopen): Likewise.
9413         * tests/test-frexp.c (frexp): Likewise.
9414         * tests/test-frexpl.c (frexpl): Likewise.
9415         * tests/test-fseek.c (fseek): Likewise.
9416         * tests/test-fseeko.c (fseeko): Likewise.
9417         * tests/test-fstatat.c (fstatat): Likewise.
9418         * tests/test-fsync.c (fsync): Likewise.
9419         * tests/test-ftell.c (ftell): Likewise.
9420         * tests/test-ftello.c (ftello): Likewise.
9421         * tests/test-futimens.c (futimens): Likewise.
9422         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9423         (gai_strerror): Likewise.
9424         * tests/test-getcwd.c (getcwd): Likewise.
9425         * tests/test-getdelim.c (getdelim): Likewise.
9426         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9427         * tests/test-getgroups.c (getgroups): Likewise.
9428         * tests/test-gethostname.c (gethostname): Likewise.
9429         * tests/test-getline.c (getline): Likewise.
9430         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9431         Likewise.
9432         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9433         * tests/test-glob.c (glob, globfree): Likewise.
9434         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9435         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9436         * tests/test-inet_pton.c (inet_pton): Likewise.
9437         * tests/test-isblank.c (isblank): Likewise.
9438         * tests/test-lchown.c (lchown): Likewise.
9439         * tests/test-ldexpl.c (ldexpl): Likewise.
9440         * tests/test-link.c (link): Likewise.
9441         * tests/test-linkat.c (linkat): Likewise.
9442         * tests/test-lseek.c (lseek): Likewise.
9443         * tests/test-lstat.c (lstat): Likewise.
9444         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9445         * tests/test-mbsinit.c (mbsinit): Likewise.
9446         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9447         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9448         * tests/test-memchr.c (memchr): Likewise.
9449         * tests/test-memcmp.c (memcmp): Likewise.
9450         * tests/test-memmem.c (memmem): Likewise.
9451         * tests/test-memrchr.c (memrchr): Likewise.
9452         * tests/test-mkdir.c (mkdir): Likewise.
9453         * tests/test-mkdirat.c (mkdirat): Likewise.
9454         * tests/test-mkfifo.c (mkfifo): Likewise.
9455         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9456         * tests/test-mknod.c (mknod): Likewise.
9457         * tests/test-nanosleep.c (nanosleep): Likewise.
9458         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9459         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9460         Likewise.
9461         * tests/test-open.c (open): Likewise.
9462         * tests/test-openat.c (openat): Likewise.
9463         * tests/test-perror.c (perror): Likewise.
9464         * tests/test-pipe2.c (pipe2): Likewise.
9465         * tests/test-poll.c (poll): Likewise.
9466         * tests/test-popen.c (popen, pclose): Likewise.
9467         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9468         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9469         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9470         (posix_spawn_file_actions_destroy)
9471         (posix_spawn_file_actions_addclose)
9472         (posix_spawn_file_actions_addopen)
9473         (posix_spawn_file_actions_adddup2): Likewise.
9474         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9475         * tests/test-pread.c (pread): Likewise.
9476         * tests/test-printf-posix.c (printf): Likewise.
9477         * tests/test-pty.c (openpty, forkpty): Likewise.
9478         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9479         (random_r): Likewise.
9480         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9481         * tests/test-readlink.c (readlink): Likewise.
9482         * tests/test-remove.c (remove): Likewise.
9483         * tests/test-rename.c (rename): Likewise.
9484         * tests/test-renameat.c (renameat): Likewise.
9485         * tests/test-rmdir.c (rmdir): Likewise.
9486         * tests/test-round1.c (round): Likewise.
9487         * tests/test-roundf1.c (roundf): Likewise.
9488         * tests/test-roundl.c (roundl): Likewise.
9489         * tests/test-setenv.c (setenv): Likewise.
9490         * tests/test-sigaction.c (sigaction): Likewise.
9491         * tests/test-sleep.c (sleep): Likewise.
9492         * tests/test-snprintf.c (snprintf): Likewise.
9493         * tests/test-sprintf-posix.c (sprintf): Likewise.
9494         * tests/test-stat.c (stat): Likewise.
9495         * tests/test-stpncpy.c (stpncpy): Likewise.
9496         * tests/test-strcasestr.c (strcasestr): Likewise.
9497         * tests/test-strchrnul.c (strchrnul): Likewise.
9498         * tests/test-strerror.c (strerror): Likewise.
9499         * tests/test-strsignal.c (strsignal): Likewise.
9500         * tests/test-strstr.c (strstr): Likewise.
9501         * tests/test-strtod.c (strtod): Likewise.
9502         * tests/test-strverscmp.c (strverscmp): Likewise.
9503         * tests/test-symlink.c (symlink): Likewise.
9504         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9505         * tests/test-times.c (times): Likewise.
9506         * tests/test-trunc1.c (trunc): Likewise.
9507         * tests/test-truncf1.c (truncf): Likewise.
9508         * tests/test-truncl.c (truncl): Likewise.
9509         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9510         Likewise.
9511         * tests/test-uname.c (uname): Likewise.
9512         * tests/test-unlink.c (unlink): Likewise.
9513         * tests/test-unlinkat.c (unlinkat): Likewise.
9514         * tests/test-unsetenv.c (unsetenv): Likewise.
9515         * tests/test-usleep.c (usleep): Likewise.
9516         * tests/test-utimensat.c (utimensat): Likewise.
9517         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9518         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9519         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9520         * tests/test-vprintf-posix.c (vprintf): Likewise.
9521         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9522         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9523         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9524         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9525         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9526         * tests/test-wcwidth.c (wcwidth): Likewise.
9527
9528         build: pull in conditional headers during GNULIB_POSIXCHECK
9529         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9530         definitions from any conditionally-included headers.
9531         * lib/stdlib.in.h (includes): Likewise.
9532         * lib/unistd.in.h (includes): Likewise.
9533
9534 2009-12-24  Bruno Haible  <bruno@clisp.org>
9535
9536         * tests/test-argv-iter.c: Include header file being tested immediately
9537         after config.h.
9538         * tests/test-base64.c: Likewise.
9539         * tests/test-flock.c: Likewise.
9540         * tests/test-fsync.c: Likewise.
9541         * tests/test-getdate.c: Likewise.
9542         * tests/test-getndelim2.c: Likewise.
9543         * tests/test-isfinite.c: Likewise.
9544         * tests/test-isinf.c: Likewise.
9545         * tests/test-strerror.c: Likewise.
9546         * tests/test-strsignal.c: Likewise.
9547
9548 2009-12-23  Eric Blake  <ebb9@byu.net>
9549
9550         unistd: work around cygwin bug
9551         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9552         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9553         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9554
9555 2009-12-23  Bruno Haible  <bruno@clisp.org>
9556
9557         localename: More tests.
9558         * tests/test-localename.c (SIZEOF): New macro.
9559         (categories): New variable.
9560         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9561         test_locale_name_default): Add test w.r.t. thread locale.
9562         (test_locale_name_thread): New function.
9563         (main): Invoke it.
9564
9565         localename: Make aware of thread locale.
9566         * lib/localename.h (gl_locale_name_thread): New declaration.
9567         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9568         behaviour with respect to thread locale.
9569         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9570         <langinfo.h>, glthread/lock.h.
9571         (SIZE_BITS): New macro.
9572         (string_hash): New function.
9573         (struct hash_node): New type.
9574         (HASH_TABLE_SIZE): New macro.
9575         (struniq_hash_table, struniq_lock): New variables.
9576         (struniq): New function.
9577         (gl_locale_name_thread): New function.
9578         (gl_locale_name): Invoke it.
9579         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9580         * modules/localename (Depends-on): Add lock.
9581         Reported by Mike Gran <spk121@yahoo.com>.
9582
9583 2009-12-23  Eric Blake  <ebb9@byu.net>
9584
9585         va-args: new module
9586         * modules/va-args: New file.
9587         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9588         * MODULES.html.sh (Core language properties): Mention it.
9589
9590         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9591         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9592         named alias for __attribute__((__unused__)).
9593         * lib/chown.c: Update client.
9594         * lib/fchmodat.c: Likewise.
9595         * lib/fts.c: Likewise.
9596         * lib/getdate.y: Likewise.
9597         * lib/getgroups.c: Likewise.
9598         * lib/getopt.c: Likewise.
9599         * lib/getugroups.c: Likewise.
9600         * lib/mkdir.c: Likewise.
9601         * lib/mkfifo.c: Likewise.
9602         * lib/mkfifoat.c: Likewise.
9603         * lib/mknod.c: Likewise.
9604         * lib/mknodat.c: Likewise.
9605         * lib/readlink.c: Likewise.
9606         * lib/se-context.in.h: Likewise.
9607         * lib/se-selinux.in.h: Likewise.
9608         * lib/sockets.c: Likewise.
9609         * lib/symlink.c: Likewise.
9610         * lib/symlinkat.c: Likewise.
9611         * lib/unicodeio.c: Likewise.
9612         * lib/unistr.h: Likewise.
9613         * tests/test-areadlink.c: Likewise.
9614         * tests/test-areadlinkat.c: Likewise.
9615         * tests/test-filenamecat.c: Likewise.
9616         * tests/test-fseeko.c: Likewise.
9617         * tests/test-ftello.c: Likewise.
9618         * tests/test-getdate.c: Likewise.
9619         * tests/test-getgroups.c: Likewise.
9620         * tests/test-gethostname.c: Likewise.
9621         * tests/test-quotearg.c: Likewise.
9622         * tests/test-version-etc.c: Likewise.
9623         * tests/test-xalloc-die.c: Likewise.
9624         * tests/test-xfprintf-posix.c: Likewise.
9625         * tests/test-xprintf-posix.c: Likewise.
9626         * tests/test-xvasprintf.c: Likewise.
9627
9628         tests: avoid compiler warnings
9629         * tests/test-fcntl.c (main): Delete unused parameters.
9630         * tests/test-freopen-safer.c (main): Likewise.
9631         * tests/test-xalloc-die.c (main): Mark unused parameters.
9632         * tests/test-fseeko.c (main): Likewise.
9633         * tests/test-ftello.c (main): Likewise.
9634         * tests/test-nanosleep.c (main): Avoid declaration warning.
9635         * tests/test-sleep.c (main): Likewise.
9636         * tests/test-unsetenv.c (main): Silence warning about string
9637         literal.
9638         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9639
9640 2009-12-23  Bruno Haible  <bruno@clisp.org>
9641
9642         * tests/test-localename.c (test_locale_name): New function, extracted
9643         from main. Also test mixed situations.
9644         (test_locale_name_posix, test_locale_name_environ,
9645         test_locale_name_default): New functions.
9646         (main): Invoke them all.
9647         * modules/localename-tests (configure.ac): Test for newlocale.
9648
9649 2009-12-23  Bruno Haible  <bruno@clisp.org>
9650
9651         unistd: Ensure getcwd gets declared before being overridden.
9652         * lib/unistd.in.h: Conditionally include <io.h>.
9653
9654 2009-12-22  Bruno Haible  <bruno@clisp.org>
9655
9656         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9657         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9658         (gl_WCHAR_H): Invoke it.
9659         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9660         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9661         Reported by Karl Berry <karl@freefriends.org>.
9662
9663 2009-12-22  Eric Blake  <ebb9@byu.net>
9664
9665         math, unistd: avoid redundant includes
9666         * lib/math.in.h (isnan): No need to re-include <math.h>.
9667         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9668
9669         getsubopt: work around cygwin bug
9670         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9671         avoid conflicting with system getsubopt.
9672         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9673         bug.
9674
9675         getopt: synchronize from glibc
9676         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9677         parameter order.  Adjust all callers.
9678         (_getopt_internal_r, main): Adjust quoting in error messages.
9679         Drop considerations for outdated POSIX 1003.2 error message.
9680         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9681         callers.
9682         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9683
9684         test-getopt: test stderr behavior
9685         * modules/getopt-posix-tests (Depends-on): Add dup2.
9686         * tests/test-getopt.c (ASSERT): Avoid stderr.
9687         (main): Move stderr to a temporary file.
9688         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9689         Instead, add parameter to inform caller if output occurred.
9690         (test_getopt): Adjust all existing tests to expect silence, and
9691         add new tests of leading ":".
9692         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9693         glibc shortcomings with leading "-:" or "+:" in optstring.
9694         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9695         Likewise.
9696         * doc/posix-functions/getopt.texi (getopt): Likewise.
9697
9698         test-getopt: enhance test
9699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9700         supports optind=0.
9701         * tests/test-getopt.c (OPTIND_MIN): Move...
9702         * tests/test-getopt.h (OPTIND_MIN): ...here.
9703         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9704         Require that optind=0 works, since modern BSD supports it in
9705         addition to optreset, and since coreutils expects it.
9706         (test_getopt_long_only): New test.
9707         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9708         glibc shortcomings with 'W;', and enforcement of optind=0.
9709         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9710         Likewise.
9711
9712 2009-12-21  Bruno Haible  <bruno@clisp.org>
9713
9714         localename: Improvements for MacOS X and Cygwin.
9715         * lib/localename.h (gl_locale_name_environ): New declaration.
9716         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9717         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9718         (gl_locale_name_posix): Invoke it.
9719         (gl_locale_name_default): Add comments. Use Windows native API also on
9720         Cygwin.
9721
9722 2009-12-21  Bruno Haible  <bruno@clisp.org>
9723
9724         Update list of Win32 locale ids.
9725         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9726         (LANG_SAMI): Renamed from LANG_SAAMI.
9727         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9728         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9729         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9730         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9731         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9732         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9733         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9734         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9735         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9736         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9737         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9738         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9739         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9740         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9741         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9742         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9743         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9744         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9745         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9746         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9747         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9748         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9749         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9750         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9751         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9752         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9753         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9754         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9755         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9756         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9757         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9758         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9759         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9760         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9761         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9762         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9763         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9764         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9765         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9766         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9767         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9768         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9769         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9770         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9771         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9772         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9773         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9774         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9775         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9776         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9777         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9778         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9779         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9780         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9781         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9782         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9783         Add more languages and countries for Sami, Sorbian. Add more countries
9784         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9785         for Pashto. Change country for Syriac, Tswana.
9786
9787 2009-12-21  Eric Blake  <ebb9@byu.net>
9788
9789         test-utimens: avoid spurious failure
9790         * tests/test-chown.h (nap): Factor...
9791         * tests/nap.h: ...into new file.
9792         * tests/test-lchown.h (nap): Avoid duplication.
9793         * tests/test-utimens-common.h (nap): Use shared implementation,
9794         necessary on file systems with 1-second resolution.
9795         * modules/chown-tests (Files): Include new file.
9796         * modules/fdutimensat-tests (Files): Likewise.
9797         * modules/futimens-tests (Files): Likewise.
9798         * modules/lchown-tests (Files): Likewise.
9799         * modules/openat-tests (Files): Likewise.
9800         * modules/utimens-tests (Files): Likewise.
9801         * modules/utimensat-tests (Files): Likewise.
9802
9803 2009-12-19  Eric Blake  <ebb9@byu.net>
9804
9805         futimens, utimensat: work around Linux bug
9806         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9807         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9808         * lib/utimensat.c (rpl_utimensat): Work around it.
9809         * lib/futimens.c (rpl_futimens): Adjust comment.
9810
9811         utimens: work around Linux ctime bug
9812         * lib/utimens.c (detect_ctime_bug): New helper function.
9813         (update_timespec): Differentiate between workaround needed for
9814         this bug vs. what is needed for systems that lack utimensat.
9815         (fdutimens, lutimens): Work around bug.
9816
9817         utimens: check for ctime update
9818         * tests/test-utimens-common.h (check_ctime): Define.
9819         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9820         * tests/test-futimens.h (test_futimens): Likewise.
9821         * tests/test-lutimens.h (test_lutimens): Likewise.
9822         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9823         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9824
9825 2009-12-19  Bruno Haible  <bruno@clisp.org>
9826
9827         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9828         * tests/test-dprintf-posix2.sh: New file.
9829         * tests/test-dprintf-posix2.c: New file.
9830         * modules/dprintf-posix-tests (Files): Add them.
9831         (configure.ac): Check for getrlimit and setrlimit.
9832         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9833
9834 2009-12-19  Bruno Haible  <bruno@clisp.org>
9835
9836         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9837         * tests/test-fprintf-posix3.sh: New file.
9838         * tests/test-fprintf-posix3.c: New file.
9839         * modules/fprintf-posix-tests (Files): Add them.
9840         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9841
9842 2009-12-19  Eric Blake  <ebb9@byu.net>
9843
9844         dirfd: fix prototype
9845         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9846         * lib/dirfd.c (dirfd): Likewise.
9847
9848         canonicalize: reduce memory usage
9849         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9850         allocation to size.
9851         Reported by Solar Designer <solar@openwall.com>.
9852
9853 2009-12-19  Bruno Haible  <bruno@clisp.org>
9854
9855         New module attribute 'Applicability'.
9856         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9857         * gnulib-tool: New option --extract-applicability.
9858         (func_usage): Document it.
9859         (sed_extract_prog): Recognize it.
9860         (func_get_applicability): New function.
9861         (func_import): Generalize handling of 'link-warning' module.
9862         * modules/link-warning (Applicability): New section.
9863         * modules/arg-nonnull (Applicability): New section.
9864         Repoted by Simon Josefsson <simon@josefsson.org>.
9865
9866 2009-12-19  Bruno Haible  <bruno@clisp.org>
9867
9868         fflush: tweak
9869         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9870         * lib/fseeko.c (rpl_fseeko): Likewise.
9871
9872 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9873
9874         * lib/gl_list.h: Fix typo in comment.
9875
9876 2009-12-16  Eric Blake  <ebb9@byu.net>
9877
9878         fcntl: use to simplify other modules
9879         * modules/cloexec (Depends-on): Add fcntl.
9880         * modules/fchdir (Depends-on): Likewise.
9881         * modules/fd-safer-flag (Depends-on): Likewise.
9882         * modules/unistd-safer (Depends-on): Likewise.
9883         * modules/dup3 (configure.ac): Set module indicator.
9884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
9885         missing.
9886         * lib/fchdir.c (_gl_register_dup): Fix comment.
9887         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
9888         * lib/dup-safer.c (dup_safer): Likewise.
9889         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
9890         * lib/dup3.c (dup3): Likewise.
9891         * tests/test-fchdir.c (main): Enhance test.
9892         Fixes a dup_cloexec bug reported by Ondřej Vašík.
9893
9894         fcntl: port portions of fcntl to mingw
9895         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
9896         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
9897         replacement for mingw.
9898         * modules/fcntl (Description): Update.
9899         (Depends-on): Add dup2.
9900         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
9901         * modules/fcntl-h (Makefile.am): Substitute it.
9902         * lib/fcntl.in.h (fcntl): Update declaration.
9903         (F_DUPFD, F_GETFD): New macros, when needed.
9904         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9905         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
9906         * tests/test-fcntl.c (check_flags, main): Enhance test for items
9907         we now guarantee.
9908
9909         fcntl: work around cygwin bug in F_DUPFD
9910         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
9911         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
9912         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
9913         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
9914         * doc/posix-functions/fcntl.texi (fcntl): Document it.
9915
9916         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
9917         * modules/fcntl (Files): List new files.
9918         (configure.ac): Run a test.
9919         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
9920         * lib/fcntl.c (rpl_fcntl): Likewise.
9921         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
9922         (gl_FCNTL_H): Always replace fcntl.h.
9923         * modules/fcntl-h (Makefile.am): Substitute witnesses.
9924         * lib/fcntl.in.h (fcntl): Declare replacement.
9925         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
9926         needed, plus a witness.
9927         * doc/posix-functions/fcntl.texi (fcntl): Document this.
9928         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9929         * tests/test-fcntl.c: New file.
9930         * modules/fcntl-tests: Likewise.
9931
9932         binary-io: avoid potential compilation warning
9933         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
9934         directives.
9935
9936         fflush: avoid compilation error on NetBSD
9937         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
9938         between off_t and fpos_t, since the latter is sometimes a struct.
9939         * lib/fseeko.c (rpl_fseeko): Likewise.
9940         Reported by Alexander Nasonov <alnsn@yandex.ru>.
9941
9942 2009-12-15  Eric Blake  <ebb9@byu.net>
9943
9944         fcntl-h, stdio, sys_ioctl: fix declarations
9945         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
9946         function must not take arguments.
9947         * lib/sys_ioctl.in.h (ioctl): Likewise.
9948         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
9949         (open): Add a link warning.
9950
9951 2009-12-15  Jim Meyering  <meyering@redhat.com>
9952
9953         areadlink, areadlink-with-size: relax license to LGPLv2+
9954         * modules/areadlink (License): Relax to LGPLv2+.
9955         * modules/areadlink-with-size (License): Likewise.
9956
9957 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
9958             Bruno Haible  <bruno@clisp.org>
9959
9960         *printf: Fix memory leak.
9961         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
9962         * lib/vfprintf.c (vfprintf): Likewise.
9963         * lib/dprintf.c (dprintf): Likewise.
9964         * lib/vdprintf.c (vdprintf): Likewise.
9965
9966 2009-12-14  Eric Blake  <ebb9@byu.net>
9967
9968         accept4: adjust module dependencies
9969         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
9970
9971         utimens: one more try at avoiding compiler warning
9972         * lib/utimens.c (lutimens): Lower scope of result.
9973
9974 2009-12-13  Bruno Haible  <bruno@clisp.org>
9975
9976         Move the malloc checking from module 'list' to new module 'xlist'.
9977         * modules/xlist: New file.
9978         * lib/gl_xlist.h: New file.
9979         * lib/gl_xlist.c: New file.
9980         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
9981         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
9982         gl_list_add_last, gl_list_add_before, gl_list_add_after,
9983         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
9984         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
9985         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
9986         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
9987         gl_sortedlist_nx_add): New declarations.
9988         (struct gl_list_implementation): Rename and change methods accordingly.
9989         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
9990         (gl_list_nx_create): Renamed from gl_list_create.
9991         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9992         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9993         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9994         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9995         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9996         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9997         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9998         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9999         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10000         gl_list_create_empty.
10001         (gl_list_nx_create): Renamed from gl_list_create.
10002         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10003         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10004         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10005         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10006         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10007         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10008         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10009         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10010         * lib/gl_array_list.c: Don't include xalloc.h.
10011         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10012         NULL upon out-of-memory.
10013         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10014         out-of-memory.
10015         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10016         Change return type to 'int'.
10017         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10018         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10019         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10020         upon out-of-memory.
10021         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10022         upon out-of-memory.
10023         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10024         upon out-of-memory.
10025         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10026         upon out-of-memory.
10027         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10028         out-of-memory.
10029         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10030         Update.
10031         (gl_array_list_implementation): Update.
10032         * lib/gl_carray_list.c: Don't include xalloc.h.
10033         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10034         Return NULL upon out-of-memory.
10035         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10036         out-of-memory.
10037         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10038         Change return type to 'int'.
10039         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10040         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10041         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10042         upon out-of-memory.
10043         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10044         upon out-of-memory.
10045         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10046         out-of-memory.
10047         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10048         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10049         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10050         Update.
10051         (gl_carray_list_implementation): Update.
10052         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10053         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10054         gl_linked_create_empty. Return NULL upon out-of-memory.
10055         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10056         out-of-memory.
10057         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10058         Change return type to 'int'. Return -1 upon out-of-memory.
10059         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10060         out-of-memory.
10061         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10062         upon out-of-memory.
10063         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10064         upon out-of-memory.
10065         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10066         NULL upon out-of-memory.
10067         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10068         upon out-of-memory.
10069         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10070         out-of-memory.
10071         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10072         Update.
10073         * lib/gl_linked_list.c: Don't include xalloc.h.
10074         (gl_linked_list_implementation): Update.
10075         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10076         (add_to_bucket): Change return type to 'int'.
10077         (gl_linkedhash_list_implementation): Update.
10078         * lib/gl_anytree_list1.h (free_subtree): New function.
10079         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10080         gl_tree_create_empty. Return NULL upon out-of-memory.
10081         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10082         Change return type to 'int'. Return -1 upon out-of-memory.
10083         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10084         out-of-memory.
10085         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10086         (gl_tree_remove_node): New function, moved here from
10087         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10088         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10089         Update.
10090         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10091         malloc, not xmalloc. Return NULL upon out-of-memory.
10092         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10093         out-of-memory.
10094         (gl_tree_remove_node_from_tree): New function, extracted from
10095         gl_tree_remove_node.
10096         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10097         upon out-of-memory.
10098         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10099         out-of-memory.
10100         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10101         upon out-of-memory.
10102         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10103         upon out-of-memory.
10104         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10105         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10106         not xmalloc. Return NULL upon out-of-memory.
10107         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10108         out-of-memory.
10109         (gl_tree_remove_node_from_tree): New function, extracted from
10110         gl_tree_remove_node.
10111         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10112         upon out-of-memory.
10113         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10114         out-of-memory.
10115         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10116         upon out-of-memory.
10117         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10118         upon out-of-memory.
10119         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10120         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10121         gl_anytree_list1.h before gl_anyavltree_list2.h.
10122         (gl_avltree_list_implementation): Update.
10123         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10124         gl_anytree_list1.h before gl_anyavltree_list2.h.
10125         (gl_rbtree_list_implementation): Update.
10126         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10127         Change return type to 'int'. Return -1 upon out-of-memory. Use
10128         __builtin_expect.
10129         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10130         (gl_avltreehash_list_implementation): Update.
10131         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10132         (gl_rbtreehash_list_implementation): Update.
10133         * modules/array-list (Depends-on): Remove xalloc.
10134         * modules/carray-list (Depends-on): Likewise.
10135         * modules/linked-list (Depends-on): Likewise.
10136         * modules/linkedhash-list (Depends-on): Likewise.
10137         * modules/avltree-list (Depends-on): Likewise.
10138         * modules/rbtree-list (Depends-on): Likewise.
10139         * modules/avltreehash-list (Depends-on): Likewise.
10140         * modules/rbtreehash-list (Depends-on): Likewise.
10141
10142         * modules/xsublist: New file.
10143         * lib/gl_xsublist.h: New file.
10144         * lib/gl_xsublist.c: New file.
10145         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10146         (gl_sublist_nx_create): New declaration.
10147         * lib/gl_sublist.c: Don't include xalloc.h.
10148         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10149         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10150         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10151         Change return type to 'int'. Return -1 upon out-of-memory.
10152         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10153         upon out-of-memory.
10154         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10155         NULL upon out-of-memory.
10156         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10157         upon out-of-memory.
10158         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10159         NULL upon out-of-memory.
10160         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10161         NULL upon out-of-memory.
10162         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10163         upon out-of-memory.
10164         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10165         (gl_sublist_list_implementation): Update.
10166         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10167         upon out-of-memory.
10168         * modules/sublist (Depends-on): Remove xalloc.
10169
10170         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10171         * tests/test-carray_list.c: Likewise.
10172         * tests/test-linked_list.c: Likewise.
10173         * tests/test-linkedhash_list.c: Likewise.
10174         * tests/test-avltree_list.c: Likewise.
10175         * tests/test-rbtree_list.c: Likewise.
10176         * tests/test-avltreehash_list.c: Likewise.
10177         * tests/test-rbtreehash_list.c: Likewise.
10178         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10179         * modules/carray-list-tests (Makefile.am): Likewise.
10180         * modules/linked-list-tests (Makefile.am): Likewise.
10181         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10182         * modules/avltree-list-tests (Makefile.am): Likewise.
10183         * modules/rbtree-list-tests (Makefile.am): Likewise.
10184         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10185         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10186
10187         * NEWS: Mention the changes.
10188
10189         * lib/clean-temp.c: Include gl_xlist.h.
10190         * modules/clean-temp (Depends-on): Add xlist.
10191
10192         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10193         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10194
10195         * tests/test-array_oset.c: Include gl_xlist.h.
10196         * modules/array-oset-tests (Depends-on): Add xlist.
10197
10198         Reported by José E. Marchesi <jemarch@gnu.org>.
10199
10200 2009-12-13  Bruno Haible  <bruno@clisp.org>
10201
10202         Move the malloc checking from module 'oset' to new module 'xoset'.
10203         * modules/xoset: New file.
10204         * lib/gl_xoset.h: New file.
10205         * lib/gl_xoset.c: New file.
10206         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10207         declarations.
10208         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10209         (struct gl_oset_implementation): Rename and change methods accordingly.
10210         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10211         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10212         'int'. Mark as __warn_unused_result__.
10213         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10214         gl_oset_create_empty.
10215         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10216         'int'.
10217         * lib/gl_array_oset.c: Don't include xalloc.h.
10218         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10219         malloc, not xmalloc.
10220         (grow): Change return type to 'int'. Don't call xalloc_die.
10221         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10222         to 'int'.
10223         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10224         'int'.
10225         (gl_array_oset_implementation): Update.
10226         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10227         gl_tree_create_empty.
10228         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10229         'int'.
10230         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10231         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10232         xmalloc.
10233         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10234         not xmalloc.
10235         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10236         xmalloc.
10237         (gl_avltree_oset_implementation): Update.
10238         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10239         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10240         xmalloc.
10241         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10242         not xmalloc.
10243         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10244         xmalloc.
10245         (gl_rbtree_oset_implementation): Update.
10246         * modules/array-oset (Depends-on): Remove xalloc.
10247         * modules/avltree-oset (Depends-on): Likewise.
10248         * modules/rbtree-oset (Depends-on): Likewise.
10249         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10250         * tests/test-avltree_oset.c: Likewise.
10251         * tests/test-rbtree_oset.c: Likewise.
10252         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10253         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10254         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10255         * NEWS: Mention the change.
10256
10257 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10258
10259         maint.mk: allow a project to override release-prep commands
10260         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10261         commands into a new rule.
10262         (release-prep): New rule.
10263         (release-prep-hook): New overridable variable.
10264
10265 2009-12-13  Bruno Haible  <bruno@clisp.org>
10266
10267         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10268
10269 2009-12-13  Jim Meyering  <meyering@redhat.com>
10270
10271         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10272         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10273
10274 2009-12-12  Bruno Haible  <bruno@clisp.org>
10275
10276         duplocale: Tweak.
10277         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10278
10279 2009-12-12  Karl Berry  <karl@gnu.org>
10280
10281         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10282
10283 2009-12-12  Bruno Haible  <bruno@clisp.org>
10284
10285         * m4/po.m4: Undo incorrect untabification.
10286
10287 2009-12-12  Bruno Haible  <bruno@clisp.org>
10288
10289         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10290         * modules/c-strtod (Depends-on): Add locale.
10291         * modules/c-strtold (Depends-on): Likewise.
10292
10293 2009-12-12  Bruno Haible  <bruno@clisp.org>
10294
10295         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10296
10297 2009-12-11  Eric Blake  <ebb9@byu.net>
10298
10299         setenv: relax requirement in light of POSIX ruling
10300         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10301         not NULL.
10302         * tests/test-setenv.c (main): Relax test.
10303         * tests/test-unsetenv.c (main): Likewise.
10304         * doc/posix-functions/setenv.texi (setenv): Document this.
10305         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10306
10307 2009-12-11  Bruno Haible  <bruno@clisp.org>
10308
10309         New module 'fd-safer-flag'.
10310         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10311         * lib/dup-safer.c (dup_safer_flag): Remove function.
10312         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10313         * lib/fd-safer.c (fd_safer_flag): Remove function.
10314         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10315         * modules/cloexec (configure.ac): Drop indicator macro.
10316         * modules/fd-safer-flag: New file.
10317         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10318         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10319         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10320
10321 2009-12-11  Bruno Haible  <bruno@clisp.org>
10322
10323         Tests for module 'nl_langinfo'.
10324         * modules/nl_langinfo-tests: New file.
10325         * tests/test-nl_langinfo.sh: New file.
10326         * tests/test-nl_langinfo.c: New file.
10327
10328         New module 'nl_langinfo'.
10329         * lib/nl_langinfo.c: New file.
10330         * m4/nl_langinfo.m4: New file.
10331         * modules/nl_langinfo: New file.
10332         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10333
10334 2009-12-11  Bruno Haible  <bruno@clisp.org>
10335
10336         Tests for module 'langinfo'.
10337         * modules/langinfo-tests: New file.
10338         * tests/test-langinfo.c: New file.
10339
10340         New module 'langinfo'.
10341         * lib/langinfo.in.h: New file.
10342         * m4/langinfo_h.m4: New file.
10343         * modules/langinfo: New file.
10344         * doc/posix-headers/langinfo.texi: Mention the new module.
10345
10346 2009-12-11  Bruno Haible  <bruno@clisp.org>
10347
10348         * lib/config.charset: Untabify.
10349
10350 2009-12-11  Bruno Haible  <bruno@clisp.org>
10351
10352         * modules/unistd-safer (configure.ac): Drop indicator macro.
10353
10354 2009-12-11  Bruno Haible  <bruno@clisp.org>
10355
10356         Move pipe2-safer code to its own file.
10357         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10358         * lib/pipe-safer.c (pipe2_safer): Remove function.
10359         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10360         (Makefile.am): Add it to lib_SOURCES.
10361
10362 2009-12-10  Bruno Haible  <bruno@clisp.org>
10363
10364         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10365
10366 2009-12-10  Bruno Haible  <bruno@clisp.org>
10367
10368         Declare which arguments expect non-NULL values, for GCC and clang.
10369         * build-aux/arg-nonnull.h: New file.
10370         * modules/arg-nonnull: New file.
10371         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10372         (inet_ntop, inet_pton): Use it.
10373         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10374         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10375         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10376         (open, openat): Use it.
10377         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10378         (fnmatch): Use it.
10379         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10380         (getopt, getopt_long, getopt_long_only): Use it.
10381         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10382         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10383         Use it.
10384         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10385         (iconv_open): Use it.
10386         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10387         (strtoimax, strtoumax): Use it.
10388         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10389         (duplocale): Use it.
10390         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10391         (frexp, frexpl): Use it.
10392         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10393         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10394         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10395         (tsearch, tfind, tdelete, twalk): Use it.
10396         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10397         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10398         sigpending): Use it.
10399         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10400         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10401         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10402         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10403         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10404         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10405         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10406         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10407         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10408         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10409         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10410         Use it.
10411         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10412         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10413         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10414         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10415         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10416         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10417         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10418         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10419         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10420         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10421         strtoull, unsetenv): Use it.
10422         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10423         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10424         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10425         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10426         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10427         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10428         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10429         (strcasecmp, strncasecmp): Use it.
10430         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10431         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10432         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10433         rpl_setsockopt): Use it.
10434         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10435         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10436         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10437         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10438         (gettimeofday): Use it.
10439         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10440         (times): Use it.
10441         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10442         (uname): Use it.
10443         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10444         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10445         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10446         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10447         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10448         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10449         unlinkat, write): Use it.
10450         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10451         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10452         * lib/argv-iter.h: Include arg-nonnull.h.
10453         (_ATTRIBUTE_NONNULL_): Remove macro.
10454         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10455         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10456         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10457         optimization.
10458         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10459         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10460         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10461         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10462         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10463         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10464         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10465         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10466         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10467         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10468         * modules/dirent (Depends-on): Add arg-nonnull.
10469         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10470         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10471         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10472         * modules/fnmatch (Depends-on): Add arg-nonnull.
10473         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10474         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10475         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10476         * modules/glob (Depends-on): Add arg-nonnull.
10477         (Makefile.am): Insert arg-nonnull.h into glob.h.
10478         * modules/iconv_open (Depends-on): Add arg-nonnull.
10479         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10480         * modules/inttypes (Depends-on): Add arg-nonnull.
10481         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10482         * modules/locale (Depends-on): Add arg-nonnull.
10483         (Makefile.am): Insert arg-nonnull.h into locale.h.
10484         * modules/math (Depends-on): Add arg-nonnull.
10485         (Makefile.am): Insert arg-nonnull.h into math.h.
10486         * modules/netdb (Depends-on): Add arg-nonnull.
10487         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10488         * modules/search (Depends-on): Add arg-nonnull.
10489         (Makefile.am): Insert arg-nonnull.h into search.h.
10490         * modules/signal (Depends-on): Add arg-nonnull.
10491         (Makefile.am): Insert arg-nonnull.h into signal.h.
10492         * modules/spawn (Depends-on): Add arg-nonnull.
10493         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10494         * modules/stdio (Depends-on): Add arg-nonnull.
10495         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10496         * modules/stdlib (Depends-on): Add arg-nonnull.
10497         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10498         * modules/string (Depends-on): Add arg-nonnull.
10499         (Makefile.am): Insert arg-nonnull.h into string.h.
10500         * modules/strings (Depends-on): Add arg-nonnull.
10501         (Makefile.am): Insert arg-nonnull.h into strings.h.
10502         * modules/sys_socket (Depends-on): Add arg-nonnull.
10503         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10504         * modules/sys_stat (Depends-on): Add arg-nonnull.
10505         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10506         * modules/sys_time (Depends-on): Add arg-nonnull.
10507         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10508         * modules/sys_times (Depends-on): Add arg-nonnull.
10509         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10510         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10511         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10512         * modules/time (Depends-on): Add arg-nonnull.
10513         (Makefile.am): Insert arg-nonnull.h into time.h.
10514         * modules/unistd (Depends-on): Add arg-nonnull.
10515         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10516         * modules/wchar (Depends-on): Add arg-nonnull.
10517         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10518         * modules/argv-iter (Depends-on): Add arg-nonnull.
10519         * tests/test-canonicalize.c (null_ptr): New function.
10520         (main): Use it.
10521         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10522         (main): Use it.
10523         * tests/test-memmem.c (null_ptr): New function.
10524         (main): Use it.
10525         Reported by Jim Meyering.
10526
10527 2009-12-10  Bruno Haible  <bruno@clisp.org>
10528
10529         Use spaces for indentation, not tabs.
10530         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10531         * m4/*.m4: Untabify.
10532         * build-aux/*.h: Untabify.
10533         * tests/**/*.[hc]: Untabify.
10534         * README: New section "Indent with spaces, not TABs", based on
10535         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10536         * NEWS: Mention the change.
10537
10538 2009-12-10  Bruno Haible  <bruno@clisp.org>
10539
10540         pty test: Fix link error.
10541         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10542         test_pty_LDADD.
10543
10544 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10545
10546         * modules/pty: New file.
10547         * modules/pty-tests: New file.
10548         * m4/pty.m4: New file.
10549         * tests/test-pty.c: New file.
10550         * doc/glibc-headers/pty.texi: Modified.
10551         * doc/glibc-functions/forkpty.texi: Modified.
10552         * doc/glibc-functions/openpty.texi: Modified.
10553
10554 2009-12-10  Bruno Haible  <bruno@clisp.org>
10555
10556         Avoid syntax error in C++ mode.
10557         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10558
10559 2009-12-10  Bruno Haible  <bruno@clisp.org>
10560
10561         Use sed with option -e.
10562         * gnulib-tool (func_version, func_emit_copyright_notice,
10563         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10564         option -e to sed.
10565         * modules/link-warning (Makefile.am): Likewise.
10566
10567 2009-12-10  Jim Meyering  <meyering@redhat.com>
10568
10569         mgetgroups: do not write bytes beyond end of malloc'd buffer
10570         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10571         username, we call getgroups with a one-element-shorter buffer,
10572         but still told it the length was original, max_n_groups.
10573
10574 2009-12-09  Eric Blake  <ebb9@byu.net>
10575
10576         cloexec: relax license
10577         * modules/cloexec (Maintainer): Add myself.
10578         (License): Use LGPL, not GPL.
10579
10580         link-warning: optimize generation
10581         * modules/link-warning (Makefile.am): Reduce process usage.
10582
10583 2009-12-09  Bruno Haible  <bruno@clisp.org>
10584
10585         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10586         workaround was added on 2009-11-17.
10587
10588 2009-12-09  Jim Meyering  <meyering@redhat.com>
10589             Bruno Haible  <bruno@clisp.org>
10590
10591         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10592         * modules/link-warning (Makefile.am): Make the comment-removing sed
10593         command more robust in the face of bootstrap-prepended comment lines.
10594
10595 2009-12-09  Bruno Haible  <bruno@clisp.org>
10596
10597         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10598         most one group.
10599
10600 2009-12-09  Simon Josefsson <simon@josefsson.org>
10601             Bruno Haible  <bruno@clisp.org>
10602
10603         * build-aux/link-warning.h: Add copyright notice.
10604         * modules/link-warning (Makefile.am): Generate link-warning.h from
10605         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10606         * NEWS: Mention change in link-warning module.
10607         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10608         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10609         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10610         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10611         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10612         * modules/math (Makefile.am): Add dependency to math.h.
10613         * modules/search (Makefile.am): Add dependency to search.h.
10614         * modules/signal (Makefile.am): Add dependency to signal.h.
10615         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10616         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10617         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10618         * modules/string (Makefile.am): Add dependency to string.h.
10619         * modules/strings (Makefile.am): Add dependency to strings.h.
10620         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10621         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10622         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10623         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10624         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10625         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10626         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10627         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10628         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10629
10630 2009-12-09  Bruno Haible  <bruno@clisp.org>
10631
10632         fchdir: Optimize away rpl_fstat when possible.
10633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10634         REPLACE_OPEN_DIRECTORY.
10635         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10636
10637 2009-12-09  Bruno Haible  <bruno@clisp.org>
10638
10639         * lib/fchdir.c: Update comment.
10640
10641 2009-12-09  Bruno Haible  <bruno@clisp.org>
10642
10643         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10644
10645 2009-12-08  Eric Blake  <ebb9@byu.net>
10646
10647         fchdir: avoid memory leak on re-registration.
10648         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10649
10650 2009-12-08  Jim Meyering  <meyering@redhat.com>
10651
10652         init.sh: avoid Solaris 10 /bin/sh portability problem
10653         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10654         sourced script:
10655           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10656           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10657           bar
10658         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10659         and two tests used that idiom.
10660         * tests/init.sh: Update suggested usage comments.
10661         (path_prepend_): New function, to be used in place
10662         of the --src-path=DIR option.
10663         (setup_): Move PATH-prepending code into path_prepend_.
10664         * tests/test-pread.sh: Adapt to new usage.
10665         * tests/test-xalloc-die.sh: Likewise.
10666
10667 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10668
10669         * doc/gnulib.texi (Glibc pty.h): Add.
10670         * doc/glibc-functions/forkpty.texi: Add.
10671         * doc/glibc-functions/openpty.texi: Add.
10672         Suggested by Bruno Haible.
10673
10674 2009-12-08  Eric Blake  <ebb9@byu.net>
10675
10676         fchdir: fix logic bugs
10677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10678         * tests/test-fchdir.c (main): Enhance test.
10679         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10680         is in use.
10681
10682         dup2: fix logic bugs
10683         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10684         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10685         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10686         exists.
10687         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10688
10689 2009-12-07  Eric Blake  <ebb9@byu.net>
10690
10691         unlink: fix m4 detection
10692         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10693
10694         unistd-safer: add unit test
10695         * modules/unistd-safer-tests: New file.
10696         * tests/test-dup-safer.c: Likewise.
10697         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10698         * tests/test-dup2.c (setmode): Likewise.
10699         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10700
10701         cloexec: preserve text vs. binary across dup_cloexec
10702         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10703         mode.
10704         * modules/dup2-tests (Depends-on): Add binary-io.
10705         * modules/cloexec-tests (Depends-on): Likewise.
10706         * tests/test-dup2.c (setmode, is_mode): New helpers.
10707         (main): Add tests that translation mode is preserved.
10708         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10709         Reported by Bruno Haible.
10710
10711         mgetgroups: reduce duplicate listings
10712         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10713         resulting array.
10714         * tests/test-chown.h (test_chown): Simplify client.
10715         * tests/test-lchown.h (test_lchown): Likewise.
10716
10717 2009-12-06  Bruno Haible  <bruno@clisp.org>
10718
10719         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10720         value.
10721
10722 2009-12-06  Bruno Haible  <bruno@clisp.org>
10723
10724         * lib/progname.c: Include stdio.h, stdlib.h.
10725         (set_program_name): Reject a NULL argument.
10726
10727 2009-12-05  Eric Blake  <ebb9@byu.net>
10728
10729         pipe2-safer: new module
10730         * modules/pipe2-safer: New file.
10731         * lib/unistd-safer.h (pipe2_safer): New prototype.
10732         * lib/unistd--.h (pipe2): New wrapper.
10733         * lib/pipe-safer.c (pipe2_safer): New function.
10734         * modules/pipe (Depends-on): Add pipe2-safer.
10735         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10736
10737         stdlib-safer: preserve cloexec flag for mkostemp[s]
10738         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10739         fd_safer_flag.
10740
10741         unistd-safer: allow preservation of cloexec status via flag
10742         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10743         prototypes.
10744         * lib/dup-safer.c (dup_safer_flag): New function.
10745         * lib/fd-safer.c (fd_safer_flag): Likewise.
10746         * modules/cloexec (configure.ac): Set witness.
10747
10748         test-dup2: enhance test
10749         * modules/dup2-tests (Depends-on): Add cloexec.
10750         * tests/test-dup2.c (main): Enhance test.
10751
10752         cloexec: add dup_cloexec
10753         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10754         header and comments.
10755         * lib/cloexec.c (set_cloexec_flag): Add comments.
10756         (dup_cloexec): New function, with mingw implementation borrowed
10757         from...
10758         * lib/w32spawn.h (dup_noinherit): ...here.
10759         * modules/execute (Depends-on): Add cloexec.
10760         * modules/pipe (Depends-on): Likewise.
10761         * modules/cloexec (Depends-on): Add dup2.
10762         * modules/cloexec-tests (Files): New file.
10763         * tests/test-cloexec.c: Likewise.
10764
10765         test-xalloc-die: fix test for mingw
10766         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10767         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10768         directory and .exe suffix off argv[0] output.
10769
10770         test-fseeko: fix test for mingw
10771         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10772         than undefining fseek, so test will pass on mingw.
10773
10774 2009-12-05  Bruno Haible  <bruno@clisp.org>
10775
10776         * lib/progname.h (set_program_name): Clarify specification.
10777         * lib/progname.c (set_program_name): Likewise.
10778         Reported by Jim Meyering.
10779
10780 2009-12-05  Jim Meyering  <meyering@redhat.com>
10781
10782         maint.mk: backslash-escape parens in default regexp
10783         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10784         backslash-escape the literal parentheses.
10785
10786         maint.mk: news-date-check: use grep -E
10787         * top/maint.mk (today): Define a Make variable, not a...
10788         (news-date-check): ...shell variable.
10789         (news-date-regexp): Use the Make variable.
10790         Use grep's -E option.  Change the failing diagnostic to mention
10791         the variable, $(news-date-regexp).
10792
10793 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10794
10795         maintainer-makefile: allow customization of NEWS entry format
10796         * top/maint.mk (news-date-regexp): New overridable variable.
10797         (news-date-check): Use it.
10798
10799 2009-12-04  Eric Blake  <ebb9@byu.net>
10800
10801         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10802         * lib/mgetgroups.h (xgetgroups): New prototype.
10803         * lib/mgetgroups.c (xgetgroups): New wrapper.
10804         (mgetgroups): Handle ENOSYS.
10805         * modules/mgetgroups (Depends-on): Add realloc.
10806         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10807
10808         mgetgroups: avoid argument promotion issues with -1
10809         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10810         for invalid gid_t.
10811         * tests/test-chown.h (getegid, test_chown): Likewise.
10812         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10813
10814 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10815
10816         exclude: Fix header file problems.
10817         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10818
10819 2009-12-01  Jim Meyering  <meyering@redhat.com>
10820
10821         fts: fts_open: do not let an empty string cause immediate failure
10822         This is required in support of GNU rm, for which the command
10823         "rm A '' B" must process and remove both A and B, in spite of
10824         the empty string argument.
10825         * lib/fts.c (fts_open): Do not let the presence of an empty string
10826         cause fts_open to fail immediately.  Most fts-using tools must be
10827         able to process all arguments, in order, and can be expected to
10828         diagnose such arguments themselves.
10829
10830 2009-11-30  Eric Blake  <ebb9@byu.net>
10831
10832         utimens: fix compilation error
10833         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10834         Declare variable at right scope.
10835
10836 2009-11-29  Jim Meyering  <meyering@redhat.com>
10837
10838         bootstrap: handle perl-5.11's changed --version output
10839         * build-aux/bootstrap (get_version): Handle perl separately,
10840         since perl-5.11's --version output is different.
10841
10842 2009-11-28  Jim Meyering  <meyering@redhat.com>
10843
10844         userspec: depend on the inttostr module, too
10845         * modules/userspec (Depends-on): Add inttostr.
10846
10847         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10848         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10849         number of MAXUID when it evaluates to (uid_t) -1.
10850         Likewise for group ID.  Reported by Matt McCutchen in
10851         <http://savannah.gnu.org/bugs/?28113>
10852
10853         userspec: reformat to use spaces, not TABs
10854         * lib/userspec.c: Expand TABs to spaces.
10855         Add Emacs' "indent-tabs-mode: nil" hint.
10856
10857 2009-11-27  Eric Blake  <ebb9@byu.net>
10858
10859         getopt-gnu: flush out another BSD bug
10860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10861         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10862         flush out BSD bug.
10863         * tests/test-getopt.h (test_getopt): End lists with NULL.
10864         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10865         (test_getopt_long_posix): Enhance test.
10866         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10867         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10868         getopt-gnu.
10869         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10870         Likewise.
10871
10872 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10873
10874         * modules/idpriv-droptemp-tests (Notice): Fix text.
10875
10876 2009-11-27  Jim Meyering  <meyering@redhat.com>
10877
10878         test-xalloc-die: avoid spurious failure due to libtool argv difference
10879         In a libtool-enabled project, this test would fail due to a difference
10880         in the emitted program name, e.g.,
10881         -test-xalloc-die: memory exhausted
10882         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
10883         Use program to avoid that.
10884         * modules/xalloc-die-tests (Depends-on): Add progname.
10885         * tests/test-xalloc-die.c: Include progname.h".
10886         (program_name): Remove decl.
10887         (main): Call set_program_name.
10888         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
10889
10890 2009-11-26  Richard Jones  <rjones@redhat.com>
10891
10892         w32sock: leave win32 error in place.
10893         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
10894
10895 2009-11-26  Eric Blake  <ebb9@byu.net>
10896
10897         init.sh: suggest to use skip_ and fail_ functions in comments
10898         * tests/init.sh: Add a sentence.
10899
10900 2009-11-25  Bruno Haible  <bruno@clisp.org>
10901
10902         init.sh: add documentation in comments
10903         * tests/init.sh: Add some developer and user documentation.
10904
10905 2009-11-26  Jim Meyering  <meyering@redhat.com>
10906
10907         init.sh: accommodate even those who specify bogus srcdir manually
10908         * tests/init.sh: Normally, srcdir is guaranteed by automake and
10909         configure-time tests to be sanitized, so that there is no need to
10910         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
10911         (with no double quotes) suffices.  However, since tests may be
10912         invoked manually, and since you may explicitly set srcdir to the
10913         name of a directory containing spaces, do quote its uses here.
10914         * tests/test-pread.sh: Likewise.
10915         Suggested by Bruno Haible.
10916
10917         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
10918         * tests/test-pread.sh: Write no data into the pipe, because
10919         test-pread actually reads none.  This avoids a diagnostic,
10920         "bash: echo: write error: Broken pipe", that arises in the unusual
10921         event something is ignoring SIGPIPE, and might be interpreted
10922         as some sort of failure.  Reported by Bruno Haible.
10923
10924 2009-11-25  Jim Meyering  <meyering@redhat.com>
10925
10926         test-pread: cover failure with ESPIPE and EINVAL
10927         * tests/test-pread.c (main): Test for failure, too.
10928         * tests/test-pread.sh: Invoke with stdin on a pipe.
10929         Suggested by Eric Blake.
10930
10931         pread: improvement and fix
10932         * modules/pread (Depends-on): Depend on lseek, for portability to
10933         e.g., mingw.  Suggested by Eric Blake.
10934         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
10935
10936         unistd.in.h: correct declaration of pread
10937         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
10938         Reported by Richard W.M. Jones.
10939
10940         test-pread.sh: distribute the test script
10941         * modules/pread-tests (Files): Include test-pread.sh.
10942
10943         test-pread.sh: clean up
10944         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
10945         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
10946         That is unnecessary, since it's always ".".
10947         Suggestion from Eric Blake.
10948
10949         test-pread.sh: make executable
10950         * tests/test-pread.sh: Set executable bit.
10951         Reported by Eric Blake.
10952
10953         correct typo in test-pread.sh
10954         * tests/test-pread.sh: Add #! line.
10955
10956         test pread
10957         * tests/test-pread.c: New file.
10958         * tests/test-pread.sh: Likewise.
10959         * modules/pread-tests: Likewise.
10960
10961         pread: new module
10962         * modules/pread: New file.
10963         * lib/unistd.in.h (pread): Define/declare.
10964         * lib/pread.c (pread): New file.
10965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
10966         * modules/unistd (Makefile.am): Substitute witnesses.
10967         * doc/posix-functions/pread.texi (pread): Update.
10968         * MODULES.html.sh: Add pread.
10969
10970 2009-11-25  Jim Meyering  <meyering@redhat.com>
10971
10972         tests/init.sh: new file to be used via most *.sh tests
10973         * tests/init.sh: New file.
10974
10975 2009-11-25  Eric Blake  <ebb9@byu.net>
10976
10977         utimens: work around older Linux failure with symlinks
10978         * lib/utimens.c (lutimensat_works_really): New variable.
10979         (fdutimens, lutimens): Use it to manage kernels that support
10980         nanosecond times on files, but not on symlinks.
10981         Reported by Ondřej Vašík.
10982
10983         utimes: fix configure grammar
10984         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
10985
10986 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
10987
10988         regex: Fix fastmap for multibyte character ranges.
10989         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
10990         characters when a multibyte character range is included.
10991
10992 2009-11-22  Andy Wingo  <wingo@pobox.com>
10993
10994         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
10995         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
10996
10997 2009-11-24  Bruno Haible  <bruno@clisp.org>
10998
10999         doc: Most *_l functions exist in MacOS X 10.5.
11000         * doc/posix-functions/duplocale.texi: Update platforms list.
11001         * doc/posix-functions/freelocale.texi: Likewise.
11002         * doc/posix-functions/newlocale.texi: Likewise.
11003         * doc/posix-functions/uselocale.texi: Likewise.
11004         * doc/posix-functions/isalnum_l.texi: Likewise.
11005         * doc/posix-functions/isalpha_l.texi: Likewise.
11006         * doc/posix-functions/isblank_l.texi: Likewise.
11007         * doc/posix-functions/iscntrl_l.texi: Likewise.
11008         * doc/posix-functions/isdigit_l.texi: Likewise.
11009         * doc/posix-functions/isgraph_l.texi: Likewise.
11010         * doc/posix-functions/islower_l.texi: Likewise.
11011         * doc/posix-functions/isprint_l.texi: Likewise.
11012         * doc/posix-functions/ispunct_l.texi: Likewise.
11013         * doc/posix-functions/isspace_l.texi: Likewise.
11014         * doc/posix-functions/isupper_l.texi: Likewise.
11015         * doc/posix-functions/iswalnum_l.texi: Likewise.
11016         * doc/posix-functions/iswalpha_l.texi: Likewise.
11017         * doc/posix-functions/iswblank_l.texi: Likewise.
11018         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11019         * doc/posix-functions/iswctype_l.texi: Likewise.
11020         * doc/posix-functions/iswdigit_l.texi: Likewise.
11021         * doc/posix-functions/iswgraph_l.texi: Likewise.
11022         * doc/posix-functions/iswlower_l.texi: Likewise.
11023         * doc/posix-functions/iswprint_l.texi: Likewise.
11024         * doc/posix-functions/iswpunct_l.texi: Likewise.
11025         * doc/posix-functions/iswspace_l.texi: Likewise.
11026         * doc/posix-functions/iswupper_l.texi: Likewise.
11027         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11028         * doc/posix-functions/isxdigit_l.texi: Likewise.
11029         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11030         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11031         * doc/posix-functions/strcoll_l.texi: Likewise.
11032         * doc/posix-functions/strfmon_l.texi: Likewise.
11033         * doc/posix-functions/strftime_l.texi: Likewise.
11034         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11035         * doc/posix-functions/strxfrm_l.texi: Likewise.
11036         * doc/posix-functions/tolower_l.texi: Likewise.
11037         * doc/posix-functions/toupper_l.texi: Likewise.
11038         * doc/posix-functions/towctrans_l.texi: Likewise.
11039         * doc/posix-functions/towlower_l.texi: Likewise.
11040         * doc/posix-functions/towupper_l.texi: Likewise.
11041         * doc/posix-functions/wcscoll_l.texi: Likewise.
11042         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11043         * doc/posix-functions/wctrans_l.texi: Likewise.
11044         * doc/posix-functions/wctype_l.texi: Likewise.
11045         * doc/glibc-functions/strptime_l.texi: Likewise.
11046         * doc/glibc-functions/strtod_l.texi: Likewise.
11047         * doc/glibc-functions/strtof_l.texi: Likewise.
11048         * doc/glibc-functions/strtol_l.texi: Likewise.
11049         * doc/glibc-functions/strtold_l.texi: Likewise.
11050         * doc/glibc-functions/strtoll_l.texi: Likewise.
11051         * doc/glibc-functions/strtoul_l.texi: Likewise.
11052         * doc/glibc-functions/strtoull_l.texi: Likewise.
11053         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11054         * doc/glibc-functions/wcstod_l.texi: Likewise.
11055         * doc/glibc-functions/wcstof_l.texi: Likewise.
11056         * doc/glibc-functions/wcstol_l.texi: Likewise.
11057         * doc/glibc-functions/wcstold_l.texi: Likewise.
11058         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11059         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11060         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11061
11062 2009-11-24  Bruno Haible  <bruno@clisp.org>
11063
11064         duplocale: Fix logic bug.
11065         * lib/duplocale.c: Don't include <langinfo.h>.
11066         (_NL_LOCALE_NAME): Remove macro.
11067         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11068         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11069
11070 2009-11-23  Jim Meyering  <meyering@redhat.com>
11071
11072         test-update-copyright: don't hard-code /usr/bin/perl
11073         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11074         perl to print the current year.  Gilles Espinasse reported that
11075         the replaced use of perl was hard-coded as /usr/bin/perl.
11076
11077 2009-11-23  Bruno Haible  <bruno@clisp.org>
11078
11079         duplocale: Add support for glibc 2.3.x.
11080         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11081
11082 2009-11-22  Bruno Haible  <bruno@clisp.org>
11083
11084         vasnprintf: Tiny optimization.
11085         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11086         MacOS X.
11087
11088 2009-11-22  Bruno Haible  <bruno@clisp.org>
11089
11090         Tests for module 'duplocale'.
11091         * modules/duplocale-tests: New file.
11092         * tests/test-duplocale.c: New file.
11093
11094         New module 'duplocale'.
11095         * m4/duplocale.m4: New file.
11096         * lib/locale.in.h (duplocale): New declaration.
11097         * lib/duplocale.c: New file.
11098         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11099         gl_LOCALE_H_DEFAULTS): New macros.
11100         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11101         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11102         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11103         REPLACE_DUPLOCALE.
11104         * modules/duplocale: New file.
11105         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11106
11107 2009-11-22  Bruno Haible  <bruno@clisp.org>
11108
11109         * modules/locale-tests (configure.ac): Test for newlocale function.
11110         * tests/test-locale.c: When the system has extended locale functions,
11111         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11112
11113         locale: Make locale_t available when possible.
11114         * lib/locale.in.h: Include <xlocale.h> when it exists.
11115         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11116         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11117         * modules/locale (Depends-on): Add extensions.
11118         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11119         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11120
11121 2009-11-22  Bruno Haible  <bruno@clisp.org>
11122
11123         Add comments.
11124         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11125         invocation.
11126         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11127         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11128         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11129
11130 2009-11-22  Bruno Haible  <bruno@clisp.org>
11131
11132         error: account for the possibility of freopen (stdout).
11133         * lib/error.c: Include <unistd.h>.
11134         (flush_stdout): New function, extracted from error and error_at_line.
11135         Determine stdout's fd dynamically.
11136         (error, error_at_line): Invoke flush_stdout.
11137         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11138         * modules/error (Depends-on): Add unistd.
11139
11140 2009-11-22  Bruno Haible  <bruno@clisp.org>
11141
11142         diffseq: Add comment.
11143         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11144
11145 2009-11-22  Jim Meyering  <meyering@redhat.com>
11146
11147         c-stack: avoid defining an unused static function
11148         * lib/c-stack.c (find_stack_direction): Do not define this function
11149         when it will not be used.
11150
11151         diffseq: avoid spurious gcc warnings
11152         * lib/diffseq.h (IF_LINT2): Define.
11153         (compareseq): Use it to initialize two members of "part".
11154         This avoids two used-uninitialized warnings.
11155
11156 2009-11-21  Jim Meyering  <meyering@redhat.com>
11157
11158         c-stack: avoid "ignoring return value of `write'" warning
11159         * lib/c-stack.c: Include "ignore-value.h".
11160         (die): Explicitly ignore each write return value.
11161         * modules/c-stack (Depends-on): Add ignore-value.
11162
11163 2009-11-21  Bruno Haible  <bruno@clisp.org>
11164
11165         diffseq: reduce scope of variable 'best'.
11166         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11167         variable, earlier used for two different purposes.
11168
11169 2009-11-21  Jim Meyering  <meyering@redhat.com>
11170
11171         diffseq: remove useless assignment to "best"
11172         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11173         assignment.  At that point "best" is already guaranteed to be zero.
11174
11175 2009-11-20  Eric Blake  <ebb9@byu.net>
11176
11177         build: mention ftp redirector in release announcements
11178         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11179         values that used to come from cfg.mk; mention FTP redirect URL.
11180         * build-aux/announce-gen: Mention the mirror list.
11181         Suggested by Karl Berry.
11182
11183         nanosleep: improve port to mingw
11184         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11186         LIB_NANOSLEEP, but only when needed.
11187         * modules/select (Link): Document LIBSOCKET.
11188         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11189         enough.
11190
11191         nanosleep: work around cygwin bug
11192         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11193         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11194         bug.
11195         (getnow): Delete, not needed.
11196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11197         LIB_CLOCK_GETTIME.
11198         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11199         clock-time, gettime.
11200         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11201         bug.
11202         * modules/nanosleep-tests: New test.
11203         * tests/test-nanosleep.c: New file.
11204
11205         sleep: work around cygwin bug
11206         * lib/sleep.c (rpl_sleep): Work around the bug.
11207         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11208         (gl_PREREQ_SLEEP): Delete unused macro.
11209         * modules/sleep (Depends-on): Add verify.
11210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11211         * modules/unistd (Makefile.am): Substitute witness.
11212         * lib/unistd.in.h (sleep): Update prototype.
11213         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11214         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11215         * modules/sleep-tests (Depends-on): Check for alarm.
11216
11217 2009-11-20  Jim Meyering  <meyering@redhat.com>
11218
11219         maint.mk: improve sc_prohibit_magic_number_exit
11220         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11221         so it does not match uses like System.exit(1).
11222         Add comments showing how to correct all offenders.
11223
11224 2009-11-19  Eric Blake  <ebb9@byu.net>
11225
11226         xalloc-die-tests: add missing library
11227         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11228
11229         test-xvasprintf: silence compiler warnings
11230         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11231         empty string from gcc.
11232
11233 2009-11-19  Jim Meyering  <meyering@redhat.com>
11234
11235         xfreopen: new module, from coreutils
11236         * modules/xfreopen: New module.
11237         * lib/xfreopen.c: New file.
11238         * lib/xfreopen.h: New file.
11239         * MODULES.html.sh (File stream based Input/Output"): Add it.
11240
11241 2009-11-19  Eric Blake  <ebb9@byu.net>
11242
11243         manywarnings: depend on warnings
11244         * modules/manywarnings (Depends-on): Add warnings.
11245
11246         build: avoid compiler warnings
11247         * lib/select.c (rpl_select): Delete unused variable.
11248         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11249
11250 2009-11-18  Eric Blake  <ebb9@byu.net>
11251
11252         tests: avoid false negative with --with-packager
11253         * tests/test-version-etc.sh: Discard packager information.
11254         * tests/test-argp-version-etc-1.sh: Likewise.
11255         Reported by Mike Frysinger.
11256
11257         utimens: fix regression on Solaris
11258         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11259         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11260         can only change fd timestamps via futimesat.  Instead, use an
11261         additional witness macro to avoid BSD bug.
11262         Reported by Jim Meyering.
11263
11264 2009-11-17  Eric Blake  <ebb9@byu.net>
11265
11266         usleep: use it to simplify tests
11267         * modules/stat-time-tests (Depends-on): Add usleep.
11268         (configure.ac): Drop usleep check.
11269         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11270         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11271         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11272         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11273         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11274         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11275         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11276         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11277         Likewise.
11278         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11279         * tests/test-lchown.h (nap): Likewise.
11280         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11281         * tests/test-stat-time.c (nap): Likewise.
11282         * tests/test-utimens-common.h (nap): Update comments.
11283
11284         usleep: new module
11285         * modules/usleep: New file.
11286         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11287         * lib/usleep.c (usleep): Likewise.
11288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11289         * modules/unistd (Makefile.am): Substitute witnesses.
11290         * lib/unistd.in.h (usleep): Add declaration.
11291         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11292         * MODULES.html.sh (Date and time): Likewise.
11293         * modules/usleep-tests (Depends-on): New test.
11294         * tests/test-usleep.c: New file.
11295
11296         chown: work around OpenBSD bug
11297         * lib/chown.c (rpl_chown): Work around the bug.
11298         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11299         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11300         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11301         * modules/chown (Depends-on): Add stdbool.
11302         * modules/lchown (Depends-on): Likewise.
11303         * doc/posix-functions/chown.texi (chown): Document the bug.
11304         * doc/posix-functions/lchown.texi (lchown): Likewise.
11305         * tests/test-lchown.h (test_chown): Relax test.
11306
11307         mkstemp: avoid conflict with C++ keyword template
11308         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11309         * lib/mkostemp.c (mkostemp): Likewise.
11310         * lib/mkostemps.c (mkostemps): Likewise.
11311         * lib/mkstemp.c (mkstemp): Likewise.
11312         * lib/mkstemps.c (mkstemps): Likewise.
11313
11314         xalloc-die-tests: optimize
11315         * tests/test-xalloc-die.sh: Reduce number of processes.
11316
11317 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11318
11319         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11320         patch from ludo@gnu.org (Ludovic Courtès).
11321
11322 2009-11-17  Jim Meyering  <meyering@redhat.com>
11323
11324         version-etc: use proper license string
11325         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11326         * modules/version-etc-fsf: Likewise.
11327
11328 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11329
11330         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11331         printed to stdout.  Deal with EOL differences.
11332
11333 2009-11-17  Eric Blake  <ebb9@byu.net>
11334
11335         unsetenv: work around Solaris bug
11336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11337         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11338         Reported by Jim Meyering.
11339
11340         vasnprintf: avoid compiler warnings
11341         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11342         variables.
11343         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11344
11345 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11346
11347         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11348         settings since xalloc-die is no longer the self test,
11349         xalloc-die.sh is.
11350
11351 2009-11-17  Jim Meyering  <meyering@redhat.com>
11352
11353         test-xalloc-die.sh: make the code agree with the commit log
11354         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11355         at the end, just in case you happen to have a test-xalloc-die
11356         program in some other PATH directory.
11357
11358         test-xalloc-die.sh: fix a portability bug
11359         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11360         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11361         Otherwise, argv[0] (as often seen in diagnostics) would be too
11362         system-dependent, sometimes with, and sometimes without the leading "./".
11363
11364         version-etc-fsf: relax license to LGPLv3+
11365         * modules/version-etc-fsf (License): Relax license.
11366
11367 2009-11-16  Eric Blake  <ebb9@byu.net>
11368
11369         xalloc-die-tests: avoid printing null pointer
11370         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11371         shell script.
11372         * tests/test-xalloc-die.c (program_name): Declare.
11373         * tests/test-xalloc-die.sh (tmpfiles): New file.
11374
11375         setenv, unsetenv: work around various bugs
11376         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11377         (setenv) [HAVE_SETENV]: Work around bugs.
11378         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11379         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11380         for bugs.
11381         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11382         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11384         * modules/stdlib (Makefile.am): Update substitutions.
11385         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11386         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11387         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11388         * modules/setenv-tests: New test.
11389         * modules/unsetenv-tests: Likewise.
11390         * tests/test-setenv.c: New file.
11391         * tests/test-unsetenv.c: Likewise.
11392
11393 2009-11-16  Jim Meyering  <meyering@redhat.com>
11394
11395         version-etc: relax license to LGPLv3+
11396         * modules/version-etc (License): Relax license.
11397
11398         better AC_REQUIRE expanded-before-required-warning avoidance
11399         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11400         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11401         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11402         which is no longer needed.
11403
11404 2009-11-16  Eric Blake  <ebb9@byu.net>
11405
11406         test-freading: clean up temporary file
11407         * tests/test-freading.c (main): Remove file on success, and use
11408         ASSERT more liberally.
11409         Reported by Jim Meyering.
11410
11411 2009-11-16  Jim Meyering  <meyering@redhat.com>
11412
11413         avoid new AC_REQUIRE expanded-before-required warnings
11414         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11415         merely using it.
11416         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11417         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11418
11419 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11420
11421         * tests/test-xalloc-die.c: New file.
11422         * modules/xalloc-die-tests: New file.
11423         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11424         XFAIL_TESTS so it can be appended by modules.
11425
11426 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11427
11428         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11429         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11430
11431 2009-11-14  Eric Blake  <ebb9@byu.net>
11432
11433         fnmatch: avoid compiler warning
11434         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11435         to silence compiler warning about mismatch signedness in ?:.
11436         Reported by Robert Millan.
11437
11438         intprops: add double-inclusion guard
11439         * lib/intprops.h: Allow idempotent includes.
11440         Suggested by Bruce Korb.
11441
11442         openat: detect Solaris fchownat bug
11443         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11444         penalizing glibc chownat when only lchownat is broken.
11445         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11446         trailing slash bugs.
11447         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11448         * modules/openat-tests (Files): Include more files.
11449         (Depends-on): Add mgetgroups, sleep, stat-time.
11450         (configure.ac): Add additional checks.
11451         (Makefile.am): Build new test.
11452         * tests/test-fchownat.c: New file.
11453
11454         lchown: detect Solaris and FreeBSD bug
11455         * lib/lchown.c (rpl_lchown): Work around bug.
11456         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11458         * modules/unistd (Makefile.am): Populate it.
11459         * lib/unistd.in.h (lchown): Update declaration.
11460         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11461         * modules/lchown-tests: New file.
11462         * tests/test-lchown.h (test_lchown): Likewise.
11463         * tests/test-lchown.c (main): Likewise.
11464
11465         chown: detect Solaris and FreeBSD bug
11466         * lib/chown.c (rpl_chown): Work around bug.
11467         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11468         (gl_PREREQ_CHOWN): Delete.
11469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11470         * modules/unistd (Makefile.am): Populate it.
11471         * lib/unistd.in.h (chown): Update declaration.
11472         * lib/lchown.c (chown): Update client.
11473         * modules/lchown (Depends-on): Add lstat.
11474         * doc/posix-functions/chown.texi (chown): Document the bug.
11475         * doc/posix-functions/getgroups.texi (getgroups): Document
11476         getgroups pitfall.
11477         * modules/chown-tests: New file.
11478         * tests/test-chown.h (test_chown): Likewise.
11479         * tests/test-chown.c (main): Likewise.
11480
11481 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11482
11483         gnulib-tool: correctly detect absence of m4 directories
11484         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11485
11486 2009-11-14  Jim Meyering  <meyering@redhat.com>
11487
11488         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11489         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11490
11491 2009-11-14  John W. Eaton  <jwe@gnu.org>
11492
11493         strftime.h: wrap funtion declaration in extern "C" block
11494         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11495
11496 2009-11-13  Eric Blake  <ebb9@byu.net>
11497
11498         getgroups: avoid compiler warning
11499         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11500
11501         getgroups: work around FreeBSD bug
11502         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11503         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11504         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11505         * tests/test-getgroups.c (main): Fix buffer overrun.
11506
11507         getgroups: avoid compilation failure
11508         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11509         * modules/getgroups (Depends-on): Add stdint.
11510
11511 2009-11-13  Jim Meyering  <meyering@redhat.com>
11512
11513         test-getgroups: avoid compilation failure
11514         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11515
11516 2009-11-13  Eric Blake  <ebb9@byu.net>
11517
11518         mgetgroups: new module, taken from coreutils
11519         * modules/mgetgroups: New file.
11520         * lib/mgetgroups.h: Likewise.
11521         * lib/mgetgroups.c (mgetgroups): Likewise.
11522         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11523         * MODULES.html.sh (Users and groups): Mention it.
11524
11525         getgroups: don't expose GETGROUPS_T to user
11526         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11527         an element at a time if GETGROUPS_T is wrong size.
11528         * lib/getugroups.h (getugroups): Change signature.
11529         * lib/unistd.in.h (getgroups): Likewise.
11530         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11531         signature needs fixing.
11532         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11533         AC_TYPE_GETGROUPS.
11534         * modules/group-member (Depends-on): Add getgroups.
11535         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11536         (group_member): Rely on getgroups replacement.
11537         * lib/getugroups.c (getugroups): Use gid_t.
11538         * tests/test-getgroups.c (main): Likewise.
11539         * NEWS: Mention the signature change.
11540         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11541         problem with signature.
11542         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11543         GETGROUPS_T is still useful for setgroups.
11544
11545         getgroups, getugroups: provide stubs for mingw
11546         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11547         * lib/getugroups.c (getugroups): Likewise.
11548         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11549         function.  Modernize replacement scheme.
11550         (gl_PREREQ_GETGROUPS): Delete.
11551         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11552         * modules/getgroups (configure.ac): Declare witness.
11553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11554         * modules/unistd (Depends-on): Substitute witness.
11555         * lib/unistd.in.h (getgroups): Declare replacement.
11556
11557         getgroups: avoid calling exit
11558         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11559         drop xalloc.
11560         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11561         dependencies.
11562         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11563         exiting, in the rare case of malloc failure.
11564
11565         getgroups: fix logic error
11566         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11567         has more than 20 groups.
11568         * modules/getgroups-tests: New test.
11569         * tests/test-getgroups.c: New file.
11570
11571 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11572
11573         * tests/test-base64.c: Improve.
11574
11575 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11576
11577         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11578         Blake <ebb9@byu.net>.
11579
11580 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11581
11582         * tests/test-xvasprintf.c: Add %s%s related checks.
11583
11584 2009-11-12  Eric Blake  <ebb9@byu.net>
11585
11586         version-etc: match standards.texi style
11587         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11588         and use <> only for URLs.
11589
11590 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11591
11592         fts: do not fail on a submount during traversal
11593         * lib/fts.c (fts_build): Read the stat info again after opening
11594         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11595         Original report at http://bugzilla.redhat.com/501848.
11596
11597 2009-11-12  Jim Meyering  <meyering@redhat.com>
11598
11599         bootstrap: sync from coreutils
11600         * build-aux/bootstrap (bootstrap_epilogue): New function.
11601         Use git_modules_config in one more place.  This make bootstrap's
11602         --gnulib-srcdir option more useful for testing.
11603
11604         bootstrap: generalize autoheader check
11605         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11606         AC_CONFIG_HEADERS.
11607
11608 2009-11-11  Eric Blake  <ebb9@byu.net>
11609
11610         mkfifoat: use new modules for Solaris and BSD bugs
11611         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11612         * lib/mkfifoat.c (mknodat): Split...
11613         * lib/mknodat.c (mknodat): ...into new file.
11614         * modules/mkfifoat (Files): Ship new file.
11615         (Depends-on): Add mkfifo, mknod.
11616         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11617         (Depends-on): Add symlink.
11618         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11619         redundant with test_mkfifo.h.
11620         (do_mkfifoat, do_mknodat): New helpers.
11621
11622         mknod: new module
11623         * modules/mknod: New file.
11624         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11625         * lib/mknod.c (mknod): Likewise.
11626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11627         defaults.
11628         * modules/sys_stat (Makefile.am): Substitute them.
11629         * lib/sys_stat.in.h (mknod): Declare replacement.
11630         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11631         Document it.
11632         * doc/posix-functions/mknod.texi (mknod): Likewise.
11633         * modules/mknod-tests: New test.
11634         * tests/test-mknod.c: Likewise.
11635
11636         mkfifo: new module
11637         * modules/mkfifo: New file.
11638         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11639         * lib/mkfifo.c (mkfifo): Likewise.
11640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11641         defaults.
11642         * modules/sys_stat (Makefile.am): Substitute them.
11643         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11644         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11645         Document it.
11646         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11647         * modules/mkfifo-tests: New test.
11648         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11649         from test-mkfifoat.c.
11650         * tests/test-mkfifo.c: New file.
11651
11652         readlink: detect FreeBSD bug
11653         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11654         slash on symlink.
11655         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11656         * tests/test-readlink.h (test_readlink): Enhance test.
11657
11658         symlink: detect FreeBSD bug
11659         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11660         slash on symlink.
11661         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11662         * tests/test-symlink.h (test_symlink): Enhance test.
11663
11664 2009-11-10  Eric Blake  <ebb9@byu.net>
11665
11666         link: detect FreeBSD bug
11667         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11668         symlink.
11669         * doc/posix-functions/link.texi (link): Document the bug.
11670         * tests/test-link.h (test_link): Enhance test.
11671         * tests/test-linkat.c (main): Update caller.
11672
11673         unlink, remove: detect FreeBSD bug
11674         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11675         slash on symlink.
11676         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11677         * doc/posix-functions/remove.texi (remove): Likewise.
11678         * tests/test-unlink.h (test_unlink): Enhance test.
11679         * tests/test-remove.c (main): Likewise.
11680
11681 2009-11-09  Eric Blake  <ebb9@byu.net>
11682
11683         rename: detect FreeBSD bug
11684         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11685         slash on symlink.
11686         * modules/renameat-tests (Depends-on): Add filenamecat.
11687         * tests/test-rename.h (test_rename): Allow one more errno.
11688         * tests/test-renameat.c (main): Likewise.
11689         * doc/posix-functions/rename.texi (rename): Document the bug.
11690
11691         open: detect FreeBSD bug
11692         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11693         symlink.
11694         * doc/posix-functions/open.texi (open): Document the bug.
11695         * doc/posix-functions/utimes.texi (utimes): Likewise.
11696         * tests/test-open.h (test_open): Add parameters, and test symlink
11697         handling.
11698         * tests/test-open.c (main): Adjust caller.
11699         * tests/test-fcntl-safer.c (main): Likewise.
11700         * modules/open-tests (Depends-on): Add stdbool, symlink.
11701         * modules/fcntl-safer-tests (Depends-on): Likewise.
11702         * tests/test-openat.c (main): Add test-open tests.
11703
11704         stat: detect FreeBSD bug
11705         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11706         symlink.
11707         * doc/posix-functions/stat.texi (stat): Document the bug.
11708         * tests/test-stat.h (test_stat_func): Add argument.
11709         * tests/test-stat.c (main): Adjust caller.
11710         * tests/test-fstatat.c (main): Likewise.
11711         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11712         Reported by Jim Meyering.
11713
11714 2009-11-09  James Youngman  <jay@gnu.org>
11715
11716         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11717         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11718
11719 2009-11-08  Jim Meyering  <meyering@redhat.com>
11720
11721         utimens: remove invalid futimesat call
11722         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11723         It used the file descriptor of the target file as the DIR_FD
11724         parameter and NULL as the file name.  That caused failure with
11725         errno == EFAULT on FreeBSD-8.0-rc2
11726
11727 2009-11-07  Eric Blake  <ebb9@byu.net>
11728
11729         fflush, freadseek: use fseeko, not fseek
11730         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11731         (clear_ungetc_buffer): Avoid potential problems on large files.
11732         * lib/freadseek.c (freadseek): Likewise.
11733         * modules/freadseek (Depends-on): Add fseeko.
11734         * modules/fseek (configure.ac): Set a witness.
11735         * tests/test-fflush.c (main): Use fseeko.
11736         * tests/test-fpurge.c (fseek): Disable link warning.
11737         * tests/test-freadable.c (fseek): Likewise.
11738         * tests/test-freading.c (fseek): Likewise.
11739         * tests/test-fseeko.c (fseek): Likewise.
11740         * tests/test-ftell.c (fseek): Likewise.
11741         * tests/test-ftello.c (fseek): Likewise.
11742         * tests/test-fwritable.c (fseek): Likewise.
11743         * tests/test-fwriting.c (fseek): Likewise.
11744
11745 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11746
11747         * modules/memchr (Depends-on): Drop getpagesize dependency.
11748
11749 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11750
11751         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11752         Reported by Ludovic Courtès.
11753         * build-aux/pmccabe2html: Improve example usage.
11754         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11755
11756 2009-11-06  Jim Meyering  <meyering@redhat.com>
11757
11758         do-release-commit-and-tag: New module.
11759         Automate the release-commit and tag process.
11760         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11761         * modules/do-release-commit-and-tag: New file.
11762         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11763
11764 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11765
11766         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11767         because test-select.c uses inet_pton.
11768
11769 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11770
11771         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11772         GETADDRINFO_LIB.  Bump serial number.
11773         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11774         Suggested by Eric Blake <ebb9@byu.net>.
11775
11776 2009-11-05  Eric Blake  <ebb9@byu.net>
11777
11778         strtod: detect darwin bug
11779         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11780         Reported by Leo Davis.
11781
11782         freopen-safer: new module
11783         * modules/freopen-safer: New module.
11784         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11785         * lib/freopen-safer.c (freopen_safer): New file.
11786         * lib/stdio-safer.h (freopen_safer): New declaration.
11787         * lib/stdio--.h (freopen): New override.
11788         * MODULES.html.sh (File stream based Input/Output): Mention it.
11789         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11790         freopen-safer module.
11791         * doc/posix-functions/stderr.texi (stderr): Likewise.
11792         * doc/posix-functions/stdin.texi (stdin): Likewise.
11793         * doc/posix-functions/stdout.texi (stdout): Likewise.
11794         * modules/freopen-safer-tests: New test.
11795         * tests/test-reopen-safer.c: New file.
11796
11797 2009-11-05  Jim Meyering  <meyering@redhat.com>
11798
11799         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11800         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11801
11802 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11803
11804         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11805
11806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11807
11808         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11809
11810 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11811
11812         Fix link error.
11813         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11814         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11815
11816 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11817
11818         * tests/test-func.c: Also test value of __func__.
11819
11820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11821
11822         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11823         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11824
11825 2009-11-05  Bruno Haible  <bruno@clisp.org>
11826
11827         Fix link error.
11828         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11830         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11831
11832 2009-11-05  Bruno Haible  <bruno@clisp.org>
11833
11834         Tests for module 'inet_pton'.
11835         * modules/inet_pton-tests: New file.
11836         * tests/test-inet_pton.c: New file.
11837
11838 2009-11-05  Bruno Haible  <bruno@clisp.org>
11839
11840         Tests for module 'inet_ntop'.
11841         * modules/inet_ntop-tests: New file.
11842         * tests/test-inet_ntop.c: New file.
11843
11844 2009-11-04  Eric Blake  <ebb9@byu.net>
11845
11846         stdlib-safer: wrap all mkstemp variants
11847         * modules/mkostemp (configure.ac): Set witness.
11848         * modules/mkostemps (configure.ac): Likewise.
11849         * modules/mkstemps (configure.ac): Likewise.
11850         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11851         (mkstemps_safer): Wrap more functions.
11852         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11853         wrapping.
11854         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11855         (mkstemps_safer): Implement the wrappers.
11856
11857         mkstemps, mkostemps: new modules
11858         * modules/mkostemps: New module.
11859         * modules/mkstemps: Likewise.
11860         * lib/mkostemps.c (mkostemps): New file.
11861         * lib/mkstemps.c (mkstemps): Likewise.
11862         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11863         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11865         * modules/stdlib (Makefile.am): Substitute them.
11866         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11867         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11868         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11869         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11870         * MODULES.html.sh (File system functions): Mention them.
11871
11872         tempname: resync from glibc
11873         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11874         same values for __GT_FILE as glibc.  Abort even when assertions
11875         are disabled.
11876         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
11877         match its value otherwise.  Allow idempotent inclusion.
11878         * lib/mkdtemp.c (mkdtemp): Adjust caller.
11879         * lib/mkostemp.c (mkostemp): Likewise.
11880         * lib/mkstemp.c (mkstemp): Likewise.
11881         * lib/tmpfile.c (tmpfile): Likewise.
11882         * NEWS: Document this.
11883
11884         utimens: fix use of futimens on older Linux
11885         * lib/utimens.c (fdutimens): Use updated, rather than original,
11886         timespec to avoid bug in older Linux kernel.
11887         Reported by Simon Josefsson.
11888
11889 2009-11-04  Bruno Haible  <bruno@clisp.org>
11890
11891         Make num_processors more flexible and consistent.
11892         * lib/nproc.h (enum nproc_query): New type.
11893         (num_processors): Add a 'query' argument.
11894         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
11895         (num_processors): Add a 'query' argument. Test the value of the
11896         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
11897         mingw, count the number of CPUs available for the current process.
11898         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
11899         Check for sched_getaffinity and sched_getaffinity_np.
11900         * modules/nproc (Depends-on): Add c-ctype, extensions.
11901         * NEWS: Mention the change.
11902
11903 2009-11-03  Bruno Haible  <bruno@clisp.org>
11904
11905         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
11906
11907 2009-11-03  Jim Meyering  <meyering@redhat.com>
11908
11909         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
11910         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
11911         if it is defined.
11912
11913 2009-11-02  Eric Blake  <ebb9@byu.net>
11914
11915         mktime, timegm: share common declaration
11916         * lib/mktime-internal.h: New file.
11917         * lib/mktime.c: Use it rather than open-coding a declaration.
11918         * lib/timegm.c: Likewise.
11919         * modules/mktime (Files): Ship it.
11920         * modules/timegm (Files): Likewise.
11921         Suggested by Bruno Haible.
11922
11923         test-update-copyright: update test to match script changes
11924         * tests/test-update-copyright.sh: Avoid hard-coding perl
11925         location.  Don't update *.bak created by earlier runs.
11926
11927 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11928             Simon Josefsson  <simon@josefsson.org>
11929             Bruno Haible  <bruno@clisp.org>
11930
11931         Fix link error on Solaris 8.
11932         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
11933         also in libnsl. Define also INET_PTON_LIB.
11934         * modules/inet_pton (Link): New section.
11935
11936 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11937             Bruno Haible  <bruno@clisp.org>
11938
11939         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
11940         * modules/inet_ntop (Link): New section.
11941         Reported by Boyan Kasarov <bkasarov@gmail.com>.
11942
11943 2009-11-02  Eric Blake  <ebb9@byu.net>
11944
11945         maint: avoid compiler warnings in m4 macros
11946         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
11947         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
11948
11949 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11950
11951         * m4/pmccabe2html.m4: Remove file.
11952         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
11953         function.  Change maintainer.
11954         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
11955         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
11956         Courtès).
11957
11958 2009-10-31  Eric Blake  <ebb9@byu.net>
11959
11960         fseeko: fix m4 regression
11961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
11962         regression from 2009-10-27.
11963         Reported by Ralf Wildenhues.
11964
11965 2009-10-31  Jim Meyering  <meyering@redhat.com>
11966
11967         inttostr: aesthetics and improved (compile-time) safety
11968         Define inttype_is_signed rather than inttype_is_unsigned,
11969         since the sole use is via "#if inttype_is_signed".
11970         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
11971         inttype_is_unsigned.
11972         * lib/offtostr.c (inttype_is_signed): Likewise.
11973         * lib/uinttostr.c (inttype_is_signed): Likewise.
11974         * lib/umaxtostr.c (inttype_is_signed): Likewise.
11975         * lib/inttostr.c (inttostr): Use verify to cross-check the
11976         inttype_is_signed value and the signedness of the actual type.
11977         * modules/inttostr (Depends-on): Add verify.
11978
11979 2009-10-30  Eric Blake  <ebb9@byu.net>
11980
11981         build: avoid compiler warnings
11982         * lib/fchmodat.c (lchmod): Mark unused variables.
11983         * lib/getopt.c (_getopt_initialize): Likewise.
11984         * lib/mktime.c (__mktime_internal): Provide prototype.
11985         * lib/inttostr.c (inttostr): Avoid compiler warning even with
11986         older gcc that do not understand #pragma GCC diagnostic.
11987         * lib/uinttostr.c (inttype_is_unsigned): Define.
11988         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
11989
11990 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11991
11992         stat: fix compilation on AIX
11993         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
11994         only see struct stat64.
11995
11996 2009-10-30  Eric Blake  <ebb9@byu.net>
11997
11998         exclude: make more robust
11999         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12000         rather than masking a coding bug.
12001         Suggested by Bruno Haible.
12002
12003 2009-10-30  Jim Meyering  <meyering@redhat.com>
12004
12005         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12006         Rather than putting #!/usr/bin/perl on the first line,
12007         start with a variant of what's recommended by "man perlrun" that
12008         invokes the first "perl" program from your shell's search path.
12009         * build-aux/gitlog-to-changelog: Replace #!... as above.
12010         Add a "Local Variables" perl mode setting.
12011         Prompted by a patch from Ludovic Courtès.
12012         Improved by Eric Blake.
12013         * build-aux/useless-if-before-free: Likewise.
12014         * build-aux/announce-gen: Likewise.
12015         * build-aux/update-copyright: Likewise.
12016
12017 2009-10-29  Eric Blake  <ebb9@byu.net>
12018
12019         filenamecat-lgpl: adjust clients
12020         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12021         filenamecat.
12022         * modules/renameat (Depends-on): Likewise.
12023
12024         filenamecat: split into filenamecat-lgpl
12025         * modules/filenamecat-lgpl: New module.
12026         * modules/filenamecat (Files): Move library-safe files into
12027         filenamecat-lgpl.
12028         (Depends-on): Add filenamecat-lgpl.
12029         (configure.ac): Declare witness.
12030         * lib/filenamecat.h (file_name_concat): Only declare when using
12031         GPL module.
12032         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12033         Move...
12034         * lib/filenamecat-lgpl.c: ...into new file.
12035         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12036         (gl_FILE_NAME_CONCAT): Use it.
12037         * MODULES.html.sh (File system functions): Mention new module.
12038
12039         argp: avoid memory leak
12040         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12041         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12042         base_name, since the latter malloc()s and can call exit().
12043         Leak introduced 2006-07-03.
12044
12045         dirname-lgpl: adjust clients that don't need full dirname
12046         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12047         * modules/filenamecat (Depends-on): Likewise.
12048         * modules/linkat (Depends-on): Likewise.
12049         * modules/mkancesdirs (Depends-on): Likewise.
12050         * modules/mkdir (Depends-on): Likewise.
12051         * modules/openat (Depends-on): Likewise.
12052         * modules/savewd (Depends-on): Likewise.
12053         * modules/rename (Depends-on): Likewise.
12054         (License): Relax license.
12055         * modules/mkdir-tests (Depends-on): Drop progname.
12056         (Makefile.am): Delete unneeded LDADD.
12057         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12058
12059         dirname: split into dirname-lgpl
12060         * modules/dirname-lgpl: New module.
12061         * modules/dirname (Files): Move library-safe files into
12062         dirname-lgpl.
12063         (Depends-on): Add dirname-lgpl.
12064         (configure.ac): Declare witness.
12065         * modules/double-slash-root (License): Relax license.
12066         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12067         module.
12068         * lib/dirname.c (dir_len, mdir_name): Move...
12069         * lib/dirname-lgpl.c: ...into new file.
12070         * lib/basename.c (last_component, base_len): Move...
12071         * lib/basename-lgpl.c: ...into new file.
12072         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12073         (gl_DIRNAME): Use it.
12074         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12075         Mention new module.
12076         * modules/dirname-tests (Depends-on): Add progname.
12077         * tests/test-dirname.c (program_name): Delete.
12078
12079         mkdir: make safe for libraries
12080         * modules/mkdir (Depends-on): Drop xalloc.
12081         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12082         exit.
12083
12084         tests: avoid some compiler warnings
12085         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12086         literals.
12087         * tests/test-memchr.c (main): Avoid type mismatch.
12088         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12089         * tests/test-base64.c (main): Likewise.
12090         * tests/test-getdelim.c (main): Likewise.
12091         * tests/test-gethostname.c (main): Likewise.
12092         * tests/test-getline.c (main): Likewise.
12093         * tests/test-netinet_in.c (main): Likewise.
12094         * tests/test-select.c (open_server_socket, main): Likewise.
12095         * tests/test-select-stdin.c (main): Likewise.
12096         * tests/test-sockets.c (main): Likewise.
12097         * tests/test-strsignal.c (main): Likewise.
12098         * tests/test-sys_select.c (main): Likewise.
12099         * tests/test-sys_socket.c (main): Likewise.
12100         * tests/test-u64.c (main): Likewise.
12101         * tests/test-xfprintf-posix.c (main): Likewise.
12102         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12103
12104         sockets: avoid compiler warning
12105         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12106
12107         maint: detect usage(1) and other suspicious exits
12108         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12109
12110 2009-10-29  Jim Meyering  <meyering@redhat.com>
12111
12112         timespec: long-to-int truncation could make timespec_cmp malfunction
12113         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12114         a multiple of 2^32 nanoseconds as no difference.
12115
12116 2009-10-28  Jim Meyering  <meyering@redhat.com>
12117
12118         fprintftime: wrap macro code argument in "do {...} while(0)"
12119         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12120         cpy macro must be a statement that can be followed by a semicolon.
12121         Now that the else clause contains a comment and is hence longer
12122         than one line, I require curly braces.  That in turn requires
12123         that we wrap this code block in the standard do...while(0).
12124
12125         fprintftime: remove stray semicolon from previous change
12126         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12127
12128         fprintftime: avoid a warning about ignored fwrite return value
12129         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12130         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12131         that is unsafe.
12132         * modules/fprintftime (Depends-on): Add ignore-value.
12133
12134         exclude: avoid an unwarranted warning
12135         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12136
12137 2009-10-27  Eric Blake  <ebb9@byu.net>
12138
12139         fseek: avoid compilation failure when fflush is replaced
12140         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12141         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12142         module is in use.
12143         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12144         module is not in use; since REPLACE_FSEEK worked otherwise.
12145         (GNULIB_FTELLO): Likewise for ftell.
12146         Reported by Ian Beckwith and others.
12147
12148 2009-10-27  Bruno Haible  <bruno@clisp.org>
12149
12150         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12151         Reported by Jim Meyering.
12152
12153 2009-10-27  Jim Meyering  <jim@meyering.net>
12154             Bruno Haible  <bruno@clisp.org>
12155
12156         Avoid warning despite dropping the return value of fwrite.
12157         * lib/unicodeio.c: Include ignore-value.h.
12158         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12159         * modules/unicodeio (Depends-on): Add ignore-value.
12160
12161 2009-10-26  Eric Blake  <ebb9@byu.net>
12162
12163         areadlinkat: fix fallback path
12164         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12165         pointer and zero.
12166
12167 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12168
12169         Use a better IO block size for modern systems
12170         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12171         * lib/md2.c: Likewise.
12172         * lib/md4.c: Likewise.
12173         * lib/md5.c: Likewise.
12174         * lib/sha1.c: Likewise.
12175         * lib/sha256.c: Likewise.
12176         * lib/sha512.c: Likewise.
12177
12178 2009-10-22  Eric Blake  <ebb9@byu.net>
12179
12180         tests: avoid several compiler warnings
12181         * tests/test-getcwd.c (main): Avoid buffer underflow.
12182         * tests/test-getdate.c (main): String literals are not safe with
12183         putenv, so use setenv.  Declare unused argument.
12184         * modules/getdate-tests (Depends-on): Add setenv.
12185         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12186         problems with string literals in char *.
12187         * tests/test-hash.c (main): Avoid shadowing declaration.
12188         (insert_new): Treat string literals as char const *.
12189         * tests/test-getopt.h (test_getopt): Likewise.
12190         (getopt_loop): Alter types to minimize casting elsewhere.
12191         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12192         (test_getopt_long_posix): Likewise.
12193         (do_getopt_long): Add wrapper to minimize casting.
12194         * tests/test-atexit.c (clear_temp_file): Use void.
12195         * tests/test-areadlink-with-size.c (main): Declare unused
12196         arguments.
12197         * tests/test-areadlink.c (main): Likewise.
12198         * tests/test-areadlinkat-with-size.c (main): Likewise.
12199         * tests/test-areadlinkat.c (main): Likewise.
12200         * tests/test-canonicalize-lgpl.c (main): Likewise.
12201         * tests/test-canonicalize.c (main): Likewise.
12202         * tests/test-dirent-safer.c (main): Likewise.
12203         * tests/test-dirname.c (main): Likewise.
12204         * tests/test-dup2.c (main): Likewise.
12205         * tests/test-fchdir.c (main): Likewise.
12206         * tests/test-fcntl-h.c (main): Likewise.
12207         * tests/test-fcntl-safer.c (main): Likewise.
12208         * tests/test-fdopendir.c (main): Likewise.
12209         * tests/test-fdutimensat.c (main): Likewise.
12210         * tests/test-fflush.c (main): Likewise.
12211         * tests/test-filenamecat.c (main): Likewise.
12212         * tests/test-filevercmp.c (main): Likewise.
12213         * tests/test-fopen-safer.c (main): Likewise.
12214         * tests/test-fopen.c (main): Likewise.
12215         * tests/test-fpending.c (main): Likewise.
12216         * tests/test-fpurge.c (main): Likewise.
12217         * tests/test-freading.c (main): Likewise.
12218         * tests/test-fstatat.c (main): Likewise.
12219         * tests/test-fsync.c (main): Likewise.
12220         * tests/test-futimens.c (main): Likewise.
12221         * tests/test-getndelim2.c (main): Likewise.
12222         * tests/test-gettimeofday.c (main): Likewise.
12223         * tests/test-getopt.c (main): Likewise.
12224         * tests/test-i-ring.c (main): Likewise.
12225         * tests/test-inttypes.c (main): Likewise.
12226         * tests/test-link.c (main): Likewise.
12227         * tests/test-lstat.c (main): Likewise.
12228         * tests/test-math.c (main): Likewise.
12229         * tests/test-md5.c (main): Likewise.
12230         * tests/test-memchr2.c (main): Likewise.
12231         * tests/test-memrchr.c (main): Likewise.
12232         * tests/test-mkdir.c (main): Likewise.
12233         * tests/test-mkdirat.c (main): Likewise.
12234         * tests/test-mkfifoat.c (main): Likewise.
12235         * tests/test-open.c (main): Likewise.
12236         * tests/test-openat-safer.c (main): Likewise.
12237         * tests/test-openat.c (main): Likewise.
12238         * tests/test-quotearg.c (main): Likewise.
12239         * tests/test-rawmemchr.c (main): Likewise.
12240         * tests/test-readlink.c (main): Likewise.
12241         * tests/test-remove.c (main): Likewise.
12242         * tests/test-rename.c (main): Likewise.
12243         * tests/test-renameat.c (main): Likewise.
12244         * tests/test-rmdir.c (main): Likewise.
12245         * tests/test-sha1.c (main): Likewise.
12246         * tests/test-signal.c (main): Likewise.
12247         * tests/test-sigaction.c (main): Likewise.
12248         * tests/test-stat.c (main): Likewise.
12249         * tests/test-stat-time.c (main): Likewise.
12250         * tests/test-stddef.c (main): Likewise.
12251         * tests/test-stdint.c (main): Likewise.
12252         * tests/test-stdio.c (main): Likewise.
12253         * tests/test-stdlib.c (main): Likewise.
12254         * tests/test-strchrnul.c (main): Likewise.
12255         * tests/test-strerror.c (main): Likewise.
12256         * tests/test-string.c (main): Likewise.
12257         * tests/test-strtod.c (main): Likewise.
12258         * tests/test-strverscmp.c (main): Likewise.
12259         * tests/test-symlink.c (main): Likewise.
12260         * tests/test-symlinkat.c (main): Likewise.
12261         * tests/test-sys_stat.c (main): Likewise.
12262         * tests/test-sys_time.c (main): Likewise.
12263         * tests/test-time.c (main): Likewise.
12264         * tests/test-unistd.c (main): Likewise.
12265         * tests/test-unlink.c (main): Likewise.
12266         * tests/test-unlinkat.c (main): Likewise.
12267         * tests/test-utimens.c (main): Likewise.
12268         * tests/test-utimensat.c (main): Likewise.
12269         * tests/test-version-etc.c (main): Likewise.
12270         * tests/test-wchar.c (main): Likewise.
12271         * tests/test-wctype.c (main): Likewise.
12272         * tests/test-xprintf-posix.c (main): Likewise.
12273         * tests/test-posixtm.c (main): Likewise.
12274         (STREQ): Delete unused macro.
12275         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12276         shadowed variables.
12277         * tests/test-memchr.c (main): Likewise.
12278
12279 2009-10-21  Eric Blake  <ebb9@byu.net>
12280
12281         areadlinkat: avoid failure on older glibc
12282         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12283         rather than mis-comparing 0 against FUNC_RESULT of char*.
12284
12285 2009-10-21  Bruno Haible  <bruno@clisp.org>
12286
12287         * modules/stpncpy (License): Relicense under LGPLv2+.
12288         Reported by David Lutterkort <lutter@redhat.com>.
12289
12290 2009-10-20  Eric Blake  <ebb9@byu.net>
12291
12292         utimensat: work around Solaris 9 bug
12293         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12294         has trailing slash bugs.
12295         * tests/test-lutimens.h (test_lutimens): Enhance test.
12296         * tests/test-utimens.h (test_utimens): Likewise.
12297         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12298         * doc/posix-functions/utimes.texi (utimes): Likewise.
12299         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12300         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12301         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12302         * doc/posix-functions/futimens.texi (futimens): Likewise.
12303
12304         fdutimensat: new module
12305         * modules/fdutimensat: New file.
12306         * lib/fdutimensat.c (fdutimensat): Likewise.
12307         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12308         * MODULES.html.sh (File system functions): Mention module.
12309         * modules/fdutimensat-tests: New test.
12310         * tests/test-fdutimensat.c: Likewise.
12311
12312         doc: regenerate INSTALL
12313         * doc/INSTALL: Reflect recent autoconf update.
12314         * doc/INSTALL.ISO: Likewise.
12315         * doc/INSTALL.UTF-8: Likewise.
12316
12317 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12318
12319         acl: warn if ACL support is not detected
12320         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12321
12322 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12323
12324         * lib/nproc.h: Add extern "C" block for C++.
12325
12326 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12327             Bruno Haible  <bruno@clisp.org>
12328
12329         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12330         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12331         * doc/posix-functions/isalpha.texi: Likewise.
12332         * doc/posix-functions/isblank.texi: Likewise.
12333         * doc/posix-functions/iscntrl.texi: Likewise.
12334         * doc/posix-functions/isdigit.texi: Likewise.
12335         * doc/posix-functions/isgraph.texi: Likewise.
12336         * doc/posix-functions/islower.texi: Likewise.
12337         * doc/posix-functions/isprint.texi: Likewise.
12338         * doc/posix-functions/ispunct.texi: Likewise.
12339         * doc/posix-functions/isspace.texi: Likewise.
12340         * doc/posix-functions/isupper.texi: Likewise.
12341         * doc/posix-functions/isxdigit.texi: Likewise.
12342
12343 2009-10-18  Bruno Haible  <bruno@clisp.org>
12344
12345         Tests for module 'isblank'.
12346         * modules/isblank-tests: New file.
12347         * tests/test-isblank.c: New file.
12348
12349         New module 'isblank'.
12350         * lib/isblank.c: New file.
12351         * m4/isblank.m4: New file.
12352         * modules/isblank: New file.
12353         * doc/posix-functions/isblank.texi: Mention the new module.
12354
12355 2009-10-18  Bruno Haible  <bruno@clisp.org>
12356
12357         New module 'ctype'.
12358         * lib/ctype.in.h: New file.
12359         * m4/ctype.m4: New file.
12360         * modules/ctype: New file.
12361         * doc/posix-headers/ctype.texi: Mention the new module.
12362
12363 2009-10-18  Jim Meyering  <meyering@redhat.com>
12364
12365         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12366         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12367         right after its initialization, rather than farther down.
12368         Keeping these in close proximity makes it easier to ensure
12369         that each such variable is initialized.  E.g.,
12370
12371             LIB_CLOCK_GETTIME=
12372             AC_SUBST([LIB_CLOCK_GETTIME])
12373
12374         This change also increments these serial numbers.
12375         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12376         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12378
12379 2009-10-18  Bruno Haible  <bruno@clisp.org>
12380
12381         Don't let environment variables perturb build.
12382         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12383         (gl_PREREQ_GETHRXTIME): ... not here.
12384
12385 2009-10-18  Bruno Haible  <bruno@clisp.org>
12386
12387         Avoid symlink attack in localcharset module.
12388         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12389         (O_NOFOLLOW): Define fallback.
12390         (get_charset_aliases): Don't open the file if it is a symbolic link.
12391         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12392         gl_FCNTL_H.
12393         (gl_FCNTL_H): Require it.
12394         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12395         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12396         Reported by Fergal Glynn <fglynn@veracode.com>.
12397
12398 2009-10-18  Bruno Haible  <bruno@clisp.org>
12399
12400         Implement nproc for mingw.
12401         * lib/nproc.c: Include <windows.h>
12402         (num_processors): On native Windows platforms, try GetSystemInfo.
12403
12404 2009-10-18  Bruno Haible  <bruno@clisp.org>
12405
12406         Implement nproc for IRIX.
12407         * lib/nproc.c: Include <sys/sysmp.h>.
12408         (num_processors): On IRIX systems, try sysmp.
12409         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12410
12411 2009-10-18  Bruno Haible  <bruno@clisp.org>
12412
12413         Implement nproc for HP-UX.
12414         * lib/nproc.c: Include <sys/pstat.h>
12415         (num_processors): On HP-UX systems, try pstat_getdynamic.
12416         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12417         pstat_getdynamic.
12418
12419 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12420             Bruno Haible  <bruno@clisp.org>
12421
12422         Implement nproc for NetBSD, OpenBSD.
12423         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12424         (ARRAY_SIZE): New macro.
12425         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12426         * m4/nproc.m4: New file.
12427         * modules/nproc (Files): Add m4/nproc.m4.
12428         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12429         (Makefile.am): Instead, augment lib_SOURCES.
12430
12431 2009-10-18  Bruno Haible  <bruno@clisp.org>
12432
12433         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12434         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12435         sys/param.h.
12436
12437 2009-10-16  Eric Blake  <ebb9@byu.net>
12438
12439         utimensat: new module
12440         * modules/utimensat: New file.
12441         * lib/utimensat.c (utimensat): Likewise.
12442         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12443         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12444         so we can work around Linux bugs.
12445         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12446         * modules/sys_stat (Makefile.am): Substitute them.
12447         * lib/sys_stat.in.h (utimensat): Declare it.
12448         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12449         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12450         * modules/utimensat-tests: New test.
12451         * tests/test-utimensat.c: Likewise.
12452
12453         utimens: let lutimens work on non-symlinks
12454         * lib/utimens.c (lutimens): Fall back to utimens rather than
12455         failing with ENOSYS, when file is not a symlink.
12456         (utimens): Reduce redirection.
12457         * tests/test-lutimens.h (test_lutimens): Update test to cover
12458         non-symlinks.
12459         * tests/test-utimens.h (test_utimens): Update test to cover
12460         symlinks.
12461         * tests/test-utimens.c (main): Update caller.
12462
12463         utimens: cache whether utimensat syscall works
12464         * lib/utimens.c (utimensat_works_really): New cache variable.
12465         (fdutimens, lutimens): Use it to avoid failing syscall.
12466
12467         test-stat-time, test-utimens: improve portability
12468         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12469         ext4 on alpha, and for cygwin.
12470         * tests/test-utimens-common.h: New file.
12471         (nap): Factor delays into single function.
12472         * tests/test-lutimens.h (test_lutimens): Use new header.
12473         * tests/test-futimens.h (test_futimens): Likewise.
12474         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12475         timestamps to occur from same machine, as was done previously for
12476         test_utimens.
12477         * modules/utimens-tests (Files): Ship new file.
12478         * modules/futimens-tests (Files): Likewise.
12479         Reported in part by Jim Meyering.
12480
12481         sys_stat: sort replacement declarations
12482         * lib/sys_stat.in.h: Sort declarations.
12483         * lib/futimens.c (futimens): Fix typo.
12484
12485 2009-10-15  Jim Meyering  <meyering@redhat.com>
12486
12487         don't let environment settings perturb build
12488         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12489         could cause a configure-time and/or build-time malfunction.
12490         Typically, a configure-time function-in-library test is performed
12491         via code like this:
12492
12493           LIB_VAR=
12494           AC_SUBST([LIB_VAR])
12495           prefix_saved_LIBS=$LIBS
12496             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12497                        [test "$ac_cv_search_FUNC" = "none required" ||
12498                         LIB_VAR=$ac_cv_search_FUNC])
12499           LIBS=$prefix_saved_LIBS
12500
12501         However, in each of the files affected by this change, the LIB_VAR=
12502         initialization was omitted.  Thus, when set in the environment, its
12503         value would propagate into generated Makefiles when FUNC is not found
12504         in LIB_NAME.
12505         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12508
12509 2009-10-14  Eric Blake  <ebb9@byu.net>
12510
12511         fchdir: avoid infinite recursion in mingw
12512         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12513         recursing.
12514
12515         test-stat-time: port to mingw
12516         * tests/test-stat-time.c (force_unlink): Return a value.
12517         (test_ctime) [W32]: Fix compilation error.
12518         (nap): Don't call usleep with too large an argument.  Use
12519         force_unlink.
12520         * doc/pastposix-functions/usleep.texi (usleep): Document the
12521         portability issue.
12522
12523 2009-10-13  Jim Meyering  <meyering@redhat.com>
12524
12525         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12526         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12527         * modules/pipe-filter-ii: Likewise.
12528         * modules/sys_socket-tests: Likewise.
12529         * modules/tsearch-tests: Likewise.
12530         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12531         (check): Depend on it.
12532
12533 2009-10-12  Eric Blake  <ebb9@byu.net>
12534
12535         utimens-tests: port to NFS file systems
12536         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12537         comparisons to avoid spurious failures from timestamp drift
12538         between NFS machines.
12539
12540 2009-10-12  Eric Blake  <ebb9@byu.net>
12541
12542         stat-time-tests: minor cleanups
12543         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12544         * tests/test-stat-time.c (nap): Separate assignment from call.
12545         Suggested by Paolo Bonzini and Bruno Haible.
12546
12547         sys_stat: guarantee struct timespec
12548         * lib/sys_stat.in.h (includes): Always include <time.h>
12549         * modules/sys_stat (Depends-on): Add time.
12550         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12551         mode_t permission values.
12552         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12553         get at subsecond timestamps.
12554
12555 2009-10-10  Eric Blake  <ebb9@byu.net>
12556
12557         futimens: new module
12558         * modules/futimens: New file.
12559         * lib/futimens.c (futimens): Likewise.
12560         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12561         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12562         we can work around Linux bugs.
12563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12564         * modules/sys_stat (Makefile.am): Substitute them.
12565         * lib/sys_stat.in.h (futimens): Declare it.
12566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12567         * doc/posix-functions/futimens.texi (futimens): Likewise.
12568         * modules/futimens-tests: New test.
12569         * tests/test-futimens.c: Likewise.
12570
12571         utimens: introduce fdutimens
12572         * lib/utimens.h (fdutimens): New prototype.
12573         * lib/utimens.c (gl_futimens): Move guts...
12574         (fdutimens): ...to new interface.
12575         * tests/test-utimens.c (do_fdutimens): Use it.
12576
12577         utimens: add UTIME_NOW and UTIME_OMIT support
12578         * lib/utimens.c (validate_timespec, update_timespec): New helper
12579         functions.
12580         (gl_futimens, lutimens): Use them.
12581         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12582         stdbool, sys_stat.
12583         (Link): Mention resulting library dependency.
12584         * modules/utimecmp (Link): Likewise.
12585         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12586         (Makefile.am): Pick up library dependency.
12587         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12588         definition.
12589         * tests/test-sys_stat.c: Test the definitions.
12590         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12591         * NEWS: Document library dependency.
12592
12593         utimecmp: support symlink timestamps
12594         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12595         hashing when possible.  Use pathconf when available.
12596         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12597         * modules/utimecmp (Depends-on): Add lstat.
12598
12599         utimens: add lutimens interface
12600         * lib/utimens.c (lutimens): New function.
12601         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12602         * lib/utimens.h (lutimens): Declare new interface.
12603         * tests/test-utimens.c (main): Enhance test.
12604         * tests/test-lutimens.h (test_lutimens): New file.
12605         * modules/utimens-tests (Files): Distribute it.
12606         (Depends-on): Add symlink.
12607         (configure.ac): Check for usleep.
12608
12609         utimens: validate futimens usage
12610         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12611         fewer syscalls on failure later on.  Avoid compiler warning on
12612         mingw.
12613         * modules/utimens (Depends-on): Add dup2.
12614
12615         utimens: add test
12616         * modules/utimens-tests: New test.
12617         * tests/test-utimens.h: New file.
12618         * tests/test-futimens.h: Likewise.
12619         * tests/test-utimens.c: Likewise.
12620
12621         doc: mention timestamp portability issues
12622         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12623         instead.
12624         * doc/posix-functions/utime.texi (utime): Likewise.
12625         * doc/posix-functions/utimes.texi (utimes): Likewise.
12626         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12627         instead.
12628         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12629         module.
12630         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12631         Mention weakness with symlink timestamps.
12632         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12633         to utimensat/futimens instead.
12634         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12635
12636         test-dup2: enhance test
12637         * tests/test-dup2.c (main): Also check AT_FDCWD.
12638
12639         test-stat-time: avoid more spurious failures
12640         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12641         xfs; and avoid race if the two timestamps cross quantization edge.
12642
12643         relocatable: prefer 'file system' over 'filesystem'
12644         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12645         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12646         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12647         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12648         * lib/relocatable.c (compute_curr_prefix): Likewise.
12649
12650 2009-10-10  Jim Meyering  <meyering@redhat.com>
12651
12652         stat-time-tests: check for the usleep function
12653         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12654
12655 2009-10-10  Bruno Haible  <bruno@clisp.org>
12656
12657         * modules/xnanosleep: Put the Link section after the Include section.
12658
12659 2009-10-09  Eric Blake  <ebb9@byu.net>
12660
12661         dup2: work around FreeBSD 6.1 bug
12662         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12663         * doc/posix-functions/dup2.texi (dup2): Document it.
12664         Reported by Nelson H. F. Beebe and Jim Meyering.
12665
12666         test-stat-time: port to buggy NFS clients
12667         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12668         (test_ctime): Also skip test if mtime and ctime are skewed.
12669
12670         maint: prefer 'file system' over 'filesystem'
12671         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12672         * doc/posix-functions/lstat.texi (lstat): Likewise.
12673         * lib/file-has-acl.c (file_has_acl): Likewise.
12674         * lib/fwriteerror.c [TEST]: Likewise.
12675         * tests/test-areadlink.h (test_areadlink): Likewise.
12676         * tests/test-areadlinkat-with-size.c (main): Likewise.
12677         * tests/test-areadlinkat.c (main): Likewise.
12678         * tests/test-canonicalize-lgpl.c (main): Likewise.
12679         * tests/test-canonicalize.c (main): Likewise.
12680         * tests/test-fstatat.c (main): Likewise.
12681         * tests/test-linkat.c (main): Likewise.
12682         * tests/test-lstat.h (test_lstat_func): Likewise.
12683         * tests/test-mkdir.h (test_mkdir): Likewise.
12684         * tests/test-readlink.h (test_readlink): Likewise.
12685         * tests/test-remove.c (main): Likewise.
12686         * tests/test-rename.h (test_rename): Likewise.
12687         * tests/test-renameat.c (main): Likewise.
12688         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12689         * tests/test-symlink.h (test_symlink): Likewise.
12690         * tests/test-symlinkat.c (main): Likewise.
12691         * tests/test-unlink.h (test_unlink_func): Likewise.
12692         * tests/test-unlinkat.c (main): Likewise.
12693
12694         maint: make realtime library usage explicit
12695         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12696         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12697         * modules/settime (Link): Likewise.
12698         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12699
12700         test-stat-time: speed up execution
12701         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12702         warning on mingw.
12703         (nap): New helper function.
12704         (prepare_test): Use it to reduce sleep time.
12705         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12706         execution.
12707         * modules/stat-time-tests (configure.ac): Check for usleep.
12708
12709 2009-10-09  Jim Meyering  <meyering@redhat.com>
12710
12711         selinux-h: always use getfilecon wrappers
12712         * lib/getfilecon.c: New file.
12713         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12714         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12715         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12716         (fgetfilecon): Provide a stub.
12717         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12718         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12719         file unconditionally.
12720         When <selinux/selinux.h> is found, arrange to use wrappers.
12721         * modules/selinux-h (Files): Add getfilecon.c.
12722         (Makefile.am): Substitute include-next-related bits
12723         into the now-always-generated selinux/selinux.h file.
12724         * doc/glibc-functions/lgetfilecon.texi: New file.
12725         * doc/glibc-functions/fgetfilecon.texi: New file.
12726         * doc/glibc-functions/getfilecon.texi: New file.
12727         * doc/glibc-functions/getfilecon-desc.texi: New file.
12728         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12729         which to pull in the new files.
12730         * MODULES.html.sh (Misc): Add selinux-h.
12731
12732 2009-10-08  Jim Meyering  <meyering@redhat.com>
12733
12734         unistd: fix comment typo
12735         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12736
12737 2009-10-08  Eric Blake  <ebb9@byu.net>
12738
12739         areadlink: use SIZE_MAX consistently
12740         * modules/areadlink (Depends-on): Add stdint.
12741         * modules/areadlink-with-size (Depends-on): Likewise.
12742         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12743         gives NULL; drop sys/types, since unistd gives size_t; and add
12744         stdint for SIZE_MAX.
12745         (SIZE_MAX): Rely on headers.
12746         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12747         and add stdint.
12748         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12749         (SIZE_MAX): Likewise.
12750         (INITIAL_BUF_SIZE): Turn into enum.
12751         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12752
12753 2009-10-08  Jim Meyering  <meyering@redhat.com>
12754
12755         areadlinkat: avoid compilation failure
12756         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12757         Fix typo in comment.
12758
12759 2009-10-07  Eric Blake  <ebb9@byu.net>
12760
12761         areadlinkat-with-size: new module
12762         * modules/areadlinkat-with-size: New module.
12763         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12764         * lib/areadlink.h (areadlinkat): Declare it.
12765         * MODULES.html.sh (File system functions): Mention it.
12766         * modules/areadlinkat-with-size-tests: New test.
12767         * tests/test-areadlinkat-with-size.c: New file.
12768
12769         xreadlinkat: new module
12770         * modules/xreadlinkat: New module.
12771         * lib/xreadlinkat.c (xreadlinkat): New file.
12772         * lib/xreadlink.h (xreadlinkat): Declare it.
12773         * MODULES.html.sh (File system functions): Mention it.
12774
12775         areadlinkat: new module
12776         * lib/at-func.c (FUNC_FAIL): New define.
12777         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12778         * modules/areadlinkat: New module.
12779         * lib/linkat.c (areadlinkat): Move...
12780         * lib/areadlinkat.c (areadlinkat): ...to new file.
12781         * lib/areadlink.h (areadlinkat): Declare it.
12782         * modules/linkat (Depends-on): Add areadlinkat.
12783         * MODULES.html.sh (File system functions): Mention it.
12784         * modules/areadlinkat-tests: New test.
12785         * tests/test-areadlinkat.c: New file.
12786
12787         areadlink, areadlink-with-size: add tests
12788         * modules/areadlink-tests: New test.
12789         * modules/areadlink-with-size-tests: Likewise.
12790         * tests/test-areadlink.h: New file.
12791         * tests/test-areadlink.c: Likewise.
12792         * tests/test-areadlink-with-size.c: Likewise.
12793
12794         maint: minor cleanups
12795         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12796         _UNUSED_PARAMETER_ instead.
12797         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12798         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12799         * modules/linkat-tests (Files): Distribute test-link.h.
12800
12801         openat, utimens: whitespace cleanup
12802         * lib/openat.c: Prefer space throughout, rather than mix of 8
12803         spaces vs. tabs.
12804         * lib/at-func.c: Likewise.
12805         * lib/utimens.c: Likewise.
12806
12807         openat: avoid using wrong fd
12808         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12809         working directory chooses same fd.
12810         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12811
12812         mkdir, mkdirat: fix cygwin 1.5.x bug
12813         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12814         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12815         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12816         bug.
12817         (gl_PREREQ_MKDIR): Delete unused macro.
12818         * modules/mkdir (Files): Track file rename.
12819         (configure.ac): Update macro name.
12820         * modules/openat (Depends-on): Add mkdir.
12821         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12822
12823         mkdir, mkdirat: add tests
12824         * modules/mkdir-tests: New test.
12825         * tests/test-mkdir.h: New file.
12826         * tests/test-mkdir.c: Likewise.
12827         * tests/test-mkdirat.c: Likewise.
12828         * modules/openat-tests (Files): Add new files.
12829         (Makefile.am): Run new test.
12830
12831 2009-10-06  Eric Blake  <ebb9@byu.net>
12832
12833         doc: tweak *at function documentation
12834         * doc/posix-functions/faccessat.texi (faccessat): Mention
12835         known issue with replacement.
12836         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12837         * doc/posix-functions/linkat.texi (linkat): Likewise.
12838         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12839         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12840         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12841         * doc/posix-functions/renameat.texi (renameat): Likewise.
12842         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12843
12844         openat: fix GNU/Hurd bug in unlinkat
12845         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12846         broken.
12847         * doc/posix-functions/unlink.texi (unlink): Document this.
12848         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12849
12850         fdopendir: fix GNU/Hurd bug
12851         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12852         allowing non-directory fds.
12853         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12855         * modules/dirent (Makefile.am): Substitute it.
12856         * lib/dirent.in.h (fdopendir): Declare replacement.
12857         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12858         * tests/test-fdopendir.c (main): Test something other than
12859         /dev/null, since on Hurd that behaves like a directory.
12860
12861         test-symlink: port to GNU/Hurd
12862         * tests/test-symlink.h (test_symlink): Relax expected errno.
12863
12864         doc: tweak more cygwin information
12865         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12866         now compatible with glibc.
12867         * doc/posix-functions/getopt.texi (getopt): Likewise.
12868
12869         getopt-gnu: add another test
12870         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12871         guarantee behavior relied on by m4.
12872         * tests/test-getopt.c (main): Use it.
12873         * modules/getopt-posix-tests (Depends-on): Add setenv.
12874         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12875
12876         getopt: fix compilation on darwin
12877         * lib/getopt.in.h (includes): Leave breadcrumbs during system
12878         include.
12879         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
12880         Reported by Ludovic Courtès.
12881
12882 2009-10-06  Bruno Haible  <bruno@clisp.org>
12883
12884         * modules/size_max (Description): Discourage its use.
12885         Reported by Simon Josefsson.
12886
12887 2009-10-06  Jim Meyering  <meyering@redhat.com>
12888
12889         linkat: avoid compilation failure
12890         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
12891
12892 2009-10-05  Eric Blake  <ebb9@byu.net>
12893
12894         linkat: support Linux 2.6.17
12895         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
12896         linkat on Linux, but allow cache variable override.
12897         * lib/linkat.c (rpl_linkat): Define override.
12898         * modules/linkat (Depends-on): Add symlinkat.
12899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
12900         * modules/unistd (Makefile.am): Substitute it.
12901         * lib/unistd.in.h (linkat): Declare replacement.
12902         Reported by Pádraig Brady.
12903
12904         quotearg: port test to systems with C.UTF-8 locale
12905         * tests/test-quotearg.c (struct result_strings): Add another
12906         member, differentiating between C.ASCII and C.UTF-8 handling.
12907         (compare_strings): Add parameter.
12908         (main): Adjust all callers.
12909
12910         getopt: avoid clash with FreeBSD _getopt_internal
12911         * lib/getopt.in.h (_getopt_internal): Override the name.
12912         * lib/getopt_int.h (includes): Pick up any overrides.
12913         Reported by Reuben Thomas.
12914
12915         hash: allow C89 compilation
12916         * lib/hash.c (check_tuning): Move declaration before statement.
12917         Reported by Reuben Thomas.
12918
12919 2009-10-05  Karl Berry  <karl@gnu.org>
12920
12921         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
12922
12923 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
12924             Bruno Haible  <bruno@clisp.org>
12925
12926         * lib/uname.c (uname): Use a table-driven algorithm to compute
12927         Windows NT versions.
12928
12929 2009-10-04  Bruno Haible  <bruno@clisp.org>
12930
12931         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
12932         program_invocation_short_name.
12933         * modules/progname (configure.ac): Test for presence of
12934         program_invocation_short_name.
12935         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12936
12937 2009-10-04  Bruno Haible  <bruno@clisp.org>
12938
12939         * lib/progname.c (set_program_name): Fix comment.
12940         Reported by Jim Meyering.
12941
12942 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12943             Bruno Haible  <bruno@clisp.org>
12944
12945         * lib/uname.c: Include <string.h>.
12946         (uname): Do only one call to GetVersionEx in the common case.
12947
12948 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12949             Bruno Haible  <bruno@clisp.org>
12950
12951         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
12952         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
12953         (uname): Add support for Windows CE and various non-x86 CPU types.
12954
12955 2009-10-03  Bruno Haible  <bruno@clisp.org>
12956
12957         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
12958         invocation to tests/configure.ac.
12959         Reported by Ian Beckwith <ianb@erislabs.net>.
12960
12961 2009-10-02  Eric Blake  <ebb9@byu.net>
12962
12963         fchdir: avoid compiler warning
12964         * lib/fchdir.c (canonicalize_file_name)
12965         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
12966
12967         test-open: support mingw errno values
12968         * tests/test-open.h (test_open): Relax test.
12969         * tests/test-fopen.h (test_fopen): Likewise.
12970         * tests/test-openat-safer.c (main): Likewise.
12971
12972         open: fix opening directory on mingw
12973         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
12974
12975         test-open: on GNU/Hurd, /dev/null is a directory
12976         * tests/test-fopen.h (main): Rename...
12977         (test_fopen): ...to this.  Use a guaranteed non-directory when
12978         confirming open behavior on trailing slash.
12979         * tests/test-openat-safer.c (main): Likewise.
12980         * tests/test-open.h (main): Likewise....
12981         (test_open): ...to this.
12982         * tests/test-fopen.c (main): Adjust caller.
12983         * tests/test-fopen-safer.c (main): Likewise.
12984         * tests/test-open.c (main): Likewise.
12985         * tests/test-fcntl-safer.c (main): Likewise.
12986         Reported by Samuel Thibault.
12987
12988         rename, fchdir: don't ignore chdir failure
12989         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
12990         * lib/rename.c (rpl_rename) [W32]: Likewise.
12991         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
12992         an empty destination directory if source cannot be renamed,
12993         although there is still possibility for failure.
12994         * doc/posix-functions/rename.texi (rename): Document the race.
12995         Reported by Jim Meyering.
12996
12997         maint: cleanup whitespace in recent commits
12998         * lib/rename.c (rpl_rename): Remove tabs.
12999         * tests/test-link.h (test_link): Likewise.
13000         * lib/fchdir.c (get_name): Likewise.
13001         Reported by Jim Meyering.
13002
13003 2009-10-02  Ben Pfaff  <blp@gnu.org>
13004
13005         relocatable-prog-wrapper: Add missing dependency on
13006         double-slash-root.
13007         * modules/relocatable-prog-wrapper: Add dependency.
13008         Reported by Ian Beckwith <ianb@erislabs.net>.
13009
13010 2009-10-02  Eric Blake  <ebb9@byu.net>
13011
13012         renameat: fix Solaris bugs
13013         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13014         needed fixing.
13015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13016         * modules/stdio (Makefile.am): Substitute it.
13017         * lib/stdio.in.h (renameat): Declare replacement.
13018         * lib/renameat.c (rpl_renameat): Implement fix.
13019
13020         renameat: new module
13021         * modules/renameat: New file.
13022         * lib/renameat.c (renameat): Likewise.
13023         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13025         * modules/stdio (Makefile.am): Substitute them.
13026         * lib/stdio.in.h (renameat): Declare it.
13027         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13028         * doc/posix-functions/renameat.texi (renameat): Likewise.
13029         * modules/renameat-tests: New test.
13030         * tests/test-renameat.c: Likewise.
13031
13032         rename: fix mingw bugs
13033         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13034         directory overwrite bugs.
13035
13036         rename: fix another cygwin 1.5 bug
13037         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13038         checks.
13039         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13040         unnecessary cygwin workarounds.  Also work around bug with moving
13041         full directory onto an empty one.
13042         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13043
13044         rename-dest-slash: merge into rename module
13045         * modules/rename-dest-slash (Status): Mark obsolete.
13046         (Depends-on): Add rename.
13047         (Files): Let rename do it all.
13048         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13049         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13050         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13051         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13052         * lib/rename.c (rpl_rename): Update comments.
13053
13054         rename: fix cygwin 1.5.x bugs
13055         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13056         * lib/rename.c (rpl_rename): Work around them.
13057         * modules/rename (Depends-on): Add same-inode.
13058
13059         rename: fix Solaris 10 bug
13060         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13061         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13062         was the only bug.
13063
13064         rename: fix Solaris 9 bug
13065         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13066         on non-directory.  Avoid calling exit.
13067         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13068         strdup.
13069         * modules/rename-tests (Depends-on): Drop lstat.
13070         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13071         (gl_PREREQ_RENAME): Delete unused macro.
13072
13073         rename-dest-slash: fix NetBSD bug
13074         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13075         links.
13076         * modules/rename-dest-slash (Depends-on): Add same-inode.
13077
13078         rename-tests: new test, exposes several platform bugs
13079         * modules/rename-tests: New file.
13080         * tests/test-rename.h: Likewise.
13081         * tests/test-rename.c: Likewise.
13082         * doc/posix-functions/rename.texi (rename): Improve documentation,
13083         including bugs that will eventually be fixed in gnulib.
13084
13085 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13086
13087         * lib/uname.c: Include <stdlib.h>
13088         (uname): Assume version info is available.
13089
13090 2009-10-02  Jim Meyering  <meyering@redhat.com>
13091
13092         gnu-web-doc-update: correct --help output
13093         * build-aux/gnu-web-doc-update: Make --help output relevant.
13094
13095         gnu-web-doc-update: add standard options
13096         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13097
13098         gnu-web-doc-update: New module.
13099         Use this script to automatically update the on-line web documentation
13100         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13101         * modules/gnu-web-doc-update: New file, from coreutils.
13102         * build-aux/gnu-web-doc-update: New script.
13103
13104 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13105
13106         link: LoadLibrary is not needed.
13107         * lib/link.c: Use GetModuleHandle.
13108
13109 2009-10-01  Eric Blake  <ebb9@byu.net>
13110
13111         getopt: bump serial number
13112         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13113         change.
13114
13115         tests: tighten link, rmdir, and remove tests
13116         * tests/test-link.h (includes): No need to use <config.h> here.
13117         Clean up if directory hard link was created, otherwise test for
13118         trailing '.'.
13119         * tests/test-linkat.c (main): Simplify.
13120         * tests/test-remove.c (main): Enhance test for trailing '.'.
13121         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13122
13123 2009-10-01  Jim Meyering  <meyering@redhat.com>
13124
13125         maint.mk: requiring "make major" was annoying, for a "minor" release.
13126         What is intended is "stable", to contrast with alpha and beta,
13127         so require "make stable", not "make major".
13128         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13129         (get_tool_versions): Likewise.
13130         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13131
13132 2009-09-30  Ben Pfaff  <blp@gnu.org>
13133
13134         Fix broken build of replacement for Windows tmpfile().
13135         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13136         flags argument added along with the 'mkostemp' module.
13137
13138 2009-09-28  Bruno Haible  <bruno@clisp.org>
13139
13140         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13141         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13142         to 'remove_elt'.
13143         (gl_list_remove): Update.
13144         * lib/gl_list.c (gl_list_remove): Update.
13145         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13146         to 'remove_elt'.
13147         (gl_oset_remove): Update.
13148         * lib/gl_list.c (gl_oset_remove): Update.
13149         Reported by Eric Blake.
13150
13151 2009-09-28  Eric Blake  <ebb9@byu.net>
13152
13153         doc: mention yet more cygwin 1.7 status
13154         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13155         cygwin.
13156         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13157         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13158
13159         argp: fix test failure
13160         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13161         that are not upper-case.  Pass correct range to tolower.
13162
13163 2009-09-27  Jim Meyering  <meyering@redhat.com>
13164
13165         test-yesno: work around sparc-dash here-document infelicity
13166         Without this change, the literal \177 byte in a here document
13167         would make dash 0.5.5.1-3 access uninitialized memory.
13168         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13169         Instead, use a marker, "@", and filter through tr to create the desired
13170         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13171
13172 2009-09-27  Bruno Haible  <bruno@clisp.org>
13173
13174         Disable untested support for new flavours of ACLs on AIX.
13175         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13176         progress.
13177         * lib/set-mode-acl.c (qset_acl): Likewise.
13178
13179 2008-12-07  Bruno Haible  <bruno@clisp.org>
13180
13181         Add support for new flavours of ACLs on AIX. (Untested.)
13182         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13183         (file_has_acl): Add support for newer AIX.
13184         * lib/set-mode-acl.c (qset_acl): Likewise.
13185         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13186         Rainer Tammer <tammer@tammer.net>.
13187
13188 2009-09-26  Eric Blake  <ebb9@byu.net>
13189
13190         argp: fix compilation of getopt
13191         * lib/getopt.in.h (includes): Use different guard than glibc.
13192         Reported by Sergey Poznyakoff.
13193
13194         doc: mention more cygwin 1.7 status
13195         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13196         bug.
13197         * doc/posix-functions/execl.texi (execl): Likewise.
13198         * doc/posix-functions/execle.texi (execle): Likewise.
13199         * doc/posix-functions/execlp.texi (execlp): Likewise.
13200         * doc/posix-functions/execv.texi (execv): Likewise.
13201         * doc/posix-functions/execve.texi (execve): Likewise.
13202         * doc/posix-functions/execvp.texi (execvp): Likewise.
13203         * doc/glibc-functions/canonicalize_file_name.texi
13204         (canonicalize_file_name): Cygwin 1.7 now provides this.
13205         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13206         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13207         on AT_SYMLINK_NOFOLLOW.
13208
13209 2009-09-24  Eric Blake  <ebb9@byu.net>
13210
13211         test-linkat: make test more robust
13212         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13213
13214         getopt: fix inclusion guards for cygwin
13215         * modules/getopt-posix (Depends-on): Add include-next.
13216         (Makefile.am): Substitute more items in replacement header.
13217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13218         <getopt.h>.
13219         * lib/getopt.in.h (includes): Use split inclusion guard, and
13220         prefer <getopt.h> over include <unistd.h> when one is present.
13221         (option): Also override name of 'struct option'.
13222
13223         same-inode: revert prior change; it is not yet ready
13224         * NEWS: Undo mention of this change.
13225         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13226         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13227         * lib/cycle-check.c (cycle_check): Likewise.
13228         * lib/same.c (same_name): Likewise.
13229         * lib/at-func2.c (at_func2): Likewise.
13230
13231 2009-09-23  Eric Blake  <ebb9@byu.net>
13232
13233         linkat: new module
13234         * modules/linkat: New file.
13235         * lib/at-func2.c (at_func2): Likewise.
13236         * lib/linkat.c (linkat): Likewise.
13237         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13238         * lib/openat-priv.h (at_func2): Add declaration.
13239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13240         * modules/unistd (Makefile.am): Substitute them.
13241         * lib/unistd.in.h (linkat): Declare it.
13242         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13243         * doc/posix-functions/linkat.texi (linkat): Likewise.
13244         * doc/posix-functions/link.texi (link): Tweak wording.
13245         * tests/test-link.c (main): Move guts...
13246         * tests/test-link.h (test_link): ...into new file.
13247         * modules/linkat-tests: New test.
13248         * tests/test-linkat.c: Likewise.
13249         * modules/link-tests (Files): Ship new file.
13250         (Depends-on): Add stdbool.
13251
13252         dirname: add library-safe mdir_name
13253         * lib/dirname.h (mdir_name): New prototype.
13254         * lib/dirname.c (dir_name): Move guts...
13255         (mdir_name): ...to new function that avoids xalloc_die.
13256
13257         fchdir: another mingw fix
13258         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13259         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13260         on mingw (where it has not yet been ported), and make it optional
13261         elsewhere.
13262         (_gl_register_fd): Use it.
13263
13264         same-inode: make SAME_INODE tri-state, to port to mingw
13265         * NEWS: Mention this change.
13266         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13267         st_ino always being 0.
13268         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13269         * lib/cycle-check.c (cycle_check): Likewise.
13270         * lib/same.c (same_name): Likewise.
13271
13272         lstat: avoid mingw compilation error
13273         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13274         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13275         lstat ourselves.
13276         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13277         was adequate.
13278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13279         the checks for lstat.
13280         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13281
13282         link: fix test failure on Solaris 9
13283         * lib/link.c (rpl_link): Don't assume link will catch bogus
13284         trailing slash on source.
13285
13286         test-symlinkat: enhance test
13287         * tests/test-readlink.c (main): Move guts...
13288         * tests/test-readlink.h (test_readlink): ...into new file.
13289         * tests/test-symlink.c (main): Move guts...
13290         * tests/test-symlink.h (test_symlink): ...into new file.
13291         * tests/test-symlinkat.c (main): Use new files for further
13292         coverage.
13293         (do_symlink, do_readlink): New helper functions.
13294         * modules/symlink-tests (Files): Ship new file.
13295         (Depends-on): Add stdbool.
13296         * modules/readlink-tests (Files): Ship new file.
13297         (Depends-on): Add stdbool.
13298         * modules/symlinkat-tests (Files): Use new files.
13299
13300 2009-09-23  Eric Blake  <ebb9@byu.net>
13301
13302         readlink: document portability issue with symlink length
13303         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13304         systems have bogus st_size on symlinks, and mention the
13305         areadlink-with-size module.
13306         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13307         * doc/posix-functions/readlink.texi (readlink): Mention the
13308         areadlink module, and ERANGE failure.
13309         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13310         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13311
13312         readlink: fix Solaris 9 bug with trailing slash
13313         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13314         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13315         * doc/posix-functions/readlink.texi (readlink): Document this.
13316         * modules/readlink-tests: New test.
13317         * tests/test-readlink.c: Likewise.
13318
13319         readlink: fix cygwin 1.5.x bug with return type
13320         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13321         * lib/unistd.in.h (readlink): Use ssize_t.
13322         * lib/readlink.c (readlink): Likewise.
13323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13324         * modules/unistd (Makefile.am): Substitute it.
13325         * lib/unistd.in.h (readlink): Declare replacement.
13326         * doc/posix-functions/readlink.texi (readlink): Document this.
13327
13328         symlink: use throughout gnulib
13329         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13330         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13331         symlink is not used.
13332         * modules/symlinkat (Depends-on): Add symlink.
13333         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13334         * modules/canonicalize-tests (Depends-on): Likewise.
13335         * modules/lstat-tests (Depends-on): Likewise.
13336         * modules/openat-tests (Depends-on): Likewise.
13337         * modules/remove-tests (Depends-on): Likewise.
13338         * modules/rmdir-tests (Depends-on): Likewise.
13339         * modules/unlink-tests (Depends-on): Likewise.
13340         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13341         * tests/test-canonicalize.c (symlink): Likewise.
13342         * tests/test-fstatat.c (symlink): Likewise.
13343         * tests/test-lstat.c (symlink): Likewise.
13344         * tests/test-remove.c (symlink): Likewise.
13345         * tests/test-rmdir.c (symlink): Likewise.
13346         * tests/test-unlink.c (symlink): Likewise.
13347         * tests/test-unlinkat.c (symlink): Likewise.
13348
13349         symlink: new module, for Solaris 9 bug
13350         * modules/symlink: New file.
13351         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13352         * lib/symlink.c: Likewise.
13353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13354         * modules/unistd (Makefile.am): Substitute them.
13355         * lib/unistd.in.h (symlink): Declare replacement.
13356         * MODULES.html.sh (File system functions): Mention it.
13357         * doc/posix-functions/symlink.texi (symlink): Likewise.
13358         * modules/symlink-tests: New test.
13359         * tests/test-symlink.c: Likewise.
13360
13361 2009-09-23  Bruno Haible  <bruno@clisp.org>
13362
13363         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13364         when needed.
13365         Test case: gnulib-tool --import --with-tests atexit inttypes.
13366         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13367
13368 2009-09-23  Bruno Haible  <bruno@clisp.org>
13369
13370         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13371         subcommand, not in a subshell.
13372
13373 2009-09-22  Eric Blake  <ebb9@byu.net>
13374
13375         unistd: sort replacement declarations
13376         * lib/unistd.in.h: Sort declarations.
13377
13378         open, openat: minor optimization
13379         * lib/open.c (open): If open succeeded, len is non-zero.
13380         * lib/openat.c (rpl_openat): Likewise.
13381
13382         link-follow: ensure correct result
13383         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13384         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13385         distinguish between possible failures.
13386
13387 2009-09-21  Eric Blake  <ebb9@byu.net>
13388
13389         fts: avoid compiler warning
13390         * lib/fts.c (dirent_inode_sort_may_be_useful)
13391         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13392
13393 2009-09-19  Bruno Haible  <bruno@clisp.org>
13394
13395         * lib/progreloc.c (canonicalize_file_name): New declaration.
13396
13397 2009-09-19  Eric Blake  <ebb9@byu.net>
13398
13399         link: fix quoting
13400         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13401
13402         openat: fix openat bugs on Solaris 9
13403         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13404         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13405         * modules/openat (Depends-on): Add open.
13406         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13407         * modules/fcntl-h (Makefile.am): Substitute it.
13408         * lib/fcntl.in.h (openat): Declare replacement.
13409         * doc/posix-functions/openat.texi (openat): Document this.
13410
13411         openat: move fstatat and unlinkat into correct files
13412         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13413         compiled.
13414         * lib/openat.c (fstatat, unlinkat): Move...
13415         * lib/fstatat.c (fstatat): ...into correct files.
13416         * lib/unlinkat.c (unlinkat): Likewise.
13417
13418         openat: fix unlinkat bugs on Solaris 9
13419         * lib/unlinkat.c (unlinkat): New file.
13420         * modules/openat (Depends-on): Add unlink.
13421         (Files): Distribute it.
13422         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13423         trailing slash behavior is broken.
13424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13425         * modules/unistd (Makefile.am): Substitute it.
13426         * lib/unistd.in.h (unlinkat): Declare replacement.
13427         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13428
13429         openat: fix fstatat bugs on Solaris 9
13430         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13431         stat.
13432         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13433
13434         test-unlinkat: enhance test, to expose Solaris 9 bug
13435         * tests/test-unlink.c (main): Factor guts...
13436         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13437         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13438         * tests/test-rmdir.c (main): Adjust caller.
13439         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13440         (unlinker): New helper function.
13441         (rmdirat): Enhance check.
13442         * modules/rmdir-tests (Depends-on): Add stdbool.
13443         * modules/unlink-tests (Depends-on): Likewise.
13444         (Files): Add test-unlink.h.
13445         * modules/openat-tests (Files): Likewise.
13446         (Depends-on): Add unlinkdir.
13447
13448         test-fstatat: new test, to expose Solaris 9 bugs
13449         * tests/test-stat.c (main): Factor guts...
13450         * tests/test-stat.h (test_stat_func): ...into new file.
13451         * tests/test-lstat.c (main): Factor guts...
13452         * tests/test-lstat.h (test_lstat_func): ...into new file.
13453         * tests/test-fstatat.c: New file.
13454         * modules/stat-tests (Files): Add test-stat.h.
13455         * modules/lstat-tests (Files): Add test-lstat.h.
13456         (Depends-on): Add stdbool.
13457         * modules/openat-tests (Depends-on): Add pathmax.
13458         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13459         (Makefile.am): Run new test.
13460
13461         remove: new module, for mingw and Solaris 9 bugs
13462         * modules/remove: New file.
13463         * lib/remove.c: Likewise.
13464         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13466         * modules/stdio (Makefile.am): Use them.
13467         * lib/stdio.in.h (remove): Declare replacement.
13468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13469         * doc/posix-functions/remove.texi (remove): Likewise.
13470         * modules/remove-tests: New test.
13471         * tests/test-remove.c: Likewise.
13472
13473         unlink: new module, for Solaris 9 bug
13474         * modules/unlink: New file.
13475         * lib/unlink.c: Likewise.
13476         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13478         * modules/unistd (Makefile.am): Use them.
13479         * lib/unistd.in.h (stat): Declare replacement.
13480         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13481         * doc/posix-functions/unlink.texi (unlink): Likewise.
13482         * modules/unlink-tests: New test.
13483         * tests/test-unlink.c: Likewise.
13484
13485         lstat: fix Solaris 9 bug
13486         * lib/lstat.c (lstat): Also check for trailing slash on
13487         non-symlink, non-directories.  Use stat module to simplify logic.
13488         * doc/posix-functions/lstat.texi (lstat): Document it.
13489         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13490         (configure.ac): Check for symlink.
13491         * tests/test-lstat.c (main): Add more tests.
13492
13493         stat: add as dependency to other modules
13494         * modules/chown (Depends-on): Add stat.
13495         * modules/euidaccess (Depends-on): Likewise.
13496         * modules/fchdir (Depends-on): Likewise.
13497         * modules/isdir (Depends-on): Likewise.
13498         * modules/link (Depends-on): Likewise.
13499         * modules/lstat (Depends-on): Likewise.
13500         * modules/mkdir-p (Depends-on): Likewise.
13501         * modules/modechange (Depends-on): Likewise.
13502         * modules/open (Depends-on): Likewise.
13503         * modules/readlink (Depends-on): Likewise.
13504         * modules/same (Depends-on): Likewise.
13505
13506         stat: fix Solaris 9 bug
13507         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13508         slash.
13509         * lib/stat.c (rpl_stat): Work around it.
13510         * doc/posix-functions/stat.texi (stat): Update documentation.
13511
13512         stat: new module, for mingw bug
13513         * modules/stat: New file.
13514         * lib/stat.c: Likewise.
13515         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13517         * modules/sys_stat (Makefile.am): Use them.
13518         * lib/sys_stat.in.h (stat): Declare replacement.
13519         * lib/openat.c (fstatat): Deal with lstat and stat being function
13520         macros.
13521         * modules/openat (Depends-on): Add inline.
13522         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13523         * doc/posix-functions/stat.texi (stat): Likewise.
13524         * modules/stat-tests: New test.
13525         * tests/test-stat.c: Likewise.
13526
13527 2009-09-19  Jim Meyering  <meyering@redhat.com>
13528
13529         syntax-check: detect unnecessary inclusion of canonicalize.h
13530         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13531
13532 2009-09-19  Eric Blake  <ebb9@byu.net>
13533
13534         canonicalize-lgpl: adjust clients to use correct header
13535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13536         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13537         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13538         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13539         * lib/progreloc.c (includes): Likewise.
13540
13541 2009-09-19  Jim Meyering  <meyering@redhat.com>
13542
13543         test-posixtm.c: correct a comment
13544         * tests/test-posixtm.c: Correct first-line comment.
13545         Spotted by Eric Blake.
13546
13547 2009-09-16  Jim Meyering  <meyering@redhat.com>
13548
13549         posixtm-tests: make T const-correct; add a test case
13550         * tests/test-posixtm.c (T): Declare const.
13551         Add a test for -(2^31+1).
13552         Remove useless can-succeed-only-in-2002 test.
13553
13554         posixtm-tests: adjust the sole failing test
13555         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13556         expected output matches what mktime now produces.  Cross-checked via
13557         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13558
13559         posixtm: move #ifdef'd tests into a new module
13560         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13561         * tests/test-posixtm.c: ... this new file.
13562         * modules/posixtm-tests: New module.
13563
13564 2009-09-19  Eric Blake  <ebb9@byu.net>
13565
13566         openat: simplify use of at-func.c
13567         * lib/at-func.c (includes): Include prerequisites here, to
13568         simplify requirements on client files.
13569         * lib/openat-priv.h: Add double-inclusion guard.
13570         * lib/faccessat.c (includes): Simplify.
13571         * lib/fchmodat.c (includes): Likewise.
13572         * lib/fchownat.c (includes): Likewise.
13573         * lib/mkdirat.c (includes): Likewise.
13574         * lib/mkfifoat.c (includes): Likewise.
13575         * lib/symlinkat.c (includes): Likewise.
13576
13577         openat: allow return of fd 0
13578         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13579         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13580         unistd-safer.
13581         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13582         <fcntl.h>; this module does not leak fds.
13583         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13584         must be allowed to return 0, leaving openat_safer to add the
13585         safety.
13586         (openat_permissive): Avoid writing to just-opened fd 2 if
13587         restoring the current directory fails.
13588         * lib/openat-die.c (openat_restore_fail): Add comment.
13589         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13590         (save_cwd): Guarantee safe fd, but without use of open_safer.
13591         * tests/test-openat.c: New test.
13592         * modules/openat-tests (Files, Makefile.am): Distribute and build
13593         new file.
13594
13595         relocatable-prog-wrapper: fix build
13596         * modules/relocatable-prog-wrapper (Files): Update name of
13597         canonicalize m4 file, broken on 2009-09-17.
13598         Reported by emad hajjar <aleppos@hotmail.com>.
13599
13600 2009-09-19  Bruno Haible  <bruno@clisp.org>
13601
13602         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13603         * lib/safe-alloc.c: Likewise.
13604         Reported by Ian Beckwith <ianb@erislabs.net>.
13605
13606 2009-09-18  Bruno Haible  <bruno@clisp.org>
13607
13608         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13609         Reported by <erobles@sensacd.com.mx>.
13610
13611 2009-09-17  Eric Blake  <ebb9@byu.net>
13612
13613         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13614         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13615         slashes when checking if last component is missing.
13616         * tests/test-canonicalize.c (main): Test this.
13617
13618         canonicalize, canonicalize-lgpl: honor // if distinct from /
13619         * modules/canonicalize (Files): Add double-slash-root.m4.
13620         * modules/canonicalize-lgpl (Files): Likewise.
13621         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13622         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13623         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13624         fallback definition.
13625         (canonicalize_filename_mode): Use it to protect //.
13626         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13627         (__realpath): Likewise.
13628         * tests/test-canonicalize.c (main): Test this.
13629         * tests/test-canonicalize-lgpl.c (main): Likewise.
13630         * modules/canonicalize-tests (Depends-on): Add same-inode.
13631         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13632
13633         canonicalize-lgpl: fix glibc bug with trailing slash
13634         * m4/canonicalize-lgpl.m4: Move contents...
13635         * m4/canonicalize.m4: ...here.
13636         (gl_CANONICALIZE_LGPL): Factor realpath check...
13637         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13638         glibc 2.3.5 bug, fixed 2005-04-27.
13639         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13640         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13641         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13642         * modules/canonicalize-lgpl (Files): Manage file rename.
13643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13644         * modules/stdlib (Makefile.am): Substitute witness.
13645         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13646         is needed.
13647         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13648         replacement is required.
13649         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13650         * doc/glibc-functions/canonicalize_file_name.texi
13651         (canonicalize_file_name): Document this.
13652         * doc/posix-functions/realpath.texi (realpath): Likewise.
13653
13654         canonicalize-lgpl: reject non-directory with trailing slash
13655         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13656         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13657         catches failures in glibc 2.3.5.
13658         * tests/test-canonicalize.c (main): Likewise.
13659
13660         canonicalize-lgpl: use native realpath if it works
13661         * lib/canonicalize-lgpl.c (realpath): Guard with
13662         FUNC_REALPATH_WORKS.
13663         * lib/stdlib.in.h (realpath): Make declaration optional based on
13664         HAVE_REALPATH.
13665         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13666         native realpath works.
13667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13668         * modules/stdlib (Makefile.am): Substitute witness.
13669
13670         canonicalize, canonicalize-lgpl: use <stdlib.h>
13671         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13672         (Include): Mention <stdlib.h>.
13673         (configure.ac): Mention functions we provide.
13674         * modules/canonicalize (configure.ac): Likewise.
13675         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13676         realpath if canonicalize_file_name is missing.
13677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13678         * modules/stdlib (Makefile.am): Substitute witnesses.
13679         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13680         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13681         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13682         * NEWS: Document this.
13683         * doc/glibc-functions/canonicalize_file_name.texi
13684         (canonicalize_file_name): Likewise.
13685         * doc/posix-functions/realpath.texi (realpath): Likewise.
13686         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13687
13688         test-canonicalize: consolidate into single C program
13689         * tests/test-canonicalize.sh: Delete; move setup into...
13690         * tests/test-canonicalize.c (main): ...the program, making it
13691         easier to run in debugger.  Add some tests.
13692         * modules/canonicalize-tests (Files): Remove unused file.
13693         (Depends-on): Add progname.
13694         (configure.ac, Makefile.am): Simplify.
13695
13696         test-canonicalize-lgpl: consolidate into single C program
13697         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13698         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13699         easier to run in debugger.  Add some tests.
13700         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13701         (configure.ac, Makefile.am): Simplify.
13702
13703         canonicalize: avoid resolvepath
13704         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13705         unnecessary checks.
13706         * lib/canonicalize.c (includes): Simplify.
13707         (canonicalize_file_name): Drop resolvepath implementation.
13708         * modules/canonicalize (Depends-on): Drop filenamecat.
13709
13710         canonicalize: don't lose errno
13711         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13712         over calls to free.
13713
13714         canonicalize: simplify errno handling
13715         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13716         assignment.
13717
13718         canonicalize, canonicalize-lgpl: update module dependencies
13719         * modules/canonicalize (Depends-on): Add extensions, lstat,
13720         pathmax, stdlib.
13721         (Files): Drop pathmax.h.
13722         (configure.ac): Adjust macro name.
13723         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13724         lstat, stdlib, sys_stat.
13725         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13726         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13727         extensions.
13728         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13729         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13730         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13731         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13732         declaration, if available.
13733         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13734         we can rely on the readlink module.
13735         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13736         (includes): Use <unistd.h> unconditionally.
13737
13738 2009-09-17  Eric Blake  <ebb9@byu.net>
13739
13740         maint: make Include sections of modules consistent
13741         * modules/alloca: Use only header name; no need to list #include.
13742         * modules/alloca-opt: Likewise.
13743         * modules/arpa_inet: Likewise.
13744         * modules/canon-host: Likewise.
13745         * modules/configmake: Likewise.
13746         * modules/dirent: Likewise.
13747         * modules/eealloc: Likewise.
13748         * modules/environ: Likewise.
13749         * modules/fchdir: Likewise.
13750         * modules/fcntl: Likewise.
13751         * modules/fcntl-h: Likewise.
13752         * modules/gethrxtime: Likewise.
13753         * modules/gettime: Likewise.
13754         * modules/ignore-value: Likewise.
13755         * modules/inet_ntop: Likewise.
13756         * modules/inet_pton: Likewise.
13757         * modules/inttypes: Likewise.
13758         * modules/isnand-nolibm: Likewise.
13759         * modules/isnanf-nolibm: Likewise.
13760         * modules/mbchar: Likewise.
13761         * modules/mbfile: Likewise.
13762         * modules/mbiter: Likewise.
13763         * modules/mbuiter: Likewise.
13764         * modules/netdb: Likewise.
13765         * modules/netinet_in: Likewise.
13766         * modules/nproc: Likewise.
13767         * modules/pagealign_alloc: Likewise.
13768         * modules/poll: Likewise.
13769         * modules/printf-frexp: Likewise.
13770         * modules/pthread: Likewise.
13771         * modules/putenv: Likewise.
13772         * modules/random_r: Likewise.
13773         * modules/relocatable-prog: Likewise.
13774         * modules/search: Likewise.
13775         * modules/select: Likewise.
13776         * modules/selinux-h: Likewise.
13777         * modules/settime: Likewise.
13778         * modules/signal: Likewise.
13779         * modules/size_max: Likewise.
13780         * modules/socklen: Likewise.
13781         * modules/ssize_t: Likewise.
13782         * modules/stdarg: Likewise.
13783         * modules/stdbool: Likewise.
13784         * modules/stddef: Likewise.
13785         * modules/stdint: Likewise.
13786         * modules/stdio: Likewise.
13787         * modules/stdlib: Likewise.
13788         * modules/string: Likewise.
13789         * modules/strings: Likewise.
13790         * modules/sys_file: Likewise.
13791         * modules/sys_ioctl: Likewise.
13792         * modules/sys_select: Likewise.
13793         * modules/sys_socket: Likewise.
13794         * modules/sys_stat: Likewise.
13795         * modules/sys_time: Likewise.
13796         * modules/sys_times: Likewise.
13797         * modules/sys_utsname: Likewise.
13798         * modules/sys_wait: Likewise.
13799         * modules/sysexits: Likewise.
13800         * modules/time: Likewise.
13801         * modules/times: Likewise.
13802         * modules/tmpfile: Likewise.
13803         * modules/trim: Likewise.
13804         * modules/unistd: Likewise.
13805         * modules/wchar: Likewise.
13806         * modules/wctype: Likewise.
13807
13808 2009-09-17  Bruno Haible  <bruno@clisp.org>
13809
13810         Make getdate.y compile on QNX and NetBSD 5 / i386.
13811         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13812         TIME_T_FITS_IN_LONG_INT.
13813         * lib/getdate.y (long_time_t): New type.
13814         (relative_time): Change type of 'seconds' field to long_time_t.
13815         (get_date): Update types of local variables. Check against overflow
13816         during conversion from long_time_t to time_t.
13817         Reported by Matt Kraai <kraai@ftbfs.org>
13818         and Hasso Tepper <hasso@netbsd.org>.
13819
13820 2009-09-17  Bruno Haible  <bruno@clisp.org>
13821
13822         * modules/COPYING: Update copyright years.
13823         * modules/README: Likeiwse.
13824         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13825         Reported by Ian Beckwith <ianb@erislabs.net>.
13826
13827 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13828
13829         * users.txt: Update references for gnuit package.
13830
13831 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13832
13833         * m4/getdelim.m4: Fix typo in copyright line.
13834
13835 2009-09-17  Bruno Haible  <bruno@clisp.org>
13836
13837         * lib/atoll.c: Use the standard header with GPL copyright.
13838         * lib/argz.in.h: Likewise.
13839         * lib/glob.c: Likewise.
13840         * lib/glob-libc.h: Likewise.
13841         * lib/random_r.c: Likewise.
13842         * lib/siglist.h: Likewise.
13843         * lib/strsignal.c: Likewise.
13844         Reported by Ian Beckwith <ianb@erislabs.net>.
13845
13846 2009-09-17  Eric Blake  <ebb9@byu.net>
13847
13848         rmdir: ensure correct dependency order
13849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13850
13851 2009-09-17  Bruno Haible  <bruno@clisp.org>
13852
13853         Disable assertion that fails on NetBSD 5 / i386.
13854         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13855         Reported by Sam Steingold <sds@gnu.org>
13856         and Hasso Tepper <hasso@netbsd.org>.
13857
13858 2009-09-16  Eric Blake  <ebb9@byu.net>
13859
13860         unlinkdir: port to mingw
13861         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13862         on which no one can unlink a directory.
13863
13864         stdlib: sort witness names
13865         * modules/stdlib (Makefile.am): Sort replacements.
13866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13867         * lib/stdlib.in.h: Likewise.
13868
13869         parse-duration-tests: avoid link failure
13870         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13871         LIBINTL.
13872         Reported by Tom G. Christensen.
13873
13874         openat-tests: ensure unlinkat behaves like rmdir
13875         * tests/test-rmdir.c (main): Factor guts...
13876         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
13877         * modules/rmdir-tests (Files): Ship new file.
13878         * modules/openat-tests: New test.
13879         * tests/test-unlinkat.c: Likewise.
13880
13881         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
13882         * modules/rmdir-errno (Status, Notice): Now obsolete.
13883
13884         rmdir: work around cygwin 1.5.x and mingw bugs
13885         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
13886         * lib/rmdir.c (rmdir): Work around it.
13887         * modules/rmdir (Status, Notice): No longer obsolete.
13888         (Files): Add dos.m4.
13889         (Depends-on): Add unistd.
13890         (configure.ac): Set witnesses.
13891         (License): Relax to LGPLv2+.
13892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
13893         * modules/unistd (Makefile.am): Substitute witnesses.
13894         * lib/unistd.in.h (rmdir): Declare replacement.
13895         * doc/posix-functions/rmdir.texi (rmdir): Document this.
13896         * modules/rmdir-tests: New tests.
13897         * tests/test-rmdir.c: Likewise.
13898
13899 2009-09-15  Eric Blake  <ebb9@byu.net>
13900
13901         fchdir: improve use of replacement functions
13902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
13903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
13904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
13905         REPLACE_CLOSEDIR.
13906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
13907         * modules/sys_stat (Makefile.am): Substitute correct witness.
13908         * modules/dirent (Makefile.am): Likewise.
13909         * modules/unistd (Makefile.am): Likewise.
13910         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
13911         * lib/unistd.in.h (dup): Likewise.
13912         * lib/sys_stat.in.h (fstat): Likewise.
13913
13914         maint: ignore gnulib-tool temp files
13915         * .gitignore: Ignore files created during gnulib-tool --test.
13916
13917 2009-09-13  Jim Meyering  <meyering@redhat.com>
13918
13919         posixtm: don't reject a time that specify "60" as the number of seconds
13920         * lib/posixtm.c (posixtime): The code to reject invalid dates
13921         would also reject a time specified with the .60 suffix.
13922         But POSIX allows that, in order to accommodate leap seconds.
13923         So don't reject it.
13924         (main): Adjust tests accordingly.
13925         * modules/posixtm (Depends-on): Add stpcpy.
13926
13927 2009-09-11  Jim Meyering  <meyering@redhat.com>
13928
13929         announce-gen: include [$release_type] in emitted Subject:
13930         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
13931         e.g., [stable] in the emitted Subject: line.
13932
13933 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13934
13935         Remove obsolete macros from several modules.
13936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
13937         obsolete Autoconf macros with their modern counterparts.
13938         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
13939         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
13940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
13941         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13942         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
13943         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13945         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13946         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13947         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
13948         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13950         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13951         * m4/sockets.m4 (gl_SOCKETS): Likewise.
13952         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
13953         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
13954         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13955         * m4/time_r.m4 (gl_TIME_R): Likewise.
13956         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13957         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
13958         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13959
13960         Fix copyright header in build-aux scripts.
13961         * build-aux/git-version-gen: Fix copyright header to match GPLv3
13962         recommendation.
13963         * build-aux/ncftpput-ftp: Likewise.
13964         * build-aux/update-copyright: Likewise.
13965
13966 2009-09-09  Eric Blake  <ebb9@byu.net>
13967
13968         test-link: allow Linux choice of errno
13969         * tests/test-link.c (main): Relax test for alternate error.
13970
13971         strndup: fix improper m4 caching
13972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
13973         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
13974         (gl_PREREQ_STRNDUP): Delete.
13975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
13976         * modules/string (Makefile.am): Substitute it.
13977         * lib/string.in.h (strndup): Modernize prototype.
13978
13979         getcwd: port to mingw
13980         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
13981         different from the POSIX assumptions made throughout the getcwd
13982         module; fortunately, the mingw getcwd does not need replacement.
13983         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
13984         * modules/getcwd-tests: New test.
13985         * tests/test-getcwd.c: Likewise.
13986
13987         link: fix platform bugs
13988         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
13989         * lib/link.c (link): Work around them.  Fix related mingw bug.
13990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
13991         * modules/unistd (Makefile.am): Substitute it.
13992         * lib/unistd.in.h (link): Declare replacement.
13993         * doc/posix-functions/link.texi (link): Document this.
13994         * modules/link (Depends-on): Add strdup-posix, sys_stat.
13995
13996         test-link: consolidate into single C program, test more cases
13997         * tests/test-link.sh: Delete.
13998         * tests/test-link.c: Test more error conditions.  Exposes bugs on
13999         at least Cygwin and Solaris.
14000         * modules/link-tests (Files): Remove unused file.
14001         (Depends-on): Add errno, sys_stat.
14002         (Makefile.am): Simplify.
14003
14004 2009-09-08  Bruno Haible  <bruno@clisp.org>
14005
14006         Work around towlower, towupper bug on mingw.
14007         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14008         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14009         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14010         * doc/posix-functions/towupper.texi: Likewise.
14011         Reported by Eric Blake.
14012
14013 2009-09-08  Jim Meyering  <meyering@redhat.com>
14014
14015         build: don't try to run autoheader if we don't use it
14016         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14017         is not used in configure.ac.
14018
14019 2009-09-08  Eric Blake  <ebb9@byu.net>
14020
14021         euidaccess: fix compilation error
14022         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14023
14024         rawmemchr: relax license
14025         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14026         okay.
14027         Reported by Jim Meyering.
14028
14029         mkfifoat: new module
14030         * modules/mkfifoat: New file.
14031         * lib/mkfifoat.c: Likewise.
14032         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14034         * modules/sys_stat (Makefile.am): Use them.
14035         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14036         * MODULES.html.sh (File system functions): Mention module.
14037         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14038         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14039         * modules/mkfifoat-tests: New test.
14040         * tests/test-mkfifoat.c: Likewise.
14041
14042         strchrnul: relax license
14043         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14044         okay.
14045         Reported by Jim Meyering.
14046
14047 2009-09-08  Eric Blake  <ebb9@byu.net>
14048
14049         fstatat: fix compilation on Solaris
14050         * lib/fstatat.c (includes): Add fcntl.h.
14051         Reported by Pádraig Brady.
14052
14053 2009-09-07  Eric Blake  <ebb9@byu.net>
14054
14055         rename: modernize replacement
14056         * modules/rename (Depends-on): Add stdio.
14057         (configure.ac): Declare witness.
14058         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14059         stdio take care of replacement.
14060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14061         * modules/stdio (Makefile.am): Substitute them.
14062         * lib/stdio.in.h (rename): Declare replacement.
14063         * lib/rename.c (includes): Allow cross-compilation to non-windows
14064         machines.
14065         * doc/posix-functions/rename.texi (rename): Improve
14066         documentation.
14067
14068         stdio: sort witness names
14069         * modules/stdio (Makefile.am): Sort replacements.
14070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14071         * lib/stdio.in.h: Likewise.
14072
14073         getcwd: minor cleanups
14074         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14075         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14076
14077         openat: provide more convenience names
14078         * modules/faccessat (configure.ac): Add C witness.
14079         * lib/unistd.in.h (readlinkat): Fix typo.
14080         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14081         convenience wrappers.
14082         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14083         wrappers in syntax checks.
14084
14085 2009-09-06  Eric Blake  <ebb9@byu.net>
14086
14087         doc: fix comments in recent patches
14088         * lib/faccessat.c: Mention correct function.
14089         * lib/fchmodat.c: Likewise.
14090         * lib/fchownat.c: Likewise.
14091         * lib/symlinkat.c: Likewise.
14092         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14093         constants.
14094
14095         faccessat, symlinkat: continue cleanup of previous patch
14096         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14097         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14098         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14100         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14101         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14102         set.
14103
14104 2009-09-06  Bruno Haible  <bruno@clisp.org>
14105
14106         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14107         (fstatat): Declare if GNULIB_FSTATAT is set.
14108         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14109         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14110         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14111         * modules/fcntl-h (Files): Remove m4/openat.m4.
14112         * modules/sys_stat (Files): Remove m4/openat.m4.
14113         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14114         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14115         * modules/unistd (Files): Remove m4/openat.m4.
14116         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14117         GNULIB_OPENAT.
14118         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14119         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14121         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14122         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14123         gl_OPENAT_DEFAULTS.
14124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14125         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14126         Don't require gl_OPENAT_DEFAULTS.
14127         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14128         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14129         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14130         (gl_OPENAT_DEFAULTS): Remove macro.
14131
14132 2009-09-06  Bruno Haible  <bruno@clisp.org>
14133
14134         * modules/openat (configure.ac): Remove unneeded witness.
14135
14136 2009-09-06  Bruno Haible  <bruno@clisp.org>
14137
14138         Set errno to ENOSYS when a function is entirely unsupported.
14139         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14140         EOPNOTSUPP.
14141         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14142         * modules/chown (Depends-on): Remove errno.
14143
14144 2009-09-06  Bruno Haible  <bruno@clisp.org>
14145
14146         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14147
14148 2009-09-06  Bruno Haible  <bruno@clisp.org>
14149
14150         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14151
14152 2009-09-06  Ben Pfaff  <blp@gnu.org>
14153             Bruno Haible  <bruno@clisp.org>
14154
14155         Work around a glibc bug in strtok_r.
14156         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14157         Undefine if UNDEFINE_STRTOK_R is set.
14158         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14160         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14162         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14163         UNDEFINE_STRTOK_R.
14164         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14165
14166 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14167
14168         exclude: minor fix
14169         * lib/exclude.c: Include wctype.h
14170
14171 2009-09-06  Akim Demaille  <demaille@gostai.com>
14172
14173         bootstrap: improve error message
14174         * build-aux/bootstrap (find_tool): Upon failure, report the list
14175         of candidates.
14176         Honor the initial value of the envvar.
14177
14178 2009-09-05  Eric Blake  <ebb9@byu.net>
14179
14180         symlinkat: new module
14181         * modules/symlinkat: New file.
14182         * lib/symlinkat.c: Likewise.
14183         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14185         * modules/unistd (Makefile.am): Use them.
14186         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14187         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14188         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14189         * MODULES.html.sh (File system functions): Mention module.
14190         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14191         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14192         * modules/symlinkat-tests: New test.
14193         * tests/test-symlinkat.c: Likewise.
14194
14195         test-openat-safer: add more checks
14196         * tests/test-openat-safer.c (main): Check more code paths.
14197
14198 2009-09-05  Jim Meyering  <meyering@redhat.com>
14199
14200         syntax-check: detect unnecessary inclusion of openat.h
14201         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14202
14203 2009-09-05  Bruno Haible  <bruno@clisp.org>
14204
14205         Support towlower, towupper.
14206         * doc/posix-functions/towlower.texi: Mention module wctype.
14207         * doc/posix-functions/towupper.texi: Likewise.
14208         * lib/wctype.in.h (towlower, towupper): New functions.
14209         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14210         (ASSERT): New macro.
14211         (e): New variable.
14212         (main): Test also towlower, towupper. Test WEOF argument.
14213         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14214
14215 2009-09-05  Bruno Haible  <bruno@clisp.org>
14216
14217         Fix conversion behaviour when the input is invalid.
14218         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14219         mark occurring in first pass of indirect conversion.
14220         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14221         input.
14222         Found by clang's static analyzer.
14223
14224 2009-09-05  Bruno Haible  <bruno@clisp.org>
14225
14226         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14227         where direct conversion is possible.
14228
14229 2009-09-04  Eric Blake  <ebb9@byu.net>
14230
14231         openat: fail with ENOENT on empty name
14232         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14233         buffer.
14234
14235         link-follow: fix logic bug in prior patch
14236         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14237         reversed sense of yes and no in prior patch.  Avoid confusing
14238         compilation failure with desired semantics.
14239
14240         link-follow: accomodate mingw and cross-compilation
14241         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14242         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14243         cross-compilation results to -1, to make linkat easier to
14244         implement when cross-compiling.  Trivially support mingw.
14245         * modules/link-follow (configure.ac): Call new name.
14246         * NEWS: Mention this.
14247
14248 2009-09-03  Eric Blake  <ebb9@byu.net>
14249
14250         faccessat: compile replacement
14251         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14252         needed.
14253
14254         fts: fix compilation error
14255         * lib/fts.c (includes): Re-add "openat.h", for
14256         openat_needs_fchdir.
14257
14258         faccessat: new module
14259         * modules/faccessat: New file.
14260         * lib/faccessat.c: Likewise.
14261         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14263         * modules/unistd (Makefile.am): Use it.
14264         * lib/unistd.in.h (faccessat): Declare it.
14265         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14266         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14267         * MODULES.html.sh (File system functions): Mention it.
14268         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14269         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14270
14271         euidaccess: prefer POSIX over non-standard implementation
14272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14273         * lib/euidaccess.c (euidaccess): Use it if available.
14274
14275         openat: make template easier to use
14276         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14277         AT_FUNC_F2 to be undefined.
14278         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14279         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14280         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14281         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14282         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14283         Likewise.
14284         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14285         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14286         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14287         Likewise.
14288
14289         openat: declare in POSIX headers
14290         * NEWS: Mention this.
14291         * modules/openat (configure.ac): Declare witnesses.
14292         (Depends-on): Add fcntl-h, sys_stat, unistd.
14293         (Include): Mention correct headers.
14294         * modules/fcntl-h (Depends-on): Add link-warning.
14295         (Files): Add openat.m4.
14296         (Makefile.am): Substitute witnesses.
14297         * modules/sys_stat (Files, Makefile.am): Likewise.
14298         * modules/unistd (Files, Makefile.am): Likewise.
14299         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14300         (gl_OPENAT_DEFAULTS): New macro.
14301         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14304         (SYS_STAT_H): Remove unused variable.
14305         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14306         * lib/fcntl--.h (includes): Remove unneeded header.
14307         * lib/openat-safer.c (includes): Likewise.
14308         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14309         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14310         appropriate headers.
14311         (__OPENAT_PREFIX): Delete.
14312         * lib/fcntl.in.h (openat): Provide declaration.
14313         (AT_FDCWD): Fix Solaris bug.
14314         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14315         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14316         * lib/fchmodat.c (includes):  Adjust to find declaration.
14317         * lib/fchownat.c (includes): Likewise.
14318         * lib/mkdirat.c (includes): Likewise.
14319         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14320         still visible.
14321
14322 2009-09-02  Eric Blake  <ebb9@byu.net>
14323
14324         errno: use consistently
14325         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14326         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14327         * lib/canonicalize.c (ELOOP): Likewise.
14328         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14329         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14330         * lib/lchown.c (EOPNOTSUPP): Likewise.
14331         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14332         * lib/savewd.c (ESTALE): Likewise.
14333         * lib/settime.c (ENOSYS): Likewise.
14334         * lib/utimens.c (ENOSYS): Likewise.
14335         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14336         * lib/chdir-safer.c (ELOOP): Likewise.
14337         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14338         * modules/c-stack (Depends-on): Add errno.
14339         * modules/canonicalize (Depends-on): Likewise.
14340         * modules/chdir-safer (Depends-on): Likewise.
14341         * modules/fdopendir (Depends-on): Likewise.
14342         * modules/inet_ntop (Depends-on): Likewise.
14343         * modules/inet_pton (Depends-on): Likewise.
14344         * modules/lchown (Depends-on): Likewise.
14345         * modules/openat (Depends-on): Likewise.
14346         * modules/savewd (Depends-on): Likewise.
14347         * modules/settime (Depends-on): Likewise.
14348         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14349
14350         fts: avoid leaking fds
14351         * modules/fts (Depends-on): Add cloexec.
14352         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14353         flag.
14354
14355         fts: make directory fds more robust
14356         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14357         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14358
14359         backupfile, chdir-long, fts, savedir: make safer
14360         * lib/backupfile.c (includes): Use "dirent--.h", since
14361         numbered_backup can write to stderr during readdir.
14362         * lib/savedir.c (includes): Likewise.
14363         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14364         emulation can write to stderr on failure.
14365         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14366         * lib/getcwd.c: Document why opendir_safer is unused.
14367         * lib/glob.c: Likewise.
14368         * lib/scandir.c: Likewise.
14369         * lib/openat-proc.c: Likewise, for open_safer.
14370         * modules/backupfile (Depends-on): Add dirent-safer.
14371         * modules/savedir (Depends-on): Likewise.
14372         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14373         * modules/chdir-long (Depends-on): Add openat-safer.
14374
14375         openat-safer: new module
14376         * modules/openat-safer: New file.
14377         * lib/openat-safer.c: Likewise.
14378         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14379         * lib/fcntl-safer.h (openat_safer): Declare.
14380         * lib/fcntl--.h (openat): Override.
14381         * MODULES.html.sh (File descriptor based I/O): Mention it.
14382         * lib/openat.h: Add double-inclusion guards.
14383         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14384         "fcntl--.h", so we can implement openat.
14385         * modules/openat-safer-tests: New test.
14386         * tests/test-openat-safer.c: New file.
14387
14388         dirent-safer: new module
14389         * modules/dirent-safer: New file.
14390         * lib/dirent--.h: Likewise.
14391         * lib/dirent-safer.h: Likewise.
14392         * lib/opendir-safer.c: Likewise.
14393         * m4/dirent-safer.m4: Likewise.
14394         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14395         * modules/dirent-safer-tests: New test.
14396         * tests/test-dirent-safer.c: New file.
14397         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14398
14399         fdopendir: optimize on mingw
14400         * lib/unistd.in.h (_gl_directory_name): New prototype.
14401         * lib/fchdir.c (_gl_directory_name): Implement it.
14402         (fchdir): Use it to simplify implementation.
14403         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14404         fchdir, when available, to avoid calling [f]chdir().
14405
14406         fdopendir: split into its own module
14407         * lib/openat.c (fdopendir): Move...
14408         * lib/fdopendir.c: ...into new file.
14409         * modules/fdopendir: New module.
14410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14411         * modules/openat (Depends-on): Add fdopendir.
14412         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14413         fdopendir here.
14414         * modules/savedir (Depends-on): Only need fdopendir, not full
14415         openat.
14416         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14417         * lib/openat.h (fdopendir): Drop prototype.
14418         * lib/dirent.in.h (fdopendir): Provide prototype.
14419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14420         * modules/dirent (Makefile.am): Substitute them.
14421         * MODULES.html.sh (File system functions): Mention it.
14422         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14423         * modules/fdopendir-tests: New file.
14424         * tests/test-fdopendir.c: Likewise.
14425
14426         fchdir: use more consistent macro convention
14427         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14428         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14429         REPLACE_FCHDIR, rather than relying on config.h macros.
14430         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14431         inside a single make-time REPLACE_FCHDIR block, rather than using
14432         the config.h FCHDIR_REPLACEMENT.
14433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14434         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14435         Manage fstat replacement.
14436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14437         REPLACE_FCHDIR.
14438         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14439         (Makefile.am): Substitute REPLACE_FCHDIR.
14440         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14441         FCHDIR_REPLACEMENT.
14442         * lib/dup-safer.c (dup_safer): Likewise.
14443         * lib/dup2.c (rpl_dup2): Likewise.
14444         * lib/dup3.c (rpl_dup3): Likewise.
14445         * lib/open.c (rpl_open): Likewise.
14446
14447         fchdir: simplify error handling, and support dup3
14448         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14449         stdbool, malloc-posix, realloc-posix.
14450         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14451         (ensure_dirs_slot): Return false on allocation failure.
14452         (rpl_dup2): Delete.
14453         (_gl_register_dup): New function.
14454         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14455         (_gl_register_fd): Close fd on allocation failure.
14456         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14457         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14458         prototype.
14459         (rpl_dup2_fchdir): Delete prototype.
14460         * lib/open.c (open): Update caller.
14461         * lib/dup2.c (dup2): Track fchdir metadata.
14462         * lib/dup3.c (dup3): Likewise.
14463         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14465
14466 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14467
14468         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14469         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14470         don't pass arguments to AC_OUTPUT.
14471
14472 2009-09-02  Bruno Haible  <bruno@clisp.org>
14473
14474         * modules/mkdtemp (License): Relicense under LGPLv2+.
14475         Reported by Paolo Bonzini.
14476
14477 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14478
14479         Replace uses of obsolete autoconf macros in Jim's modules.
14480         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14481         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14482         can evoke a warning from autoconf when run with -Wobsolete
14483         enabled.  They were declared obsolete for good reasons (see
14484         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14485         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14486         should not continue using the deprecated macros.
14487         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14488         obsolete Autoconf macros with modern counterparts.
14489         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14490         * m4/dos.m4 (gl_AC_DOS): Likewise.
14491         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14493         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14494         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14495         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14496         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14497         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14498         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14499         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14500         Likewise.
14501         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14502         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14503         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14504         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14505         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14506         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14507
14508 2009-09-01  Eric Blake  <ebb9@byu.net>
14509
14510         fchdir: fix off-by-one bug in previous patch
14511         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14512         (_gl_unregister_fd): Delete useless if.
14513
14514 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14515
14516         maint.mk: sort the list of syntax-check rules
14517         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14518         easier to get a sense of progress when the rules are run sequentially
14519         and take a long time.
14520
14521 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14522
14523         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14524         * modules/netinet_in: Likewise.
14525         * modules/sys_file: Likewise.
14526         * modules/sys_ioctl: Likewise.
14527         * modules/sys_select: Likewise.
14528         * modules/sys_socket: Likewise.
14529         * modules/sys_stat: Likewise.
14530         * modules/sys_time: Likewise.
14531         * modules/sys_times: Likewise.
14532         * modules/sys_utsname: Likewise.
14533         * modules/sys_wait: Likewise.
14534
14535 2009-09-01  Jim Meyering  <meyering@redhat.com>
14536
14537         fts: help ensure that return values are not ignored
14538         * lib/fts_.h (__GNUC_PREREQ): Define.
14539         (__attribute_warn_unused_result__): Define.
14540         (fts_children, fts_close, fts_open, fts_read): Declare with
14541         __attribute_warn_unused_result__.
14542
14543         fts: fts_close now fails also when closing a dir file descriptor fails
14544         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14545         and propagate to caller, along with errno.
14546
14547         announce-gen: correct formatting in --help output
14548         * build-aux/announce-gen (usage): Move the one-line description in
14549         --help output "up", to where it belongs, just after Usage:.
14550
14551 2009-08-31  Eric Blake  <ebb9@byu.net>
14552
14553         fchdir: port to mingw
14554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14555         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14556         opened, then use a substitute.
14557         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14558         replacement.
14559         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14560         (_gl_register_fd): No need to check stat if open already filters
14561         all directories.
14562         (fchdir): Fix error condition to match POSIX.
14563         * modules/fchdir (Depends-on): Add sys_stat.
14564         * doc/posix-functions/open.texi (open): Document the limitation.
14565         * modules/fchdir-tests: New file.
14566         * tests/test-fchdir.c: Likewise.
14567
14568         canonicalize: allow cross-testing from cygwin to mingw
14569         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14570         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14571         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14572         Likewise.
14573         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14574         target does not support symlinks.
14575         * tests/test-canonicalize-lgpl.sh: Likewise.
14576
14577         chown: avoid compilation warning on mingw
14578         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14579         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14580         mingw.
14581         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14582         * modules/chown (Depends-on): Add errno.
14583
14584 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14585
14586         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14587         command.
14588
14589 2009-08-31  Jim Meyering  <meyering@redhat.com>
14590
14591         canonicalize: remove useless initialization
14592         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14593         initialization of local, "end".
14594
14595 2009-08-30  Bruno Haible  <bruno@clisp.org>
14596
14597         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14598         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14599         ENOSYS.
14600
14601 2009-08-30  Bruno Haible  <bruno@clisp.org>
14602
14603         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14604         /usr/xpg4/bin/tr when it exists.
14605         * tests/test-pipe-filter-gi1.sh: Likewise.
14606
14607 2009-08-30  Bruno Haible  <bruno@clisp.org>
14608
14609         Work around deficient /usr/bin/id program on Solaris.
14610         * tests/test-file-has-acl.sh (ID): New variable.
14611         * tests/test-set-mode-acl.sh (ID): Likewise.
14612         * tests/test-copy-acl.sh (ID): Likewise.
14613         * tests/test-copy-file.sh (ID): Likewise.
14614
14615 2009-08-30  Bruno Haible  <bruno@clisp.org>
14616
14617         New module 'xstriconveh'.
14618         * lib/xstriconveh.h: New file.
14619         * lib/xstriconveh.c: New file.
14620         * modules/xstriconveh: New file.
14621
14622 2009-08-30  Bruno Haible  <bruno@clisp.org>
14623
14624         Make it easier to use mem_cd_iconveh.
14625         * lib/striconveh.h (iconveh_t): New type.
14626         (iconveh_open, iconveh_close): New declarations.
14627         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14628         with a single 'const iconveh_t *' argument.
14629         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14630         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14631         with a single 'const iconveh_t *' argument.
14632         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14633         * tests/test-striconveh.c (main): Update.
14634         * NEWS: Mention the change.
14635
14636 2009-08-30  Bruno Haible  <bruno@clisp.org>
14637
14638         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14639         problem.
14640
14641 2009-08-30  Bruno Haible  <bruno@clisp.org>
14642
14643         Work around iconv_open problem on Solaris.
14644         * lib/iconv_open-solaris.gperf: New file.
14645         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14647         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14648         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14649         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14650         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14651
14652 2009-08-29  Jim Meyering  <meyering@redhat.com>
14653
14654         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14655         * top/maint.mk (cvs-check): Remove target; it was just an alias
14656         to the better-named vc-diff-check.
14657         (maintainer-distcheck): Remove rule.  It was used only from
14658         the (alpha/beta/major) target, and all of its commands but one
14659         were coreutils-specific.
14660         (vc-dist): Remove rule.
14661         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14662         Run vc-diff-check, not vc-dist.
14663         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14664
14665 2009-08-27  Bruno Haible  <bruno@clisp.org>
14666
14667         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14668         of 0.
14669
14670 2009-08-27  Bruno Haible  <bruno@clisp.org>
14671
14672         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14673         compilers.
14674         * doc/func.texi: Document the SunPRO C bug.
14675
14676 2009-08-27  Bruno Haible  <bruno@clisp.org>
14677
14678         Fix link error on Solaris.
14679         * tests/test-parse-duration.c (xstrdup): Remove function.
14680
14681 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14682
14683         ignore-value: handle pointer types, too
14684         * lib/ignore-value.h (__attribute__): Remove definition.
14685         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14686         of a more concise and more-often effective "(void) i" statement.
14687         (ignore_ptr): New function to suppress warnings from functions that
14688         return pointers, and to make it explicit that one function doesn't
14689         handle all cases.
14690
14691 2009-08-25  Bruno Haible  <bruno@clisp.org>
14692
14693         dup2: work around a Linux bug.
14694         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14695         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14696         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14697         Reported by Simon Josefsson.
14698
14699 2009-08-25  Jim Meyering  <meyering@redhat.com>
14700
14701         libguestfs uses gnulib
14702         * users.txt: Add libguestfs.
14703
14704 2009-08-24  Eric Blake  <ebb9@byu.net>
14705
14706         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14707         * lib/pipe2.c (includes): Add binary-io.h.
14708         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14709
14710 2009-08-24  Bruno Haible  <bruno@clisp.org>
14711
14712         Tolerate declared but missing accept4 syscall.
14713         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14714         available.
14715         * lib/sys_socket.in.h (accept4): If the function is already present,
14716         override it.
14717         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14718         * modules/accept4 (Makefile.am): Compile accept4.c always.
14719         Reported by Paolo Bonzini and Eric Blake.
14720
14721 2009-08-23  Bruno Haible  <bruno@clisp.org>
14722
14723         New module 'accept4'.
14724         * lib/sys_socket.in.h (accept4): New declaration.
14725         * lib/accept4.c: New file.
14726         * m4/accept4.m4: New file.
14727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14728         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14729         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14730         HAVE_ACCEPT4.
14731         * modules/accept4: New file.
14732         * doc/glibc-functions/accept4.texi: Mention the new module.
14733
14734 2009-08-24  Jim Meyering  <meyering@redhat.com>
14735
14736         progname: also set global program_invocation_name, when possible
14737         Before this change, a libtool-enabled program that calls glibc's
14738         error function would report the program name as
14739         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14740         * modules/progname (configure.ac): Check for a declaration of
14741         program_invocation_name.
14742         * lib/progname.c:  Include <errno.h>.
14743         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14744         Set program_invocation_name.
14745
14746 2009-08-23  Bruno Haible  <bruno@clisp.org>
14747
14748         * lib/dup3.c: Include <string.h>.
14749
14750 2009-08-23  Bruno Haible  <bruno@clisp.org>
14751
14752         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14753         * lib/pipe2.c (pipe2): Likewise.
14754         Suggested by Eric Blake.
14755
14756 2009-08-23  Bruno Haible  <bruno@clisp.org>
14757
14758         Tolerate declared but missing dup3 syscall.
14759         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14760         * lib/unistd.in.h (dup3): If the function is already present,
14761         override it.
14762         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14763         * modules/dup3 (Makefile.am): Compile dup3.c always.
14764         Reported by Paolo Bonzini.
14765
14766 2009-08-23  Bruno Haible  <bruno@clisp.org>
14767
14768         Tolerate declared but missing pipe2 syscall.
14769         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14770         available.
14771         * lib/unistd.in.h (pipe2): If the function is already present,
14772         override it.
14773         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14774         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14775         Reported by Paolo Bonzini.
14776
14777 2009-08-23  Bruno Haible  <bruno@clisp.org>
14778
14779         * lib/pipe2.c (pipe2): Move #ifs inside function.
14780
14781 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14782
14783         quotearg: document limitations of quote_these_too
14784         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14785         those limitations are created.
14786         * lib/quotearg.h (set_char_quoting): Document that digits and
14787         letters that are special after backslash are not permitted.
14788         (quotearg_char): Cross-reference set_char_quoting documentation.
14789
14790 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14791
14792         quotearg: implement custom_quoting_style
14793         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14794         right_quote fields.
14795         (set_custom_quoting): New public function.
14796         (quotearg_buffer_restyled): Add left_quote and right_quote
14797         arguments, handle them very much like locale quoting, and update
14798         all uses.
14799         (quotearg_n_custom): New public function.
14800         (quotearg_n_custom_mem): New public function.
14801         (quotearg_custom): New public function.
14802         (quotearg_custom_mem): New public function.
14803         * lib/quotearg.h: Prototype and document new public functions.
14804         (enum quoting_style): For escape_quoting_style and
14805         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14806         ignored even though they're otherwise like c_quoting_style.
14807         Add custom_quoting_style member and document with comparison to
14808         clocale_quoting_style.
14809         * tests/test-quotearg.c (custom_quotes): New array.
14810         (custom_results): New array.
14811         (main): Extend to test custom quoting.
14812
14813 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14814
14815         quotearg: fix right quote escaping when it's in quote_these_too
14816         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14817         quote, be sure to prepend only one backslash.
14818         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14819         (main): Test it.
14820
14821 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14822
14823         quotearg-tests: test escaping of embedded locale quotes
14824         * tests/test-quotearg.c (struct result_strings): Add member for
14825         new input.
14826         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14827         (inputs): Add new input.
14828         (results_g): Add expected results.
14829         (flag_results): Likewise.
14830         (locale_results): Likewise.
14831         (compare_strings): Check those.
14832
14833 2009-08-23  Bruno Haible  <bruno@clisp.org>
14834
14835         Tests for module 'dup3'.
14836         * modules/dup3-tests: New file.
14837         * tests/test-dup3.c: New file.
14838
14839         New module 'dup3'.
14840         * lib/unistd.in.h (dup3): New declaration.
14841         * lib/dup3.c: New file.
14842         * m4/dup3.m4: New file.
14843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14844         HAVE_DUP3.
14845         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14846         * modules/dup3: New file.
14847         * doc/glibc-functions/dup3.texi: Mention the new module.
14848
14849 2009-08-23  Bruno Haible  <bruno@clisp.org>
14850
14851         Tweak the dup2 test.
14852         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14853         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14854         the test file is still empty. Fix argument order of lseek.
14855
14856 2009-08-23  Bruno Haible  <bruno@clisp.org>
14857
14858         Avoid test link errors when the modules getopt-gnu, gettext are used.
14859         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14861
14862 2009-08-23  Bruno Haible  <bruno@clisp.org>
14863
14864         Fix getdtablesize() on mingw.
14865         * lib/getdtablesize.c (getdtablesize): Implement differently.
14866         * lib/unistd.in.h (getdtablesize): Improve comment.
14867
14868 2009-08-23  Bruno Haible  <bruno@clisp.org>
14869
14870         New module 'mkostemp'.
14871         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14872         * lib/stdlib.in.h (mksotemp): New declaration.
14873         * lib/mkostemp.c: New file, from glibc with modifications.
14874         * lib/tempname.h (GT_FILE): Remove outdated comment.
14875         (gen_tempname): Add flags argument.
14876         * lib/tempname.c (__GT_BIGFILE): Remove macro.
14877         (__GT_FILE): Map to 1.
14878         (small_open, large_open): Remove macros.
14879         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
14880         * lib/mkstemp.c (mkstemp): Update.
14881         * lib/mkdtemp.c (mkdtemp): Likewise.
14882         * m4/mkostemp.m4: New file.
14883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
14884         HAVE_MKOSTEMP.
14885         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
14886         HAVE_MKOSTEMP.
14887         * modules/mkostemp: New file, based on modules/mkstemp.
14888         * doc/glibc-functions/mkostemp.texi: Mention the new module.
14889         * NEWS: Mention the change.
14890
14891 2009-08-23  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
14894         Reported by Eric Blake.
14895
14896 2009-08-23  Bruno Haible  <bruno@clisp.org>
14897
14898         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
14899         Reported by Eric Blake.
14900
14901 2009-08-23  Bruno Haible  <bruno@clisp.org>
14902
14903         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
14904         * modules/pipe2 (Depends-on): Likewise.
14905
14906 2009-08-23  Eric Blake  <ebb9@byu.net>
14907
14908         fcntl-h: add O_TTY_INIT support
14909         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
14910         * tests/test-fcntl-h.c (o): Test it.
14911         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14912
14913         fcntl-h: rename from fcntl, in preparation for fcntl(2)
14914         * modules/fcntl: Move <fcntl.h> header replacement...
14915         * modules/fcntl-h: ...to new name, so as not to collide with
14916         like-named function.
14917         * tests/test-fcntl.c: Rename...
14918         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14919         * modules/fcntl-tests: Rename...
14920         * modules/fcntl-h-tests: ...to this.  Update test file name.
14921         * modules/chdir-long (Depends-on): Update clients.
14922         * modules/chdir-safer (Depends-on): Likewise.
14923         * modules/fcntl-safer (Depends-on): Likewise.
14924         * modules/fts (Depends-on): Likewise.
14925         * modules/mkancesdirs (Depends-on): Likewise.
14926         * modules/mkdir-p (Depends-on): Likewise.
14927         * modules/open (Depends-on): Likewise.
14928         * modules/savewd (Depends-on): Likewise.
14929         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
14930         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14931
14932 2009-08-22  Bruno Haible  <bruno@clisp.org>
14933
14934         * modules/binary-io (License): Relicense under LGPL.
14935         * modules/pipe2 (License): Likewise.
14936
14937 2009-08-22  Bruno Haible  <bruno@clisp.org>
14938
14939         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
14940         return value.
14941         * lib/pipe-filter-gi.c (filter_init): Likewise.
14942         Reported by Eric Blake.
14943
14944 2009-08-22  Bruno Haible  <bruno@clisp.org>
14945
14946         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
14947         * modules/pipe (Depends-on): Add pipe2.
14948
14949 2009-08-22  Bruno Haible  <bruno@clisp.org>
14950
14951         Tests for module 'pipe2'.
14952         * modules/pipe2-tests: New file.
14953         * tests/test-pipe2.c: New file.
14954
14955         New module 'pipe2'.
14956         * lib/unistd.in.h (pipe2): New declaration.
14957         * lib/pipe2.c: New file.
14958         * m4/pipe2.m4: New file.
14959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
14960         HAVE_PIPE2.
14961         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
14962         * modules/pipe2: New file.
14963         * doc/glibc-functions/pipe2.texi: Mention the new module.
14964
14965 2009-08-22  Bruno Haible  <bruno@clisp.org>
14966
14967         Reference some new glibc functions.
14968         * doc/glibc-functions/accept4.texi: New file.
14969         * doc/glibc-functions/dup3.texi: New file.
14970         * doc/glibc-functions/mkostemp.texi: New file.
14971         * doc/glibc-functions/pipe2.texi: New file.
14972         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
14973         (Glibc sys/socket.h): Refer to accept4.
14974         (Glibc unistd.h): Refer to dup3, pipe2.
14975         Reported by Eric Blake.
14976
14977 2009-08-22  Jim Meyering  <meyering@redhat.com>
14978             Bruno Haible  <bruno@clisp.org>
14979
14980         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
14981         This makes it so packages using automake-1.11's silent-rules option
14982         can print e.g., a single "GEN    configmake.h" line, rather than
14983         the 30+ statements that perform the job.  If you want to see the
14984         actual commands, you can still run "make V=1".
14985         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
14986         so that make output is abbreviated when those variables are defined
14987         appropriately.
14988         * modules/argz: Likewise.
14989         * modules/arpa_inet: Likewise.
14990         * modules/byteswap: Likewise.
14991         * modules/configmake: Likewise.
14992         * modules/dirent: Likewise.
14993         * modules/errno: Likewise.
14994         * modules/fcntl: Likewise.
14995         * modules/float: Likewise.
14996         * modules/fnmatch: Likewise.
14997         * modules/getopt-posix: Likewise.
14998         * modules/glob: Likewise.
14999         * modules/iconv_open: Likewise.
15000         * modules/inttypes: Likewise.
15001         * modules/localcharset: Likewise.
15002         * modules/locale: Likewise.
15003         * modules/math: Likewise.
15004         * modules/netdb: Likewise.
15005         * modules/netinet_in: Likewise.
15006         * modules/poll: Likewise.
15007         * modules/posix_spawnp-tests: Likewise.
15008         * modules/sched: Likewise.
15009         * modules/search: Likewise.
15010         * modules/selinux-h: Likewise.
15011         * modules/signal: Likewise.
15012         * modules/spawn: Likewise.
15013         * modules/stdarg: Likewise.
15014         * modules/stdbool: Likewise.
15015         * modules/stddef: Likewise.
15016         * modules/stdint: Likewise.
15017         * modules/stdio: Likewise.
15018         * modules/stdlib: Likewise.
15019         * modules/string: Likewise.
15020         * modules/strings: Likewise.
15021         * modules/sys_file: Likewise.
15022         * modules/sys_ioctl: Likewise.
15023         * modules/sys_select: Likewise.
15024         * modules/sys_socket: Likewise.
15025         * modules/sys_stat: Likewise.
15026         * modules/sys_time: Likewise.
15027         * modules/sys_times: Likewise.
15028         * modules/sys_utsname: Likewise.
15029         * modules/sys_wait: Likewise.
15030         * modules/sysexits: Likewise.
15031         * modules/time: Likewise.
15032         * modules/unistd: Likewise.
15033         * modules/wchar: Likewise.
15034         * modules/wctype: Likewise.
15035
15036 2009-08-22  Jim Meyering  <meyering@redhat.com>
15037
15038         announce-gen: detect write failure
15039         * build-aux/announce-gen: Add Coda at end.
15040         Remove equivalent-but-more-verbose block at top.
15041
15042 2009-08-19  Akim Demaille  <demaille@gostai.com>
15043
15044         bootstrap: --help to stdout.
15045         * bootstrap (usage): Don't send --help to stderr.
15046         Use a here doc instead of a long string.
15047
15048 2009-08-21  Eric Blake  <ebb9@byu.net>
15049
15050         test-popen-safer: split from test-popen
15051         * tests/test-popen.c (main): Move...
15052         * tests/test-popen.h: ...into new file.
15053         * tests/test-popen-safer2.c: New file.
15054         * modules/popen-tests (Files): Add test-popen.h.
15055         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15056         Suggested by Bruno Haible.
15057
15058         test-fcntl-safer: split from test-open
15059         * tests/test-open.c (main): Move...
15060         * tests/test-open.h: ...into new file.
15061         * tests/test-fcntl-safer.c: New file.
15062         * modules/open-tests (Files): Add test-open.h.
15063         * modules/fcntl-safer-tests: New file.
15064         Suggested by Bruno Haible.
15065
15066         test-fopen-safer: split from test-fopen
15067         * tests/test-fopen.c (main): Move...
15068         * tests/test-fopen.h: ...into new file.
15069         * tests/test-fopen-safer.c: New file.
15070         * modules/fopen-tests (Files): Add test-fopen.h.
15071         * modules/fopen-safer-tests: New file.
15072         Suggested by Bruno Haible.
15073
15074 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15075
15076         popen-safer: test O_CLOEXEC at run-time.
15077         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15078
15079 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15080
15081         fcntl: move more flags to the header
15082         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15083         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15084         * lib/fcntl.in.h: Do both things here.
15085
15086 2009-08-21  Jim Meyering  <meyering@redhat.com>
15087
15088         consistently remove $@-t before redirecting to it
15089         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15090         * modules/alloca-opt: Likewise.
15091         * modules/byteswap: Likewise.
15092         * modules/fnmatch: Likewise.
15093         * modules/getopt-posix: Likewise.
15094         * modules/glob: Likewise.
15095         * modules/poll: Likewise.
15096         * modules/posix_spawnp-tests: Likewise.
15097         * modules/sys_socket: Likewise.
15098         * modules/sysexits: Likewise.
15099
15100 2009-08-21  Eric Blake  <ebb9@byu.net>
15101
15102         popen: simplify access to original popen
15103         * lib/popen.c (rpl_popen): No need to worry about popen being a
15104         macro.
15105         Reported by Bruno Haible.
15106
15107 2009-08-20  Eric Blake  <ebb9@byu.net>
15108
15109         build: avoid some compiler warnings
15110         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15111         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15112         type.
15113         (new_exclude_segment, excluded_file_pattern_p)
15114         (excluded_file_name_p): Reduce scope.
15115         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15116         old-style declaration.
15117
15118 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15119
15120         * tests/test-exclude1.sh: Handle Windows EOL.
15121         * tests/test-exclude2.sh: Likewise.
15122         * tests/test-exclude3.sh: Likewise.
15123         * tests/test-exclude4.sh: Likewise.
15124         * tests/test-exclude5.sh: Likewise.
15125         * tests/test-exclude6.sh: Likewise.
15126         * tests/test-exclude7.sh: Likewise.
15127
15128 2009-08-19  Akim Demaille  <demaille@gostai.com>
15129
15130         bootstrap: find sha1sum when named gsha1sum.
15131         * bootstrap (find_tool): New.
15132         ($SHA1SUM): New.
15133         Use it.
15134
15135 2009-08-20  Jim Meyering  <meyering@redhat.com>
15136
15137         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15138         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15139         expression that converts "." in a file name to "\." in the resulting
15140         regexp.  Start with a dummy statement, so that prior shell variable
15141         definitions are expanded portably.  Reported by Simon Josefsson.
15142
15143 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15144
15145         Fix polling for writeability of a screen buffer.
15146         * lib/poll.c: Distinguish input and screen buffers for the
15147         Win32 implementation.
15148         * lib/select.c: Likewise.
15149
15150 2009-08-19  Eric Blake  <ebb9@byu.net>
15151
15152         popen-safer: prevent popen from clobbering std descriptors
15153         * modules/popen-safer: New file.
15154         * lib/popen-safer.c: Likewise.
15155         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15156         * lib/stdio--.h (popen): Provide override.
15157         * lib/stdio-safer.h (popen_safer): Provide declaration.
15158         * tests/test-popen.c (includes): Partially test this.
15159         * modules/popen-safer-tests: New file, for more tests.
15160         * tests/test-popen-safer.c: Likewise.
15161         * MODULES.html.sh (file stream based Input/Output): Mention it.
15162
15163         tests: test some of the *-safer modules
15164         * modules/fopen-safer (Depends-on): Add fopen.
15165         * modules/fcntl-safer (Depends-on): Add fcntl.
15166         * modules/stdlib-safer (Depends-on): Add stdlib.
15167         (configure.ac): Set indicator.
15168         * modules/unistd-safer (configure.ac): Likewise.
15169         * modules/tmpfile-safer (configure.ac): Likewise.
15170         (Depends-on): Add tmpfile.
15171         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15172         active.
15173         * tests/test-fopen.c (includes): Test safer versions when they are
15174         in use.
15175         * tests/test-open.c (includes): Likewise.
15176
15177         popen: fix cygwin 1.5 bug when stdin closed
15178         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15179         * modules/popen: New file.
15180         * modules/popen-tests: Likewise.
15181         * tests/test-popen.c: Likewise.
15182         * m4/popen.m4: Likewise.
15183         * lib/popen.c: Likewise.
15184         * lib/stdio.in.h (popen): New declaration.
15185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15186         * modules/stdio (Makefile.am): Likewise.
15187         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15188
15189 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15190
15191         maint.mk: give full control over update-copyright exclusions
15192         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15193         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15194         (update-copyright): Don't force inclusion of top-level
15195         ChangeLog.  Don't force exclusion of all COPYING files, but make
15196         them the default exclusion instead.
15197
15198 2009-08-16  Bruno Haible  <bruno@clisp.org>
15199
15200         Fix test failures on Solaris 10.
15201         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15202         tests when Solaris iconv() is used.
15203         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15204         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15205         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15206         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15207         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15208
15209 2009-08-16  Bruno Haible  <bruno@clisp.org>
15210
15211         Fix test failures on Solaris 10.
15212         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15213         'tr' program and pass it as first argument.
15214         * tests/test-pipe-filter-gi1.sh: Likewise.
15215         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15216         program as first argument.
15217         * tests/test-pipe-filter-gi1.c (main): Likewise.
15218
15219 2009-08-16  Eric Blake  <ebb9@byu.net>
15220
15221         fpurge: fix previous commits
15222         * modules/fpurge (Makefile.am): Make replacement conditional,
15223         partially reverting 2007-04-29 change; missed in previous
15224         attempt.
15225         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15226         is missing.
15227
15228 2009-08-16  Bruno Haible  <bruno@clisp.org>
15229
15230         Clarify fpurge's effect on the file position.
15231         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15232         * tests/test-fpurge.c (main): Make a second pass for checking the file
15233         position.
15234
15235 2009-08-16  Bruno Haible  <bruno@clisp.org>
15236
15237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15238         declaration of fpurge is missing.
15239         * tests/test-fpurge.c (main): Check that the file has not more contents
15240         than expected. Close the file before removing it.
15241
15242 2009-08-15  Eric Blake  <ebb9@byu.net>
15243
15244         fpurge: don't wrap working cygwin implementation
15245         * lib/fpurge.c (fpurge): Fix comment typo.
15246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15247         1.7 to avoid replacement.
15248         * tests/test-fpurge.c (main): Enhance test.
15249
15250 2009-08-15  Eric Blake  <ebb9@byu.net>
15251         and Jim Meyering  <meyering@redhat.com>
15252
15253         test-update-copyright: skip if perl is insufficient
15254         * tests/test-update-copyright.sh: Failure to run maintainer tool
15255         should not cause testsuite failure on cygwin 1.5.
15256
15257 2009-08-14  Eric Blake  <ebb9@byu.net>
15258
15259         doc: mention more functions added in cygwin 1.7.0
15260         * doc/posix-headers/limits.texi (limits.h): Update for recent
15261         cygwin additions.
15262         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15263         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15264         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15265         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15266         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15267
15268 2009-08-14  Eric Blake  <ebb9@byu.net>
15269
15270         maint.mk: simplify update-copyright rule
15271         * top/maint.mk (update-copyright-local): Delete, and document how
15272         to do it in cfg.mk instead.
15273         (update-copyright-exclude-regexp): Delete, and document how to do
15274         it in .x-update-copyright instead.
15275         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15276         exclude ChangeLog.
15277
15278 2009-08-14  Bruno Haible  <bruno@clisp.org>
15279
15280         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15281
15282 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15283
15284         maint.mk: support update-copyright-env
15285         * top/maint.mk (update-copyright-env): Define place-holder.
15286         (update-copyright): Expand $(update-copyright-env) before
15287         invoking update-copyright.
15288
15289 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15290
15291         update-copyright: implement forced reformatting
15292         * build-aux/update-copyright: Implement and document
15293         UPDATE_COPYRIGHT_FORCE.
15294         * tests/test-update-copyright.sh: Test it.
15295
15296 2009-08-14  Eric Blake  <ebb9@byu.net>
15297         and Bruno Haible  <bruno@clisp.org>
15298
15299         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15300         * tests/test-locale.c: Revert previous patch related to NULL.
15301         * tests/test-stdio.c: Likewise.
15302         * tests/test-stdlib.c: Likewise.
15303         * tests/test-string.c: Likewise.
15304         * tests/test-unistd.c: Likewise.
15305         * modules/time-tests (Depends-on): Add verify.
15306         * modules/wchar-tests (Depends-on): Likewise.
15307         * tests/test-time.c: Test for NULL compliance.
15308         * tests/test-wchar.c: Likewise.
15309         * modules/locale (Depends-on): Add stddef.
15310         * modules/stdio (Depends-on): Likewise.
15311         * modules/stdlib (Depends-on): Likewise.
15312         * modules/string (Depends-on): Likewise.
15313         * modules/time (Depends-on): Likewise.
15314         * modules/unistd (Depends-on): Likewise.
15315         * modules/wchar (Depends-on): Likewise.
15316         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15317         * lib/stdlib.in.h (includes): Likewise.
15318         * lib/string.in.h (includes): Likewise.
15319         * lib/time.in.h (includes): Likewise.
15320         * lib/unistd.in.h (includes): Likewise.
15321         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15322         replaced.
15323         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15324         * m4/stddef_h.m4: New file.
15325         * modules/stddef: Likewise.
15326         * lib/stddef.in.h: Likewise.
15327         * modules/stddef-tests: Likewise.
15328         * tests/test-stddef.c: Likewise.
15329         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15330         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15331         * doc/posix-headers/locale.texi (locale.h): Likewise.
15332         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15333         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15334         * doc/posix-headers/string.texi (string.h): Likewise.
15335         * doc/posix-headers/time.texi (time.h): Likewise.
15336         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15337         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15338
15339 2009-08-14  Eric Blake  <ebb9@byu.net>
15340
15341         doc: improve git diff of texinfo files
15342         * .gitattributes: Add rule for *.texi files, with hint on how to
15343         use it.
15344         Copied from m4, and based on a report by Bruno Haible.
15345
15346 2009-08-14  Bruno Haible  <bruno@clisp.org>
15347
15348         Disable multithread support by default on Cygwin 1.5.x for real.
15349         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15350
15351 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15352
15353         update-copyright: much ado about intervals
15354         * build-aux/update-copyright: Implement and document
15355         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15356         of copyright year intervals.
15357         Also, document UPDATE_COPYRIGHT_YEAR.
15358         * tests/test-update-copyright.sh: Test it.
15359
15360         update-copyright: convert 2-digit to 4-digit years
15361         * build-aux/update-copyright: Implement and document.
15362         * tests/test-update-copyright.sh: Update.
15363
15364 2009-08-14  Jim Meyering  <meyering@redhat.com>
15365
15366         test-exclude: avoid coreutils "make check" failure
15367         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15368         just as in test-argmatch.c.
15369
15370 2009-08-13  Eric Blake  <ebb9@byu.net>
15371
15372         test-dup2: fix bad assumption
15373         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15374         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15375
15376         test-version-etc: fix CRLF portability issue
15377         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15378         recognize \r.
15379         * tests/test-argp-version-etc-1.sh: Likewise.
15380
15381         getopt: update client modules
15382         * modules/argp (Depends-on): Use getopt-gnu.
15383         * modules/git-merge-changelog (Depends-on): Likewise.
15384         * modules/long-options (Depends-on): Likewise.
15385         * modules/xstrtol (Depends-on): Likewise.
15386
15387 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15388
15389         * tests/test-version-etc.sh: Don't fail on different
15390         project/version.  Don't fail on CRLF differences.  Rewrite to use
15391         multiple -e instead of multiple sed forks, suggested by Eric Blake
15392         <ebb9@byu.net>.
15393         * tests/test-argp-version-etc-1.sh: Likewise.
15394
15395 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15396
15397         * tests/test-version-etc.sh: Don't fail on different
15398         project/version.
15399
15400 2009-08-12  Bruno Haible  <bruno@clisp.org>
15401
15402         Tests for modules 'getopt-posix', 'getopt-gnu'.
15403         * modules/getopt-posix-tests: New file.
15404         * tests/test-getopt.c: New file.
15405         * tests/test-getopt.h: New file.
15406         * tests/test-getopt_long.h: New file.
15407
15408         New modules 'getopt-posix', 'getopt-gnu'.
15409         * modules/getopt-gnu: New file, renamed from modules/getopt.
15410         * modules/getopt-posix: New file.
15411         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15412         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15413         (gl_GETOPT): Remove macro.
15414         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15415         Disable the test against BSD systems that declare optreset. Test
15416         against mingw bug. Test against lack of support of optional arguments
15417         on many platforms.
15418         * doc/glibc-headers/getopt.texi: Update module name and list of
15419         relevant platforms.
15420         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15421         'getopt-gnu' and more portability problems.
15422         * NEWS: Mention the changes.
15423
15424 2009-08-12  Bruno Haible  <bruno@clisp.org>
15425
15426         Ensure that optarg etc. get declared by <unistd.h>.
15427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15428         AC_USE_SYSTEM_EXTENSIONS.
15429         * modules/getopt (Depends-on): Add 'extensions'.
15430
15431 2009-08-12  Bruno Haible  <bruno@clisp.org>
15432
15433         Avoid test link errors.
15434         * modules/pipe-filter-ii-tests (Makefile.am): Define
15435         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15436         * modules/pipe-filter-gi-tests (Makefile.am): Define
15437         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15439
15440 2009-08-12  Bruno Haible  <bruno@clisp.org>
15441
15442         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15443         gl_GETOPT_SUBSTITUTE before.
15444         (gl_GETOPT): Use it.
15445         * m4/argp.m4 (gl_ARGP): Update.
15446         Reported by Sergey Poznyakoff.
15447
15448         * m4/getopt.m4: Reorder macros.
15449         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15450         (gl_GETOPT_SUBSTITUTE): Remove macro.
15451
15452 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15453
15454         Minor improvement in gitlog-to-changelog
15455
15456         * build-aux/gitlog-to-changelog: New option `--format' makes
15457         output format string configurable.
15458
15459 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15460
15461         Optimize exclude: use hash tables for non-wildcard patterns.
15462
15463         * lib/exclude.c: Include hash.h and mbuiter.h
15464         (struct exclude_pattern, exclude_segment): New data types.
15465         (struct exclude): Rewrite.
15466         (fnmatch_pattern_has_wildcards): New function.
15467         (new_exclude_segment, free_exclude_segment): New functions.
15468         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15469         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15470         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15471         * modules/exclude: Depend on hash and mbuiter.
15472
15473         * modules/exclude-tests: New file.
15474         * tests/test-exclude.c: New file.
15475         * tests/test-exclude1.sh: New file.
15476         * tests/test-exclude2.sh: New file.
15477         * tests/test-exclude3.sh: New file.
15478         * tests/test-exclude4.sh: New file.
15479         * tests/test-exclude5.sh: New file.
15480         * tests/test-exclude6.sh: New file.
15481         * tests/test-exclude7.sh: New file.
15482
15483 2009-08-12  Bruno Haible  <bruno@clisp.org>
15484
15485         Ensure that getopt() gets declared by <unistd.h>.
15486         * lib/unistd.in.h: Conditionally include getopt.h.
15487         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15488         Set GNULIB_UNISTD_H_GETOPT.
15489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15490         GNULIB_UNISTD_H_GETOPT.
15491         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15492
15493 2009-08-12  Bruno Haible  <bruno@clisp.org>
15494
15495         Clarify logic.
15496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15497         gl_replace_getopt instead of GETOPT_H.
15498
15499 2009-08-12  Bruno Haible  <bruno@clisp.org>
15500
15501         * m4/getopt.m4: Add comments.
15502
15503 2009-08-12  Bruno Haible  <bruno@clisp.org>
15504
15505         Disable multithread support by default on Cygwin 1.5.x.
15506         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15507         set gl_use_threads=no if not specified otherwise.
15508
15509 2009-08-11  Bruno Haible  <bruno@clisp.org>
15510
15511         Avoid compilation error on NetBSD 5.0.
15512         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15513         * tests/test-stdio.c: Likewise.
15514         * tests/test-stdlib.c: Likewise.
15515         * tests/test-string.c: Likewise.
15516         * tests/test-unistd.c: Likewise.
15517         Reported by Greg Troxel <gdt@ir.bbn.com>
15518         at <https://savannah.gnu.org/support/?106973>.
15519
15520 2009-08-11  Bruno Haible  <bruno@clisp.org>
15521
15522         * modules/dup2-tests (Depends-on): Remove close.
15523
15524         Undo 2009-07-19 commit.
15525         * modules/acl-tests (Depends-on): Remove close.
15526         * modules/binary-io-tests (Depends-on): Likewise.
15527         * modules/closein-tests (Depends-on): Likewise.
15528         * modules/flock-tests (Depends-on): Likewise.
15529         * modules/fsync-tests (Depends-on): Likewise.
15530         * modules/lseek-tests (Depends-on): Likewise.
15531         * modules/pipe-tests (Depends-on): Likewise.
15532         * modules/posix_spawn-tests (Depends-on): Likewise.
15533         * modules/posix_spawnp-tests (Depends-on): Likewise.
15534         * modules/stat-time-tests (Depends-on): Likewise.
15535         * modules/yesno-tests (Depends-on): Likewise.
15536
15537 2009-08-10  Bruno Haible  <bruno@clisp.org>
15538
15539         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15540
15541 2009-08-10  Bruno Haible  <bruno@clisp.org>
15542
15543         Fix a gcc warning.
15544         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15545
15546 2009-08-10  Bruno Haible  <bruno@clisp.org>
15547
15548         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15549         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15550         not only the first time.
15551         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15552         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15553         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15554         is 1, not only the the first time.
15555
15556 2009-08-10  Bruno Haible  <bruno@clisp.org>
15557
15558         Make it possible to use module 'gethostname' without module 'close'.
15559         * lib/unistd.in.h (close): Evoke a link error only if
15560         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15562         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15563         * modules/unistd (Makefile.am): Substitute
15564         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15565         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15566         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15567         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15568         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15569         * modules/sys_ioctl (Makefile.am): Substitute
15570         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15571         * modules/socket (configure.ac): On native Windows, set
15572         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15573         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15574         Reported by Sam Steingold <sds@gnu.org>.
15575
15576 2009-08-10  Bruno Haible  <bruno@clisp.org>
15577
15578         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15579         * modules/ioctl (configure.ac): Likewise.
15580
15581 2009-08-10  Bruno Haible  <bruno@clisp.org>
15582
15583         Avoid collision between gnulib wrapper and libintl wrapper.
15584         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15585         already defined in intl/printf.c.
15586         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15587         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15588
15589 2009-08-09  Bruno Haible  <bruno@clisp.org>
15590
15591         Make <sys/select.h> really self-contained, also on Solaris 10.
15592         * lib/sys_select.in.h: Include <string.h>.
15593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15594         Solaris 10 problem.
15595         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15596         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15597         Reported by Jim Meyering.
15598
15599 2009-08-09  Bruno Haible  <bruno@clisp.org>
15600
15601         Avoid warnings from 'aclocal' that are due to a use of macro name
15602         AM_XGETTEXT_OPTION that is not defined in automake.
15603         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15604         automake.
15605         * modules/error (configure.ac): Likewise.
15606         * modules/propername (configure.ac): Likewise.
15607         * modules/vasprintf (configure.ac): Likewise.
15608         * modules/verror (configure.ac): Likewise.
15609         * modules/xprintf (configure.ac): Likewise.
15610         * modules/xvasprintf (configure.ac): Likewise.
15611
15612 2009-08-08  Bruno Haible  <bruno@clisp.org>
15613
15614         Avoid compilation error in C++ mode.
15615         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15616         Reported by Sam Steingold <sds@gnu.org>.
15617
15618 2009-08-08  Bruno Haible  <bruno@clisp.org>
15619
15620         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15621         for the various Unix platforms.
15622         * doc/posix-headers/limits.texi: Update platforms list regarding
15623         HOST_NAME_MAX.
15624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15625
15626 2009-08-07  Jim Meyering  <meyering@redhat.com>
15627
15628         selinux-at: fix typo in a comment
15629         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15630         Spotted by Paolo Bonzini.
15631
15632         selinux-at: remove redundant m4 code, add documentation
15633         * modules/selinux-at (configure.ac): Remove redundant code.
15634         LIB_SELINUX is already set via the dependent module, selinux-h.
15635         (Include): Add quotes around selinux-at.h.
15636         * lib/selinux-at.h: Add documentation.
15637         Reported by Bruno Haible in
15638         http://marc.info/?l=gnulib-bug&m=124958988300749
15639
15640 2009-08-07  Bruno Haible  <bruno@clisp.org>
15641
15642         Avoid link error on MacOS X 10.3 and 10.4.
15643         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15644         on non-ELF systems.
15645         * lib/argp-pv.c (argp_program_version): Likewise.
15646         Reported by Simon Josefsson.
15647
15648 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15649
15650         * tests/test-version-etc.sh: Use $EXEEXT.
15651
15652 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15653
15654         update-copyright: update documentation to point to maint.mk
15655         * build-aux/update-copyright: Here.
15656
15657 2009-08-06  Jim Meyering  <meyering@redhat.com>
15658
15659         maint.mk: support update-copyright-local
15660         * top/maint.mk (update-copyright-local): Define place-holder.
15661         (update-copyright): Depend on $(update-copyright-local).
15662
15663 2009-08-06  Jim Meyering  <meyering@redhat.com>
15664
15665         selinux-at: new module
15666         Initially written for coreutils, this module will soon be
15667         used by findutils, too.
15668         * MODULES.html.sh [Misc]: Add selinux-at.
15669         * lib/selinux-at.h: New file, from coreutils.
15670         * lib/selinux-at.c: Likewise.
15671         * modules/selinux-at: Likewise.
15672         (License): Change from LGPL to GPL, since it depends
15673         on the GPL'd openat module.
15674
15675         doc: update README
15676         * README: Remove references to cogito.
15677         Remove cvs-repo-updating instructions from 2007.
15678         Don't imply that CVS is better if you have limited disk space.
15679
15680 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15681
15682         update-copyright: support C-style comments
15683         * build-aux/update-copyright: Implement and document.
15684         * tests/test-update-copyright.sh: Test.
15685
15686 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15687
15688         update-copyright: support omitted "(C)"
15689         * build-aux/update-copyright: Implement and document.  Also,
15690         allow variable whitespace before "(C)".
15691         * tests/test-update-copyright.sh: Test.
15692
15693 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15694
15695         update-copyright: don't trip on non-FSF copyright statements
15696         * build-aux/update-copyright: Fix so that the first correctly
15697         formatted FSF copyright statement is recognized no matter what
15698         appears before it.  Update documentation.
15699         * tests/test-update-copyright.sh: Test that.
15700
15701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15702
15703         update-copyright: clean up code a little
15704         * build-aux/update-copyright: Append "_re" to the name of any
15705         variable holding a regular expression.
15706         Replace "old" and "new" with "stmt" in variable names.
15707         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15708         handled correctly.
15709         Format code more consistently.
15710
15711 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15712
15713         update-copyright-tests: improve portability
15714         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15715         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15716
15717 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15718
15719         update-copyright: support @copyright{} and &copy;
15720         * build-aux/update-copyright: Implement and document.
15721         * tests/test-update-copyright.sh: Test.
15722
15723 2009-08-04  Jim Meyering  <meyering@redhat.com>
15724
15725         update-copyright-tests: correctly test EOL=\r\n handling
15726         * tests/test-update-copyright.sh: Put \r at the end of some lines
15727         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15728
15729         maint.mk: make update-copyright exclusion list more configurable
15730         * top/maint.mk (update-copyright): Default to excluding COPYING,
15731         but allow an override, in case someone does want to update that file.
15732
15733         maint.mk: don't update copyright date in COPYING
15734         * top/maint.mk (update-copyright): Exclude COPYING.
15735
15736         maint.mk: add a copyright-updating rule
15737         * top/maint.mk (update-copyright): New rule.
15738         Derived from coreutils/Makefile.am.
15739
15740         update-copyright: rename some variables
15741         * build-aux/update-copyright: Rename a few variables for clarity.
15742         Tweak syntax.  List Joel E. Denny as coauthor.
15743
15744 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15745
15746         update-copyright: fix bug for 2-digit last year and add tests
15747         * build-aux/update-copyright: Fix bug.
15748         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15749         specified.
15750         * modules/update-copyright-tests: New
15751         * tests/test-update-copyright.sh: New.
15752
15753 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15754
15755         update-copyright: handle leading tabs in line prefix
15756         * build-aux/update-copyright: Count leading tabs as 8 spaces
15757         when computing margin.  This helps with the formatting of
15758         ChangeLogs, for example.
15759         Fix documentation a little.
15760
15761 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15762
15763         update-copyright: support EOL=\r\n
15764         * build-aux/update-copyright: Implement that.
15765
15766 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15767
15768         update-copyright: automatically format copyright statements
15769         * build-aux/update-copyright: Implement that.
15770         Also, be a little more predictable and safer by always failing
15771         when the full copyright format is not perfectly recognized as an
15772         unbroken whole.  Discussed at
15773         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15774         Rewrite documentation.
15775
15776 2009-08-03  Bruno Haible  <bruno@clisp.org>
15777
15778         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15779
15780 2009-08-02  Bruno Haible  <bruno@clisp.org>
15781
15782         Tests for module 'uname'.
15783         * modules/uname-tests: New file.
15784         * tests/test-uname.c: New file.
15785
15786         New module 'uname'.
15787         * lib/uname.c: New file.
15788         * m4/uname.m4: New file.
15789         * modules/uname: New file.
15790         * doc/posix-functions/uname.texi: Mention the new module.
15791
15792 2009-08-02  Bruno Haible  <bruno@clisp.org>
15793
15794         Tests for module 'sys_utsname'.
15795         * modules/sys_utsname-tests: New file.
15796         * tests/test-sys_utsname.c: New file.
15797
15798         New module 'sys_utsname'.
15799         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15800         * m4/sys_utsname_h.m4: New file.
15801         * modules/sys_utsname: New file.
15802         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15803
15804 2009-08-02  Bruno Haible  <bruno@clisp.org>
15805
15806         Implicitly initialize the sockets library.
15807         * lib/gethostname.c: Include sockets.h.
15808         (rpl_gethostname): Invoke gl_sockets_startup.
15809         * lib/socket.c: Include sockets.h.
15810         (rpl_socket): Invoke gl_sockets_startup.
15811         * modules/gethostname (Depends-on): Add sockets.
15812         * modules/socket (Depends-on): Likewise.
15813         * tests/test-poll.c: Don't include sockets.h.
15814         (main): Don't invoke gl_sockets_startup.
15815         * tests/test-select.c: Don't include sockets.h.
15816         (main): Don't invoke gl_sockets_startup.
15817
15818 2009-08-02  Bruno Haible  <bruno@clisp.org>
15819
15820         Allow multiple calls to gl_sockets_startup.
15821         * lib/sockets.c (initialized_sockets_version): New variable.
15822         (gl_sockets_startup): Do nothing if already called for this or a higher
15823         version.
15824         (gl_sockets_cleanup): Reset initialized_sockets_version.
15825
15826 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15827
15828         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15829         different project/version.
15830
15831 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15832             Bruno Haible  <bruno@clisp.org>
15833
15834         Tests for module 'pipe-filter-gi'.
15835         * modules/pipe-filter-gi-tests: New file.
15836         * tests/test-pipe-filter-gi1.sh: New file.
15837         * tests/test-pipe-filter-gi1.c: New file.
15838         * tests/test-pipe-filter-gi2.sh: New file.
15839         * tests/test-pipe-filter-gi2-main.c: New file.
15840         * tests/test-pipe-filter-gi2-child.c: New file.
15841
15842         New module 'pipe-filter-gi'.
15843         * lib/pipe-filter-gi.c: New file.
15844         * modules/pipe-filter-gi: New file.
15845
15846 2009-08-02  Bruno Haible  <bruno@clisp.org>
15847             Paolo Bonzini  <bonzini@gnu.org>
15848
15849         Tests for module 'pipe-filter-ii'.
15850         * modules/pipe-filter-ii-tests: New file.
15851         * tests/test-pipe-filter-ii1.sh: New file.
15852         * tests/test-pipe-filter-ii1.c: New file.
15853         * tests/test-pipe-filter-ii2.sh: New file.
15854         * tests/test-pipe-filter-ii2-main.c: New file.
15855         * tests/test-pipe-filter-ii2-child.c: New file.
15856
15857         New module 'pipe-filter-ii'.
15858         * lib/pipe-filter.h: New file.
15859         * lib/pipe-filter-ii.c: New file.
15860         * lib/pipe-filter-aux.h: New file.
15861         * modules/pipe-filter-ii: New file.
15862
15863 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15864
15865         * lib/gc-libgcrypt.c: Change copyright to FSF.
15866         * lib/gc-gnulib.c: Likewise.
15867
15868 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15869
15870         * lib/gethostname.c: Include limits.h.
15871
15872 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15873             Bruno Haible  <bruno@clisp.org>
15874
15875         Ensure HOST_NAME_MAX as part of the gethostname module.
15876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
15877         define also HOST_NAME_MAX.
15878         * tests/test-gethostname.c: Include <limits.h>.
15879         (main): Check also HOST_NAME_MAX.
15880         * doc/posix-headers/limits.texi: Document the mingw problem.
15881
15882 2009-08-02  Bruno Haible  <bruno@clisp.org>
15883
15884         * lib/gethostname.c (gethostname): Fix handling of large len argument.
15885         Add comments.
15886
15887 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15888
15889         * lib/gethostname.c: Add Windows wrapper.
15890         * m4/gethostname.m4: Look for gethostname in -lws2_32.
15891         * modules/gethostname: Depend on sys_socket & errno, for also
15892         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
15893         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
15894
15895 2009-07-31  Jim Meyering  <meyering@redhat.com>
15896
15897         getloadavg: fix symbol name in comment
15898         * lib/getloadavg.c: Correct a typo I introduced when adding
15899         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
15900         Matt Kraai spotted the problem.
15901
15902 2009-07-29  Matt Kraai  <mkraai@beckman.com>
15903
15904         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
15905         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
15906         code also if ! defined N_NAME_POINTER.
15907         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
15908         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
15909         but the n_name member is a 12-byte array.
15910
15911 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
15912
15913         update-copyright: generalize comment handling
15914         * build-aux/update-copyright: Handle copyright statements
15915         within more comment styles.
15916         Document usage.
15917         Report any file with an external copyright holder or parse failure.
15918
15919 2009-07-29  Jim Meyering  <meyering@redhat.com>
15920
15921         mktime: correct setting of REPLACE_MKTIME
15922         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
15923
15924         update-copyright: new module
15925         * modules/update-copyright: New file.
15926         * build-aux/update-copyright: New file.
15927         * MODULES.html.sh (maint+release support): Add update-copyright.
15928
15929 2009-07-27  Bruno Haible  <bruno@clisp.org>
15930
15931         Fix compilation error when <ctime> is used and mktime is replaced.
15932         * lib/time.in.h (mktime): New declaration.
15933         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
15934         REPLACE_MKTIME instead of defining mktime in config.h.
15935         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
15936         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
15937         Reported by Ross McFarland <rwmcfa1@neces.com>.
15938
15939 2009-07-27  Bruno Haible  <bruno@clisp.org>
15940
15941         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
15942         Reported by Matt Kraai <mkraai@beckman.com>.
15943
15944 2009-07-25  Jim Meyering  <meyering@redhat.com>
15945
15946         maint.mk: avoid warnings about missing files
15947         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
15948         diagnostic when .prev-version does not exist.
15949         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
15950         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
15951         nonexistent cfg.mk.
15952         Suggestions from Simon Josefsson.
15953
15954 2009-07-25  Bruno Haible  <bruno@clisp.org>
15955
15956         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
15957         defined as macros. Needed on QNX 6.4.1.
15958         Reported by Matt Kraai <mkraai@beckman.com>.
15959
15960 2009-07-23  Jim Meyering  <meyering@redhat.com>
15961
15962         maint.mk: invoke "make dist" with a working value of XZ_OPT
15963         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
15964
15965 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
15966
15967         Make fseeko.c compile on QNX.
15968         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
15969
15970 2009-07-22  Peter Simons  <simons@cryp.to>
15971
15972         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
15973         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
15974         * lib/md4.h: Likewise.
15975         * lib/md5.h: Likewise.
15976         * lib/sha1.h: Likewise.
15977         * lib/sha256.h: Likewise.
15978         * lib/sha512.h: Likewise.
15979
15980         tests-sha1: don't assign literal string to 'char *' variable
15981         * tests/test-sha1.c (main): Declare locals with "const" to match
15982         attributes of the right hand side.
15983
15984 2009-07-21  Eric Blake  <ebb9@byu.net>
15985
15986         dup2: fix more mingw problems
15987         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
15988         fd to itself.
15989         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15990         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
15991         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
15992         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
15993         care of mingw bugs.
15994
15995 2009-07-21  Jim Meyering  <meyering@redhat.com>
15996
15997         vc-list-files: avoid failure when /bin/sh is dash
15998         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
15999         On some Debian based systems, /bin/sh is a symlink to dash, and running
16000         this command would omit the "/" following each 'tests' prefix:
16001           dash -x build-aux/vc-list-files -C . tests
16002         That is because bash and dash work differently:
16003           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16004           bash ok
16005           dash odd
16006
16007 2009-07-21  Eric Blake  <ebb9@byu.net>
16008
16009         dup2-tests: test previous patch
16010         * modules/dup2-tests: New file.
16011         * tests/test-dup2.c: Likewise.
16012         * tests/test-open.c (main): Avoid unspecified behavior.
16013         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16014         test.
16015
16016         dup2: work around mingw and cygwin 1.5 bug
16017         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16019         * modules/unistd (Makefile.am): Substitute it.
16020         * lib/unistd.in.h (dup2): Declare the replacement.
16021         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16022         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16023         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16024         * modules/execute (Depends-on): Add dup2.
16025         * modules/fseterr (Depends-on): Likewise.
16026         * modules/pipe (Depends-on): Likewise.
16027         * modules/posix_spawn-internal (Depends-on): Likewise.
16028
16029 2009-07-21  Bruno Haible  <bruno@clisp.org>
16030
16031         * modules/.gitattributes: New file.
16032
16033 2009-07-20  Bruno Haible  <bruno@clisp.org>
16034
16035         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16036         (main): Use it.
16037
16038 2009-07-20  Eric Blake  <ebb9@byu.net>
16039
16040         test-pipe: make a bit more robust.
16041         * tests/test-pipe.c (myerr): Allow error messages regardless of
16042         what we do to stderr.
16043         (test_pipe): Rearrange to avoid deadlock.
16044         (child_main): Try a larger read, to ensure we avoided deadlock.
16045         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16046         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16047         if misused.
16048
16049 2009-07-19  Jim Meyering  <meyering@redhat.com>
16050
16051         fts: avoid false-positive cycle-detection
16052         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16053         for each new command line argument.
16054
16055 2009-07-19  Bruno Haible  <bruno@clisp.org>
16056
16057         Fix build error on mingw with the modules sys_select and unistd.
16058         * modules/acl-tests (Depends-on): Add close.
16059         * modules/binary-io-tests (Depends-on): Likewise.
16060         * modules/closein-tests (Depends-on): Likewise.
16061         * modules/flock-tests (Depends-on): Likewise.
16062         * modules/fsync-tests (Depends-on): Likewise.
16063         * modules/lseek-tests (Depends-on): Likewise.
16064         * modules/pipe-tests (Depends-on): Likewise.
16065         * modules/posix_spawn-tests (Depends-on): Likewise.
16066         * modules/posix_spawnp-tests (Depends-on): Likewise.
16067         * modules/stat-time-tests (Depends-on): Likewise.
16068         * modules/yesno-tests (Depends-on): Likewise.
16069
16070 2009-07-19  Bruno Haible  <bruno@clisp.org>
16071
16072         Unify conditionals.
16073         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16074         macros, not at the compiler macros.
16075         * lib/pipe.c: Likewise.
16076         * lib/execute.c: Likewise.
16077         * lib/spawni.c: Likewise.
16078
16079 2009-07-19  Bruno Haible  <bruno@clisp.org>
16080
16081         Fix handling of closed stdin/stdout/stderr on mingw.
16082         * lib/w32spawn.h: Include unistd.h.
16083         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16084         file descriptor with O_NOINHERIT flag.
16085         (fd_safer_noinherit): New function, based on fd-safer.c.
16086         (dup_safer_noinherit): New function, based on dup-safer.c.
16087         (undup_safer_noinherit): New function.
16088         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16089         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16090         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16091         instead of fd_safer.
16092         * tests/test-pipe.c: Include <windows.h>.
16093         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16094
16095         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16096         from main.
16097         (test_pipe): Pass an extra argument for disambiguation.
16098         (main): Invoke parent_main or child_main.
16099
16100         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16101         consistently.
16102
16103 2009-07-18  Eric Blake  <ebb9@byu.net>
16104
16105         test-pipe: fix mingw build
16106         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16107
16108 2009-07-18  Bruno Haible  <bruno@clisp.org>
16109
16110         * modules/pipe-tests (Makefile.am): Fix typo.
16111
16112 2009-07-18  Eric Blake  <ebb9@byu.net>
16113
16114         error: fix mingw build
16115         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16116         Reported by Bruno Haible.
16117
16118         error: avoid undefined use of stdout
16119         * lib/error.c (error, error_at_line): Check that fd 1 is open
16120         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16121         is handling faults and the close_stdout module wants to report the
16122         detection of closed stdout as an error.
16123
16124 2009-07-17  Eric Blake  <ebb9@byu.net>
16125
16126         pipe: be robust in face of closed fds
16127         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16128         should cause child to misbehave.
16129         * modules/pipe-tests: New module.
16130         * tests/test-pipe.c: New file.
16131         * tests/test-pipe.sh: New file.
16132         Reported by Akim Demaille.
16133
16134 2009-07-14  Bruno Haible  <bruno@clisp.org>
16135
16136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16137         Reported by anonymous kc.
16138
16139 2009-07-07  Jim Meyering  <meyering@redhat.com>
16140
16141         maint.mk: don't look for translatable strings in *.m4 or *.mk
16142         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16143         when searching for translatable strings.
16144
16145 2009-07-05  Jim Meyering  <meyering@redhat.com>
16146
16147         remove superfluous parentheses in STREQ definition
16148         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16149         * lib/getugroups.c (STREQ): Likewise.
16150         * lib/fnmatch.c (STREQ): Likewise.
16151         Spotted by Bruno Haible.
16152
16153 2009-07-04  Jim Meyering  <meyering@redhat.com>
16154
16155         argv-iter: new module
16156         * MODULES.html.sh: Add argv-iter.
16157         * lib/argv-iter.c, lib/argv-iter.h: New files.
16158         * modules/argv-iter: New file.
16159         * modules/argv-iter-tests: New file.
16160         * tests/test-argv-iter.c: Test it.
16161
16162 2009-07-04  Bruno Haible  <bruno@clisp.org>
16163
16164         Fix assertion.
16165         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16166         contains more exact copies of a given entry than file2, leave the extra
16167         copies unpaired rather than aborting.
16168         Reported by Eric Blake.
16169
16170 2009-07-02  Bruno Haible  <bruno@clisp.org>
16171
16172         Speedup git-merge-changelog for git cherry-pick.
16173         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16174         (entries_mapping_get): New function, extracted from compute_mapping.
16175         (entries_mapping_reverse_get): New function.
16176         (compute_mapping): Add a 'full' argument. Return the result in a
16177         'struct entries_mapping'.
16178         (main): Update. Access the mappings through entries_mapping_get.
16179         Reported by Eric Blake.
16180
16181 2009-07-02  Bruno Haible  <bruno@clisp.org>
16182
16183         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16184         best_i.
16185
16186 2009-07-02  Bruno Haible  <bruno@clisp.org>
16187
16188         Speed up approximate search for matching ChangeLog entries.
16189         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16190         argument. Call fstrcmp_bounded instead of fstrcmp.
16191         (compute_mapping, try_split_merged_entry, main): Update callers.
16192
16193 2009-07-02  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16196
16197 2009-06-30  Bruno Haible  <bruno@clisp.org>
16198
16199         Reduce the number of uc_is_cased calls.
16200         * lib/unicase.h (casing_suffix_context_t): Add
16201         'first_char_except_ignorable' field.
16202         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16203         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16204         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16205         Update initializer.
16206         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16207         case-ignorable characters.
16208         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16209         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16210         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16211         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16212         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16213
16214 2009-06-30  Bruno Haible  <bruno@clisp.org>
16215
16216         Tests for module 'unicase/ignorable'.
16217         * modules/unicase/ignorable-tests: New file.
16218         * tests/unicase/test-ignorable.c: New file, generated by
16219         gen-uni-tables.
16220
16221         Tests for module 'unicase/cased'.
16222         * modules/unicase/cased-tests: New file.
16223         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16224         * tests/unicase/test-predicate-part1.h: New file, derived from
16225         tests/unictype/test-predicate-part1.h.
16226         * tests/unicase/test-predicate-part2.h: New file, same as
16227         tests/unictype/test-predicate-part2.h.
16228
16229         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16230         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16231         (output_casing_properties): New function.
16232         (main): Call it.
16233         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16234         * lib/unicase/cased.c: Include unictype/bitmap.h.
16235         (uc_is_cased): Define through a bitmap lookup.
16236         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16237         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16238         (uc_is_case_ignorable): Define through a bitmap lookup.
16239         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16240         lib/unictype/bitmap.h.
16241         (Depends-on): Add inline. Clean up.
16242         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16243         lib/unictype/bitmap.h.
16244         (Depends-on): Add inline. Clean up.
16245         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16246         recognition.
16247         * tests/unicase/test-u16-tolower.c (main): Likewise.
16248         * tests/unicase/test-u32-tolower.c (main): Likewise.
16249
16250 2009-06-30  Bruno Haible  <bruno@clisp.org>
16251
16252         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16253         * lib/unicase/u16-casemap.c: Likewise.
16254         * lib/unicase/u32-casemap.c: Likewise.
16255
16256 2009-06-29  Bruno Haible  <bruno@clisp.org>
16257
16258         Define u32_casefold as a wrapper around u32_ct_casefold.
16259         * lib/unicase/u32-casefold.c: Update.
16260         * modules/unicase/u32-casefold (Depends-on): Add
16261         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16262         unicase/empty-suffix-context. Clean up.
16263
16264         Define u16_casefold as a wrapper around u16_ct_casefold.
16265         * lib/unicase/u16-casefold.c: Update.
16266         * modules/unicase/u16-casefold (Depends-on): Add
16267         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16268         unicase/empty-suffix-context. Clean up.
16269
16270         Define u8_casefold as a wrapper around u8_ct_casefold.
16271         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16272         * lib/unicase/u8-casefold.c: Update.
16273         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16274         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16275
16276         Define u32_totitle as a wrapper around u32_ct_totitle.
16277         * lib/unicase/u32-totitle.c: Update.
16278         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16279         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16280
16281         Define u16_totitle as a wrapper around u16_ct_totitle.
16282         * lib/unicase/u16-totitle.c: Update.
16283         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16284         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16285
16286         Define u8_totitle as a wrapper around u8_ct_totitle.
16287         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16288         functions.
16289         (FUNC): Delegate to U_CT_TOTITLE.
16290         * lib/unicase/u8-totitle.c: Update.
16291         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16292         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16293
16294         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16295         invocation.
16296         * modules/unicase/u32-tolower (Depends-on): Add
16297         unicase/empty-prefix-context, unicase/empty-suffix-context.
16298
16299         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16300         invocation.
16301         * modules/unicase/u16-tolower (Depends-on): Add
16302         unicase/empty-prefix-context, unicase/empty-suffix-context.
16303
16304         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16305         * modules/unicase/u8-tolower (Depends-on): Add
16306         unicase/empty-prefix-context, unicase/empty-suffix-context.
16307
16308         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16309         invocation.
16310         * modules/unicase/u32-toupper (Depends-on): Add
16311         unicase/empty-prefix-context, unicase/empty-suffix-context.
16312
16313         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16314         invocation.
16315         * modules/unicase/u16-toupper (Depends-on): Add
16316         unicase/empty-prefix-context, unicase/empty-suffix-context.
16317
16318         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16319         * modules/unicase/u8-toupper (Depends-on): Add
16320         unicase/empty-prefix-context, unicase/empty-suffix-context.
16321
16322         New module 'unicase/u32-ct-casefold'.
16323         * lib/unicase/u32-ct-casefold.c: New file.
16324         * modules/unicase/u32-ct-casefold: New file.
16325
16326         New module 'unicase/u16-ct-casefold'.
16327         * lib/unicase/u16-ct-casefold.c: New file.
16328         * modules/unicase/u16-ct-casefold: New file.
16329
16330         New module 'unicase/u8-ct-casefold'.
16331         * lib/unicase/u8-ct-casefold.c: New file.
16332         * lib/unicase/u-ct-casefold.h: New file, derived from
16333         lib/unicase/u-casefold.h.
16334         * modules/unicase/u8-ct-casefold: New file.
16335
16336         New module 'unicase/u32-ct-totitle'.
16337         * lib/unicase/u32-ct-totitle.c: New file.
16338         * modules/unicase/u32-ct-totitle: New file.
16339
16340         New module 'unicase/u16-ct-totitle'.
16341         * lib/unicase/u16-ct-totitle.c: New file.
16342         * modules/unicase/u16-ct-totitle: New file.
16343
16344         New module 'unicase/u8-ct-totitle'.
16345         * lib/unicase/u8-ct-totitle.c: New file.
16346         * lib/unicase/u-ct-totitle.h: New file, derived from
16347         lib/unicase/u-totitle.h.
16348         * modules/unicase/u8-ct-totitle: New file.
16349
16350         New module 'unicase/u32-ct-tolower'.
16351         * lib/unicase/u32-ct-tolower.c: New file.
16352         * modules/unicase/u32-ct-tolower: New file.
16353
16354         New module 'unicase/u16-ct-tolower'.
16355         * lib/unicase/u16-ct-tolower.c: New file.
16356         * modules/unicase/u16-ct-tolower: New file.
16357
16358         New module 'unicase/u8-ct-tolower'.
16359         * lib/unicase/u8-ct-tolower.c: New file.
16360         * modules/unicase/u8-ct-tolower: New file.
16361
16362         New module 'unicase/u32-ct-toupper'.
16363         * lib/unicase/u32-ct-toupper.c: New file.
16364         * modules/unicase/u32-ct-toupper: New file.
16365
16366         New module 'unicase/u16-ct-toupper'.
16367         * lib/unicase/u16-ct-toupper.c: New file.
16368         * modules/unicase/u16-ct-toupper: New file.
16369
16370         New module 'unicase/u8-ct-toupper'.
16371         * lib/unicase/u8-ct-toupper.c: New file.
16372         * modules/unicase/u8-ct-toupper: New file.
16373
16374         Add context arguments to u*_casemap functions.
16375         * lib/unicase/unicasemap.h: Include unicase.h.
16376         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16377         suffix_context arguments.
16378         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16379         functions.
16380         (FUNC): Add prefix_context and suffix_context arguments. Use
16381         uc_is_cased and uc_is_case_ignorable.
16382         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16383         * lib/unicase/u16-casemap.c: Likewise.
16384         * lib/unicase/u32-casemap.c: Likewise.
16385         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16386         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16387         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16388         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16389         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16390         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16391
16392         New module 'unicase/u32-suffix-context'.
16393         * lib/unicase/u32-suffix-context.c: New file.
16394         * modules/unicase/u32-suffix-context: New file.
16395
16396         New module 'unicase/u16-suffix-context'.
16397         * lib/unicase/u16-suffix-context.c: New file.
16398         * modules/unicase/u16-suffix-context: New file.
16399
16400         New module 'unicase/u8-suffix-context'.
16401         * lib/unicase/u8-suffix-context.c: New file.
16402         * lib/unicase/u-suffix-context.h: New file.
16403         * modules/unicase/u8-suffix-context: New file.
16404
16405         New module 'unicase/empty-suffix-context'.
16406         * lib/unicase/empty-suffix-context.c: New file.
16407         * modules/unicase/empty-suffix-context: New file.
16408
16409         New module 'unicase/u32-prefix-context'.
16410         * lib/unicase/u32-prefix-context.c: New file.
16411         * modules/unicase/u32-prefix-context: New file.
16412
16413         New module 'unicase/u16-prefix-context'.
16414         * lib/unicase/u16-prefix-context.c: New file.
16415         * modules/unicase/u16-prefix-context: New file.
16416
16417         New module 'unicase/u8-prefix-context'.
16418         * lib/unicase/u8-prefix-context.c: New file.
16419         * lib/unicase/u-prefix-context.h: New file.
16420         * lib/unicase/context.h: New file.
16421         * modules/unicase/u8-prefix-context: New file.
16422
16423         New module 'unicase/empty-prefix-context'.
16424         * lib/unicase/empty-prefix-context.c: New file.
16425         * modules/unicase/empty-prefix-context: New file.
16426
16427         New module 'unicase/ignorable'.
16428         * lib/unicase/ignorable.c: New file.
16429         * modules/unicase/ignorable: New file.
16430
16431         New module 'unicase/cased'.
16432         * lib/unicase/caseprop.h: New file.
16433         * lib/unicase/cased.c: New file.
16434         * modules/unicase/cased: New file.
16435
16436         New functions for case mapping of substrings.
16437         * lib/unicase.h (casing_prefix_context_t): New type.
16438         (unicase_empty_prefix_context): New variable.
16439         (u8_casing_prefix_context, u16_casing_prefix_context,
16440         u32_casing_prefix_context, u8_casing_prefixes_context,
16441         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16442         declarations.
16443         (casing_suffix_context_t): New type.
16444         (unicase_empty_suffix_context): New variable.
16445         (u8_casing_suffix_context, u16_casing_suffix_context,
16446         u32_casing_suffix_context, u8_casing_suffixes_context,
16447         u16_casing_suffixes_context, u32_casing_suffixes_context,
16448         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16449         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16450         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16451         declarations.
16452
16453 2009-06-28  Jim Meyering  <meyering@redhat.com>
16454
16455         boostrap: indent only with spaces
16456         * build-aux/bootstrap: Indent only with spaces, never TABs.
16457
16458         bootstrap: split long lines
16459         * build-aux/bootstrap: Keep line length < 80.
16460
16461         bootstrap: sync from coreutils
16462         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16463         just as autoreconf does.  Verify a list of prerequisite
16464         package-name,version-number pairs if defined in bootstrap.conf.
16465         Refer to README-prereq, if prerequisites are not satisfied.
16466
16467 2009-06-27  Eric Blake  <ebb9@byu.net>
16468
16469         tests: add test for bogus NULL definition
16470         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16471         * tests/test-stdlib.c: Likewise.
16472         * tests/test-string.c: Likewise.
16473         * tests/test-locale.c: Likewise.
16474         * tests/test-unistd.c: Likewise.
16475         * modules/stdio-tests (Depends-on): Add verify.
16476         * modules/stdlib-tests (Depends-on): Likewise.
16477         * modules/string-tests (Depends-on): Likewise.
16478         * modules/locale-tests (Depends-on): Likewise.
16479         * modules/unistd-tests (Depends-on): Likewise.
16480
16481 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16482
16483         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16484         self-explaining comment.
16485         * m4/selinux-selinux-h: Update serial.
16486         (gl_LIBSELINUX): New macro, adding a warning for missing development
16487         packages to code extracted from...
16488         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16489         Add warning for missing development packages here, too.
16490
16491 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16492
16493         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16494
16495 2009-06-25  Eric Blake  <ebb9@byu.net>
16496
16497         version-etc: fix regression
16498         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16499         gcc.
16500         (version_etc): Use it, to catch bugs with trailing NULL.
16501         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16502         (version_etc_va): Fix logic bug.
16503         * modules/version-etc-tests: Add test.
16504         * tests/test-version-etc.c: New file.
16505         * tests/test-version-etc.sh: Likewise.
16506
16507 2009-06-25  Sam Steingold  <sds@gnu.org>
16508
16509         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16510         mbtowc declaration.
16511
16512 2009-06-25  Eric Blake  <ebb9@byu.net>
16513
16514         fpurge: migrate into <stdio.h>
16515         * lib/fpurge.h: Delete...
16516         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16517         * lib/fpurge.c (fpurge): Change declaring header.
16518         * modules/fpurge (Files): Drop deleted file.
16519         (Depends-on): Add stdio.
16520         (configure.ac): Set witness.
16521         * modules/stdio (Makefile.am): Support fpurge macros.
16522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16523         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16524         * lib/fflush.c: Update client.
16525         * tests/test-fpurge.c: Likewise.
16526         * NEWS: Mention the change.
16527
16528 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16529
16530         * lib/argp-version-etc.c (program_authors): Add const
16531         qualifier.
16532         * lib/version-etc.c: Fix typos in the comments.
16533         * modules/argp-version-etc: Depends on version-etc.
16534
16535 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16536
16537         argp-version-etc: new module.
16538
16539         * lib/argp-version-etc.c: New file.
16540         * lib/argp-version-etc.h: New file.
16541         * modules/argp-version-etc: New file.
16542         * modules/argp-version-etc-tests: New file.
16543         * tests/test-argp-version-etc.c: New test.
16544         * tests/test-argp-version-etc-1.sh: New test.
16545
16546 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16547
16548         Provide additional interfaces and documentation for version-etc
16549         module.
16550
16551         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16552         interfaces.
16553         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16554         prototypes.
16555
16556 2009-06-24  Bruno Haible  <bruno@clisp.org>
16557
16558         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16559         HAVE_LIB${NAME} macro.
16560         Reported by Sam Steingold <sds@gnu.org>.
16561
16562 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16563
16564         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16565         needed.
16566
16567 2009-06-21  Bruno Haible  <bruno@clisp.org>
16568
16569         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16570         work.
16571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16572         together with LIB${NAME}, LTLIB${NAME}.
16573         Reported by Sam Steingold <sds@gnu.org>.
16574
16575 2009-06-20  Jim Meyering  <meyering@redhat.com>
16576
16577         tests: make sc_require_test_exit_idiom more generic
16578         * top/maint.mk (Exit_witness_file): New overridable variable.
16579         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16580         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16581
16582 2009-06-19  Jim Meyering  <meyering@redhat.com>
16583
16584         hash: reverse order of src/dst parameters in an internal interface
16585         * lib/hash.c (transfer_entries): Reverse order of parameters to
16586         put DST before SRC.  Adjust callers.
16587
16588         tests: test-hash: avoid wholesale duplication
16589         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16590         Instead, use a loop and add a single conditional.
16591
16592         tests: test-hash: allow seed selection via a command line argument
16593         * tests/test-hash.c (get_seed): New function.
16594         (main): Use it.
16595
16596 2009-06-19  Eric Blake  <ebb9@byu.net>
16597
16598         hash: avoid memory leak on allocation failure
16599         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16600         failure.  Factor repeated algorithm...
16601         (transfer_entries): ...into new helper routine.
16602         (hash_delete): React to hash_rehash return value.
16603
16604         hash: reduce memory pressure in hash_rehash no-op case
16605         * lib/hash.c (next_prime): Avoid overflow.
16606         (hash_initialize): Factor bucket size computation...
16607         (compute_bucket_size): ...into new helper function.
16608         (hash_rehash): Use new function and open coding to reduce memory
16609         pressure, and avoid a memory leak in USE_OBSTACK code.
16610         Reported by Jim Meyering.
16611
16612 2009-06-18  Eric Blake  <ebb9@byu.net>
16613
16614         hash: make rotation more obvious
16615         * modules/hash (Depends-on): Add bitrotate and stdint.
16616         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16617         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16618         (SIZE_MAX): Rely on headers for definition.
16619         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16620         (raw_hasher): Use rotr_sz.
16621         Suggested by Jim Meyering.
16622
16623         hash: fix memory leak in last patch
16624         * lib/hash.c (hash_rehash): Avoid memory leak.
16625
16626         hash: avoid no-op rehashing
16627         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16628
16629         hash: provide default callback functions
16630         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16631         (hash_initialize): Use them as defaults.
16632         * tests/test-hash.c (main): Test this.
16633
16634         hash: minor optimization
16635         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16636         when possible.
16637         (hash_initialize): Document this promise.
16638         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16639         * tests/test-hash.c (hash_compare_strings): Test this.
16640
16641 2009-06-18  Bruno Haible  <bruno@clisp.org>
16642
16643         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16644         going to be replaced anyway.
16645
16646 2009-06-18  Bruno Haible  <bruno@clisp.org>
16647
16648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16649         in one place.
16650         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16651         be replaced anyway.
16652
16653 2009-06-18  Eric Blake  <ebb9@byu.net>
16654
16655         hash: check for resize before insertion
16656         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16657         threshold before insertion, so that a pathological hash_rehash
16658         that fills every bucket can still trigger another rehash.
16659
16660 2009-06-18  Jim Meyering  <meyering@redhat.com>
16661
16662         hash-tests: add a loop around the small tests
16663         * tests/test-hash.c (main): Repeat small tests with selected
16664         small initial table sizes.
16665
16666 2009-06-17  Eric Blake  <ebb9@byu.net>
16667
16668         hash: minor cleanups
16669         * lib/hash.h (hash_entry): Make opaque, by moving...
16670         * lib/hash.c (hash_entry): ...here.
16671         (hash_insert): Clarify restrictions on what can be inserted.
16672         (hash_get_next): Clarify when it is safe to remove an element
16673         during traversal.
16674         (check_tuning): Skip verification when tuning is known safe.
16675         (hash_initialize): Clarify restrictions on tuning.
16676
16677 2009-06-17  Jim Meyering  <jim@meyering.net>
16678         and Eric Blake  <ebb9@byu.net>
16679
16680         hash-tests: new module
16681         * modules/hash-tests: New file.
16682         * tests/test-hash.c: New file.
16683
16684 2009-06-17  Eric Blake  <ebb9@byu.net>
16685
16686         strstr-simple: document new module
16687         * MODULES.html.sh: Document new module.
16688
16689         strstr, strcasestr: replace on platforms with broken memchr
16690         * modules/strstr: Split into...
16691         * modules/strstr-simple: ...new module that does not care about
16692         performance, but does care about glibc bug.
16693         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16694         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16695         if platform memchr is broken, per Debian bug 521737.
16696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16697         memchr.
16698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16699         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16700         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16701         * modules/mountlist (Depends-on): Add strstr-simple.
16702         * modules/gen-uni-tables (Depends-on): Likewise.
16703         * modules/argz (Depends-on): Add strstr.
16704
16705 2009-06-17  Bruno Haible  <bruno@clisp.org>
16706
16707         * modules/posix_spawn-internal (Depends-on): Add errno.
16708
16709 2009-06-17  Bruno Haible  <bruno@clisp.org>
16710
16711         Define missing ESTALE on Interix 3.5.
16712         * lib/errno.in.h (ESTALE): Assign a value if missing.
16713         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16714         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16715         missing.
16716         * doc/posix-headers/errno.texi: Mention the Interix bug.
16717         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16718
16719 2009-06-15  Eric Blake  <ebb9@byu.net>
16720
16721         memchr, memchr2: add valgrind exception
16722         * lib/memchr.valgrind: New file.
16723         * lib/memchr2.valgrind: New file.
16724         * modules/memchr (Files): Distribute valgrind file.
16725         * modules/memchr2 (Files): Likewise.
16726
16727         docs: memchr is no longer obsolete
16728         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16729         * lib/string.in.h (memchr): Simplify logic.
16730
16731 2009-06-14  Jim Meyering  <meyering@redhat.com>
16732
16733         link-follow: fix the "checking..." message to not mention trailing slash
16734         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16735         never considered trailing slashes.
16736
16737 2009-06-14  Bruno Haible  <bruno@clisp.org>
16738
16739         * m4/memchr.m4: Mention also the bug on IA-64.
16740         * doc/posix-functions/memchr.texi: Likewise.
16741
16742 2009-06-12  Eric Blake  <ebb9@byu.net>
16743
16744         memchr: detect broken x86_64 and alpha implementations
16745         * modules/memchr-tests (Depends-on): Move mmap detection...
16746         * modules/memchr (Depends-on): ...here.
16747         (configure.ac): Set indicator.
16748         * lib/string.in.h (memchr): Declare replacement.
16749         * modules/string (Makefile.am): Trigger replacement.
16750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16751         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16752         bugs.
16753         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16754         * modules/getpagesize (License): Relax license.
16755
16756 2009-06-11  Bruno Haible  <bruno@clisp.org>
16757
16758         * lib/idpriv.h: Add more references.
16759
16760 2009-06-08  Bruno Haible  <bruno@clisp.org>
16761
16762         Tests for module 'idpriv-droptemp'.
16763         * modules/idpriv-droptemp-tests: New file.
16764         * tests/test-idpriv-droptemp.sh: New file.
16765         * tests/test-idpriv-droptemp.su.sh: New file.
16766         * tests/test-idpriv-droptemp.c: New file.
16767
16768         New module 'idpriv-droptemp'.
16769         * lib/idpriv-droptemp.c: New file.
16770         * modules/idpriv-droptemp: New file.
16771
16772 2009-06-08  Bruno Haible  <bruno@clisp.org>
16773
16774         Tests for module 'idpriv-drop'.
16775         * modules/idpriv-drop-tests: New file.
16776         * tests/test-idpriv-drop.sh: New file.
16777         * tests/test-idpriv-drop.su.sh: New file.
16778         * tests/test-idpriv-drop.c: New file.
16779
16780         New module 'idpriv-drop'.
16781         * lib/idpriv.h: New file.
16782         * lib-idpriv-drop.c: New file.
16783         * m4/idpriv.m4: New file.
16784         * modules/idpriv-drop: New file.
16785
16786 2009-06-08  Bruno Haible  <bruno@clisp.org>
16787
16788         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16790         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16791         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16792         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16793         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16794         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16795
16796 2009-06-08  Eric Blake  <ebb9@byu.net>
16797
16798         test-strstr: use memory fence, when possible
16799         * tests/test-strstr.c (main): Use memory fence, in order to be
16800         more likely to trigger Debian bug 521737.
16801         * modules/strstr-tests (Files): Pull in additional files.
16802
16803         memchr: no longer obsolete, for wider field testing
16804         * modules/memchr (Status, Notice): Delete, this module is no
16805         longer obsolete.
16806         * modules/vasnprintf (Depends-on): Add memchr.
16807
16808 2009-06-07  Jim Meyering  <meyering@redhat.com>
16809
16810         hash: declare some functions with the warn_unused_result attribute
16811         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16812
16813 2009-06-07  Bruno Haible  <bruno@clisp.org>
16814
16815         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16816         Reported by Eric Blake.
16817
16818 2009-06-06  Eric Blake  <ebb9@byu.net>
16819
16820         test-alignof: fix typo with long double
16821         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16822         compiler error.
16823
16824 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16825
16826         Escape non-texinfo { and }s.
16827         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16828         markup error.
16829
16830 2009-06-04  Jim Meyering  <meyering@redhat.com>
16831
16832         gitlog-to-changelog: don't infloop on an empty commit log
16833         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16834         Reported by Boris Petersen <transacid@centerim.org>.
16835
16836 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16837
16838         version-etc: extend for packagers
16839         Add three new configure options, intended for packagers:
16840           --with-packager="packager name"
16841           --with-packager-version="packager-specific version"
16842           --with-packager-bug-reports="packager bug reporting"
16843         An example with coreutils:
16844           $ ./configure \
16845             --with-packager=Gentoo \
16846             --with-packager-bug-report=http://bugs.gentoo.org/ \
16847             --with-packager-version="patchset 1.6"
16848           $ ./src/ls --version | head -n2
16849           ls (GNU coreutils) 7.1-dirty
16850           Packaged by Gentoo (patchset 1.6)
16851         Note that the bug reporting info via --help doesn't show up because
16852         coreutils uses its own custom emit_bug_reporting_address() implementation
16853         in src/system.h.  If it didn't, it'd look like:
16854           $ ./src/ls --help | tail -n4
16855           Report bugs to <bug-coreutils@gnu.org>.
16856           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16857           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16858           General help using GNU software: <http://www.gnu.org/gethelp/>.
16859         * lib/version-etc.c: Print new information, if provided.
16860         * m4/version-etc.m4: New file.
16861         * modules/version-etc (Files): Add m4/version-etc.m4.
16862         (configure.ac): Add gl_VERSION_ETC.
16863
16864 2009-05-31  Bruno Haible  <bruno@clisp.org>
16865
16866         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16867         and 'int64_t'.
16868         * modules/alignof-tests (Dependencies): Add stdint.
16869         Reported by Eric Blake.
16870
16871 2009-05-31  Bruno Haible  <bruno@clisp.org>
16872
16873         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16874         restriction due to compiler bugs.
16875         Reported by Eric Blake.
16876
16877 2009-05-31  Simon Josefsson  <simon@josefsson.org>
16878             Bruno Haible  <bruno@clisp.org>
16879
16880         Fix test-alignof failure.
16881         * lib/alignof.h (alignof_slot): New macro.
16882         (alignof_type): New macro, with the same semantics as the previous
16883         'alignof'.
16884         (alignof): Alias to alignof_slot.
16885         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
16886         check that the results are usable as constant expressions.
16887
16888 2009-05-31  Bruno Haible  <bruno@clisp.org>
16889
16890         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
16891         * tests/test-memchr.c (main): Check that memchr does not read past the
16892         first occurrence of the byte.
16893         * tests/test-strstr.c (main): Update comment.
16894         Suggested by Eric Blake.
16895
16896 2009-05-30  Bruno Haible  <bruno@clisp.org>
16897
16898         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
16899         detail how to use dumpbin.
16900         Reported by David Byron <dbyron@dbyron.com>.
16901
16902 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16903
16904         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
16905
16906 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16907
16908         * m4/manywarnings.m4: Add GCC 4.4 warnings.
16909
16910 2009-05-28  Bruno Haible  <bruno@clisp.org>
16911
16912         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
16913         build-aux/ files.
16914
16915 2009-05-28  Simon Josefsson  <simon@josefsson.org>
16916
16917         * gnulib-tool (func_import): Transform license on build-aux/ files too.
16918
16919 2009-05-27  Simon Josefsson  <simon@josefsson.org>
16920
16921         * gnulib-tool (sed_transform_main_lib_file)
16922         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
16923         regexps.
16924
16925 2009-05-26  Simon Josefsson  <simon@josefsson.org>
16926
16927         * tests/test-strstr.c: Add another self-test.
16928         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
16929         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
16930
16931 2009-05-23  Bruno Haible  <bruno@clisp.org>
16932
16933         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
16934         change.
16935
16936 2009-05-21  Bruno Haible  <bruno@clisp.org>
16937
16938         Simplify use of mode_t varargs.
16939         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
16940         uses 'mode_t' or 'int'.
16941         * lib/openat.c (openat): Likewise.
16942         * lib/open-safer.c (open_safer): Likewise.
16943         * m4/mode_t.m4: New file.
16944         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
16945         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
16946         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
16947         * modules/open (Files): Add m4/mode_t.m4.
16948         * modules/openat (Files): Likewise.
16949         * modules/fcntl-safer (Files): Likewise.
16950         Suggested by Eric Blake.
16951
16952 2009-05-21  Pádraig Brady  <P@draigbrady.com>
16953
16954         * doc/glibc-functions/fallocate.texi: New file.
16955         * doc/gnulib.texi: Include it.
16956
16957 2009-05-21  Eric Blake  <ebb9@byu.net>
16958             Bruno Haible  <bruno@clisp.org>
16959
16960         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
16961         invocations.
16962         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16963
16964 2009-05-21  Eric Blake  <ebb9@byu.net>
16965             Bruno Haible  <bruno@clisp.org>
16966
16967         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
16968         include_next. Fix of 2008-11-20 commit.
16969         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
16970         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
16971         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
16972         NEXT_MATH_H.
16973         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
16974         instead of NEXT_MATH_H.
16975
16976 2009-05-21  Bruno Haible  <bruno@clisp.org>
16977
16978         Avoid redefinition warnings for SIZE_MAX.
16979         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
16980         Reported by Simon Josefsson.
16981
16982 2009-05-21  Bruno Haible  <bruno@clisp.org>
16983
16984         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
16985         AC_CACHE_VAL.
16986
16987 2009-05-20  Bruno Haible  <bruno@clisp.org>
16988
16989         Make zeroptr.h work on mingw.
16990         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16991         mprotect.
16992         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
16993         * modules/memchr2-tests (configure.ac): Likewise.
16994         * modules/memcmp-tests (configure.ac): Likewise.
16995         * modules/memmem-tests (configure.ac): Likewise.
16996         * modules/memrchr-tests (configure.ac): Likewise.
16997         Reported by Simon Josefsson.
16998
16999 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17000
17001         * tests/test-glob.c: Include string.h for strcmp prototype.
17002
17003 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17004
17005         * modules/getdelim (Depends-on): Add explicit stdint, although it
17006         was implicitly already pulled in via realloc-posix.
17007         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17008
17009 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17010
17011         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17012         G. Christensen" <tgc@jupiterrise.com>.
17013         * m4/sys_socket_h.m4: Check for sa_family_t.
17014         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17015         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17016         * tests/test-sys_socket.c: Check that sa_family_t works.
17017
17018 2009-05-18  Eric Blake  <ebb9@byu.net>
17019
17020         maint.mk: allow gnulib_dir in VPATH build
17021         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17022
17023 2009-05-15  Jim Meyering  <meyering@redhat.com>
17024
17025         maint.mk: Give gnulib_dir a default definition.
17026         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17027         Thus, most packages no longer need to specify this variable in cfg.mk
17028
17029 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17030
17031         rename.m4: fix typos that would make non-mingw cross-configure fail
17032         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17033
17034 2009-05-13  Eric Blake  <ebb9@byu.net>
17035
17036         mmap-anon: avoid out-of-order autoconf expansion
17037         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17038         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17039         * modules/memchr-tests (Depends-on): Add extensions.
17040         * modules/memchr2-tests (Depends-on): Add extensions.
17041         * modules/memcmp-tests (Depends-on): Add extensions.
17042         * modules/memmem-tests (Depends-on): Add extensions.
17043         * modules/memrchr-tests (Depends-on): Add extensions.
17044
17045 2009-05-13  Bruno Haible  <bruno@clisp.org>
17046
17047         Make some tests ISO C 99 compliant.
17048         * tests/zerosize-ptr.h: New file.
17049         * tests/test-memchr.c: Include zerosize-ptr.h.
17050         (main): Use a zero-size object pointer instead of NULL.
17051         * tests/test-memchr2.c: Include zerosize-ptr.h.
17052         (main): Use a zero-size object pointer instead of NULL.
17053         * tests/test-memcmp.c: Include zerosize-ptr.h.
17054         (main): Use a zero-size object pointer instead of NULL.
17055         * tests/test-memmem.c: Include zerosize-ptr.h.
17056         (main): Use a zero-size object pointer instead of NULL.
17057         * tests/test-memrchr.c: Include zerosize-ptr.h.
17058         (main): Use a zero-size object pointer instead of NULL.
17059         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17060         m4/mmap-anon.m4.
17061         (Depends-on): Add getpagesize.
17062         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17063         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17064         m4/mmap-anon.m4.
17065         (Depends-on): Add getpagesize.
17066         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17067         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17068         m4/mmap-anon.m4.
17069         (Depends-on): Add getpagesize.
17070         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17071         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17072         m4/mmap-anon.m4.
17073         (Depends-on): Add getpagesize.
17074         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17075         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17076         m4/mmap-anon.m4.
17077         (Depends-on): Add getpagesize.
17078         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17079
17080 2009-05-12  Bruno Haible  <bruno@clisp.org>
17081
17082         Tests for module 'alignof'.
17083         * modules/alignof-tests: New file.
17084         * tests/test-alignof.c: New file.
17085
17086 2009-05-12  Bruno Haible  <bruno@clisp.org>
17087
17088         Fix alignof macro.
17089         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17090         vendor compilers that are always correct.
17091
17092 2009-05-12  Bruno Haible  <bruno@clisp.org>
17093
17094         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17095         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17096         not whether its fully works.
17097
17098 2009-05-12  Bruno Haible  <bruno@clisp.org>
17099
17100         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17101
17102 2009-05-12  Jim Meyering  <meyering@redhat.com>
17103
17104         * top/maint.mk: Adjust backslash alignment.
17105
17106 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17107
17108         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17109
17110 2009-05-11  Eric Blake  <ebb9@byu.net>
17111
17112         argp: avoid undefined behavior
17113         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17114         macros.
17115
17116 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17117
17118         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17119         user.name to prevent git commit from complaining.
17120
17121 2009-05-10  Bruno Haible  <bruno@clisp.org>
17122
17123         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17124         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17125         it rewrites every file name only once.
17126         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17127
17128 2009-05-08  Bruno Haible  <bruno@clisp.org>
17129
17130         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17131         instead of 'max'.
17132
17133 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17134
17135         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17136         sockaddr_storage test.
17137
17138 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17139
17140         * modules/sys_socket (Makefile.am): Substitute
17141         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17142         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17143         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17144         * tests/test-sys_socket.c: Check sockaddr_storage.
17145
17146 2009-05-08  Bruno Haible  <bruno@clisp.org>
17147
17148         New module 'alignof'.
17149         * lib/alignof.h: New file.
17150         * modules/alignof: New file.
17151
17152 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17153             Bruno Haible  <bruno@clisp.org>
17154
17155         Fix test-file-has-acl on FreeBSD.
17156         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17157         mask is implicitly added.
17158         * tests/test-file-has-acl.c: Include <signal.h>.
17159         (main): Terminate the test after 5 seconds.
17160         * modules/acl-tests (configure.ac): Check for alarm function.
17161
17162 2009-05-04  Bruno Haible  <bruno@clisp.org>
17163
17164         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17166         * modules/errno (configure.ac): Drop AC_REQUIRE.
17167         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17168         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17169
17170 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17171
17172         * modules/glob-tests: New module.
17173         * tests/test-glob.c: Add.
17174
17175 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17176
17177         * modules/fnmatch-tests: New module.
17178         * tests/test-fnmatch.c: Add.
17179
17180 2009-05-04  Eric Blake  <ebb9@byu.net>
17181
17182         maint: make the new no-submodule-changes rule VPATH-safe
17183         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17184
17185 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17186             Bruno Haible  <bruno@clisp.org>
17187
17188         acl: Fix infinite loop on FreeBSD.
17189         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17190         of return value from acl_get_entry.
17191         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17192         Likewise.
17193
17194 2009-05-03  Bruno Haible  <bruno@clisp.org>
17195
17196         * lib/acl-internal.h (acl_entries): Clarify return value.
17197         * lib/acl_entries.c (acl_entries): Likewise.
17198
17199 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17200
17201         Bug fix in acl module.
17202         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17203
17204 2009-05-03  Bruno Haible  <bruno@clisp.org>
17205
17206         Create gperf-generated file in the source dir, not in the build dir.
17207         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17208         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17209         * modules/unicase/locale-language (unicase/locale-languages.h):
17210         Likewise.
17211         * modules/unicase/special-casing (unicase/special-casing-table.h):
17212         Likewise.
17213         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17214         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17215         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17216         Reported by Ralf Wildenhues.
17217
17218 2009-05-03  Bruno Haible  <bruno@clisp.org>
17219
17220         * modules/fnmatch (Description, configure.ac): Taken from
17221         fnmatch-posix.
17222         * modules/fnmatch-posix: Turn into a symbolic reference to the
17223         'fnmatch' module, and deprecate.
17224         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17225
17226 2009-05-03  Bruno Haible  <bruno@clisp.org>
17227
17228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17229         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17230         Reported by Ralf Wildenhues.
17231
17232 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17233
17234         * m4/fnmatch.m4: Fix fnmatch re-define.
17235
17236 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17237
17238         priv-set: new module and tests; adapt write-any-file
17239         * lib/priv-set.c: New file.
17240         * lib/priv-set.h: New file.
17241         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17242         * lib/write-any-file.c: Simplify by using priv-set module.
17243         * m4/priv-set.m4: New file.
17244         * modules/priv-set: New file.
17245         * modules/unlinkdir: Add dependency on priv-set module.
17246         * modules/write-any-file: Likewise.
17247
17248         Tests for module 'priv-set'.
17249         * modules/priv-set-tests: New file.
17250         * tests/test-priv-set.c: New file.
17251
17252 2009-05-03  Jim Meyering  <meyering@redhat.com>
17253             Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17256         use the converted UTF-8 variant of the name instead.
17257
17258 2009-05-03  Jim Meyering  <meyering@redhat.com>
17259
17260         tests: tighten some getdate tests
17261         * tests/test-getdate.c (main): Tighten tests: require equality,
17262         not just greater than.  Set TZ envvar to UTC0.
17263
17264 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17265
17266         getdate: correctly interpret "next monday" when run on a Monday
17267         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17268         that e.g., "next tues" (when run on a tuesday) results in a date
17269         that is one week in the future, and not today's date.
17270         I.e., add a week when the wday is the same as the current one.
17271         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17272         and earlier by Martin Bernreuther and Jan Minář.
17273         * tests/test-getdate.c (main): Check that "next DAY" is always in
17274         the future and that "last DAY" is always in the past.
17275
17276 2009-05-02  Jim Meyering  <meyering@redhat.com>
17277
17278         build: ensure that a release build fails when a submodule is unclean
17279         * top/maint.mk (no-submodule-changes): New rule.
17280         (alpha beta major): Depend on it.
17281
17282 2009-05-02  Bruno Haible  <bruno@clisp.org>
17283
17284         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17285         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17286         shell variable gl_fnmatch_required to detect which variant is
17287         requested.
17288         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17289         gl_FUNC_FNMATCH_POSIX.
17290         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17291         exclude fnmatch-posix.
17292
17293 2009-05-02  Bruno Haible  <bruno@clisp.org>
17294
17295         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17296         * modules/mbsrtowcs (License): Change to LGPLv2+.
17297         * modules/strnlen1 (License): Likewise.
17298         Reported by Simon Josefsson.
17299
17300 2009-05-02  Bruno Haible  <bruno@clisp.org>
17301
17302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17303         "cross".
17304         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17305         gnulib-tool was called with option --source-base=lib.
17306
17307 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17308
17309         Use automake *-local hooks without commands, for extensibility.
17310         * modules/localcharset (Makefile.am): Rename install-exec-local
17311         rule to install-exec-localcharset, and make it a prerequisite of
17312         install-exec-local.  Likewise, rename the uninstall-local rule to
17313         uninstall-localcharset, and make it a prerequisite of the former.
17314
17315 2009-05-01  Bruno Haible  <bruno@clisp.org>
17316
17317         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17318         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17319         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17321         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17322         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17323         m4/locale-zh.m4, m4/codeset.m4.
17324
17325         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17326         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17327         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17328         m4/locale-zh.m4.
17329
17330         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17331         REPLACE_WCRTOMB if mbstate_t must be replaced.
17332         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17333         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17334
17335 2009-05-01  Bruno Haible  <bruno@clisp.org>
17336
17337         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17338         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17339         dngettext, dcngettext, textdomain, bindtextdomain,
17340         bind_textdomain_codeset): Undefine before redefining.
17341
17342 2009-04-30  Bruno Haible  <bruno@clisp.org>
17343
17344         Fix bug introduced on 2009-04-25.
17345         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17346         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17347         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17348         is defined.
17349         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17350         is defined.
17351         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17352         is defined.
17353         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17354
17355 2009-04-28  Bruno Haible  <bruno@clisp.org>
17356
17357         Comment tweaks.
17358         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17359         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17360         * lib/unicase.h (u*_casexfrm): Likewise.
17361         Reported by Paolo Bonzini.
17362
17363 2009-04-28  Bruno Haible  <bruno@clisp.org>
17364
17365         Fix a compilation error.
17366         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17367         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17368         Reported by Jim Meyering.
17369
17370 2009-04-27  Bruno Haible  <bruno@clisp.org>
17371
17372         New module 'libunistring'.
17373         * modules/libunistring: New file.
17374         * m4/libunistring.m4: New file.
17375         * MODULES.html.sh (Unicode string functions): Add it.
17376
17377 2009-04-27  Eric Blake  <ebb9@byu.net>
17378
17379         maint.mk: allow package-specific header to provide <config.h>
17380         * top/maint.mk (sc_require_config_h): New variable.
17381         (sc_require_config_h, sc_require_config_h_first): Use it.
17382
17383 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17384
17385         * top/maint.mk (sc_avoid_if_before_free): Except
17386         useless-if-before-free script.
17387
17388 2009-04-27  Eric Blake  <ebb9@byu.net>
17389
17390         maintainer-makefile: depend on all required helper scripts
17391         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17392         useless-if-before-free.
17393         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17394         version, rather than assuming gnulib checkout is available.
17395         Reported by Simen Josefsson.
17396
17397 2009-04-26  Bruno Haible  <bruno@clisp.org>
17398
17399         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17400         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17401         "../" or "..".
17402
17403 2009-04-26  Bruno Haible  <bruno@clisp.org>
17404
17405         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17406         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17407         AC_LIB_HAVE_LINKFLAGS.
17408
17409 2009-04-26  Bruno Haible  <bruno@clisp.org>
17410
17411         Simplify calling convention of u*_conv_from_encoding.
17412         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17413         u32_conv_from_encoding): Expect a resultbuf argument and return the
17414         result directly as a pointer.
17415         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17416         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17417         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17418         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17419         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17420         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17421         Update.
17422         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17423         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17424         * lib/vasnprintf.c (VASNPRINTF): Update.
17425         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17426         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17427         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17428         * NEWS: Mention the change.
17429
17430 2009-04-26  Bruno Haible  <bruno@clisp.org>
17431
17432         Simplify calling convention of u*_conv_to_encoding.
17433         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17434         u32_conv_to_encoding): Expect a resultbuf argument and return the
17435         result directly as a pointer.
17436         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17437         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17438         freeing scaled_offsets if mem_iconveha failed.
17439         * lib/unicase/u-casexfrm.h (FUNC): Update.
17440         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17441         * lib/vasnprintf.c (VASNPRINTF): Update.
17442         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17443         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17444         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17445         * NEWS: Mention the change.
17446
17447 2009-04-26  Bruno Haible  <bruno@clisp.org>
17448
17449         Avoid test failures on AIX and OSF/1.
17450         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17451         malloc(0).
17452         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17453         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17454         Likewise.
17455         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17456         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17457         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17458         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17459         * doc/posix-functions/malloc.texi: Document the portability problem
17460         related to malloc(0).
17461
17462 2009-04-26  Bruno Haible  <bruno@clisp.org>
17463
17464         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17465         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17466         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17467
17468 2009-04-25  Bruno Haible  <bruno@clisp.org>
17469
17470         Avoid link error when creating a namespace clean library.
17471         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17472         as macro with arguments if already defined as an alias.
17473         * lib/signbitf.c (gl_signbitf): Don't undefine.
17474         * lib/signbitd.c (gl_signbitd): Don't undefine.
17475         * lib/signbitl.c (gl_signbitl): Don't undefine.
17476
17477 2009-04-25  Jim Meyering  <meyering@redhat.com>
17478
17479         vc-list-files: fix another quoting bug
17480         * build-aux/vc-list-files: Avoid sed backslash expansion
17481         of pathological directory names.
17482
17483 2009-04-25  Eric Blake  <ebb9@byu.net>
17484
17485         vc-list-files: fix shell quoting error
17486         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17487         timestamp.
17488
17489 2009-04-25  Jim Meyering  <meyering@redhat.com>
17490
17491         vc-list-files: restore lost functionality with subdir argument
17492         * build-aux/vc-list-files: When given a non-"." sub-directory
17493         argument, substitute the $dir/ prefix back onto each resulting name.
17494         Otherwise, coreutils' root_tests check would fail.
17495
17496 2009-04-24  Eric Blake  <ebb9@byu.net>
17497
17498         vc-list-files: ignore git symlinks
17499         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17500         than ls-files, to ignore git symlinks.
17501
17502         maint.mk: import improvements from m4
17503         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17504         (move_if_change): Delete unused macro.
17505         (news-date-check, vc-diff-check): Support VPATH builds.
17506         (announcement): Likewise.  Split --bootstrap-tools list...
17507         (boostrap-tools): ...into separate list, which can be overridden
17508         in cfg.mk.
17509         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17510         requiring dependency on useless-if-before-free module.
17511         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17512         Support VPATH builds.
17513
17514 2009-04-24  Jim Meyering  <meyering@redhat.com>
17515
17516         maint.mk: remove coreutils-specific rules and variables
17517         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17518         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17519         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17520
17521         maint.mk: remove obsolete rule
17522         * top/maint.mk (rel-check): Remove rule.
17523         (WGET, WGETFLAGS): Remove now-unused variables.
17524
17525 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17526
17527         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17528         consistency.
17529
17530         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17531         '$(PATH_SEPARATOR)' instead of ':'.
17532
17533 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17534
17535         * lib/getopt1.c (main): Use 'const' for static array.
17536
17537 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17538
17539         * top/maint.mk: Sync with coreutils.
17540         * NEWS: Explain incompatibilities.
17541
17542 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17543             Bruno Haible  <bruno@clisp.org>
17544
17545         Fix cross-compilation results.
17546         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17547         statement, as third argument of AC_TRY_RUN.
17548         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17549         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17550         Likewise.
17551         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17552         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17553         Likewise.
17554         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17556         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17557
17558 2009-04-20  Bruno Haible  <bruno@clisp.org>
17559
17560         Avoid test failure on mingw.
17561         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17562
17563 2009-04-20  Bruno Haible  <bruno@clisp.org>
17564
17565         Avoid compilation error on mingw.
17566         * modules/localename-tests (Depends-on): Add locale.
17567
17568 2009-04-19  Bruno Haible  <bruno@clisp.org>
17569
17570         Support for building a shared library on Windows platforms.
17571         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17572         (main): Test the presence of UNINORM_NFC here.
17573         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17574         (main): Test the presence of UNINORM_NFD here.
17575         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17576         (main): Test the presence of UNINORM_NFKC here.
17577         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17578         (main): Test the presence of UNINORM_NFKD here.
17579
17580 2009-04-19  Bruno Haible  <bruno@clisp.org>
17581
17582         Avoid a compiler warning.
17583         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17584         Change type of variable 'sequence'.
17585
17586 2009-04-19  Bruno Haible  <bruno@clisp.org>
17587
17588         * modules/configmake (Makefile.am): When the contents of configmake.h
17589         does not change, arrange to preserve its modification time.
17590
17591 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17592
17593         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17594         gettext domain.
17595
17596 2009-04-16  Jim Meyering  <meyering@redhat.com>
17597
17598         useless-if-before-free: improve conversion code
17599         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17600         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17601
17602 2009-04-14  Bruno Haible  <bruno@clisp.org>
17603
17604         * modules/fcntl (Depends-on): Add extensions.
17605         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17606
17607 2009-04-12  Ben Pfaff  <blp@gnu.org>
17608
17609         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17610         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17611
17612 2009-03-20  Ben Pfaff  <blp@gnu.org>
17613
17614         Make rename replace existing destinations on Windows.
17615         * m4/rename.m4: Add test for Mingw.
17616         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17617         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17618         * doc/posix-functions/rename.texi: Document.
17619
17620 2009-04-10  Bruno Haible  <bruno@clisp.org>
17621
17622         New include file "iconveh.h".
17623         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17624         * lib/striconveh.h: Include it.
17625         (enum iconv_ilseq_handler): Remove definition.
17626         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17627         striconveh.h.
17628         * lib/striconveha.c: Include striconveh.h.
17629         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17630         * modules/striconveh (Files): Add lib/iconveh.h.
17631         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17632         lib/striconveh.h.
17633
17634 2009-04-10  Bruno Haible  <bruno@clisp.org>
17635
17636         * lib/uniconv.h: Update comment.
17637
17638 2009-04-10  Bruno Haible  <bruno@clisp.org>
17639
17640         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17641         always.
17642         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17643         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17644         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17645         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17646         "unistring-notinline.h", so that the function gets defined always.
17647         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17648         * lib/unistr/u8-uctomb.c: Likewise.
17649         * lib/unistr/u16-mbtouc.c: Likewise.
17650         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17651         * lib/unistr/u16-uctomb.c: Likewise.
17652         * lib/unistr/u32-mbtouc.c: Likewise.
17653         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17654         * lib/unistr/u32-uctomb.c: Likewise.
17655
17656 2009-04-10  Bruno Haible  <bruno@clisp.org>
17657
17658         Mark 'utime' obsolete.
17659         * modules/utime (Status, Notice): New sections.
17660         Suggested by Jim Meyering.
17661
17662         Fix cross-compile guess for utime test.
17663         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17664         autoconf.
17665         * doc/posix-functions/utime.texi: Give more precisions.
17666         Reported by Jan <ipif@ymail.com>.
17667
17668 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17669
17670         filevercmp: correct today's change
17671         * lib/filevercmp.c: Also handle coreutils' test inputs.
17672         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17673
17674         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17675         for reporting it.
17676         * lib/filevercmp.c: Special handle for "", "." and "..".
17677         * tests/test-filevercmp.c: Enlarge the set suite.
17678
17679 2009-04-07  Jim Meyering  <meyering@redhat.com>
17680
17681         useless-if-before-free: show how to remove braced useless free, too
17682         * build-aux/useless-if-before-free: still only in a comment, though.
17683
17684 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17685
17686         maint.mk: import changes to syntax-check macros from coreutils
17687         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17688         Use them in the relevant macros.
17689
17690 2009-04-06  Bruno Haible  <bruno@clisp.org>
17691
17692         Fix unportable use of bit-fields.
17693         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17694         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17695         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17696
17697 2009-04-06  Bruno Haible  <bruno@clisp.org>
17698
17699         Avoid test failures on AIX and OSF/1.
17700         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17701         that malloc(0) = NULL.
17702         * tests/unicase/test-u8-tolower.c (check): Likewise.
17703         * tests/unicase/test-u8-totitle.c (check): Likewise.
17704         * tests/unicase/test-u8-toupper.c (check): Likewise.
17705         * tests/unicase/test-u16-casefold.c (check): Likewise.
17706         * tests/unicase/test-u16-tolower.c (check): Likewise.
17707         * tests/unicase/test-u16-totitle.c (check): Likewise.
17708         * tests/unicase/test-u16-toupper.c (check): Likewise.
17709         * tests/unicase/test-u32-casefold.c (check): Likewise.
17710         * tests/unicase/test-u32-tolower.c (check): Likewise.
17711         * tests/unicase/test-u32-totitle.c (check): Likewise.
17712         * tests/unicase/test-u32-toupper.c (check): Likewise.
17713         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17714         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17715         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17716         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17717         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17718         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17719         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17720         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17721         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17722         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17723         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17724         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17725
17726 2009-04-05  Bruno Haible  <bruno@clisp.org>
17727
17728         Work around an autoconf limitation.
17729         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17730         comment line if it would be longer than 3 KB.
17731
17732 2009-04-05  Bruno Haible  <bruno@clisp.org>
17733
17734         Avoid test failure with libiconv-1.13.
17735         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17736         of the expected test results.
17737
17738 2009-04-05  Bruno Haible  <bruno@clisp.org>
17739
17740         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17741         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17742         that it should be installed.
17743
17744 2009-04-05  Bruno Haible  <bruno@clisp.org>
17745
17746         * gnulib-tool: New option --copy-file.
17747         (func_usage): Document it.
17748         (func_dest_tmpfilename): Moved out of func_import.
17749         (func_add_file, func_update_file): New functions, extracted from
17750         func_import.
17751         (func_import): Update.
17752
17753 2009-04-05  Karl Berry  <karl@gnu.org>
17754
17755         * README: prominently mention gnulib-tool.
17756         Rearrange sections so getting the code is near the top.
17757
17758 2009-04-05  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/unicase.h: Mention u*_cmp2.
17761         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17762         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17763         * lib/unicase/ulc-casecmp.c: Likewise.
17764         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17765         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17766         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17767         unistr/u8-cmp.
17768         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17769         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17770         unistr/u16-cmp.
17771         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17772         unistr/u32-cmp.
17773
17774         * lib/uninorm.h: Mention u*_cmp2.
17775         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17776         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17777         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17778         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17779         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17780         unistr/u8-cmp.
17781         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17782         unistr/u16-cmp.
17783         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17784         unistr/u32-cmp.
17785
17786         New module 'unistr/u32-cmp2'.
17787         * lib/unistr/u32-cmp2.c: New file.
17788         * modules/unistr/u32-cmp2: New file.
17789
17790         New module 'unistr/u16-cmp2'.
17791         * lib/unistr/u16-cmp2.c: New file.
17792         * modules/unistr/u16-cmp2: New file.
17793
17794         New module 'unistr/u8-cmp2'.
17795         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17796         * lib/unistr/u8-cmp2.c: New file.
17797         * lib/unistr/u-cmp2.h: New file.
17798         * modules/unistr/u8-cmp2: New file.
17799
17800 2009-04-05  Bruno Haible  <bruno@clisp.org>
17801
17802         * lib/unictype.h (uc_property_is_valid): New macro.
17803         * tests/unictype/test-pr_byname.c (main): Use it.
17804
17805         * lib/unistr.h: Doc fixes.
17806         * lib/uniconv.h: Doc fixes.
17807         * lib/unictype.h: Doc fixes.
17808
17809 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         Port coreutils 7.2 to Solaris 8.
17812
17813         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17814         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17815         for Solaris 8.  This is a bit of a hack, as it means it's the
17816         caller's responsibility to add -lnsl if needed, but most likely it
17817         won't be needed since only getaddrinfo uses this and getaddrinfo
17818         isn't needed on Solaris 8.
17819
17820         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17821         problem to Solaris 8 encountered with coreutils 7.2, which
17822         resulted in a message "fnmatch.c:292: warning: passing argument 4
17823         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17824         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17825
17826 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17827
17828         * m4/ld-version-script.m4: Add FIXME comment.
17829
17830 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17831
17832         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17833         SOVERSION variable.
17834
17835 2009-04-02  Bruno Haible  <bruno@clisp.org>
17836
17837         * Makefile (info, html, dvi, pdf): Combine the rules.
17838         Suggested by Jim Meyering.
17839
17840 2009-04-01  Bruno Haible  <bruno@clisp.org>
17841
17842         * Makefile (info, html, dvi, pdf): New targets.
17843         Reported by Reuben Thomas <rrt@sc3d.org>.
17844
17845 2009-04-01  Bruno Haible  <bruno@clisp.org>
17846
17847         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17848         can be put into PATH.
17849         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17850
17851 2009-04-01  Bruno Haible  <bruno@clisp.org>
17852
17853         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17854
17855 2009-04-01  Bruno Haible  <bruno@clisp.org>
17856
17857         Rename module 'visibility'.
17858         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17859         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17860         * doc/gnulib.texi: Update.
17861         * MODULES.html.sh (Misc): Update.
17862         * NEWS: Mention the change.
17863
17864 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17865
17866         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17867         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17868         Eric Blake <ebb9@byu.net> for review.
17869         * MODULES.html.sh: Add lib-msvc-compat.
17870         * doc/gnulib.texi: Link to new section.
17871         * m4/ld-output-def.m4: New file.
17872         * doc/ld-output-def.texi: New file.
17873
17874 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17875
17876         Rename ld-version-script to lib-symbol-versions.  Suggested by
17877         Bruno Haible <bruno@clisp.org>.
17878         * modules/ld-version-script: Renamed to lib-symbol-versions.
17879         * doc/ld-version-script.texi: Fix module name.
17880         * MODULES.html.sh: Add lib-symbol-versions.
17881
17882 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17883
17884         * modules/u64-tests: New file.
17885         * tests/test-u64.c: New file.
17886
17887 2009-03-04  Simon Josefsson  <simon@josefsson.org>
17888
17889         * MODULES.html.sh: Mention u64.
17890         * modules/u64: New module.
17891         * modules/crypto/sha512: Depend on u64 module instead of providing
17892         u64.h.
17893
17894 2009-03-27  Eric Blake  <ebb9@byu.net>
17895
17896         test-strerror: make debugging EAI_SYSTEM easier
17897         * modules/getaddrinfo-tests (Depends-on): Add strerror.
17898         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
17899         failure was EAI_SYSTEM.
17900
17901 2009-03-25  Bruno Haible  <bruno@clisp.org>
17902
17903         Fix a problem with --enable-relocatable on Solaris 7.
17904         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
17905         since 2008-02-24.
17906
17907 2009-03-25  Eric Blake  <ebb9@byu.net>
17908
17909         test-sockets: avoid gcc warning
17910         * tests/test-sockets.c (main): Silence compiler warning.
17911
17912 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17913
17914         New modules nproc, pthread, contributed by Glen Lenker.
17915
17916         * MODULES.html.sh: Add pthread, nproc.
17917         * lib/nproc.c: New file.
17918         * lib/nproc.h: New file.
17919         * lib/pthread.in.h: New file.
17920         * m4/pthread.m4: New file.
17921         * modules/nproc: New file.
17922         * modules/pthread: New file.
17923
17924 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17925
17926         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
17927         New variable.
17928
17929 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
17930
17931         filevercmp: handle simple~ and numbered.~3~ backup suffixes
17932         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
17933         * tests/test-filevercmp.c: Add tests for backup suffixes.
17934
17935 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17936
17937         * modules/stdlib (Depends-on): Add stdint, needed when defining
17938         struct random_data on, for example, HP-UX 10.20.  Reported by
17939         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17940
17941 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17942
17943         * lib/readline.c (readline): Call fflush on stdout after printing
17944         prompt.
17945
17946 2009-03-20  Bruno Haible  <bruno@clisp.org>
17947
17948         Remove dependency from 'close' module to -lws2_32 on native Windows.
17949         * lib/close-hook.h: New file.
17950         * lib/close-hook.c: New file.
17951         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
17952         w32sock.h.
17953         (_gl_close_fd_maybe_socket): Remove function.
17954         (rpl_close): Invoke execute_all_close_hooks instead of
17955         _gl_close_fd_maybe_socket.
17956         * lib/sockets.c: Include close-hook.h, w32sock.h.
17957         (close_fd_maybe_socket): New function, essentially from lib/close.c.
17958         (close_sockets_hook): New variable.
17959         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
17960         (gl_sockets_cleanup): Unregister it.
17961         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17962         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
17963         * modules/close-hook: New file.
17964         * modules/close (Files): Remove lib/w32sock.h.
17965         (Depends-on): Add close-hook.
17966         (Link): Remove section.
17967         * modules/sockets (Files): Add lib/w32sock.h.
17968         (Depends-on): Add close-hook.
17969         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
17970         invocation.
17971         * NEWS: Mention that LIB_CLOSE is gone.
17972
17973 2009-03-23  Eric Blake  <ebb9@byu.net>
17974
17975         signal-tests: test previous patch
17976         * tests/test-signal.c: New file.
17977         * modules/signal-tests: Likewise.
17978
17979         signal.h: always support 'volatile sig_atomic_t'
17980         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
17981         (gl_SIGNAL_H_DEFAULTS): Add a default.
17982         * modules/signal (Makefile.am): Substitute if needed.
17983         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
17984         users can blindly add volatile.
17985         * doc/posix-headers/signal.texi (signal.h): Document it.
17986         Reported by Matthew Woehlke.
17987
17988 2009-03-23  Jim Meyering  <meyering@redhat.com>
17989
17990         pathmax: PATH_MAX: use pathconf only when available
17991         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
17992         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
17993         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
17994         This avoids a link failure in a PSP cross-compilation environment
17995         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
17996
17997         * lib/vasnprintf.c (divide): Fix typo in comment.
17998
17999 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18000
18001         * gnulib-tool (func_filter_filelist): Fix comment.
18002
18003 2009-03-20  Bruno Haible  <bruno@clisp.org>
18004
18005         Make sockets.h self-contained.
18006         * lib/sockets.c: Include sockets.h first.
18007         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18008
18009 2009-03-19  Eric Blake  <ebb9@byu.net>
18010
18011         doc: mention more functions added in cygwin 1.7.0
18012         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18013         addition.
18014         * doc/posix-functions/log2f.texi: Likewise.
18015
18016 2009-03-19  Jim Meyering  <meyering@redhat.com>
18017
18018         fsusage: avoid syntax error due to statement-before-declaration
18019         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18020         after all declarations.  Reported by Matthew Woehlke in
18021         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18022
18023 2009-03-18  Eric Blake  <ebb9@byu.net>
18024
18025         build-aux/compile: sync from automake
18026         * build-aux/compile: New file, from automake.
18027         * config/srclist.txt: Mention build-aux/compile.
18028
18029 2009-03-17  Bruno Haible  <bruno@clisp.org>
18030
18031         * lib/git-merge-changelog.c: Fix typo in comment.
18032         Reported by Reuben Thomas <rrt@sc3d.org>.
18033
18034 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18035
18036         * m4/regex.m4: update and improve help for
18037         --without-included-regex.
18038
18039 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18040
18041         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18042         failure on missing include files.
18043
18044 2009-03-17  Eric Blake  <ebb9@byu.net>
18045
18046         doc: mention more functions added in cygwin 1.7.0
18047         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18048         addition.
18049         * doc/posix-functions/fwscanf.texi: Likewise.
18050         * doc/posix-functions/swprintf.texi: Likewise.
18051         * doc/posix-functions/swscanf.texi: Likewise.
18052         * doc/posix-functions/vfwprintf.texi: Likewise.
18053         * doc/posix-functions/vfwscanf.texi: Likewise.
18054         * doc/posix-functions/vswprintf.texi: Likewise.
18055         * doc/posix-functions/vswscanf.texi: Likewise.
18056         * doc/posix-functions/vwprintf.texi: Likewise.
18057         * doc/posix-functions/vwscanf.texi: Likewise.
18058         * doc/posix-functions/wcscasecmp.texi: Likewise.
18059         * doc/posix-functions/wcsdup.texi: Likewise.
18060         * doc/posix-functions/wcsftime.texi: Likewise.
18061         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18062         * doc/posix-functions/wprintf.texi: Likewise.
18063         * doc/posix-functions/wscanf.texi: Likewise.
18064         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18065
18066 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18067
18068         maint.mk: really add $(AM_MAKEFLAGS)
18069         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18070         was inadvertently omitted in the last commit.
18071         Spotted by Bruno Haible.
18072
18073         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18074         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18075         $(AM_MAKEFLAGS)' rather than plain `make'.
18076
18077         gnulib-tool: execute $MAKE not make
18078         * gnulib-tool: Default $MAKE to 'make'.
18079         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18080         than make.  Initialize $MAKE in the do-autobuild script.
18081
18082         gnulib-tool: use $MAKE not make in generated files
18083         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18084         make, in generated files.  Initialize $MAKE in the do-autobuild
18085         script.
18086
18087         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18088
18089         GNUmakefile: disable parallelism only for multiple, recursive targets
18090         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18091         additions in the Makefile.
18092         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18093         by Automake.
18094         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18095         are listed on the command line and at least one of them is
18096         listed in $(ALL_RECURSIVE_TARGETS).
18097
18098 2009-03-14  Bruno Haible  <bruno@clisp.org>
18099
18100         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18101         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18102         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18103         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18104         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18105         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18106         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18107         unistr/u8-uctomb.
18108         * modules/unistr/u8-strchr (Depends-on): Likewise.
18109         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18110         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18111         unistr/u16-uctomb.
18112         * modules/unistr/u16-strchr (Depends-on): Likewise.
18113         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18114
18115 2009-03-12  Bruno Haible  <bruno@clisp.org>
18116
18117         Work around select() bug on Interix 3.5.
18118         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18119         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18120         * m4/select.m4: New file.
18121         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18122         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18123         * modules/select (Files): Add m4/select.m4.
18124         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18125         * modules/nanosleep (Depends-on): Add select.
18126         * modules/poll (Depends-on): Likewise.
18127         * doc/posix-functions/select.texi: Mention the Interix bug.
18128         Reported by Markus Duft <mduft@gentoo.org>.
18129
18130         * lib/select.c: Renamed from lib/winsock-select.c.
18131         * modules/select (Files): Add lib/select.c, remove
18132         lib/winsock-select.c.
18133         (configure.ac): Update.
18134
18135 2009-03-12  Jim Meyering  <meyering@redhat.com>
18136
18137         avoid gcc warnings about unused macro definitions
18138         * lib/readtokens.c (STREQ): Remove unused definition.
18139         * lib/xmalloc.c (SIZE_MAX): Likewise.
18140         * lib/openat-die.c (N_): Likewise.
18141         * lib/mountlist.c (SIZE_MAX): Remove definition.
18142         Instead, include <stdint.h>.
18143         * lib/readutmp.c: Likewise.
18144         * modules/readutmp (Depends-on): Add stdint.
18145         * modules/mountlist (Depends-on): Add stdint.
18146         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18147
18148 2009-03-10  Bruno Haible  <bruno@clisp.org>
18149
18150         Tests for module 'mbmemcasecoll'.
18151         * modules/mbmemcasecoll-tests: New file.
18152         * tests/test-mbmemcasecoll1.sh: New file.
18153         * tests/test-mbmemcasecoll2.sh: New file.
18154         * tests/test-mbmemcasecoll3.sh: New file.
18155         * tests/test-mbmemcasecoll.c: New file.
18156
18157         New module 'mbmemcasecoll'.
18158         * lib/mbmemcasecoll.h: New file.
18159         * lib/mbmemcasecoll.c: New file.
18160         * modules/mbmemcasecoll: New file.
18161
18162         * tests/test-mbmemcasecmp.h: New file, extracted from
18163         tests/test-mbmemcasecmp.c.
18164         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18165         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18166         (main): Update.
18167         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18168
18169 2009-03-09  Bruno Haible  <bruno@clisp.org>
18170
18171         Tests for module 'mbmemcasecmp'.
18172         * modules/mbmemcasecmp-tests: New file.
18173         * tests/test-mbmemcasecmp1.sh: New file.
18174         * tests/test-mbmemcasecmp2.sh: New file.
18175         * tests/test-mbmemcasecmp3.sh: New file.
18176         * tests/test-mbmemcasecmp.c: New file.
18177
18178         New module 'mbmemcasecmp'.
18179         * lib/mbmemcasecmp.h: New file.
18180         * lib/mbmemcasecmp.c: New file.
18181         * modules/mbmemcasecmp: New file.
18182
18183 2009-03-09  Bruno Haible  <bruno@clisp.org>
18184
18185         Tests for module 'unicase/ulc-casecoll'.
18186         * modules/unicase/ulc-casecoll-tests: New file.
18187         * tests/unicase/test-ulc-casecoll1.sh: New file.
18188         * tests/unicase/test-ulc-casecoll2.sh: New file.
18189         * tests/unicase/test-ulc-casecoll.c: New file.
18190
18191         New module 'unicase/ulc-casecoll'.
18192         * lib/unicase.h (ulc_casecoll): New declaration.
18193         * lib/unicase/ulc-casecoll.c: New file.
18194         * modules/unicase/ulc-casecoll: New file.
18195
18196         New module 'unicase/ulc-casexfrm'.
18197         * lib/unicase.h (ulc_casexfrm): New declaration.
18198         * lib/unicase/ulc-casexfrm.c: New file.
18199         * modules/unicase/ulc-casexfrm: New file.
18200
18201 2009-03-09  Bruno Haible  <bruno@clisp.org>
18202
18203         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18204         invocations.
18205
18206         * m4/mbscasecmp.m4: Remove file.
18207         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18208         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18209
18210         * m4/mbscasestr.m4: Remove file.
18211         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18212         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18213
18214         * m4/mbschr.m4: Remove file.
18215         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18216         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18217
18218         * m4/mbscspn.m4: Remove file.
18219         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18220         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18221
18222         * m4/mbslen.m4: Remove file.
18223         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18224         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18225
18226         * m4/mbsncasecmp.m4: Remove file.
18227         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18228         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18229
18230         * m4/mbsnlen.m4: Remove file.
18231         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18232         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18233
18234         * m4/mbspbrk.m4: Remove file.
18235         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18236         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18237
18238         * m4/mbspcasecmp.m4: Remove file.
18239         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18240         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18241
18242         * m4/mbsrchr.m4: Remove file.
18243         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18244         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18245
18246         * m4/mbssep.m4: Remove file.
18247         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18248         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18249
18250         * m4/mbsspn.m4: Remove file.
18251         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18252         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18253
18254         * m4/mbsstr.m4: Remove file.
18255         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18256         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18257
18258         * m4/mbstok_r.m4: Remove file.
18259         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18260         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18261
18262         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18263
18264         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18265         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18266
18267         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18268
18269 2009-03-08  Bruno Haible  <bruno@clisp.org>
18270
18271         Tests for module 'unicase/ulc-casecmp'.
18272         * modules/unicase/ulc-casecmp-tests: New file.
18273         * tests/unicase/test-ulc-casecmp1.sh: New file.
18274         * tests/unicase/test-ulc-casecmp2.sh: New file.
18275         * tests/unicase/test-ulc-casecmp.c: New file.
18276
18277         New module 'unicase/ulc-casecmp'.
18278         * lib/unicase.h (ulc_casecmp): New declaration.
18279         * lib/unicase/ulc-casecmp.c: New file.
18280         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18281         'const SRC_UNIT *'.
18282         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18283         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18284         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18285         * modules/unicase/ulc-casecmp: New file.
18286
18287         Tests for module 'unicase/u32-is-cased'.
18288         * modules/unicase/u32-is-cased-tests: New file.
18289         * tests/unicase/test-u32-is-cased.c: New file.
18290
18291         Tests for module 'unicase/u16-is-cased'.
18292         * modules/unicase/u16-is-cased-tests: New file.
18293         * tests/unicase/test-u16-is-cased.c: New file.
18294
18295         Tests for module 'unicase/u8-is-cased'.
18296         * modules/unicase/u8-is-cased-tests: New file.
18297         * tests/unicase/test-u8-is-cased.c: New file.
18298         * tests/unicase/test-is-cased.h: New file.
18299
18300         New module 'unicase/u32-is-cased'.
18301         * lib/unicase/u32-is-cased.c: New file.
18302         * modules/unicase/u32-is-cased: New file.
18303
18304         New module 'unicase/u16-is-cased'.
18305         * lib/unicase/u16-is-cased.c: New file.
18306         * modules/unicase/u16-is-cased: New file.
18307
18308         New module 'unicase/u8-is-cased'.
18309         * lib/unicase/u8-is-cased.c: New file.
18310         * lib/unicase/u-is-cased.h: New file.
18311         * modules/unicase/u8-is-cased: New file.
18312
18313         Tests for module 'unicase/u32-is-casefolded'.
18314         * modules/unicase/u32-is-casefolded-tests: New file.
18315         * tests/unicase/test-u32-is-casefolded.c: New file.
18316
18317         Tests for module 'unicase/u16-is-casefolded'.
18318         * modules/unicase/u16-is-casefolded-tests: New file.
18319         * tests/unicase/test-u16-is-casefolded.c: New file.
18320
18321         Tests for module 'unicase/u8-is-casefolded'.
18322         * modules/unicase/u8-is-casefolded-tests: New file.
18323         * tests/unicase/test-u8-is-casefolded.c: New file.
18324         * tests/unicase/test-is-casefolded.h: New file.
18325
18326         New module 'unicase/u32-is-casefolded'.
18327         * lib/unicase/u32-is-casefolded.c: New file.
18328         * modules/unicase/u32-is-casefolded: New file.
18329
18330         New module 'unicase/u16-is-casefolded'.
18331         * lib/unicase/u16-is-casefolded.c: New file.
18332         * modules/unicase/u16-is-casefolded: New file.
18333
18334         New module 'unicase/u8-is-casefolded'.
18335         * lib/unicase/u8-is-casefolded.c: New file.
18336         * modules/unicase/u8-is-casefolded: New file.
18337
18338         Tests for module 'unicase/u32-is-titlecase'.
18339         * modules/unicase/u32-is-titlecase-tests: New file.
18340         * tests/unicase/test-u32-is-titlecase.c: New file.
18341
18342         Tests for module 'unicase/u16-is-titlecase'.
18343         * modules/unicase/u16-is-titlecase-tests: New file.
18344         * tests/unicase/test-u16-is-titlecase.c: New file.
18345
18346         Tests for module 'unicase/u8-is-titlecase'.
18347         * modules/unicase/u8-is-titlecase-tests: New file.
18348         * tests/unicase/test-u8-is-titlecase.c: New file.
18349         * tests/unicase/test-is-titlecase.h: New file.
18350
18351         New module 'unicase/u32-is-titlecase'.
18352         * lib/unicase/u32-is-titlecase.c: New file.
18353         * modules/unicase/u32-is-titlecase: New file.
18354
18355         New module 'unicase/u16-is-titlecase'.
18356         * lib/unicase/u16-is-titlecase.c: New file.
18357         * modules/unicase/u16-is-titlecase: New file.
18358
18359         New module 'unicase/u8-is-titlecase'.
18360         * lib/unicase/u8-is-titlecase.c: New file.
18361         * modules/unicase/u8-is-titlecase: New file.
18362
18363         Tests for module 'unicase/u32-is-lowercase'.
18364         * modules/unicase/u32-is-lowercase-tests: New file.
18365         * tests/unicase/test-u32-is-lowercase.c: New file.
18366
18367         Tests for module 'unicase/u16-is-lowercase'.
18368         * modules/unicase/u16-is-lowercase-tests: New file.
18369         * tests/unicase/test-u16-is-lowercase.c: New file.
18370
18371         Tests for module 'unicase/u8-is-lowercase'.
18372         * modules/unicase/u8-is-lowercase-tests: New file.
18373         * tests/unicase/test-u8-is-lowercase.c: New file.
18374         * tests/unicase/test-is-lowercase.h: New file.
18375
18376         New module 'unicase/u32-is-lowercase'.
18377         * lib/unicase/u32-is-lowercase.c: New file.
18378         * modules/unicase/u32-is-lowercase: New file.
18379
18380         New module 'unicase/u16-is-lowercase'.
18381         * lib/unicase/u16-is-lowercase.c: New file.
18382         * modules/unicase/u16-is-lowercase: New file.
18383
18384         New module 'unicase/u8-is-lowercase'.
18385         * lib/unicase/u8-is-lowercase.c: New file.
18386         * modules/unicase/u8-is-lowercase: New file.
18387
18388         Tests for module 'unicase/u32-is-uppercase'.
18389         * modules/unicase/u32-is-uppercase-tests: New file.
18390         * tests/unicase/test-u32-is-uppercase.c: New file.
18391
18392         Tests for module 'unicase/u16-is-uppercase'.
18393         * modules/unicase/u16-is-uppercase-tests: New file.
18394         * tests/unicase/test-u16-is-uppercase.c: New file.
18395
18396         Tests for module 'unicase/u8-is-uppercase'.
18397         * modules/unicase/u8-is-uppercase-tests: New file.
18398         * tests/unicase/test-u8-is-uppercase.c: New file.
18399         * tests/unicase/test-is-uppercase.h: New file.
18400
18401         New module 'unicase/u32-is-uppercase'.
18402         * lib/unicase/u32-is-uppercase.c: New file.
18403         * modules/unicase/u32-is-uppercase: New file.
18404
18405         New module 'unicase/u16-is-uppercase'.
18406         * lib/unicase/u16-is-uppercase.c: New file.
18407         * modules/unicase/u16-is-uppercase: New file.
18408
18409         New module 'unicase/u8-is-uppercase'.
18410         * lib/unicase/u8-is-uppercase.c: New file.
18411         * modules/unicase/u8-is-uppercase: New file.
18412
18413         New module 'unicase/u32-is-invariant'.
18414         * lib/unicase/u32-is-invariant.c: New file.
18415         * modules/unicase/u32-is-invariant: New file.
18416
18417         New module 'unicase/u16-is-invariant'.
18418         * lib/unicase/u16-is-invariant.c: New file.
18419         * modules/unicase/u16-is-invariant: New file.
18420
18421         New module 'unicase/u8-is-invariant'.
18422         * lib/unicase/u8-is-invariant.c: New file.
18423         * lib/unicase/invariant.h: New file.
18424         * lib/unicase/u-is-invariant.h: New file.
18425         * modules/unicase/u8-is-invariant: New file.
18426
18427         Tests for module 'unicase/u32-casecoll'.
18428         * modules/unicase/u32-casecoll-tests: New file.
18429         * tests/unicase/test-u32-casecoll.c: New file.
18430
18431         Tests for module 'unicase/u16-casecoll'.
18432         * modules/unicase/u16-casecoll-tests: New file.
18433         * tests/unicase/test-u16-casecoll.c: New file.
18434
18435         Tests for module 'unicase/u8-casecoll'.
18436         * modules/unicase/u8-casecoll-tests: New file.
18437         * tests/unicase/test-u8-casecoll.c: New file.
18438
18439         New module 'unicase/u32-casecoll'.
18440         * lib/unicase/u32-casecoll.c: New file.
18441         * modules/unicase/u32-casecoll: New file.
18442
18443         New module 'unicase/u16-casecoll'.
18444         * lib/unicase/u16-casecoll.c: New file.
18445         * modules/unicase/u16-casecoll: New file.
18446
18447         New module 'unicase/u8-casecoll'.
18448         * lib/unicase/u8-casecoll.c: New file.
18449         * lib/unicase/u-casecoll.h: New file.
18450         * modules/unicase/u8-casecoll: New file.
18451
18452         New module 'unicase/u32-casexfrm'.
18453         * lib/unicase/u32-casexfrm.c: New file.
18454         * modules/unicase/u32-casexfrm: New file.
18455
18456         New module 'unicase/u16-casexfrm'.
18457         * lib/unicase/u16-casexfrm.c: New file.
18458         * modules/unicase/u16-casexfrm: New file.
18459
18460         New module 'unicase/u8-casexfrm'.
18461         * lib/unicase/u8-casexfrm.c: New file.
18462         * lib/unicase/u-casexfrm.h: New file.
18463         * modules/unicase/u8-casexfrm: New file.
18464
18465         Tests for module 'unicase/u32-casecmp'.
18466         * modules/unicase/u32-casecmp-tests: New file.
18467         * tests/unicase/test-u32-casecmp.c: New file.
18468
18469         Tests for module 'unicase/u16-casecmp'.
18470         * modules/unicase/u16-casecmp-tests: New file.
18471         * tests/unicase/test-u16-casecmp.c: New file.
18472
18473         Tests for module 'unicase/u8-casecmp'.
18474         * modules/unicase/u8-casecmp-tests: New file.
18475         * tests/unicase/test-u8-casecmp.c: New file.
18476         * tests/unicase/test-casecmp.h: New file.
18477
18478         New module 'unicase/u32-casecmp'.
18479         * lib/unicase/u32-casecmp.c: New file.
18480         * modules/unicase/u32-casecmp: New file.
18481
18482         New module 'unicase/u16-casecmp'.
18483         * lib/unicase/u16-casecmp.c: New file.
18484         * modules/unicase/u16-casecmp: New file.
18485
18486         New module 'unicase/u8-casecmp'.
18487         * lib/unicase/u8-casecmp.c: New file.
18488         * lib/unicase/u-casecmp.h: New file.
18489         * modules/unicase/u8-casecmp: New file.
18490
18491         Tests for module 'unicase/u32-casefold'.
18492         * modules/unicase/u32-casefold-tests: New file.
18493         * tests/unicase/test-u32-casefold.c: New file.
18494
18495         Tests for module 'unicase/u16-casefold'.
18496         * modules/unicase/u16-casefold-tests: New file.
18497         * tests/unicase/test-u16-casefold.c: New file.
18498
18499         Tests for module 'unicase/u8-casefold'.
18500         * modules/unicase/u8-casefold-tests: New file.
18501         * tests/unicase/test-u8-casefold.c: New file.
18502
18503         New module 'unicase/u32-casefold'.
18504         * lib/unicase/u32-casefold.c: New file.
18505         * modules/unicase/u32-casefold: New file.
18506
18507         New module 'unicase/u16-casefold'.
18508         * lib/unicase/u16-casefold.c: New file.
18509         * modules/unicase/u16-casefold: New file.
18510
18511         New module 'unicase/u8-casefold'.
18512         * lib/unicase/u8-casefold.c: New file.
18513         * lib/unicase/u-casefold.h: New file.
18514         * modules/unicase/u8-casefold: New file.
18515
18516         New module 'unicase/tocasefold'.
18517         * lib/unicase/casefold.h: New file.
18518         * lib/unicase/tocasefold.c: New file.
18519         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18520         * modules/unicase/tocasefold: New file.
18521
18522         Tests for module 'unicase/u32-totitle'.
18523         * modules/unicase/u32-totitle-tests: New file.
18524         * tests/unicase/test-u32-totitle.c: New file.
18525
18526         Tests for module 'unicase/u16-totitle'.
18527         * modules/unicase/u16-totitle-tests: New file.
18528         * tests/unicase/test-u16-totitle.c: New file.
18529
18530         Tests for module 'unicase/u8-totitle'.
18531         * modules/unicase/u8-totitle-tests: New file.
18532         * tests/unicase/test-u8-totitle.c: New file.
18533
18534         New module 'unicase/u32-totitle'.
18535         * lib/unicase/u32-totitle.c: New file.
18536         * modules/unicase/u32-totitle: New file.
18537
18538         New module 'unicase/u16-totitle'.
18539         * lib/unicase/u16-totitle.c: New file.
18540         * modules/unicase/u16-totitle: New file.
18541
18542         New module 'unicase/u8-totitle'.
18543         * lib/unicase/u8-totitle.c: New file.
18544         * lib/unicase/u-totitle.h: New file.
18545         * modules/unicase/u8-totitle: New file.
18546
18547         Tests for module 'unicase/u32-tolower'.
18548         * modules/unicase/u32-tolower-tests: New file.
18549         * tests/unicase/test-u32-tolower.c: New file.
18550
18551         Tests for module 'unicase/u16-tolower'.
18552         * modules/unicase/u16-tolower-tests: New file.
18553         * tests/unicase/test-u16-tolower.c: New file.
18554
18555         Tests for module 'unicase/u8-tolower'.
18556         * modules/unicase/u8-tolower-tests: New file.
18557         * tests/unicase/test-u8-tolower.c: New file.
18558
18559         New module 'unicase/u32-tolower'.
18560         * lib/unicase/u32-tolower.c: New file.
18561         * modules/unicase/u32-tolower: New file.
18562
18563         New module 'unicase/u16-tolower'.
18564         * lib/unicase/u16-tolower.c: New file.
18565         * modules/unicase/u16-tolower: New file.
18566
18567         New module 'unicase/u8-tolower'.
18568         * lib/unicase/u8-tolower.c: New file.
18569         * modules/unicase/u8-tolower: New file.
18570
18571         Tests for module 'unicase/u32-toupper'.
18572         * modules/unicase/u32-toupper-tests: New file.
18573         * tests/unicase/test-u32-toupper.c: New file.
18574
18575         Tests for module 'unicase/u16-toupper'.
18576         * modules/unicase/u16-toupper-tests: New file.
18577         * tests/unicase/test-u16-toupper.c: New file.
18578
18579         Tests for module 'unicase/u8-toupper'.
18580         * modules/unicase/u8-toupper-tests: New file.
18581         * tests/unicase/test-u8-toupper.c: New file.
18582
18583         New module 'unicase/u32-toupper'.
18584         * lib/unicase/u32-toupper.c: New file.
18585         * modules/unicase/u32-toupper: New file.
18586
18587         New module 'unicase/u16-toupper'.
18588         * lib/unicase/u16-toupper.c: New file.
18589         * modules/unicase/u16-toupper: New file.
18590
18591         New module 'unicase/u8-toupper'.
18592         * lib/unicase/u8-toupper.c: New file.
18593         * modules/unicase/u8-toupper: New file.
18594
18595         New module 'unicase/u32-casemap'.
18596         * lib/unicase/u32-casemap.c: New file.
18597         * modules/unicase/u32-casemap: New file.
18598
18599         New module 'unicase/u16-casemap'.
18600         * lib/unicase/u16-casemap.c: New file.
18601         * modules/unicase/u16-casemap: New file.
18602
18603         New module 'unicase/u8-casemap'.
18604         * lib/unicase/unicasemap.h: New file.
18605         * lib/unicase/u8-casemap.c: New file.
18606         * lib/unicase/u-casemap.h: New file.
18607         * modules/unicase/u8-casemap: New file.
18608
18609         New module 'unicase/special-casing'.
18610         * lib/unicase/special-casing.h: New file.
18611         * lib/unicase/special-casing.c: New file.
18612         * lib/unicase/special-casing-table.gperf: New file, generated by
18613         gen-uni-tables.c.
18614         * modules/unicase/special-casing: New file.
18615
18616         Tests for module 'unicase/locale-language'.
18617         * modules/unicase/locale-language-tests: New file.
18618         * tests/unicase/test-locale-language.sh: New file.
18619         * tests/unicase/test-locale-language.c: New file.
18620
18621         New module 'unicase/locale-language'.
18622         * lib/unicase/locale-language.c: New file.
18623         * lib/unicase/locale-languages.gperf: New file.
18624         * modules/unicase/locale-language: New file.
18625
18626         Generate more tables for case conversion and case folding.
18627         * lib/gen-uni-tables.c (SCC_*): New enum items.
18628         (struct special_casing_rule): New type.
18629         (casing_rules, num_casing_rules, allocated_casing_rules): New
18630         variables.
18631         (add_casing_rule, fill_casing_rules): New functions.
18632         (struct casefold_rule): New type.
18633         (casefolding_rules, num_casefolding_rules,
18634         allocated_casefolding_rules): New variables.
18635         (fill_casefolding_rules): New function.
18636         (unicode_casefold): New variable.
18637         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18638         sort_casing_rules, output_casing_rules): New functions.
18639         (main): Accept to more arguments: SpecialCasing.txt and
18640         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18641         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18642         Output mapping for casefolding.
18643
18644         * lib/unicase.h: Include stdbool.h, uninorm.h.
18645         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18646         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18647         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18648         arguments.
18649         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18650         resultp arguments.
18651         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18652         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18653         resultp arguments.
18654         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18655         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18656         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18657         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18658         declarations.
18659         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18660
18661 2009-03-08  Bruno Haible  <bruno@clisp.org>
18662
18663         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18664         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18665         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18666         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18667
18668 2009-03-07  Bruno Haible  <bruno@clisp.org>
18669
18670         Adjust u*_normcmp, u*_normcoll API.
18671         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18672         u16_normcoll, u32_normcoll): Change failure conventions.
18673         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18674         errno and return -1.
18675         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18676
18677 2009-03-07  Bruno Haible  <bruno@clisp.org>
18678
18679         Tests for module 'uninorm/u32-normcoll'.
18680         * modules/uninorm/u32-normcoll-tests: New file.
18681         * tests/uninorm/test-u32-normcoll.c: New file.
18682
18683         Tests for module 'uninorm/u16-normcoll'.
18684         * modules/uninorm/u16-normcoll-tests: New file.
18685         * tests/uninorm/test-u16-normcoll.c: New file.
18686
18687         Tests for module 'uninorm/u8-normcoll'.
18688         * modules/uninorm/u8-normcoll-tests: New file.
18689         * tests/uninorm/test-u8-normcoll.c: New file.
18690
18691 2009-03-07  Bruno Haible  <bruno@clisp.org>
18692
18693         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18694         tests/uninorm/test-u32-normcmp.c.
18695         * tests/uninorm/test-u32-normcmp.c: Include it.
18696         (test_nonascii): New function, extracted from main. Add some more
18697         tests.
18698         (main): Invoke test_ascii and test_nonascii.
18699         * modules/uninorm/u32-normcmp-tests (Files): Add
18700         tests/uninorm/test-u32-normcmp.h.
18701         (Depends-on): Remove uninorm/u32-normcmp.
18702
18703         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18704         tests/uninorm/test-u16-normcmp.c.
18705         * tests/uninorm/test-u16-normcmp.c: Include it.
18706         (test_nonascii): New function, extracted from main. Add some more
18707         tests.
18708         (main): Invoke test_ascii and test_nonascii.
18709         * modules/uninorm/u16-normcmp-tests (Files): Add
18710         tests/uninorm/test-u16-normcmp.h.
18711         (Depends-on): Remove uninorm/u16-normcmp.
18712
18713         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18714         tests/uninorm/test-u8-normcmp.c.
18715         * tests/uninorm/test-u8-normcmp.c: Include it.
18716         (test_nonascii): New function, extracted from main. Add some more
18717         tests.
18718         (main): Invoke test_ascii and test_nonascii.
18719         * modules/uninorm/u8-normcmp-tests (Files): Add
18720         tests/uninorm/test-u8-normcmp.h.
18721         (Depends-on): Remove uninorm/u8-normcmp.
18722
18723 2009-03-07  Bruno Haible  <bruno@clisp.org>
18724
18725         New module 'uninorm/u32-normcoll'.
18726         * lib/uninorm/u32-normcoll.c: New file.
18727         * modules/uninorm/u32-normcoll: New file.
18728
18729         New module 'uninorm/u16-normcoll'.
18730         * lib/uninorm/u16-normcoll.c: New file.
18731         * modules/uninorm/u16-normcoll: New file.
18732
18733         New module 'uninorm/u8-normcoll'.
18734         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18735         declarations.
18736         * lib/uninorm/u8-normcoll.c: New file.
18737         * lib/uninorm/u-normcoll.h: New file.
18738         * modules/uninorm/u8-normcoll: New file.
18739
18740         New module 'uninorm/u32-normxfrm'.
18741         * lib/uninorm/u32-normxfrm.c: New file.
18742         * modules/uninorm/u32-normxfrm: New file.
18743
18744         New module 'uninorm/u16-normxfrm'.
18745         * lib/uninorm/u16-normxfrm.c: New file.
18746         * modules/uninorm/u16-normxfrm: New file.
18747
18748         New module 'uninorm/u8-normxfrm'.
18749         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18750         declarations.
18751         * lib/uninorm/u8-normxfrm.c: New file.
18752         * lib/uninorm/u-normxfrm.h: New file.
18753         * modules/uninorm/u8-normxfrm: New file.
18754
18755 2009-03-07  Bruno Haible  <bruno@clisp.org>
18756
18757         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18758         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18759         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18760
18761 2009-03-07  Bruno Haible  <bruno@clisp.org>
18762
18763         New module 'memxfrm'.
18764         * lib/memxfrm.h: New file.
18765         * lib/memxfrm.c: New file.
18766         * modules/memxfrm: New file.
18767
18768 2009-03-07  Bruno Haible  <bruno@clisp.org>
18769
18770         New module 'memcmp2'.
18771         * lib/memcmp2.h: New file.
18772         * lib/memcmp2.c: New file.
18773         * modules/memcmp2: New file.
18774
18775 2009-03-07  Bruno Haible  <bruno@clisp.org>
18776
18777         Tests for module 'uninorm/decomposing-form'.
18778         * modules/uninorm/decomposing-form-tests: New file.
18779         * tests/uninorm/test-decomposing-form.c: New file.
18780
18781         New module 'uninorm/decomposing-form'.
18782         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18783         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18784         Add 'decomposing_variant' field.
18785         * lib/uninorm/decomposing-form.c: New file.
18786         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18787         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18788         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18789         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18790         * modules/uninorm/decomposing-form: New file.
18791         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18792         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18793
18794 2009-03-07  Bruno Haible  <bruno@clisp.org>
18795
18796         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18797         strings.
18798
18799 2009-03-06  Bruno Haible  <bruno@clisp.org>
18800
18801         Tests for module 'uninorm/u32-normcmp'.
18802         * tests/uninorm/test-u32-normcmp.c: New file.
18803         * modules/uninorm/u32-normcmp-tests: New file.
18804
18805         Tests for module 'uninorm/u16-normcmp'.
18806         * tests/uninorm/test-u16-normcmp.c: New file.
18807         * modules/uninorm/u16-normcmp-tests: New file.
18808
18809         Tests for module 'uninorm/u8-normcmp'.
18810         * tests/uninorm/test-u8-normcmp.c: New file.
18811         * modules/uninorm/u8-normcmp-tests: New file.
18812
18813         New module 'uninorm/u32-normcmp'.
18814         * lib/uninorm/u32-normcmp.c: New file.
18815         * modules/uninorm/u32-normcmp: New file.
18816
18817         New module 'uninorm/u16-normcmp'.
18818         * lib/uninorm/u16-normcmp.c: New file.
18819         * modules/uninorm/u16-normcmp: New file.
18820
18821         New module 'uninorm/u8-normcmp'.
18822         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18823         declarations.
18824         * lib/uninorm/u8-normcmp.c: New file.
18825         * lib/uninorm/u-normcmp.h: New file.
18826         * modules/uninorm/u8-normcmp: New file.
18827
18828 2009-03-06  Bruno Haible  <bruno@clisp.org>
18829
18830         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18831         Reported by Eric Blake.
18832
18833 2009-03-06  Eric Blake  <ebb9@byu.net>
18834             Bruno Haible  <bruno@clisp.org>
18835
18836         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18837         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18838         condition.
18839         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18840         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18841         condition.
18842         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18843
18844 2009-03-06  Eric Blake  <ebb9@byu.net>
18845
18846         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18847         to avoid compiler warnings.
18848         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18849
18850 2009-03-05  Bruno Haible  <bruno@clisp.org>
18851
18852         * tests/test-ftell.c (main): Disable test beyond end of file on
18853         FreeMiNT.
18854         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18855
18856 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18857
18858         * lib/filevercmp.c: Move hidden files up in ordering.
18859         * tests/test-filevercmp.c: Add tests for hidden files.
18860
18861 2009-03-04  Bruno Haible  <bruno@clisp.org>
18862
18863         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18864         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18865         AM_CFLAGS.
18866         Reported by Simon Josefsson.
18867
18868 2009-03-03  Bruno Haible  <bruno@clisp.org>
18869
18870         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18871         Reported by Simon Josefsson.
18872
18873         * doc/ld-version-script.texi: Update node reference.
18874
18875 2009-03-03  Bruno Haible  <bruno@clisp.org>
18876
18877         * modules/visibility (License): Change to 'unlimited'.
18878         Suggested by Simon Josefsson.
18879
18880 2009-03-03  Jim Meyering  <meyering@redhat.com>
18881
18882         unlinkdir: cannot_unlink_dir may modify process state
18883         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
18884         it's neither thread-safe nor appropriate for use in a library.
18885
18886 2009-03-03  Eric Blake  <ebb9@byu.net>
18887
18888         test-closein: silence test under Darwin
18889         * tests/test-closein.sh: Ignore stderr from cat, since we don't
18890         care if it dies from EPIPE or EBADF.
18891
18892 2009-03-03  Bruno Haible  <bruno@clisp.org>
18893
18894         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
18895         earlier.
18896         * doc/visibility.texi: Fix @node and @section.
18897
18898 2009-03-03  Simon Josefsson  <simon@josefsson.org>
18899
18900         * doc/gnulib.texi: Link to sections for ld version script and
18901         visibility.
18902         * doc/visibility.texi: Add @node and @section.
18903         * modules/ld-version-script: New module.
18904         * m4/ld-version-script.m4: New file.
18905         * doc/ld-version-script.texi: New file.
18906
18907 2009-03-02  David Lutterkort  <lutter@redhat.com>
18908
18909         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
18910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18911
18912 2009-03-02  Bruno Haible  <bruno@clisp.org>
18913
18914         * doc/visibility.texi: Mention libtool's -export-symbols option.
18915
18916 2009-03-02  Jim Meyering  <meyering@redhat.com>
18917
18918         announce-gen: new option: --no-print-checksums
18919         * build-aux/announce-gen (usage): Describe it.
18920         (print_checksums): Print a newline here, not in the [*] footnote.
18921         (main): Honor it.
18922
18923 2009-03-01  Bruno Haible  <bruno@clisp.org>
18924
18925         Use socklen_t in the native Windows replacements prototypes.
18926         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
18927         instead of 'int'.
18928         * lib/getsockopt.c (rpl_getsockopt): Likewise.
18929         * lib/setsockopt.c (rpl_setsockopt): Likewise.
18930         * modules/getsockopt (Depends-on): Add socklen.
18931         * modules/setsockopt (Depends-on): Add socklen.
18932
18933 2009-03-01  Bruno Haible  <bruno@clisp.org>
18934
18935         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
18936         least 4.2.
18937
18938 2009-03-01  Eric Blake  <ebb9@byu.net>
18939             Bruno Haible  <bruno@clisp.org>
18940
18941         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
18942         error messages.
18943         * lib/wait-process.c (wait_subprocess): Omit error message about
18944         deadly signal sent to the child of termsigp != NULL.
18945
18946 2009-03-01  Eric Blake  <ebb9@byu.net>
18947
18948         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
18949
18950 2009-03-01  Bruno Haible  <bruno@clisp.org>
18951
18952         Avoid a gcc warning.
18953         * tests/test-sched.c (b): Make global.
18954         Reported by Eric Blake.
18955
18956 2009-01-19  Martin Lambers  <marlam@marlam.de>
18957
18958         Provide POSIX semantics for socket timeout options on W32.
18959         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
18960         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
18961         * modules/setsockopt: Depend on sys_time module for struct timeval.
18962         * modules/getsockopt: Depend on sys_time module for struct timeval.
18963
18964 2009-03-01  Simon Josefsson  <simon@josefsson.org>
18965
18966         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
18967         __USE_GNU, for consistency with netdb.in.h.
18968         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18969
18970 2009-03-01  Bruno Haible  <bruno@clisp.org>
18971
18972         More support for FreeMiNT.
18973         * lib/fseeko.c (rpl_fseeko): Complete last commit.
18974         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18975
18976 2009-03-01  Bruno Haible  <bruno@clisp.org>
18977
18978         More support for FreeMiNT.
18979         * lib/fpurge.c (fpurge): Correct last commit.
18980         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18981
18982 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18983
18984         Fix unportable awk script in vc-list-files.
18985         * build-aux/vc-list-files: In the replacement awk script, use
18986         substr with a second argument of 1, not zero.
18987         Report by Simon Josefsson.
18988
18989 2009-02-28  Bruno Haible  <bruno@clisp.org>
18990
18991         More support for FreeMiNT.
18992         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
18993         to FreeMiNT today.
18994         * lib/fwriting.c (fwriting): Likewise.
18995         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
18996
18997 2009-02-28  Bruno Haible  <bruno@clisp.org>
18998
18999         * tests/test-freadseek.c (main): Disable test beyond end of file on
19000         FreeMiNT.
19001         * tests/test-ftello.c (main): Likewise.
19002         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19003
19004 2009-02-28  Bruno Haible  <bruno@clisp.org>
19005
19006         Add tentative support for FreeMiNT.
19007         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19008         * lib/fpurge.c (fpurge): Likewise.
19009         * lib/freadable.c (freadable): Likewise.
19010         * lib/freading.c (freading): Likewise.
19011         * lib/freadptr.c (freadptr): Likewise.
19012         * lib/freadseek.c (freadptrinc): Likewise.
19013         * lib/fseeko.c (rpl_fseeko): Likewise.
19014         * lib/fseterr.c (fseterr): Likewise.
19015         * lib/fwritable.c (fwritable): Likewise.
19016         * lib/fwriting.c (fwriting): Likewise.
19017         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19018         Hourihane.
19019         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19020
19021 2009-02-28  Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19024         SIGCHLD.
19025         Reported by Jim Meyering.
19026
19027 2009-02-28  Bruno Haible  <bruno@clisp.org>
19028
19029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19030         Mention the results of these tests on various platforms.
19031         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19032         order.
19033         * doc/posix-functions/printf.texi: Likewise.
19034         * doc/posix-functions/snprintf.texi: Likewise.
19035         * doc/posix-functions/sprintf.texi: Likewise.
19036         * doc/posix-functions/vfprintf.texi: Likewise.
19037         * doc/posix-functions/vprintf.texi: Likewise.
19038         * doc/posix-functions/vsnprintf.texi: Likewise.
19039         * doc/posix-functions/vsprintf.texi: Likewise.
19040         * doc/glibc-functions/obstack_printf.texi: Likewise.
19041         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19042
19043 2009-02-28  Bruno Haible  <bruno@clisp.org>
19044
19045         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19046         Reported by Loïc Minier <lool@dooz.org>.
19047
19048 2009-02-27  Bruno Haible  <bruno@clisp.org>
19049
19050         * gnulib-tool (func_import): Make the sed expression used to create the
19051         sed script for updating the .gitignore file POSIX compliant.
19052         Reported by Eric Blake.
19053
19054 2009-02-27  Bruno Haible  <bruno@clisp.org>
19055
19056         * gnulib-tool (sed): Don't alias as "sed --posix".
19057         Reported by Eric Blake.
19058
19059 2009-02-27  Bruno Haible  <bruno@clisp.org>
19060
19061         Avoid test link errors.
19062         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19063         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19064         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19065         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19067
19068 2009-02-27  Bruno Haible  <bruno@clisp.org>
19069
19070         Avoid spurious "(cached)" in configure output.
19071         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19074         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19075         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19076         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19077         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19078         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19079         Reported by Eric Blake.
19080
19081 2009-02-27  Eric Blake  <ebb9@byu.net>
19082
19083         printf: fix regression in previous patch
19084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19085
19086 2009-02-27  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19089         value.
19090         * lib/stdint.in.h: Likewise.
19091         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19092
19093 2009-02-27  Eric Blake  <ebb9@byu.net>
19094
19095         doc: mention more functions added in cygwin 1.7.0
19096         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19097         addition.
19098         * doc/posix-functions/open_wmemstream.texi: Likewise.
19099         * doc/posix-functions/wcsnlen.texi: Likewise.
19100         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19101         * doc/posix-functions/wcstod.texi: Likewise.
19102         * doc/posix-functions/wcstof.texi: Likewise.
19103         * doc/posix-functions/wcstoimax.texi: Likewise.
19104         * doc/posix-functions/wcstok.texi: Likewise.
19105         * doc/posix-functions/wcstoumax.texi: Likewise.
19106
19107         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19109         * doc/posix-functions/fprintf.texi: Update.
19110         * doc/posix-functions/printf.texi: Update.
19111         * doc/posix-functions/snprintf.texi: Update.
19112         * doc/posix-functions/sprintf.texi: Update.
19113         * doc/posix-functions/vfprintf.texi: Update.
19114         * doc/posix-functions/vprintf.texi: Update.
19115         * doc/posix-functions/vsnprintf.texi: Update.
19116         * doc/posix-functions/vsprintf.texi: Update.
19117         * doc/glibc-functions/obstack_printf.texi: Update.
19118         * doc/glibc-functions/obstack_vprintf.texi: Update.
19119
19120 2009-02-26  Eric Blake  <ebb9@byu.net>
19121
19122         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19123         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19124         compilation bug by using runtime conversion.
19125         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19126         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19127         * modules/ceill-tests (Files): Use nan.h.
19128         * modules/floorl-tests (Files): Likewise.
19129         * modules/frexpl-tests (Files): Likewise.
19130         * modules/isnanl-tests (Files): Likewise.
19131         * modules/ldexpl-tests (Files): Likewise.
19132         * modules/roundl-tests (Files): Likewise.
19133         * modules/truncl-tests (Files): Likewise.
19134         * tests/test-ceill.c (main): Use a working NaN.
19135         * tests/test-floorl.c (main): Likewise.
19136         * tests/test-frexpl.c (main): Likewise.
19137         * tests/test-isnan.c (test_long_double): Likewise.
19138         * tests/test-isnanl.h (main): Likewise.
19139         * tests/test-ldexpl.h (main): Likewise.
19140         * tests/test-roundl.h (main): Likewise.
19141         * tests/test-truncl.h (main): Likewise.
19142         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19143
19144 2009-02-26  Eric Blake  <ebb9@byu.net>
19145             Bruno Haible  <bruno@clisp.org>
19146
19147         Work around a *printf bug with %ls on Solaris.
19148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19149         precision is specified, sprintf stops converting the wide string
19150         argument when the number of bytes that have been produced by this
19151         conversion equals or exceeds the precision.
19152         * doc/posix-functions/fprintf.texi: Update.
19153         * doc/posix-functions/printf.texi: Update.
19154         * doc/posix-functions/snprintf.texi: Update.
19155         * doc/posix-functions/sprintf.texi: Update.
19156         * doc/posix-functions/vfprintf.texi: Update.
19157         * doc/posix-functions/vprintf.texi: Update.
19158         * doc/posix-functions/vsnprintf.texi: Update.
19159         * doc/posix-functions/vsprintf.texi: Update.
19160         * doc/glibc-functions/obstack_printf.texi: Update.
19161         * doc/glibc-functions/obstack_vprintf.texi: Update.
19162
19163 2009-02-26  Eric Blake  <ebb9@byu.net>
19164
19165         stdlib: favor compiler check of random.h
19166         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19167         to avoid an ObjC random.h installed by Swarm.
19168
19169 2009-02-26  Bruno Haible  <bruno@clisp.org>
19170
19171         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19172         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19173         Reported by Gary V. Vaughan <gary@gnu.org>.
19174
19175 2009-02-26  Bruno Haible  <bruno@clisp.org>
19176
19177         Fix *printf behaviour regarding the %ls directive.
19178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19179         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19180         NEED_PRINTF_DIRECTIVE_LS.
19181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19182         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19183         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19184         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19185         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19186         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19187         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19192         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19196         * doc/posix-functions/fprintf.texi: Update.
19197         * doc/posix-functions/printf.texi: Update.
19198         * doc/posix-functions/snprintf.texi: Update.
19199         * doc/posix-functions/sprintf.texi: Update.
19200         * doc/posix-functions/vfprintf.texi: Update.
19201         * doc/posix-functions/vprintf.texi: Update.
19202         * doc/posix-functions/vsnprintf.texi: Update.
19203         * doc/posix-functions/vsprintf.texi: Update.
19204         * doc/glibc-functions/obstack_printf.texi: Update.
19205         * doc/glibc-functions/obstack_vprintf.texi: Update.
19206         Reported by Eric Blake.
19207
19208 2009-02-25  Bruno Haible  <bruno@clisp.org>
19209
19210         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19211         with known value.
19212         Reported by Gary V. Vaughan <gary@gnu.org>.
19213
19214 2009-02-25  Bruno Haible  <bruno@clisp.org>
19215
19216         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19217         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19218         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19219         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19220         Reported by Gary V. Vaughan <gary@gnu.org>.
19221
19222 2009-02-25  Bruno Haible  <bruno@clisp.org>
19223
19224         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19225         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19226         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19227         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19228         Reported by Gary V. Vaughan <gary@gnu.org>.
19229
19230 2009-02-25  Eric Blake  <ebb9@byu.net>
19231
19232         tests: skip fseek/ftell tests if ungetc is broken
19233         * m4/ungetc.m4: New file.
19234         * modules/fseek-tests: Split test, so ungetc dependency is
19235         separate from rest of test.
19236         * modules/fseeko-tests: Likewise.
19237         * modules/ftell-tests: Likewise.
19238         * modules/ftello-tests: Likewise.
19239         * tests/test-fseek.c (main): Isolate ungetc dependency.
19240         * tests/test-fseeko.c (main): Likewise.
19241         * tests/test-ftell.c (main): Likewise.
19242         * tests/test-ftello.c (main): Likewise.
19243         * tests/test-fseek2.sh: New file.
19244         * tests/test-fseeko2.sh: Likewise.
19245         * tests/test-ftell2.sh: Likewise.
19246         * tests/test-ftello2.sh: Likewise.
19247
19248 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19249
19250         test-getaddrinfo: fix usage of skip return code 77
19251         * tests/test-gettaddrinfo.c: Return skip code 77 only
19252         for first occurance of skip (4x77 is not 77)
19253
19254 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19255
19256         strtod: avoid C99 decl-after-statement
19257         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19258
19259 2009-02-24  Eric Blake  <ebb9@byu.net>
19260
19261         strtod: detect HP-UX 11.31 bug
19262         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19263         Reported by Gary V. Vaughan.
19264
19265 2009-02-23  Bruno Haible  <bruno@clisp.org>
19266
19267         Fix invalid read past end of memory block.
19268         * lib/vasnprintf.c (DCHAR_SET): Define.
19269         (local_wcslen): Define only when needed.
19270         (local_strnlen, local_wcsnlen): New functions.
19271         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19272         directives that involve a conversion ourselves.
19273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19274         wcsnlen, mbrtowc, wcrtomb.
19275         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19276         * tests/test-vasprintf-posix.c (test_function): Likewise.
19277         * tests/test-snprintf-posix.h (test_function): Likewise.
19278         * tests/test-sprintf-posix.h (test_function): Likewise.
19279         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19280
19281 2009-02-22  Bruno Haible  <bruno@clisp.org>
19282
19283         Implement new clarified decomposition of Hangul syllables.
19284         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19285         of type LTV, return only a pairwise decomposition.
19286         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19287         Likewise.
19288         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19289         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19290         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19291
19292 2009-02-22  Bruno Haible  <bruno@clisp.org>
19293
19294         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19295         zero-length results and shrink excess allocated memory.
19296         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19297         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19298         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19299         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19300         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19301         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19302         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19303         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19304         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19305         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19306         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19307         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19308
19309 2009-02-21  Bruno Haible  <bruno@clisp.org>
19310
19311         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19312         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19313         spaces after a period. Put a space between a macro name and its
19314         argument list. Trivial rewordings.
19315         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19316         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19317         (main): Return 0 explicitly.
19318
19319 2009-02-21  Bruno Haible  <bruno@clisp.org>
19320
19321         Tests for module 'uninorm/filter'.
19322         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19323         * modules/uninorm/filter-tests: New file.
19324
19325         New module 'uninorm/filter'.
19326         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19327         uninorm_filter_flush, uninorm_filter_free): New declarations.
19328         * lib/uninorm/uninorm-filter.c: New file.
19329         * modules/uninorm/filter: New file.
19330
19331 2009-02-21  Bruno Haible  <bruno@clisp.org>
19332
19333         Tests for module 'uninorm/nfkc'.
19334         * tests/uninorm/test-nfkc.c: New file.
19335         * tests/uninorm/test-u8-nfkc.c: New file.
19336         * tests/uninorm/test-u16-nfkc.c: New file.
19337         * tests/uninorm/test-u32-nfkc.c: New file.
19338         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19339         * tests/uninorm/test-u32-nfkc-big.c: New file.
19340         * modules/uninorm/nfkc-tests: New file.
19341
19342         New module 'uninorm/nfkc'.
19343         * lib/uninorm/nfkc.c: New file.
19344         * modules/uninorm/nfkc: New file.
19345
19346         Tests for module 'uninorm/nfkd'.
19347         * tests/uninorm/test-nfkd.c: New file.
19348         * tests/uninorm/test-u8-nfkd.c: New file.
19349         * tests/uninorm/test-u16-nfkd.c: New file.
19350         * tests/uninorm/test-u32-nfkd.c: New file.
19351         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19352         * tests/uninorm/test-u32-nfkd-big.c: New file.
19353         * modules/uninorm/nfkd-tests: New file.
19354
19355         New module 'uninorm/nfkd'.
19356         * lib/uninorm/nfkd.c: New file.
19357         * modules/uninorm/nfkd: New file.
19358
19359         Tests for module 'uninorm/nfc'.
19360         * tests/uninorm/test-nfc.c: New file.
19361         * tests/uninorm/test-u8-nfc.c: New file.
19362         * tests/uninorm/test-u16-nfc.c: New file.
19363         * tests/uninorm/test-u32-nfc.c: New file.
19364         * tests/uninorm/test-u32-nfc-big.sh: New file.
19365         * tests/uninorm/test-u32-nfc-big.c: New file.
19366         * modules/uninorm/nfc-tests: New file.
19367
19368         New module 'uninorm/nfc'.
19369         * lib/uninorm/nfc.c: New file.
19370         * modules/uninorm/nfc: New file.
19371
19372         Tests for module 'uninorm/nfd'.
19373         * tests/uninorm/test-nfd.c: New file.
19374         * tests/uninorm/test-u8-nfd.c: New file.
19375         * tests/uninorm/test-u16-nfd.c: New file.
19376         * tests/uninorm/test-u32-nfd.c: New file.
19377         * tests/uninorm/test-u32-nfd-big.sh: New file.
19378         * tests/uninorm/test-u32-nfd-big.c: New file.
19379         * tests/uninorm/test-u32-normalize-big.h: New file.
19380         * tests/uninorm/test-u32-normalize-big.c: New file.
19381         * tests/uninorm/NormalizationTest.txt: New file, created from
19382         Unicode 5.1.0 NormalizationTest.txt.
19383         * modules/uninorm/nfd-tests: New file.
19384
19385         New module 'uninorm/nfd'.
19386         * lib/uninorm/nfd.c: New file.
19387         * modules/uninorm/nfd: New file.
19388
19389         New module 'uninorm/u32-normalize'.
19390         * lib/uninorm/u32-normalize.c: New file.
19391         * modules/uninorm/u32-normalize: New file.
19392
19393         New module 'uninorm/u16-normalize'.
19394         * lib/uninorm/u16-normalize.c: New file.
19395         * modules/uninorm/u16-normalize: New file.
19396
19397         New module 'uninorm/u8-normalize'.
19398         * lib/uninorm/u8-normalize.c: New file.
19399         * lib/uninorm/normalize-internal.h: New file.
19400         * lib/uninorm/u-normalize-internal.h: New file.
19401         * modules/uninorm/u8-normalize: New file.
19402
19403         New module 'uninorm/decompose-internal'.
19404         * lib/uninorm/decompose-internal.c: New file.
19405         * modules/uninorm/decompose-internal: New file.
19406
19407         Tests for module 'uninorm/composition'.
19408         * tests/uninorm/test-composition.c: New file.
19409         * modules/uninorm/composition-tests: New file.
19410
19411         New module 'uninorm/composition'.
19412         * lib/uninorm/composition.c: New file.
19413         * lib/uninorm/composition-table.gperf: New file, generated by
19414         gen-uni-tables.
19415         * modules/uninorm/composition: New file.
19416
19417         Tests for module 'uninorm/compat-decomposition'.
19418         * tests/uninorm/test-compat-decomposition.c: New file.
19419         * modules/uninorm/compat-decomposition-tests: New file.
19420
19421         New module 'uninorm/compat-decomposition'.
19422         * lib/uninorm/decompose-internal.h: New file.
19423         * lib/uninorm/compat-decomposition.c: New file.
19424         * modules/uninorm/compat-decomposition: New file.
19425
19426         Tests for module 'uninorm/canonical-decomposition'.
19427         * tests/uninorm/test-canonical-decomposition.c: New file.
19428         * modules/uninorm/canonical-decomposition-tests: New file.
19429
19430         New module 'uninorm/canonical-decomposition'.
19431         * lib/uninorm/canonical-decomposition.c: New file.
19432         * modules/uninorm/canonical-decomposition: New file.
19433
19434         Tests for module 'uninorm/decomposition'.
19435         * tests/uninorm/test-decomposition.c: New file.
19436         * modules/uninorm/decomposition-tests: New file.
19437
19438         New module 'uninorm/decomposition'.
19439         * lib/uninorm/decomposition.c: New file.
19440         * modules/uninorm/decomposition: New file.
19441
19442         New module 'uninorm/decomposition-table'.
19443         * lib/uninorm/decomposition-table.h: New file.
19444         * lib/uninorm/decomposition-table.c: New file.
19445         * lib/uninorm/decomposition-table1.h: New file, generated by
19446         gen-uni-tables.
19447         * lib/uninorm/decomposition-table2.h: New file, generated by
19448         gen-uni-tables.
19449         * modules/uninorm/decomposition-table: New file.
19450
19451         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19452         (UC_DECOMP_*): New enumeration items.
19453         (get_decomposition): New function.
19454         (struct decomp_table): New type.
19455         (output_decomposition, output_decomposition_tables): New functions.
19456         (unicode_composition_exclusions): New variable.
19457         (fill_composition_exclusions, debug_output_composition_tables): New
19458         functions.
19459         (main): Accept one more argument. Invoke fill_composition_exclusions.
19460         Output decomposition and composition tables.
19461
19462         New module 'uninorm/base'.
19463         * lib/uninorm.h: New file.
19464         * lib/unictype.h: Update comment.
19465         * modules/uninorm/base: New file.
19466
19467 2009-02-21  David Lutterkort  <lutter@redhat.com>
19468
19469         Tests for module 'safe-alloc'.
19470         * tests/test-safe-alloc.c: New file.
19471         * modules/safe-alloc-tests: New file.
19472
19473         New module 'safe-alloc'.
19474         * lib/safe-alloc.h: New file.
19475         * lib/safe-alloc.c: New file.
19476         * m4/safe-alloc.m4: New file.
19477         * modules/safe-alloc: New file.
19478         * doc/safe-alloc.texi: New file.
19479         * doc/gnulib.texi: Include it.
19480         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19481         safe-alloc.
19482
19483 2009-02-18  Bruno Haible  <bruno@clisp.org>
19484
19485         Fix link error on non-glibc systems.
19486         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19487         variable.
19488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19489
19490 2009-02-18  Jim Meyering  <meyering@redhat.com>
19491
19492         fts: avoid used-uninitialized error due to recent change
19493         * lib/fts.c (fts_read): Guard uses of the new member,
19494         parent->fts_n_dirs_remaining, since it's not relevant for
19495         the parent of a directory specified on the command-line.
19496
19497 2009-02-17  James Youngman  <jay@gnu.org>
19498             Bruno Haible  <bruno@clisp.org>
19499
19500         * m4/include_next.m4: Reformulate comment.
19501
19502 2009-02-16  Jim Meyering  <meyering@redhat.com>
19503
19504         fts: add #if guards so that the fts_lgpl module still builds
19505         * lib/fts.c: Guard just-added hash-table-using parts with
19506         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19507         Reported by Simon Josefsson.
19508
19509 2009-02-15  Bruno Haible  <bruno@clisp.org>
19510
19511         * modules/array-mergesort-tests: New file.
19512         * tests/test-array-mergesort.c: New file.
19513
19514         New module 'array-mergesort'.
19515         * modules/array-mergesort: New file.
19516         * lib/array-mergesort.h: New file.
19517
19518 2009-02-15  Bruno Haible  <bruno@clisp.org>
19519
19520         Fix 2009-02-07 commit.
19521         * lib/gen-uni-tables.c (output_predicate, output_category,
19522         output_combclass, output_bidi_category, output_decimal_digit,
19523         output_digit, output_numeric, output_mirror, output_scripts,
19524         output_ident_category, output_simple_mapping): Fix format directives.
19525         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19526
19527 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19528
19529         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19530         fixes are available from IBM.
19531
19532 2009-02-13  Jim Meyering  <meyering@redhat.com>
19533
19534         fts: arrange not to stat non-directories in more cases
19535         This makes GNU find (when it doesn't need to stat each file)
19536         *much* more efficient at traversing reiserfs file systems.
19537         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19538         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19539         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19540         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19541         (leaf_optimization_applies): New function.
19542         (LCO_hash, LCO_compare): New helper functions.
19543         (link_count_optimize_ok): New function.
19544         (fts_stat): Initialize new member (if dir).
19545         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19546         we've just stat'ed a directory.  Skip the stat call when possible.
19547         ---
19548         Note this AFS-related exchange:
19549         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19550         and note find's pioctl call in find/fstype.c.
19551         But that is necessary only if you want to enable the
19552         optimization for AFS, and for now, I don't.
19553
19554         fts: move a function definition "up" (no semantic change)
19555         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19556         "up" to precede upcoming use of a related function.
19557
19558 2009-02-11  Jim Meyering  <meyering@redhat.com>
19559
19560         fts: correct internal computation of nlinks (optimization-related)
19561         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19562         whether the current entry is a directory, so don't test it.
19563
19564 2009-02-10  Bruno Haible  <bruno@clisp.org>
19565
19566         Tests for module 'uniwbrk/ulc-wordbreaks'.
19567         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19568         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19569         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19570
19571         Tests for module 'uniwbrk/u32-wordbreaks'.
19572         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19573         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19574
19575         Tests for module 'uniwbrk/u16-wordbreaks'.
19576         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19577         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19578
19579         Tests for module 'uniwbrk/u8-wordbreaks'.
19580         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19581         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19582
19583 2009-02-10  Bruno Haible  <bruno@clisp.org>
19584
19585         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19586         property.
19587         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19588         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19589         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19590
19591 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19592
19593         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19594         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19595
19596 2009-02-10  Bruno Haible  <bruno@clisp.org>
19597
19598         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19599         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19600         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19601         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19602         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19603         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19604
19605 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19606
19607         * lib/sockets.h (gl_fd_to_handle): New function.
19608
19609         * tests/test-sockets.c: Call gl_fd_to_handle.
19610
19611 2009-02-09  Bruno Haible  <bruno@clisp.org>
19612
19613         * doc/havelib.texi: Document the conventions on bi-arch systems.
19614
19615 2009-02-08  Bruno Haible  <bruno@clisp.org>
19616
19617         Document the AC_LIB_LINKFLAGS macro.
19618         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19619         * doc/gnulib.texi: Include it.
19620
19621 2009-02-08  Bruno Haible  <bruno@clisp.org>
19622
19623         Fix wrong order of sections, compared to TOC.
19624         * doc/gnulib.texi: Include relocatable-maint.texi after the
19625         "Regular expressions" node, not before.
19626
19627 2009-02-08  Bruno Haible  <bruno@clisp.org>
19628
19629         Tests for module 'unicase/totitle'.
19630         * modules/unicase/totitle-tests: New file.
19631
19632         Tests for module 'unicase/tolower'.
19633         * modules/unicase/tolower-tests: New file.
19634
19635         Tests for module 'unicase/toupper'.
19636         * modules/unicase/toupper-tests: New file.
19637         * tests/unicase/test-mapping-part1.h: New file.
19638         * tests/unicase/test-mapping-part2.h: New file.
19639
19640         New module 'unicase/totitle'.
19641         * modules/unicase/totitle: New file.
19642         * lib/unicase/totitle.c: New file.
19643
19644         New module 'unicase/tolower'.
19645         * modules/unicase/tolower: New file.
19646         * lib/unicase/tolower.c: New file.
19647
19648         New module 'unicase/toupper'.
19649         * modules/unicase/toupper: New file.
19650         * lib/unicase/toupper.c: New file.
19651         * lib/unicase/simple-mapping.h: New file.
19652
19653         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19654         (mapping_table): New structure.
19655         (output_simple_mapping): New function.
19656         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19657         * modules/gen-uni-tables (Description): Update.
19658         * lib/unicase/toupper.h: New file, automatically generated by
19659         gen-uni-tables.
19660         * lib/unicase/tolower.h: New file, automatically generated by
19661         gen-uni-tables.
19662         * lib/unicase/totitle.h: New file, automatically generated by
19663         gen-uni-tables.
19664         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19665         gen-uni-tables.
19666         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19667         gen-uni-tables.
19668         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19669         gen-uni-tables.
19670
19671         New module 'unicase/base'.
19672         * modules/unicase/base: New file.
19673         * lib/unicase.h: New file.
19674
19675 2009-02-08  Bruno Haible  <bruno@clisp.org>
19676
19677         New module 'uniwbrk/ulc-wordbreaks'.
19678         * modules/uniwbrk/ulc-wordbreaks: New file.
19679         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19680
19681         New module 'uniwbrk/u32-wordbreaks'.
19682         * modules/uniwbrk/u32-wordbreaks: New file.
19683         * lib/uniwbrk/u32-wordbreaks.c: New file.
19684
19685         New module 'uniwbrk/u16-wordbreaks'.
19686         * modules/uniwbrk/u16-wordbreaks: New file.
19687         * lib/uniwbrk/u16-wordbreaks.c: New file.
19688
19689         New module 'uniwbrk/u8-wordbreaks'.
19690         * modules/uniwbrk/u8-wordbreaks: New file.
19691         * lib/uniwbrk/u8-wordbreaks.c: New file.
19692         * lib/uniwbrk/u-wordbreaks.h: New file.
19693
19694         New module 'uniwbrk/table'.
19695         * modules/uniwbrk/table: New file.
19696         * lib/uniwbrk/wbrktable.h: New file.
19697         * lib/uniwbrk/wbrktable.c: New file.
19698
19699         New module 'uniwbrk/wordbreak-property'.
19700         * modules/uniwbrk/wordbreak-property: New file.
19701         * lib/uniwbrk/wordbreak-property.c: New file.
19702
19703         * lib/gen-uni-tables.c (WBP_*): New enum items.
19704         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19705         (unicode_org_wbp): New variable.
19706         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19707         New functions.
19708         (wbp_table): New structure.
19709         (output_wbp, output_wbrk_tables): New functions.
19710         (main): Accept additional argument. Invoke fill_org_wbp,
19711         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19712         output_wbrk_tables.
19713         * modules/gen-uni-tables (Description): Update.
19714         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19715         gen-uni-tables.
19716
19717         New module 'uniwbrk/base'.
19718         * modules/uniwbrk/base: New file.
19719         * lib/uniwbrk.h: New file.
19720
19721 2009-02-08  Bruno Haible  <bruno@clisp.org>
19722
19723         Update to Unicode 5.1.0.
19724         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19725         U+2185..U+2188.
19726         (is_property_default_ignorable_code_point): Don't include characters
19727         of category Cc or Cs and not-a-characters.
19728         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19729         U+0D79, U+109E, U+109F, U+A60C.
19730         * lib/unictype/bidi_of.h: Regenerated.
19731         * lib/unictype/blocks.h: Regenerated.
19732         * lib/unictype/categ_C.h: Regenerated.
19733         * lib/unictype/categ_Cf.h: Regenerated.
19734         * lib/unictype/categ_Cn.h: Regenerated.
19735         * lib/unictype/categ_L.h: Regenerated.
19736         * lib/unictype/categ_Ll.h: Regenerated.
19737         * lib/unictype/categ_Lm.h: Regenerated.
19738         * lib/unictype/categ_Lo.h: Regenerated.
19739         * lib/unictype/categ_Lu.h: Regenerated.
19740         * lib/unictype/categ_M.h: Regenerated.
19741         * lib/unictype/categ_Mc.h: Regenerated.
19742         * lib/unictype/categ_Me.h: Regenerated.
19743         * lib/unictype/categ_Mn.h: Regenerated.
19744         * lib/unictype/categ_N.h: Regenerated.
19745         * lib/unictype/categ_Nd.h: Regenerated.
19746         * lib/unictype/categ_Nl.h: Regenerated.
19747         * lib/unictype/categ_No.h: Regenerated.
19748         * lib/unictype/categ_P.h: Regenerated.
19749         * lib/unictype/categ_Pd.h: Regenerated.
19750         * lib/unictype/categ_Pe.h: Regenerated.
19751         * lib/unictype/categ_Pf.h: Regenerated.
19752         * lib/unictype/categ_Pi.h: Regenerated.
19753         * lib/unictype/categ_Po.h: Regenerated.
19754         * lib/unictype/categ_Ps.h: Regenerated.
19755         * lib/unictype/categ_S.h: Regenerated.
19756         * lib/unictype/categ_Sk.h: Regenerated.
19757         * lib/unictype/categ_Sm.h: Regenerated.
19758         * lib/unictype/categ_So.h: Regenerated.
19759         * lib/unictype/categ_of.h: Regenerated.
19760         * lib/unictype/combining.h: Regenerated.
19761         * lib/unictype/ctype_alnum.h: Regenerated.
19762         * lib/unictype/ctype_alpha.h: Regenerated.
19763         * lib/unictype/ctype_graph.h: Regenerated.
19764         * lib/unictype/ctype_lower.h: Regenerated.
19765         * lib/unictype/ctype_print.h: Regenerated.
19766         * lib/unictype/ctype_punct.h: Regenerated.
19767         * lib/unictype/ctype_upper.h: Regenerated.
19768         * lib/unictype/decdigit.h: Regenerated.
19769         * lib/unictype/digit.h: Regenerated.
19770         * lib/unictype/mirror.h: Regenerated.
19771         * lib/unictype/numeric.h: Regenerated.
19772         * lib/unictype/pr_alphabetic.h: Regenerated.
19773         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19774         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19775         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19776         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19777         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19778         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19779         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19780         * lib/unictype/pr_combining.h: Regenerated.
19781         * lib/unictype/pr_dash.h: Regenerated.
19782         * lib/unictype/pr_decimal_digit.h: Regenerated.
19783         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19784         * lib/unictype/pr_deprecated.h: Regenerated.
19785         * lib/unictype/pr_diacritic.h: Regenerated.
19786         * lib/unictype/pr_extender.h: Regenerated.
19787         * lib/unictype/pr_format_control.h: Regenerated.
19788         * lib/unictype/pr_grapheme_base.h: Regenerated.
19789         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19790         * lib/unictype/pr_grapheme_link.h: Regenerated.
19791         * lib/unictype/pr_id_continue.h: Regenerated.
19792         * lib/unictype/pr_id_start.h: Regenerated.
19793         * lib/unictype/pr_ideographic.h: Regenerated.
19794         * lib/unictype/pr_ignorable_control.h: Regenerated.
19795         * lib/unictype/pr_lowercase.h: Regenerated.
19796         * lib/unictype/pr_math.h: Regenerated.
19797         * lib/unictype/pr_numeric.h: Regenerated.
19798         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19799         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19800         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19801         * lib/unictype/pr_other_id_continue.h: Regenerated.
19802         * lib/unictype/pr_other_lowercase.h: Regenerated.
19803         * lib/unictype/pr_other_math.h: Regenerated.
19804         * lib/unictype/pr_punctuation.h: Regenerated.
19805         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19806         * lib/unictype/pr_soft_dotted.h: Regenerated.
19807         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19808         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19809         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19810         * lib/unictype/pr_uppercase.h: Regenerated.
19811         * lib/unictype/pr_xid_continue.h: Regenerated.
19812         * lib/unictype/pr_xid_start.h: Regenerated.
19813         * lib/unictype/pr_zero_width.h: Regenerated.
19814         * lib/unictype/scripts.h: Regenerated.
19815         * lib/unictype/scripts_byname.gperf: Regenerated.
19816         * lib/unictype/sy_java_ident.h: Regenerated.
19817         * lib/unilbrk/lbrkprop1.h: Regenerated.
19818         * lib/unilbrk/lbrkprop2.h: Regenerated.
19819         * tests/unictype/test-categ_C.c: Regenerated.
19820         * tests/unictype/test-categ_Cf.c: Regenerated.
19821         * tests/unictype/test-categ_Cn.c: Regenerated.
19822         * tests/unictype/test-categ_L.c: Regenerated.
19823         * tests/unictype/test-categ_Ll.c: Regenerated.
19824         * tests/unictype/test-categ_Lm.c: Regenerated.
19825         * tests/unictype/test-categ_Lo.c: Regenerated.
19826         * tests/unictype/test-categ_Lu.c: Regenerated.
19827         * tests/unictype/test-categ_M.c: Regenerated.
19828         * tests/unictype/test-categ_Mc.c: Regenerated.
19829         * tests/unictype/test-categ_Me.c: Regenerated.
19830         * tests/unictype/test-categ_Mn.c: Regenerated.
19831         * tests/unictype/test-categ_N.c: Regenerated.
19832         * tests/unictype/test-categ_Nd.c: Regenerated.
19833         * tests/unictype/test-categ_Nl.c: Regenerated.
19834         * tests/unictype/test-categ_No.c: Regenerated.
19835         * tests/unictype/test-categ_P.c: Regenerated.
19836         * tests/unictype/test-categ_Pd.c: Regenerated.
19837         * tests/unictype/test-categ_Pe.c: Regenerated.
19838         * tests/unictype/test-categ_Pf.c: Regenerated.
19839         * tests/unictype/test-categ_Pi.c: Regenerated.
19840         * tests/unictype/test-categ_Po.c: Regenerated.
19841         * tests/unictype/test-categ_Ps.c: Regenerated.
19842         * tests/unictype/test-categ_S.c: Regenerated.
19843         * tests/unictype/test-categ_Sk.c: Regenerated.
19844         * tests/unictype/test-categ_Sm.c: Regenerated.
19845         * tests/unictype/test-categ_So.c: Regenerated.
19846         * tests/unictype/test-ctype_alnum.c: Regenerated.
19847         * tests/unictype/test-ctype_alpha.c: Regenerated.
19848         * tests/unictype/test-ctype_graph.c: Regenerated.
19849         * tests/unictype/test-ctype_lower.c: Regenerated.
19850         * tests/unictype/test-ctype_print.c: Regenerated.
19851         * tests/unictype/test-ctype_punct.c: Regenerated.
19852         * tests/unictype/test-ctype_upper.c: Regenerated.
19853         * tests/unictype/test-decdigit.h: Regenerated.
19854         * tests/unictype/test-digit.h: Regenerated.
19855         * tests/unictype/test-numeric.h: Regenerated.
19856         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19857         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19858         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19859         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19860         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19861         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19862         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19863         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19864         * tests/unictype/test-pr_combining.c: Regenerated.
19865         * tests/unictype/test-pr_dash.c: Regenerated.
19866         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19867         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19868         * tests/unictype/test-pr_deprecated.c: Regenerated.
19869         * tests/unictype/test-pr_diacritic.c: Regenerated.
19870         * tests/unictype/test-pr_extender.c: Regenerated.
19871         * tests/unictype/test-pr_format_control.c: Regenerated.
19872         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19873         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19874         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19875         * tests/unictype/test-pr_id_continue.c: Regenerated.
19876         * tests/unictype/test-pr_id_start.c: Regenerated.
19877         * tests/unictype/test-pr_ideographic.c: Regenerated.
19878         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
19879         * tests/unictype/test-pr_lowercase.c: Regenerated.
19880         * tests/unictype/test-pr_math.c: Regenerated.
19881         * tests/unictype/test-pr_numeric.c: Regenerated.
19882         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
19883         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
19884         Regenerated.
19885         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
19886         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
19887         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
19888         * tests/unictype/test-pr_other_math.c: Regenerated.
19889         * tests/unictype/test-pr_punctuation.c: Regenerated.
19890         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
19891         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
19892         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
19893         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
19894         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
19895         * tests/unictype/test-pr_uppercase.c: Regenerated.
19896         * tests/unictype/test-pr_xid_continue.c: Regenerated.
19897         * tests/unictype/test-pr_xid_start.c: Regenerated.
19898         * tests/unictype/test-pr_zero_width.c: Regenerated.
19899
19900         Update to Unicode 5.1.0.
19901         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
19902         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
19903         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
19904         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
19905         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
19906         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
19907         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
19908         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
19909         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
19910         (nonspacing_table_ind): Update.
19911         * tests/uniwidth/test-uc_width2.sh: Update expected result.
19912
19913         Update to Unicode 5.1.0.
19914         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
19915         code transform.
19916         * lib/uniname/uniname.c (unicode_character_name,
19917         unicode_name_character): Add the range 0x1Fxxx to the code transform.
19918         * lib/uniname/uninames.h: Regenerated.
19919         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
19920
19921 2009-02-07  Bruno Haible  <bruno@clisp.org>
19922
19923         Merge gen-ctype and gen-lbrk into a single program.
19924         * lib/gen-uni-tables.c: New file, incorporating
19925         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
19926         Add directory prefixes to the names of the generated files.
19927         * lib/unictype/gen-ctype.c: Remove file.
19928         * lib/unilbrk/gen-lbrk.c: Remove file.
19929         * modules/gen-uni-tables: New file.
19930         * modules/unictype/gen-ctype: Remove file.
19931         * modules/unilbrk/gen-lbrk: Remove file.
19932
19933 2009-02-07  Bruno Haible  <bruno@clisp.org>
19934
19935         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
19936
19937         New module 'unistr/u32-strcoll'.
19938         * modules/unistr/u32-strcoll: New file.
19939         * lib/unistr/u32-strcoll.c: New file.
19940
19941         New module 'unistr/u16-strcoll'.
19942         * modules/unistr/u16-strcoll: New file.
19943         * lib/unistr/u16-strcoll.c: New file.
19944
19945         New module 'unistr/u8-strcoll'.
19946         * modules/unistr/u8-strcoll: New file.
19947         * lib/unistr/u8-strcoll.c: New file.
19948         * lib/unistr/u-strcoll.h: New file.
19949
19950 2009-02-07  Bruno Haible  <bruno@clisp.org>
19951
19952         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
19953         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19954         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19955         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
19956         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
19957         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
19958
19959 2009-02-07  Bruno Haible  <bruno@clisp.org>
19960
19961         Make 64-bit clean.
19962         * lib/unictype/gen-ctype.c (output_predicate, output_category,
19963         output_combclass, output_bidi_category, output_decimal_digit,
19964         output_digit, output_numeric, output_mirror, output_scripts,
19965         output_ident_category): Use proper width specifier in format strings.
19966
19967 2009-02-07  Bruno Haible  <bruno@clisp.org>
19968
19969         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
19970         failure behaviour.
19971
19972 2009-02-07  Jim Meyering  <meyering@redhat.com>
19973
19974         regex: avoid compilation failure with upcoming gcc-4.4
19975         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
19976         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
19977         "... error: integer overflow in preprocessor expression".
19978
19979 2009-02-05  Ben Pfaff  <blp@gnu.org>
19980
19981         Fix link errors on Windows when close module is used.
19982         * modules/close: Add $(LIB_CLOSE) to Link section.
19983         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
19984         $(LIB_CLOSE) on Windows.
19985
19986 2009-02-05  Jim Meyering  <meyering@redhat.com>
19987
19988         still avoid unused-parameter warnings, but do it cleanly
19989         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
19990         (get_fs_usage): Cast to void instead.
19991         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
19992         (dev_from_mount_options, read_file_system_list): Cast to void.
19993         Prompted by Bruno Haible.
19994
19995 2009-02-04  Jim Meyering  <meyering@redhat.com>
19996
19997         fsusage.c: correct copyright year
19998         * lib/fsusage.c: Reflect year in which the change is pushed into
19999
20000         avoid misc. warnings
20001         * lib/fsusage.c (UNUSED_PARAM): Define.
20002         (get_fs_usage): Mark parameter "disk" as unused.
20003         * lib/getugroups.c (getgrent): Use "void" in prototype.
20004         * lib/mountlist.c: Mark unused parameters.
20005         (read_file_system_list): Declare a local with "const".
20006         * lib/nanosleep.c (getnow): Declare static.
20007         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20008
20009         dirfd: set errno upon failure
20010         * lib/dirfd.c: Include <errno.h>.
20011         Set errno to ENOTSUP when returning -1.
20012         * modules/dirfd (Depends-on): Add errno.
20013         Suggested by John Kodis <kodis@comcast.net>.
20014
20015 2009-02-01  Bruno Haible  <bruno@clisp.org>
20016
20017         Don't assume sizeof (long) >= sizeof (void *).
20018         * lib/memcmp.c: Include stdint.h.
20019         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20020         srcp2 to 'const byte *'.
20021         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20022         types to uintptr_t.
20023         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20024         * modules/memcmp (Depends-on): Add stdint.
20025         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20026
20027 2009-01-30  Eric Blake  <ebb9@byu.net>
20028
20029         fix more require-before-expand issues
20030         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20031         expand, AC_PROG_AWK.
20032         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20033
20034 2009-01-28  Eric Blake  <ebb9@byu.net>
20035
20036         version-etc: use consistent URL formatting
20037         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20038         Improve formatting.  Use fputs for string without %.
20039
20040 2009-01-28  Jim Meyering  <meyering@redhat.com>
20041
20042         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20043         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20044         "underquoted definition of NAME" from autoconf-2.59.
20045
20046 2009-01-28  Bruno Haible  <bruno@clisp.org>
20047
20048         * doc/gnulib.texi: Add "Obsolete modules" to index.
20049
20050 2009-01-28  Jim Meyering  <meyering@redhat.com>
20051
20052         useless-if-before-free: recognize more variants
20053         * build-aux/useless-if-before-free: Also recognize e.g.,
20054         if (NULL != p) free (p);
20055
20056 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20057
20058         test-getaddrinfo: skip (don't fail) this test when there's no network
20059         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20060         on the presumption that it means you lack network access.
20061
20062 2009-01-26  Jim Meyering  <meyering@redhat.com>
20063
20064         fflush: avoid warnings on modern systems
20065         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20066         pos and result, into scopes where they're used.
20067
20068 2009-01-26  Eric Blake  <ebb9@byu.net>
20069
20070         Silence warning reintroduced by recent extensions patch.
20071         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20072         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20073         autoconf.
20074
20075         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20076         * m4/00gnulib.m4: New file.
20077         * gnulib-tool (func_get_filelist): Always use it.
20078         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20079         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20080
20081 2009-01-25  Bruno Haible  <bruno@clisp.org>
20082
20083         Make test-quotearg work on MacOS X and AIX.
20084         * tests/test-quotearg.sh: New file.
20085         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20086         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20087         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20088         include <libintl.h>.
20089         (fake_locale): Remove variable.
20090         (gettext, dgettext, dcgettext): Remove functions.
20091         (main): Instead of setting a fake locale, set a real locale. Call
20092         textdomain and bindtextdomain.
20093         * modules/quotearg-tests (Files): Add the new files.
20094         (Depends-on): Add gettext, setenv, unsetenv.
20095         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20096         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20097         Augment TESTS_ENVIRONMENT.
20098
20099 2009-01-25  Bruno Haible  <bruno@clisp.org>
20100
20101         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20102         fr_FR.ISO8859-1 locale on MacOS X.
20103         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20104         ja_JP.eucJP locale on MacOS X.
20105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20106         zh_CN.GB18030 locale on MacOS X.
20107
20108 2009-01-25  Bruno Haible  <bruno@clisp.org>
20109
20110         Avoid link errors on MacOS X 10.3.
20111         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20112         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20113
20114 2009-01-25  Bruno Haible  <bruno@clisp.org>
20115
20116         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20117         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20118         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20119         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20120         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20121         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20122         posix_spawnattr_init, posix_spawnattr_setsigmask,
20123         posix_spawnattr_setflags, posix_spawnattr_destroy.
20124
20125         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20126         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20127         * modules/execute (Files): Remove m4/posix_spawn.m4.
20128         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20129         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20130         posix_spawnattr_init, posix_spawnattr_setsigmask,
20131         posix_spawnattr_setflags, posix_spawnattr_destroy.
20132
20133 2009-01-25  Bruno Haible  <bruno@clisp.org>
20134
20135         * lib/glthread/threadlib.c: Include <stdlib.h>.
20136
20137 2009-01-25  Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/glthread/threadlib.c (dummy): New declaration.
20140
20141 2009-01-25  Bruno Haible  <bruno@clisp.org>
20142
20143         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20144         multibyte characters also for the GB18030 encoding. Don't crash when
20145         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20146
20147 2009-01-25  Bruno Haible  <bruno@clisp.org>
20148
20149         Avoid redefining 'struct random_data' on OSF/1 5.1.
20150         * lib/stdlib.in.h: Include <random.h> if it exists.
20151         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20152         HAVE_RANDOM_H. Include <random.h> when testing whether
20153         'struct random_data' exists.
20154         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20155
20156 2009-01-25  Bruno Haible  <bruno@clisp.org>
20157
20158         Don't install charset.alias on MacOS X >= 10.3.
20159         * lib/localcharset.c (DARWIN7): New macro.
20160         (get_charset_aliases): Hardcode the result for Darwin7.
20161         * modules/localcharset (install-exec-local): Don't install
20162         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20163
20164 2009-01-25  Bruno Haible  <bruno@clisp.org>
20165
20166         Don't install charset.alias on mingw and Cygwin.
20167         * modules/localcharset (install-exec-local): Don't install
20168         charset.alias on mingw and Cygwin, if the file does not yet exist.
20169         The result for these platforms is hardcoded in localcharset.c.
20170
20171 2009-01-25  Bruno Haible  <bruno@clisp.org>
20172
20173         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20174         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20175         before requiring AC_USE_SYSTEM_EXTENSIONS.
20176
20177 2009-01-25  Jim Meyering  <meyering@redhat.com>
20178
20179         c-strtod: avoid warnings
20180         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20181         "assignment discards qualifiers from pointer target type" warnings.
20182
20183 2009-01-24  Bruno Haible  <bruno@clisp.org>
20184
20185         Add support for non-UTF-8 locales on MacOS X.
20186         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20187         canonical encodings. For Darwin 7 and newer, don't map traditional
20188         encodings to UTF-8.
20189         Reported by Vincent Lefevre <vincent@vinc17.org>
20190         at <http://savannah.gnu.org/bugs/?25235>.
20191
20192 2009-01-24  Bruno Haible  <bruno@clisp.org>
20193
20194         * doc/gnulib.texi (Obsolete modules): New section.
20195         Reported by Mike Frysinger <vapier@gentoo.org>.
20196
20197 2009-01-24  Bruno Haible  <bruno@clisp.org>
20198
20199         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20200         (%.dvi): New rule.
20201
20202 2009-01-24  Bruno Haible  <bruno@clisp.org>
20203
20204         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20205         Reported by Eric Blake.
20206
20207 2009-01-24  Bruno Haible  <bruno@clisp.org>
20208
20209         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20210         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20211         Reported by Gary V. Vaughan <gary@gnu.org>.
20212
20213 2009-01-24  Bruno Haible  <bruno@clisp.org>
20214
20215         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20216
20217 2009-01-23  Bruno Haible  <bruno@clisp.org>
20218
20219         Make c-strtod, c-strtold usable in libraries.
20220         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20221         (C_STRTOD): Call strdup instead of xstrdup.
20222         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20223         * modules/c-strtold (Depends-on): Likewise.
20224         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20225         * NEWS: Mention the change.
20226         Reported by Michael Gold <mgold@ncf.ca>.
20227
20228 2009-01-23  Jim Meyering  <meyering@redhat.com>
20229
20230         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20231         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20232         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20233
20234 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20235
20236         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20237         GNU CoreUtils.
20238         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20239         * modules/version-etc (Description): Update.
20240
20241 2009-01-22  Bruno Haible  <bruno@clisp.org>
20242
20243         Cache the C locale object.
20244         * lib/c-strtod.c (c_locale_cache): New variable.
20245         (c_locale): New function.
20246         (C_STRTOD): Use it, and don't call freelocale.
20247         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20248         Suggested by Paolo Bonzini.
20249
20250 2009-01-21  Bruno Haible  <bruno@clisp.org>
20251
20252         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20253         conditions other than overflow.
20254
20255 2009-01-21  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/c-strtod.c: Include errno.h.
20258         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20259         value from STRTOD_L and STRTOD.
20260
20261 2009-01-21  Bruno Haible  <bruno@clisp.org>
20262         and Jim Meyering  <meyering@redhat.com>
20263
20264         nanosleep: skip configure test (fail it) for apple universal builds
20265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20266         universal builds, assume that nanosleep does not work.
20267         * modules/nanosleep (Depends-on): Add multiarch.
20268
20269         mktime: skip configure test (fail it) for apple universal builds
20270         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20271         universal builds, assume that mktime does not work.
20272         * modules/mktime (Depends-on): Add multiarch.
20273
20274 2009-01-21  Eric Blake  <ebb9@byu.net>
20275
20276         multiarch: avoid expand-before-require warning
20277         * modules/multiarch (configure.ac): Require, rather than expand,
20278         gl_MULTIARCH.
20279         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20280         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20281         enforce that all clients require it.  Partial reversion of
20282         2008-12-29 patch.
20283
20284         error: avoid expand-before-require warning
20285         * modules/errno (configure.ac): Require, rather than expand,
20286         gl_HEADER_ERRNO_H.
20287         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20288         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20289         enforce that all clients require it.
20290
20291         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20292         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20293         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20294         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20295
20296 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20297
20298         Revert:
20299         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20300
20301         regex: do not depend on obsolete modules.
20302         * modules/regex: Remove memcmp and memmove.
20303
20304 2009-01-20  Bruno Haible  <bruno@clisp.org>
20305
20306         Make the 'link' module link on Windows NT 4.
20307         * lib/link.c (_WIN32_WINNT): Don't define.
20308         (CreateHardLinkFuncType): New type.
20309         (CreateHardLinkFunc, initialized): New variables.
20310         (initialize): New function.
20311         (link): Invoke CreateHardLink indirectly through the function pointer.
20312
20313 2009-01-20  Bruno Haible  <bruno@clisp.org>
20314
20315         Fix compilation failure on mingw.
20316         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20317
20318 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20319
20320         * doc/c-strtod.texi: Mention a couple of restrictions.
20321
20322 2009-01-20  Jim Meyering  <meyering@redhat.com>
20323
20324         gettimeofday: move more declarations out of functions
20325         * lib/gettimeofday.c: Move extern declarations of tzset and
20326         gmtime out of containing functions.  Prompted by Bruno Haible.
20327
20328 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20329
20330         regex: do not depend on obsolete modules.
20331         * modules/regex: Remove memcmp and memmove.
20332
20333 2009-01-19  Bruno Haible  <bruno@clisp.org>
20334
20335         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20336         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20337         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20338         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20339         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20340
20341 2009-01-19  Bruno Haible  <bruno@clisp.org>
20342
20343         * tests/test-link.c: Include <errno.h>.
20344         (main): Exit with code 77 when a hard link cannot be created due to
20345         the file system.
20346         * tests/test-link.sh: Skip test when a hard link cannot be created due
20347         to the file system.
20348         Suggested by Eric Blake.
20349
20350 2009-01-19  Martin Lambers  <marlam@marlam.de>
20351
20352         * modules/link-tests: New file.
20353         * tests/test-link.sh: New file.
20354         * tests/test-link.c: New file.
20355
20356 2009-01-19  Eric Blake  <ebb9@byu.net>
20357
20358         doc: mention another function added in cygwin 1.7.0
20359         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20360         Another new function in cygwin 1.7.
20361
20362 2009-01-19  Bruno Haible  <bruno@clisp.org>
20363
20364         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20365         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20366         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20367         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20368         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20369         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20370         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20371         * m4/md4.m4 (gl_MD4): Likewise.
20372         * m4/md5.m4 (gl_MD5): Likewise.
20373         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20374         * m4/sha1.m4 (gl_SHA1): Likewise.
20375         * m4/sha256.m4 (gl_SHA256): Likewise.
20376         * m4/sha512.m4 (gl_SHA512): Likewise.
20377
20378 2009-01-19  Bruno Haible  <bruno@clisp.org>
20379
20380         * modules/uniname/uniname-tests (Depends-on): Add progname.
20381         * tests/uniname/test-uninames.c: Include progname.h.
20382         (main): Call set_program_name.
20383
20384         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20385         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20386         (main): Call set_program_name.
20387
20388         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20389         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20390         (main): Call set_program_name.
20391
20392         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20393         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20394         (main): Call set_program_name.
20395
20396         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20397         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20398         (main): Call set_program_name.
20399
20400         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20401         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20402         (main): Call set_program_name.
20403
20404         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20405         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20406         (main): Call set_program_name.
20407
20408         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20409         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20410         (main): Call set_program_name.
20411
20412         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20413         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20414         (main): Call set_program_name.
20415
20416 2009-01-19  Eric Blake  <ebb9@byu.net>
20417
20418         test-unistd: test previous patch
20419         * tests/test-unistd.c: Test *_FILENO macros.
20420
20421         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20422         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20423         Guarantee a definition.
20424         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20425         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20426         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20427         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20428         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20429         Likewise.
20430         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20431         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20432         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20433         Likewise.
20434         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20435         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20436         (STDERR_FILENO): Likewise.
20437         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20438         (STDERR_FILENO): Likewise.
20439         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20440         (STDERR_FILENO): Likewise.
20441         Reported by Elbert Pol.
20442
20443 2009-01-19  Eric Blake  <ebb9@byu.net>
20444
20445         doc: mention more functions added in cygwin 1.7.0
20446         * doc/posix-functions/abort.texi (abort): Update wording related
20447         to cygwin.
20448         * doc/posix-functions/daylight.texi (daylight): Likewise.
20449         * doc/posix-functions/optarg.texi (optarg): Likewise.
20450         * doc/posix-functions/optarg.texi (opterr): Likewise.
20451         * doc/posix-functions/optarg.texi (optind): Likewise.
20452         * doc/posix-functions/optarg.texi (optopt): Likewise.
20453         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20454         worked in 1.5.x, and was withdrawn in 1.7.
20455         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20456         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20457         cygwin versions.
20458         * doc/posix-functions/perror.texi (perror): Likewise.
20459         * doc/posix-functions/printf.texi (printf): Likewise.
20460         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20461         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20462         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20463         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20464         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20465         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20466         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20467         Likewise.
20468         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20469         Likewise.
20470         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20471         this function.
20472         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20473         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20474         Likewise.
20475         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20476         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20477         * doc/posix-functions/confstr.texi (confstr): Likewise.
20478         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20479         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20480         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20481         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20482         * doc/posix-functions/fputws.texi (fputws): Likewise.
20483         * doc/posix-functions/fwide.texi (fwide): Likewise.
20484         * doc/posix-functions/getwc.texi (getwc): Likewise.
20485         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20486         * doc/posix-functions/putwc.texi (putwc): Likewise.
20487         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20488         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20489         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20490         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20491         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20492         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20493         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20494         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20495         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20496         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20497         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20498
20499 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20500
20501         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20502         * lib/ioctl.c: Include <sys/ioctl.h>.
20503
20504 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20505
20506         * modules/getdate-tests (Depends-on): Add progname.
20507         * tests/test-getdate.c: Use progname module, to avoid link errors
20508         on non-glibc systems.
20509
20510 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20511
20512         * modules/filenamecat-tests (Depends-on): Add progname.
20513         * modules/fstrcmp-tests (Depends-on): Likewise.
20514
20515         * tests/test-filenamecat.c: Use progname module, to avoid link
20516         errors on non-glibc systems.
20517         * tests/test-fstrcmp.c: Likewise.
20518
20519 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20520
20521         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20522         * lib/gettimeofday.c: Move extern declaration out of function.
20523
20524 2009-01-18  Bruno Haible  <bruno@clisp.org>
20525
20526         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20527         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20528         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20529
20530 2009-01-18  Bruno Haible  <bruno@clisp.org>
20531
20532         * lib/strftime.c (MEMPCPY): Remove unused macro.
20533         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20534
20535 2009-01-18  Martin Lambers  <marlam@marlam.de>
20536
20537         New module 'link'.
20538         * lib/unistd.in.h (link): New declaration.
20539         * lib/link.c: New file.
20540         * m4/link.m4: New file.
20541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20542         HAVE_LINK.
20543         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20544         * modules/link: New file.
20545         * doc/posix-functions/link.texi: Mention the new module.
20546
20547 2009-01-18  Bruno Haible  <bruno@clisp.org>
20548
20549         * tests/test-avltree_list.c (main): Call set_program_name.
20550         * tests/test-avltree_oset.c (main): Likewise.
20551         * tests/test-obstack-printf.c: Include progname.h.
20552         (main): Call set_program_name.
20553         * tests/test-quotearg.c: Include progname.h.
20554         (main): Call set_program_name.
20555         * tests/test-xmemdup0.c: Include progname.h.
20556         (main): Call set_program_name.
20557
20558 2009-01-18  Bruno Haible  <bruno@clisp.org>
20559
20560         New module 'alphasort'.
20561         * lib/dirent.in.h (alphasort): New declaration.
20562         * lib/alphasort.c: New file, from glibc with modifications.
20563         * m4/alphasort.m4: New file.
20564         * modules/alphasort: New file.
20565         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20566         HAVE_ALPHASORT.
20567         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20568         HAVE_ALPHASORT.
20569         * doc/posix-functions/alphasort.texi: Mention the new module and the
20570         portability problems.
20571
20572 2009-01-18  Bruno Haible  <bruno@clisp.org>
20573
20574         New module 'scandir'.
20575         * lib/dirent.in.h (scandir): New declaration.
20576         * lib/scandir.c: New file, from glibc with modifications.
20577         * m4/scandir.m4: New file.
20578         * modules/scandir: New file.
20579         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20580         HAVE_SCANDIR.
20581         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20582         HAVE_SCANDIR.
20583         * doc/posix-functions/scandir.texi: Mention the new module and the
20584         portability problems.
20585
20586 2009-01-17  Bruno Haible  <bruno@clisp.org>
20587
20588         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20589         Update documentation.
20590         (func_remove_suffix): Escape all dots in the suffix. Update
20591         documentation.
20592         (func_filter_filelist): Update documentation.
20593         Reported by Ralf Wildenhues.
20594
20595 2009-01-17  Bruno Haible  <bruno@clisp.org>
20596
20597         * modules/dprintf-posix-tests: New file.
20598         * tests/test-dprintf-posix.sh: New file.
20599         * tests/test-dprintf-posix.c: New file.
20600
20601         New modules 'dprintf', 'dprintf-posix'.
20602         * lib/stdio.in.h (dprintf): New declaration.
20603         * lib/dprintf.c: New file.
20604         * m4/dprintf.m4: New file.
20605         * m4/dprintf-posix.m4: New file.
20606         * modules/dprintf: New file.
20607         * modules/dprintf-posix: New file.
20608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20609         HAVE_DPRINTF, REPLACE_DPRINTF.
20610         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20611         HAVE_DPRINTF, REPLACE_DPRINTF.
20612         * doc/posix-functions/dprintf.texi: Mention the new modules.
20613
20614 2009-01-17  Bruno Haible  <bruno@clisp.org>
20615
20616         * modules/vdprintf-posix-tests: New file.
20617         * tests/test-vdprintf-posix.sh: New file.
20618         * tests/test-vdprintf-posix.c: New file.
20619
20620         New modules 'vdprintf', 'vdprintf-posix'.
20621         * lib/stdio.in.h (vdprintf): New declaration.
20622         * lib/vdprintf.c: New file.
20623         * m4/vdprintf.m4: New file.
20624         * m4/vdprintf-posix.m4: New file.
20625         * modules/vdprintf: New file.
20626         * modules/vdprintf-posix: New file.
20627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20628         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20629         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20630         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20631         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20632
20633 2009-01-17  Bruno Haible  <bruno@clisp.org>
20634
20635         Fix replacement of fopen on mingw.
20636         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20637         mingw.
20638
20639 2009-01-17  Bruno Haible  <bruno@clisp.org>
20640
20641         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20642         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20643
20644 2009-01-17  Bruno Haible  <bruno@clisp.org>
20645
20646         Avoid test-fflush2.sh failure on mingw.
20647         * tests/test-fflush2.c: Include binary-io.h.
20648         (main): Put standard input into binary mode.
20649         * modules/fflush-tests (Depends-on): Add binary-io.
20650
20651 2009-01-17  Bruno Haible  <bruno@clisp.org>
20652
20653         * lib/wchar.in.h: In another particular situation, include only the
20654         system's <wchar.h> file.
20655         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20656         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20657         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20658
20659 2009-01-17  Bruno Haible  <bruno@clisp.org>
20660
20661         Support for stripping executables in --enable-relocatable.
20662         * build-aux/install-reloc: Expect one more argument, or an environment
20663         variable RELOC_STRIP_PROG. If set, strip the destination program and
20664         its wrapper.
20665         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20666         RELOC_STRIP_PROG.
20667         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20668         to set RELOCATABLE_STRIP.
20669         * NEWS: Mention the new Makefile requirement.
20670
20671 2009-01-17  Bruno Haible  <bruno@clisp.org>
20672
20673         * build-aux/install-reloc: Remove debugging information left over by
20674         C compiler on MacOS X.
20675
20676 2009-01-17  Bruno Haible  <bruno@clisp.org>
20677
20678         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20679         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20680         _NSGetExecutablePath.
20681
20682 2009-01-16  Jim Meyering  <meyering@redhat.com>
20683
20684         strerror: avoid warnings about discarding "const"
20685         * lib/strerror.c (rpl_strerror): Instead of returning a const
20686         string from each and every "case", use a variable, and add a single
20687         cast after the switch.
20688
20689 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20690
20691         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20692
20693 2009-01-16  Bruno Haible  <bruno@clisp.org>
20694
20695         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20696         array initializer syntax that also works in C++ mode.
20697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20698
20699 2009-01-16  Jim Meyering  <meyering@redhat.com>
20700
20701         poll: suppress a warning
20702         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20703         to ignore "...unsigned expression < 0 is always false" warnings.
20704
20705 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20706
20707         poll: remove declarations of unused variables
20708         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20709         sockbuf and optlen.
20710
20711 2009-01-15  Bruno Haible  <bruno@clisp.org>
20712
20713         Make fflush-after-ungetc POSIX compliant on BSD systems.
20714         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20715         (clear_ungetc_buffer): Implement also for other systems.
20716         (rpl_fflush): On glibc systems, invoke
20717         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20718         clear_ungetc_buffer after fetching the stream's position, not before.
20719
20720 2009-01-15  Bruno Haible  <bruno@clisp.org>
20721
20722         Make fflush-after-ungetc POSIX compliant on glibc systems.
20723         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20724         after ungetc.
20725         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20726         (rpl_fflush): On glibc systems, simply call the system's fflush
20727         function after clearing the ungetc buffer.
20728         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20729         Instead, lseek only to the end of file, then use the system's fseeko
20730         for the rest. On glibc systems, reset the EOF indicator bit.
20731
20732 2009-01-15  Jim Meyering  <meyering@redhat.com>
20733
20734         openmp.m4: revert quote-adding change, for portability to older autoconf
20735         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20736         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20737         Simon Josefsson noticed the problem when using autoconf-2.61.
20738
20739 2009-01-15  Bruno Haible  <bruno@clisp.org>
20740
20741         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20742         * tests/test-fflush2.c (ASSERT): Always fail.
20743         (main): Add two tests for fflush() after ungetc(), taking into account
20744         the Austin Group's clarification.
20745         Suggested by Eric Blake.
20746
20747 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20748
20749         mktime.m4: remove K&R-style function prototypes
20750         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20751         for the Sun C++ compiler.
20752
20753 2009-01-14  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20756         while including <wchar.h>.
20757         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20758         the system's <wchar.h> file.
20759         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20760
20761 2009-01-14  Bruno Haible  <bruno@clisp.org>
20762
20763         * m4/csharp.m4: Don't mention gettext on the serial number line.
20764         * m4/csharpexec.m4: Likewise.
20765         * m4/eaccess.m4: Likewise.
20766         * m4/javaexec.m4: Likewise.
20767         * m4/sig_atomic_t.m4: Likewise.
20768         * m4/tmpdir.m4: Likewise.
20769         * m4/intldir.m4: Bump gettext version.
20770         * m4/lib-ld.m4: Likewise.
20771
20772 2009-01-14  Bruno Haible  <bruno@clisp.org>
20773
20774         * lib/progname.c (set_program_name): Add more comments.
20775         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20776
20777 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20778
20779         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20780         were sys/stat.h does not define it.
20781
20782 2009-01-14  Jim Meyering  <meyering@redhat.com>
20783
20784         many *.m4 files: improve m4 quoting
20785         99% of this change was performed by running the following commands:
20786         git ls-files | grep '\.m4$' | xargs perl -pi \
20787           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20788           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20789           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20790           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20791         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20792         The remainder were to add Copyright dates, increment serial numbers,
20793         undo some changes in comments, exclude m4/intl.m4, and add quotes
20794         around the "1" in ",1" where the unusual spacing prohibited the
20795         above regexps from doing the job.  For more details, see
20796         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20797         * m4/acl.m4: Modified.
20798         * m4/afs.m4: Likewise.
20799         * m4/alloca.m4: Likewise.
20800         * m4/argp.m4: Likewise.
20801         * m4/argz.m4: Likewise.
20802         * m4/atexit.m4: Likewise.
20803         * m4/bison-i18n.m4: Likewise.
20804         * m4/bison.m4: Likewise.
20805         * m4/byteswap.m4: Likewise.
20806         * m4/c-stack.m4: Likewise.
20807         * m4/c-strtod.m4: Likewise.
20808         * m4/calloc.m4: Likewise.
20809         * m4/canonicalize-lgpl.m4: Likewise.
20810         * m4/chown.m4: Likewise.
20811         * m4/clock_time.m4: Likewise.
20812         * m4/codeset.m4: Likewise.
20813         * m4/copy-file.m4: Likewise.
20814         * m4/csharp.m4: Likewise.
20815         * m4/csharpcomp.m4: Likewise.
20816         * m4/csharpexec.m4: Likewise.
20817         * m4/d-ino.m4: Likewise.
20818         * m4/d-type.m4: Likewise.
20819         * m4/dirfd.m4: Likewise.
20820         * m4/double-slash-root.m4: Likewise.
20821         * m4/eaccess.m4: Likewise.
20822         * m4/eealloc.m4: Likewise.
20823         * m4/environ.m4: Likewise.
20824         * m4/errno_h.m4: Likewise.
20825         * m4/euidaccess.m4: Likewise.
20826         * m4/execute.m4: Likewise.
20827         * m4/fatal-signal.m4: Likewise.
20828         * m4/fchdir.m4: Likewise.
20829         * m4/fcntl_h.m4: Likewise.
20830         * m4/fileblocks.m4: Likewise.
20831         * m4/filenamecat.m4: Likewise.
20832         * m4/findprog.m4: Likewise.
20833         * m4/flexmember.m4: Likewise.
20834         * m4/fnmatch.m4: Likewise.
20835         * m4/fopen.m4: Likewise.
20836         * m4/fpending.m4: Likewise.
20837         * m4/fprintf-posix.m4: Likewise.
20838         * m4/free.m4: Likewise.
20839         * m4/frexp.m4: Likewise.
20840         * m4/frexpl.m4: Likewise.
20841         * m4/fsusage.m4: Likewise.
20842         * m4/ftruncate.m4: Likewise.
20843         * m4/gc-camellia.m4: Likewise.
20844         * m4/gc-random.m4: Likewise.
20845         * m4/gc.m4: Likewise.
20846         * m4/getaddrinfo.m4: Likewise.
20847         * m4/getcwd-abort-bug.m4: Likewise.
20848         * m4/getcwd-path-max.m4: Likewise.
20849         * m4/getdate.m4: Likewise.
20850         * m4/getdomainname.m4: Likewise.
20851         * m4/getgroups.m4: Likewise.
20852         * m4/gethostname.m4: Likewise.
20853         * m4/gethrxtime.m4: Likewise.
20854         * m4/getline.m4: Likewise.
20855         * m4/getloadavg.m4: Likewise.
20856         * m4/getndelim2.m4: Likewise.
20857         * m4/getpass.m4: Likewise.
20858         * m4/gettext.m4: Likewise.
20859         * m4/gettime.m4: Likewise.
20860         * m4/gettimeofday.m4: Likewise.
20861         * m4/gnulib-common.m4: Likewise.
20862         * m4/group-member.m4: Likewise.
20863         * m4/host-os.m4: Likewise.
20864         * m4/iconv.m4: Likewise.
20865         * m4/iconv_open.m4: Likewise.
20866         * m4/inet_ntop.m4: Likewise.
20867         * m4/inet_pton.m4: Likewise.
20868         * m4/inline.m4: Likewise.
20869         * m4/intldir.m4: Likewise.
20870         * m4/intlmacosx.m4: Likewise.
20871         * m4/intmax.m4: Likewise.
20872         * m4/intmax_t.m4: Likewise.
20873         * m4/inttypes.m4: Likewise.
20874         * m4/inttypes_h.m4: Likewise.
20875         * m4/inttypes-pri.m4: Likewise.
20876         * m4/isapipe.m4: Likewise.
20877         * m4/isnand.m4: Likewise.
20878         * m4/isnanf.m4: Likewise.
20879         * m4/isnanl.m4: Likewise.
20880         * m4/javacomp.m4: Likewise.
20881         * m4/javaexec.m4: Likewise.
20882         * m4/jm-winsz1.m4: Likewise.
20883         * m4/jm-winsz2.m4: Likewise.
20884         * m4/lchown.m4: Likewise.
20885         * m4/lcmessage.m4: Likewise.
20886         * m4/ldexpl.m4: Likewise.
20887         * m4/lib-ld.m4: Likewise.
20888         * m4/lib-link.m4: Likewise.
20889         * m4/libsigsegv.m4: Likewise.
20890         * m4/link-follow.m4: Likewise.
20891         * m4/localcharset.m4: Likewise.
20892         * m4/locale-fr.m4: Likewise.
20893         * m4/locale-ja.m4: Likewise.
20894         * m4/locale-tr.m4: Likewise.
20895         * m4/locale-zh.m4: Likewise.
20896         * m4/lock.m4: Likewise.
20897         * m4/longlong.m4: Likewise.
20898         * m4/ls-mntd-fs.m4: Likewise.
20899         * m4/lstat.m4: Likewise.
20900         * m4/malloc.m4: Likewise.
20901         * m4/mathl.m4: Likewise.
20902         * m4/mbrtowc.m4: Likewise.
20903         * m4/mbstate_t.m4: Likewise.
20904         * m4/mbswidth.m4: Likewise.
20905         * m4/memchr.m4: Likewise.
20906         * m4/memcmp.m4: Likewise.
20907         * m4/memcpy.m4: Likewise.
20908         * m4/memmem.m4: Likewise.
20909         * m4/memmove.m4: Likewise.
20910         * m4/mempcpy.m4: Likewise.
20911         * m4/memrchr.m4: Likewise.
20912         * m4/memset.m4: Likewise.
20913         * m4/minmax.m4: Likewise.
20914         * m4/mkdir-slash.m4: Likewise.
20915         * m4/mkdtemp.m4: Likewise.
20916         * m4/mktime.m4: Likewise.
20917         * m4/mmap-anon.m4: Likewise.
20918         * m4/mountlist.m4: Likewise.
20919         * m4/nanosleep.m4: Likewise.
20920         * m4/nls.m4: Likewise.
20921         * m4/nocrash.m4: Likewise.
20922         * m4/open.m4: Likewise.
20923         * m4/openat.m4: Likewise.
20924         * m4/openmp.m4: Likewise.
20925         * m4/pathmax.m4: Likewise.
20926         * m4/perl.m4: Likewise.
20927         * m4/physmem.m4: Likewise.
20928         * m4/pipe.m4: Likewise.
20929         * m4/po.m4: Likewise.
20930         * m4/poll.m4: Likewise.
20931         * m4/posixtm.m4: Likewise.
20932         * m4/posixver.m4: Likewise.
20933         * m4/printf-frexp.m4: Likewise.
20934         * m4/printf-frexpl.m4: Likewise.
20935         * m4/printf-posix.m4: Likewise.
20936         * m4/printf-posix-rpl.m4: Likewise.
20937         * m4/printf.m4: Likewise.
20938         * m4/progtest.m4: Likewise.
20939         * m4/putenv.m4: Likewise.
20940         * m4/readline.m4: Likewise.
20941         * m4/readlink.m4: Likewise.
20942         * m4/readutmp.m4: Likewise.
20943         * m4/realloc.m4: Likewise.
20944         * m4/regex.m4: Likewise.
20945         * m4/relocatable.m4: Likewise.
20946         * m4/relocatable-lib.m4: Likewise.
20947         * m4/rename-dest-slash.m4: Likewise.
20948         * m4/rename.m4: Likewise.
20949         * m4/rmdir-errno.m4: Likewise.
20950         * m4/rmdir.m4: Likewise.
20951         * m4/roundf.m4: Likewise.
20952         * m4/roundl.m4: Likewise.
20953         * m4/rpmatch.m4: Likewise.
20954         * m4/save-cwd.m4: Likewise.
20955         * m4/selinux-selinux-h.m4: Likewise.
20956         * m4/setenv.m4: Likewise.
20957         * m4/settime.m4: Likewise.
20958         * m4/sig2str.m4: Likewise.
20959         * m4/sig_atomic_t.m4: Likewise.
20960         * m4/signalblocking.m4: Likewise.
20961         * m4/signbit.m4: Likewise.
20962         * m4/sigpipe.m4: Likewise.
20963         * m4/sockets.m4: Likewise.
20964         * m4/sockpfaf.m4: Likewise.
20965         * m4/st_dm_mode.m4: Likewise.
20966         * m4/stat-time.m4: Likewise.
20967         * m4/stdbool.m4: Likewise.
20968         * m4/stdint.m4: Likewise.
20969         * m4/stdint_h.m4: Likewise.
20970         * m4/stpcpy.m4: Likewise.
20971         * m4/stpncpy.m4: Likewise.
20972         * m4/strcase.m4: Likewise.
20973         * m4/strchrnul.m4: Likewise.
20974         * m4/strcspn.m4: Likewise.
20975         * m4/strdup.m4: Likewise.
20976         * m4/strftime.m4: Likewise.
20977         * m4/strndup.m4: Likewise.
20978         * m4/strnlen.m4: Likewise.
20979         * m4/strpbrk.m4: Likewise.
20980         * m4/strptime.m4: Likewise.
20981         * m4/strsep.m4: Likewise.
20982         * m4/strtod.m4: Likewise.
20983         * m4/strtoimax.m4: Likewise.
20984         * m4/strtok_r.m4: Likewise.
20985         * m4/strtol.m4: Likewise.
20986         * m4/strtoll.m4: Likewise.
20987         * m4/strtoul.m4: Likewise.
20988         * m4/strtoull.m4: Likewise.
20989         * m4/strtoumax.m4: Likewise.
20990         * m4/strverscmp.m4: Likewise.
20991         * m4/threadlib.m4: Likewise.
20992         * m4/timegm.m4: Likewise.
20993         * m4/tm_gmtoff.m4: Likewise.
20994         * m4/tmpdir.m4: Likewise.
20995         * m4/tmpfile.m4: Likewise.
20996         * m4/tzset.m4: Likewise.
20997         * m4/uintmax_t.m4: Likewise.
20998         * m4/unlinkdir.m4: Likewise.
20999         * m4/unlocked-io.m4: Likewise.
21000         * m4/uptime.m4: Likewise.
21001         * m4/userspec.m4: Likewise.
21002         * m4/utimbuf.m4: Likewise.
21003         * m4/utime.m4: Likewise.
21004         * m4/utimes-null.m4: Likewise.
21005         * m4/utimes.m4: Likewise.
21006         * m4/vararrays.m4: Likewise.
21007         * m4/vasnprintf.m4: Likewise.
21008         * m4/vfprintf-posix.m4: Likewise.
21009         * m4/vprintf-posix.m4: Likewise.
21010         * m4/wait-process.m4: Likewise.
21011         * m4/wchar_t.m4: Likewise.
21012         * m4/wint_t.m4: Likewise.
21013         * m4/write-any-file.m4: Likewise.
21014         * m4/yield.m4: Likewise.
21015
21016 2009-01-13  Bruno Haible  <bruno@clisp.org>
21017
21018         Avoid test-copy-file.sh failures when ACL support insufficient.
21019         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21020         TESTS_ENVIRONMENT.
21021         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21022         Reported by Jim Meyering.
21023
21024 2009-01-13  Bruno Haible  <bruno@clisp.org>
21025
21026         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21027         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21028         * modules/unistdio/u8-printf-parse (Files): Likewise.
21029         * modules/unistdio/u32-printf-parse (Files): Likewise.
21030         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21031
21032 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21033
21034         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21035         and m4/inttypes_h.m4 too.
21036
21037 2009-01-12  Eric Blake  <ebb9@byu.net>
21038
21039         tests: IRIX 6.2 cc can't compile -0.0 into .data
21040         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21041         rather than at compile-time.
21042         * tests/test-floorl.c (minus_zero): Likewise.
21043         * tests/test-frexpl.c (minus_zero): Likewise.
21044         * tests/test-isnan.c (minus_zerol): Likewise.
21045         * tests/test-isnanl.h (minus_zero): Likewise.
21046         * tests/test-ldexpl.c (minus_zero): Likewise.
21047         * tests/test-roundl.c (minus_zero): Likewise.
21048         * tests/test-signbit.c (minus_zerol): Likewise.
21049         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21050         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21051         * tests/test-truncl.c (minus_zero): Likewise.
21052         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21053         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21054         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21055
21056 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21057
21058         regex: fix glibc bug 9697
21059         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21060         handling.
21061
21062 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21063
21064         regex: fix glibc bug 697
21065         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21066         being NULL also if there are no backreferences.
21067
21068 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21069
21070         regex: merge glibc changes
21071         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21072         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21073         re_string_skip_chars, re_string_reconstruct): Likewise.
21074         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21075
21076 2009-01-07  Jim Meyering  <meyering@redhat.com>
21077
21078         poll: filter through cppi
21079         * lib/poll.c: Indent cpp directives to reflect nesting.
21080
21081 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21082
21083         poll: don't return uninitialized
21084         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21085
21086 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21087
21088         avoid compile failure on AIX 6.1
21089         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21090         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21091
21092 2009-01-04  Jim Meyering  <meyering@redhat.com>
21093
21094         remove duplicate inclusion of <stdio.h>
21095         * tests/test-fprintf-posix.c: Likewise.
21096         * tests/test-printf-posix.c: Likewise.
21097         * tests/test-snprintf-posix.c: Likewise.
21098         * tests/test-sprintf-posix.c: Likewise.
21099         * tests/test-vasprintf-posix.c: Likewise.
21100         * tests/test-vfprintf-posix.c: Likewise.
21101         * tests/test-vprintf-posix.c: Likewise.
21102         * tests/test-vsnprintf-posix.c: Likewise.
21103         * tests/test-vsprintf-posix.c: Likewise.
21104
21105 2009-01-03  Jim Meyering  <meyering@redhat.com>
21106
21107         gnulib-tool: fix sed-based filtering
21108         * gnulib-tool (func_filter_filelist): Remove extra backslash
21109         in sed_fff_filter definition.
21110
21111 2009-01-02  Jim Meyering  <meyering@redhat.com>
21112
21113         strftime: avoid compilation failure on Solaris 2.6
21114         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21115         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21116         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21117         be available.  Reported by Tom G. Christensen.  Details in
21118         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21119
21120 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21121             Bruno Haible  <bruno@clisp.org>
21122
21123         Speed up gnulib-tool by doing more string processing through shell
21124         built-ins.
21125         * gnulib-tool (fast_func_append): New variable.
21126         (func_remove_prefix, func_remove_suffix): New functions.
21127         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21128         (func_filter_filelist): New function.
21129         (func_get_dependencies): Use func_remove_suffix instead of sed.
21130         (func_get_automake_snippet): Use func_filter_filelist instead of a
21131         subshell and sed invocation.
21132
21133 2009-01-01  Bruno Haible  <bruno@clisp.org>
21134
21135         Fix a security bug.
21136         * gnulib-tool (func_import, import, update): Don't allow the characters
21137         '"', '$', '`', '\' in macro arguments that become part of commands that
21138         are evaluated.
21139
21140 2009-01-01  Bruno Haible  <bruno@clisp.org>
21141
21142         * gnulib-tool (func_reset_sigpipe): Add more comments.
21143
21144 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21145
21146         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21147         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21148         already know the answer.
21149
21150 2009-01-01  Jim Meyering  <meyering@redhat.com>
21151
21152         * lib/version-etc.c (version_etc_va): Update copyright year.
21153
21154 2008-12-30  Bruno Haible  <bruno@clisp.org>
21155
21156         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21157         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21158         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21159
21160 2008-12-29  Eric Blake  <ebb9@byu.net>
21161
21162         multiarch: avoid autoconf AC_REQUIRE bug
21163         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21164         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21165         2.63 and older.
21166         Reported by Bruno Haible, and analyzed in
21167         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21168
21169 2008-12-29  Bruno Haible  <bruno@clisp.org>
21170
21171         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21172         files in subdirectories correctly.
21173         Reported by Ralf Wildenhues.
21174
21175 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21176
21177         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21178         rather than 'join FILE -', for Solaris join.
21179
21180 2008-12-29  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21183         quoting.
21184         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21185         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21186         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21187         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21188         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21189         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21190         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21191         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21192         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21193         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21194         * m4/nls.m4 (AM_NLS): Likewise.
21195         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21196         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21197         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21198         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21199         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21200         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21201         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21202         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21203         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21204         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21205         * m4/xsize.m4 (gl_XSIZE): Likewise.
21206         Suggested by Jim Meyering.
21207
21208 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21209
21210         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21211         * lib/parse-duration.c: use a switch instead of cascading if's.
21212
21213 2008-12-29  Eric Blake  <ebb9@byu.net>
21214
21215         wchar.h: supply WEOF on Irix 5.3
21216         * lib/wchar.in.h (wint_t): Also supply WEOF.
21217         * lib/wctype.in.h (wint_t): Likewise.
21218         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21219         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21220         Reported by Tom G. Christensen.
21221
21222 2008-12-26  Bruno Haible  <bruno@clisp.org>
21223
21224         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21225         i486, i586, i686.
21226
21227 2008-12-26  Bruno Haible  <bruno@clisp.org>
21228
21229         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21230
21231 2008-12-26  Bruno Haible  <bruno@clisp.org>
21232
21233         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21234         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21235         not __STDC_CONSTANT_MACROS.
21236         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21237
21238 2008-12-25  Bruno Haible  <bruno@clisp.org>
21239
21240         Add support for universal builds to vasnprintf.
21241         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21242         universal builds, guess no.
21243         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21244         * modules/vasprintf-posix (Depends-on): Likewise.
21245         * modules/fprintf-posix (Depends-on): Likewise.
21246         * modules/vfprintf-posix (Depends-on): Likewise.
21247         * modules/snprintf-posix (Depends-on): Likewise.
21248         * modules/vsnprintf-posix (Depends-on): Likewise.
21249         * modules/sprintf-posix (Depends-on): Likewise.
21250         * modules/vsprintf-posix (Depends-on): Likewise.
21251         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21252         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21253         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21254         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21255         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21256         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21257         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21258
21259         Add support for universal builds to <inttypes.h>.
21260         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21261         _SCNu64_PREFIX): In Apple
21262         universal builds, define directly, using _LP64.
21263         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21264         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21265         * modules/inttypes (Depends-on): Add multiarch.
21266         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21267
21268         Add support for universal builds to <stdint.h>.
21269         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21270         universal builds, define directly, using _LP64.
21271         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21272         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21273         and size_t.
21274         * modules/stdint (Depends-on): Add multiarch.
21275         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21276
21277         New module 'multiarch'.
21278         * modules/multiarch: New file.
21279         * m4/multiarch.m4: New file.
21280
21281 2008-12-25  Bruno Haible  <bruno@clisp.org>
21282
21283         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21284
21285 2008-12-25  Bruno Haible  <bruno@clisp.org>
21286
21287         * modules/btowc (License): Relicense under LGPLv2+.
21288         * modules/mbsinit (License): Likewise.
21289         * modules/mbrtowc (License): Likewise.
21290         * modules/wcrtomb (License): Likewise.
21291         * modules/streq (License): Likewise.
21292         Reported by David Lutterkort <lutter@redhat.com>.
21293
21294 2008-12-23  Bruno Haible  <bruno@clisp.org>
21295
21296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21297
21298 2008-12-23  Bruno Haible  <bruno@clisp.org>
21299
21300         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21302         GETADDRINFO_LIB, not in LIBS.
21303         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21304         * modules/canon-host (Link): Likewise.
21305         * NEWS: Mention the change.
21306         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21307         GETADDRINFO_LIB.
21308
21309 2008-12-22  Bruno Haible  <bruno@clisp.org>
21310
21311         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21312         * doc/posix-functions/iswalpha_l.texi: Likewise.
21313         * doc/posix-functions/iswblank_l.texi: Likewise.
21314         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21315         * doc/posix-functions/iswctype_l.texi: Likewise.
21316         * doc/posix-functions/iswdigit_l.texi: Likewise.
21317         * doc/posix-functions/iswgraph_l.texi: Likewise.
21318         * doc/posix-functions/iswlower_l.texi: Likewise.
21319         * doc/posix-functions/iswprint_l.texi: Likewise.
21320         * doc/posix-functions/iswpunct_l.texi: Likewise.
21321         * doc/posix-functions/iswspace_l.texi: Likewise.
21322         * doc/posix-functions/iswupper_l.texi: Likewise.
21323         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21324         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21325         * doc/posix-functions/open_wmemstream.texi: Likewise.
21326         * doc/posix-functions/swscanf.texi: Likewise.
21327         * doc/posix-functions/towctrans_l.texi: Likewise.
21328         * doc/posix-functions/towlower.texi: Likewise.
21329         * doc/posix-functions/towlower_l.texi: Likewise.
21330         * doc/posix-functions/towupper.texi: Likewise.
21331         * doc/posix-functions/towupper_l.texi: Likewise.
21332         * doc/posix-functions/vfwprintf.texi: Likewise.
21333         * doc/posix-functions/vfwscanf.texi: Likewise.
21334         * doc/posix-functions/vswscanf.texi: Likewise.
21335         * doc/posix-functions/vwprintf.texi: Likewise.
21336         * doc/posix-functions/vwscanf.texi: Likewise.
21337         * doc/posix-functions/wcpcpy.texi: Likewise.
21338         * doc/posix-functions/wcpncpy.texi: Likewise.
21339         * doc/posix-functions/wcscasecmp.texi: Likewise.
21340         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21341         * doc/posix-functions/wcscoll_l.texi: Likewise.
21342         * doc/posix-functions/wcsdup.texi: Likewise.
21343         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21344         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21345         * doc/posix-functions/wcsnlen.texi: Likewise.
21346         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21347         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21348         * doc/posix-functions/wctrans_l.texi: Likewise.
21349         * doc/posix-functions/wctype_l.texi: Likewise.
21350         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21351         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21352         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21353         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21354         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21355         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21356         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21357         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21358         * doc/glibc-functions/wcschrnul.texi: Likewise.
21359         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21360         * doc/glibc-functions/wcstod_l.texi: Likewise.
21361         * doc/glibc-functions/wcstof_l.texi: Likewise.
21362         * doc/glibc-functions/wcstol_l.texi: Likewise.
21363         * doc/glibc-functions/wcstold_l.texi: Likewise.
21364         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21365         * doc/glibc-functions/wcstoq.texi: Likewise.
21366         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21367         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21368         * doc/glibc-functions/wcstouq.texi: Likewise.
21369         * doc/glibc-functions/wmempcpy.texi: Likewise.
21370
21371 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21372             Eric Blake  <ebb9@byu.net>
21373             Paolo Bonzini  <bonzini@gnu.org>
21374             Bruno Haible  <bruno@clisp.org>
21375
21376         Make c-stack work on Haiku.
21377         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21378         (c_stack_action): Use SA_ONSTACK flag.
21379
21380 2008-12-22  Bruno Haible  <bruno@clisp.org>
21381
21382         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21383
21384 2008-12-22  Bruno Haible  <bruno@clisp.org>
21385
21386         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21387         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21388         being overridden.
21389         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21390         New macros.
21391         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21393         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21394         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21395
21396 2008-12-22  Bruno Haible  <bruno@clisp.org>
21397
21398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21399         from test code.
21400
21401 2008-12-22  Eric Blake  <ebb9@byu.net>
21402
21403         Avoid gcc warnings on cygwin.
21404         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21405         Avoid unused variable.
21406         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21407         Likewise.
21408
21409 2008-12-22  Bruno Haible  <bruno@clisp.org>
21410
21411         Remove HAVE_MBRTOWC conditionals.
21412         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21413         (mbscasecmp): Assume mbrtowc function.
21414         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21415         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21416         * lib/mbschr.c: Include mbuiter.h unconditionally.
21417         (mbschr): Assume mbrtowc function.
21418         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21419         (mbscspn): Assume mbrtowc function.
21420         * lib/mbslen.c: Include mbuiter.h unconditionally.
21421         (mbslen): Assume mbrtowc function.
21422         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21423         (mbsncasecmp): Assume mbrtowc function.
21424         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21425         (mbsnlen): Assume mbrtowc function.
21426         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21427         (mbspbrk): Assume mbrtowc function.
21428         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21429         (mbspcasecmp): Assume mbrtowc function.
21430         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21431         (mbsrchr): Assume mbrtowc function.
21432         * lib/mbssep.c: Include mbuiter.h unconditionally.
21433         (mbssep): Assume mbrtowc function.
21434         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21435         (mbsspn): Assume mbrtowc function.
21436         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21437         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21438         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21439         (mbstok_r): Assume mbrtowc function.
21440         * lib/propername.c: Include mbuiter.h unconditionally.
21441         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21442         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21443         (trim2): Assume mbrtowc function.
21444         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21445         (mbsnwidth): Assume mbrtowc function.
21446         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21447         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21448         fallback definitions.
21449         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21450
21451 2008-12-22  Bruno Haible  <bruno@clisp.org>
21452
21453         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21454
21455 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21456
21457         * modules/regex: Request emulations for the mb*/wc* functions we need.
21458         * m4/regex.m4: Don't look for those functions here.
21459         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21460
21461 2008-12-22  Bruno Haible  <bruno@clisp.org>
21462
21463         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21464
21465 2008-12-21  Bruno Haible  <bruno@clisp.org>
21466
21467         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21468         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21469         (Include): Remove conditionalization.
21470         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21471         (Include): Remove conditionalization.
21472         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21473         (Include): Remove conditionalization.
21474         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21475         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21476         * NEWS: Mention the change.
21477         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21478         via Sergey Poznyakoff <gray@gnu.org.ua>.
21479
21480 2008-12-21  Bruno Haible  <bruno@clisp.org>
21481
21482         * MODULES.html.sh (Extended multibyte and wide character utilities
21483         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21484         wcrtomb, wcsrtombs.
21485         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21486         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21487         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21488         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21489
21490 2008-12-21  Bruno Haible  <bruno@clisp.org>
21491
21492         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21493
21494 2008-12-21  Bruno Haible  <bruno@clisp.org>
21495
21496         * modules/wcsnrtombs-tests: New file.
21497         * tests/test-wcsnrtombs1.sh: New file.
21498         * tests/test-wcsnrtombs2.sh: New file.
21499         * tests/test-wcsnrtombs3.sh: New file.
21500         * tests/test-wcsnrtombs4.sh: New file.
21501         * tests/test-wcsnrtombs.c: New file.
21502
21503         New module 'wcsnrtombs'.
21504         * lib/wchar.in.h (wcsnrtombs): New declaration.
21505         * lib/wcsnrtombs.c: New file.
21506         * lib/wcsrtombs-state.c: New file.
21507         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21508         (internal_state): Remove variable.
21509         * m4/wcsnrtombs.m4: New file.
21510         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21511         compilation units.
21512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21513         HAVE_WCSNRTOMBS.
21514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21515         HAVE_WCSNRTOMBS.
21516         * modules/wcsnrtombs: New file.
21517         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21518         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21519
21520 2008-12-21  Bruno Haible  <bruno@clisp.org>
21521
21522         * modules/wcsrtombs-tests: New file.
21523         * tests/test-wcsrtombs1.sh: New file.
21524         * tests/test-wcsrtombs2.sh: New file.
21525         * tests/test-wcsrtombs3.sh: New file.
21526         * tests/test-wcsrtombs4.sh: New file.
21527         * tests/test-wcsrtombs.c: New file.
21528
21529         New module 'wcsrtombs'.
21530         * lib/wchar.in.h (wcsrtombs): New declaration.
21531         * lib/wcsrtombs.c: New file.
21532         * m4/wcsrtombs.m4: New file.
21533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21534         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21536         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21537         * modules/wcsrtombs: New file.
21538         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21539         bugs.
21540
21541 2008-12-21  Bruno Haible  <bruno@clisp.org>
21542
21543         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21544         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21545         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21546         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21547         if not correct.
21548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21549         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21550         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21551         m4/locale-zh.m4, m4/codeset.m4.
21552         * doc/posix-functions/wcrtomb.texi: Document the bug.
21553
21554 2008-12-21  Bruno Haible  <bruno@clisp.org>
21555
21556         Work around a btowc() bug on IRIX 6.5.
21557         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21558         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21559         REPLACE_WTOBC if not.
21560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21561         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21562         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21563
21564 2008-12-21  Bruno Haible  <bruno@clisp.org>
21565
21566         * modules/wcrtomb-tests: New file.
21567         * tests/test-wcrtomb.sh: New file.
21568         * tests/test-wcrtomb.c: New file.
21569
21570         New module 'wcrtomb'.
21571         * lib/wchar.in.h (wcrtomb): New declaration.
21572         * lib/wcrtomb.c: New file.
21573         * m4/wcrtomb.m4: New file.
21574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21575         HAVE_WCRTOMB.
21576         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21577         HAVE_WCRTOMB.
21578         * modules/wcrtomb: New file.
21579         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21580
21581 2008-12-21  Bruno Haible  <bruno@clisp.org>
21582
21583         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21584         * modules/mbsrtowcs (Files): Likewise.
21585         * modules/wctob (Files): Likewise.
21586         * modules/c-strcase-tests (Files): Likewise.
21587         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21588         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21589         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21590         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21591         * modules/vasnprintf-posix-tests (Files): Likewise.
21592
21593 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21594
21595         gitlog-to-changelog: pass all command-line arguments to git-log
21596         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21597         it is sometimes convenient to filter the commits in various ways.
21598         gitlog-to-changelog only allows --since to specify a start date,
21599         but git-log itself supports many other filtering mechanisms.
21600         At the moment, I want to filter by branch name.  Rather than
21601         adding a --branch option to gitlog-to-changelog, it seems more
21602         flexible to simply pass all options directly to git-log and let
21603         git do the work.  Notice that this effectively makes --since a
21604         redundant option for gitlog-to-changelog, but removing it would
21605         require current usage to change since calls would then require
21606         an additional '--'.
21607
21608 2008-12-21  Bruno Haible  <bruno@clisp.org>
21609
21610         * modules/mbsnrtowcs-tests: New file.
21611         * tests/test-mbsnrtowcs1.sh: New file.
21612         * tests/test-mbsnrtowcs2.sh: New file.
21613         * tests/test-mbsnrtowcs3.sh: New file.
21614         * tests/test-mbsnrtowcs4.sh: New file.
21615         * tests/test-mbsnrtowcs.c: New file.
21616
21617         New module 'mbsnrtowcs'.
21618         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21619         * lib/mbsnrtowcs.c: New file.
21620         * lib/mbsrtowcs-state.c: New file.
21621         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21622         (internal_state): Remove variable.
21623         * m4/mbsnrtowcs.m4: New file.
21624         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21625         compilation units.
21626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21627         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21628         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21629         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21630         * modules/mbsnrtowcs: New file.
21631         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21632         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21633         portability problem.
21634
21635 2008-12-21  Bruno Haible  <bruno@clisp.org>
21636
21637         Work around mbsrtowcs bug.
21638         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21639         (gl_FUNC_MBSRTOWCS): Invoke it.
21640         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21641         m4/locale-zh.m4.
21642         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21643
21644 2008-12-21  Bruno Haible  <bruno@clisp.org>
21645
21646         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21647
21648 2008-12-21  Bruno Haible  <bruno@clisp.org>
21649
21650         Update doc for AIX.
21651         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21652         16-bit wchar_t type.
21653         * doc/posix-functions/btowc.texi: Likewise.
21654         * doc/posix-functions/fgetwc.texi: Likewise.
21655         * doc/posix-functions/fgetws.texi: Likewise.
21656         * doc/posix-functions/fputwc.texi: Likewise.
21657         * doc/posix-functions/fputws.texi: Likewise.
21658         * doc/posix-functions/fwide.texi: Likewise.
21659         * doc/posix-functions/fwprintf.texi: Likewise.
21660         * doc/posix-functions/fwscanf.texi: Likewise.
21661         * doc/posix-functions/getwchar.texi: Likewise.
21662         * doc/posix-functions/getwc.texi: Likewise.
21663         * doc/posix-functions/iswalnum.texi: Likewise.
21664         * doc/posix-functions/iswalpha.texi: Likewise.
21665         * doc/posix-functions/iswblank.texi: Likewise.
21666         * doc/posix-functions/iswcntrl.texi: Likewise.
21667         * doc/posix-functions/iswctype.texi: Likewise.
21668         * doc/posix-functions/iswdigit.texi: Likewise.
21669         * doc/posix-functions/iswgraph.texi: Likewise.
21670         * doc/posix-functions/iswlower.texi: Likewise.
21671         * doc/posix-functions/iswprint.texi: Likewise.
21672         * doc/posix-functions/iswpunct.texi: Likewise.
21673         * doc/posix-functions/iswspace.texi: Likewise.
21674         * doc/posix-functions/iswupper.texi: Likewise.
21675         * doc/posix-functions/iswxdigit.texi: Likewise.
21676         * doc/posix-functions/mbrtowc.texi: Likewise.
21677         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21678         * doc/posix-functions/mbstowcs.texi: Likewise.
21679         * doc/posix-functions/mbtowc.texi: Likewise.
21680         * doc/posix-functions/putwchar.texi: Likewise.
21681         * doc/posix-functions/putwc.texi: Likewise.
21682         * doc/posix-functions/swprintf.texi: Likewise.
21683         * doc/posix-functions/tolower.texi: Likewise.
21684         * doc/posix-functions/toupper.texi: Likewise.
21685         * doc/posix-functions/towctrans.texi: Likewise.
21686         * doc/posix-functions/ungetwc.texi: Likewise.
21687         * doc/posix-functions/vswprintf.texi: Likewise.
21688         * doc/posix-functions/wcrtomb.texi: Likewise.
21689         * doc/posix-functions/wcscat.texi: Likewise.
21690         * doc/posix-functions/wcschr.texi: Likewise.
21691         * doc/posix-functions/wcscmp.texi: Likewise.
21692         * doc/posix-functions/wcscoll.texi: Likewise.
21693         * doc/posix-functions/wcscpy.texi: Likewise.
21694         * doc/posix-functions/wcscspn.texi: Likewise.
21695         * doc/posix-functions/wcsftime.texi: Likewise.
21696         * doc/posix-functions/wcslen.texi: Likewise.
21697         * doc/posix-functions/wcsncat.texi: Likewise.
21698         * doc/posix-functions/wcsncmp.texi: Likewise.
21699         * doc/posix-functions/wcsncpy.texi: Likewise.
21700         * doc/posix-functions/wcspbrk.texi: Likewise.
21701         * doc/posix-functions/wcsrchr.texi: Likewise.
21702         * doc/posix-functions/wcsrtombs.texi: Likewise.
21703         * doc/posix-functions/wcsspn.texi: Likewise.
21704         * doc/posix-functions/wcsstr.texi: Likewise.
21705         * doc/posix-functions/wcstod.texi: Likewise.
21706         * doc/posix-functions/wcstof.texi: Likewise.
21707         * doc/posix-functions/wcstoimax.texi: Likewise.
21708         * doc/posix-functions/wcstok.texi: Likewise.
21709         * doc/posix-functions/wcstold.texi: Likewise.
21710         * doc/posix-functions/wcstoll.texi: Likewise.
21711         * doc/posix-functions/wcstol.texi: Likewise.
21712         * doc/posix-functions/wcstombs.texi: Likewise.
21713         * doc/posix-functions/wcstoull.texi: Likewise.
21714         * doc/posix-functions/wcstoul.texi: Likewise.
21715         * doc/posix-functions/wcstoumax.texi: Likewise.
21716         * doc/posix-functions/wcswidth.texi: Likewise.
21717         * doc/posix-functions/wcsxfrm.texi: Likewise.
21718         * doc/posix-functions/wctob.texi: Likewise.
21719         * doc/posix-functions/wctomb.texi: Likewise.
21720         * doc/posix-functions/wctrans.texi: Likewise.
21721         * doc/posix-functions/wctype.texi: Likewise.
21722         * doc/posix-functions/wcwidth.texi: Likewise.
21723         * doc/posix-functions/wmemchr.texi: Likewise.
21724         * doc/posix-functions/wmemcmp.texi: Likewise.
21725         * doc/posix-functions/wmemcpy.texi: Likewise.
21726         * doc/posix-functions/wmemmove.texi: Likewise.
21727         * doc/posix-functions/wmemset.texi: Likewise.
21728         * doc/posix-functions/wprintf.texi: Likewise.
21729         * doc/posix-functions/wscanf.texi: Likewise.
21730
21731 2008-12-21  Bruno Haible  <bruno@clisp.org>
21732
21733         Update doc for HP-UX 11.11.
21734         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21735         in HP-UX version 11.00, not in all versions of HP-UX 11.
21736         * doc/posix-functions/fwide.texi: Likewise.
21737         * doc/posix-functions/fwprintf.texi: Likewise.
21738         * doc/posix-functions/fwscanf.texi: Likewise.
21739         * doc/posix-functions/inet_ntop.texi: Likewise.
21740         * doc/posix-functions/inet_pton.texi: Likewise.
21741         * doc/posix-functions/mbrlen.texi: Likewise.
21742         * doc/posix-functions/mbrtowc.texi: Likewise.
21743         * doc/posix-functions/mbsinit.texi: Likewise.
21744         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21745         * doc/posix-functions/swprintf.texi: Likewise.
21746         * doc/posix-functions/swscanf.texi: Likewise.
21747         * doc/posix-functions/towctrans.texi: Likewise.
21748         * doc/posix-functions/vfwprintf.texi: Likewise.
21749         * doc/posix-functions/vswprintf.texi: Likewise.
21750         * doc/posix-functions/vwprintf.texi: Likewise.
21751         * doc/posix-functions/wcrtomb.texi: Likewise.
21752         * doc/posix-functions/wcsrtombs.texi: Likewise.
21753         * doc/posix-functions/wcsstr.texi: Likewise.
21754         * doc/posix-functions/wctob.texi: Likewise.
21755         * doc/posix-functions/wctrans.texi: Likewise.
21756         * doc/posix-functions/wmemchr.texi: Likewise.
21757         * doc/posix-functions/wmemcmp.texi: Likewise.
21758         * doc/posix-functions/wmemcpy.texi: Likewise.
21759         * doc/posix-functions/wmemmove.texi: Likewise.
21760         * doc/posix-functions/wmemset.texi: Likewise.
21761         * doc/posix-functions/wprintf.texi: Likewise.
21762         * doc/posix-functions/wscanf.texi: Likewise.
21763
21764 2008-12-21  Bruno Haible  <bruno@clisp.org>
21765
21766         Work around a portability problem.
21767         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21768         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21769
21770 2008-12-20  Bruno Haible  <bruno@clisp.org>
21771
21772         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21773         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21774         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21776         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21777
21778         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21779         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21780         set.
21781         (GNULIB_defined_mbstate_t): New macro.
21782         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21783         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21784         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21785         reuses the system's mbrtowc function but works around the bugs.
21786         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21787         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21788         macros.
21789         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21790         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21791         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21792         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21793         REPLACE_MBSINIT if mbsinit needs to be overridden.
21794         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21795         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21796         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21797         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21798         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21799         m4/locale-zh.m4.
21800         (Depends): Add mbsinit.
21801         * modules/mbsinit (Depends): Add mbrtowc.
21802         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21803
21804 2008-12-20  Bruno Haible  <bruno@clisp.org>
21805
21806         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21807         so that there are no conversion errors on AIX.
21808         * tests/test-mbsrtowcs.c (main): LIkewise.
21809
21810 2008-12-20  Bruno Haible  <bruno@clisp.org>
21811
21812         Work around wctob bug on Solaris <= 9.
21813         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21814         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21816         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21817         * modules/wctob (Files): Add m4/locale-fr.m4.
21818         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21819
21820 2008-12-20  Bruno Haible  <bruno@clisp.org>
21821
21822         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21823         /dev/null.
21824         * tests/test-select-in.sh: Likewise.
21825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21826
21827 2008-12-20  Bruno Haible  <bruno@clisp.org>
21828
21829         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21830         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21831         Cygwin 1.5.x.
21832
21833 2008-12-20  Bruno Haible  <bruno@clisp.org>
21834
21835         Ensure mbstate_t is defined on HP-UX 11.11.
21836         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21837         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21838         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21839         AC_USE_SYSTEM_EXTENSIONS.
21840         * modules/fnmatch (Depends-on): Add extensions.
21841         * modules/mbrlen (Depends-on): Likewise.
21842         * modules/mbrtowc (Depends-on): Likewise.
21843         * modules/mbsinit (Depends-on): Likewise.
21844         * modules/mbsrtowcs (Depends-on): Likewise.
21845         * modules/mbswidth (Depends-on): Likewise.
21846         * modules/quotearg (Depends-on): Likewise.
21847         * modules/strftime (Depends-on): Likewise.
21848
21849 2008-12-20  Bruno Haible  <bruno@clisp.org>
21850
21851         Ensure wctob is declared on IRIX 6.5.
21852         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21853         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21854         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21855         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21856         of HAVE_WCTOB.
21857         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21858         HAVE_WCTOB.
21859         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21860
21861 2008-12-19  Bruno Haible  <bruno@clisp.org>
21862
21863         * modules/mbsrtowcs-tests: New file.
21864         * tests/test-mbsrtowcs1.sh: New file.
21865         * tests/test-mbsrtowcs2.sh: New file.
21866         * tests/test-mbsrtowcs3.sh: New file.
21867         * tests/test-mbsrtowcs4.sh: New file.
21868         * tests/test-mbsrtowcs.c: New file.
21869
21870         New module 'mbsrtowcs'.
21871         * lib/wchar.in.h (mbsrtowcs): New declaration.
21872         * lib/mbsrtowcs.c: New file.
21873         * m4/mbsrtowcs.m4: New file.
21874         * modules/mbsrtowcs: New file.
21875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21876         HAVE_MBSRTOWCS.
21877         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
21878         HAVE_MBSRTOWCS.
21879         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
21880
21881 2008-12-19  Bruno Haible  <bruno@clisp.org>
21882
21883         New module 'mbrlen'.
21884         * lib/wchar.in.h (mbrlen): New declaration.
21885         * lib/mbrlen.c: New file.
21886         * m4/mbrlen.m4: New file.
21887         * modules/mbrlen: New file.
21888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
21889         HAVE_MBRLEN.
21890         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
21891         HAVE_MBRLEN.
21892         * doc/posix-functions/mbrlen.texi: Document the new module.
21893
21894 2008-12-19  Bruno Haible  <bruno@clisp.org>
21895
21896         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
21897         * modules/mbrtowc (Depends-on): Add verify.
21898         Suggested by Paul Eggert.
21899
21900 2008-12-18  Bruno Haible  <bruno@clisp.org>
21901
21902         * modules/mbsinit-tests: New file.
21903         * tests/test-mbsinit.sh: New file.
21904         * tests/test-mbsinit.c: New file.
21905
21906 2008-12-18  Bruno Haible  <bruno@clisp.org>
21907
21908         * modules/mbrtowc-tests: New file.
21909         * tests/test-mbrtowc1.sh: New file.
21910         * tests/test-mbrtowc2.sh: New file.
21911         * tests/test-mbrtowc3.sh: New file.
21912         * tests/test-mbrtowc4.sh: New file.
21913         * tests/test-mbrtowc.c: New file.
21914
21915         New module 'mbrtowc'.
21916         * lib/wchar.in.h (mbstate_t): Override when the system does not have
21917         mbsinit and mbrtowc.
21918         (mbrtowc): New declaration.
21919         * lib/mbrtowc.c: New file.
21920         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
21921         * modules/mbrtowc: New file.
21922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
21923         HAVE_MBRTOWC.
21924         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
21925         HAVE_MBRTOWC.
21926         * doc/posix-functions/mbrtowc.texi: Document the new module.
21927
21928 2008-12-18  Bruno Haible  <bruno@clisp.org>
21929
21930         New module 'wctob'.
21931         * lib/wchar.in.h (wctob): New declaration.
21932         * lib/wctob.c: New file.
21933         * m4/wctob.m4: New file.
21934         * modules/wctob: New file.
21935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
21936         HAVE_WCTOB.
21937         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
21938         * doc/posix-functions/wctob.texi: Document the new module.
21939
21940 2008-12-18  Bruno Haible  <bruno@clisp.org>
21941
21942         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
21943         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
21944
21945 2008-12-18  Simon Josefsson  <simon@josefsson.org>
21946
21947         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
21948         G. Christensen" <tgc@jupiterrise.com>.
21949
21950         * lib/flock.c: Need to include errno.h.  Reported by "Tom
21951         G. Christensen" <tgc@jupiterrise.com>.
21952
21953         * lib/flock.c: Need to include string.h.  Reported by "Tom
21954         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
21955         <ebb9@byu.net>.
21956
21957 2008-12-18  Bruno Haible  <bruno@clisp.org>
21958
21959         * m4/locale-ja.m4: New file, from GNU gettext.
21960
21961 2008-12-17  Bruno Haible  <bruno@clisp.org>
21962
21963         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
21964         Suggested by Eric Blake.
21965
21966 2008-12-17  Bruno Haible  <bruno@clisp.org>
21967
21968         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
21969
21970 2008-12-17  Bruno Haible  <bruno@clisp.org>
21971
21972         * lib/mbsinit.c: Include verify.h. Verify an assumption.
21973         * modules/mbsinit (Depends-on): Add verify.
21974         Suggested by Paul Eggert.
21975
21976 2008-12-17  Bruno Haible  <bruno@clisp.org>
21977
21978         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
21979         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
21980         gl_FUNC_MBRTOWC.
21981         * m4/mbiter.m4 (gl_MBITER): LIkewise.
21982         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
21983         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
21984         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
21985         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
21986         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
21987         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
21988         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
21989         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
21990         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
21991         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
21992         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
21993         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
21994         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
21995         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
21996         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21997         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
21998         * modules/trim (configure.ac): Likewise.
21999
22000 2008-12-17  Bruno Haible  <bruno@clisp.org>
22001
22002         * modules/btowc-tests: New file.
22003         * tests/test-btowc1.sh: New file.
22004         * tests/test-btowc2.sh: New file.
22005         * tests/test-btowc.c: New file.
22006
22007         New module 'btowc'.
22008         * lib/wchar.in.h (btowc): New declaration.
22009         * lib/btowc.c: New file.
22010         * m4/btowc.m4: New file.
22011         * modules/btowc: New file.
22012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22013         HAVE_BTOWC.
22014         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22015         * doc/posix-functions/btowc.texi: Document the new module.
22016
22017 2008-12-17  Bruno Haible  <bruno@clisp.org>
22018
22019         New module 'mbsinit'.
22020         * lib/wchar.in.h (mbsinit): New declaration.
22021         * lib/mbsinit.c: New file.
22022         * m4/mbsinit.m4: New file.
22023         * modules/mbsinit: New file.
22024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22025         HAVE_MBSINIT.
22026         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22027         HAVE_MBSINIT.
22028         * doc/posix-functions/mbsinit.texi: Document the new module.
22029
22030 2008-12-16  Bruno Haible  <bruno@clisp.org>
22031
22032         * lib/unistd.in.h: Add comment.
22033         * tests/test-environ.c: Don't include <stdlib.h>.
22034
22035 2008-12-16  Bruno Haible  <bruno@clisp.org>
22036
22037         * lib/parse-duration.h (parse_duration): Document return value
22038         convention.
22039         * lib/parse-duration.c: Include specification header first. Add
22040         comments.
22041         (_): Remove macro.
22042         (parse_year_month_day, parse_hour_minute_second): Move side effects
22043         outside of strchr call.
22044         (parse_non_iso8601): Move side effects outside of isspace call.
22045         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22046         call.
22047
22048 2008-12-16  Bruno Haible  <bruno@clisp.org>
22049
22050         * tests/test-parse-duration.sh: Produce no output when the test
22051         succeeds.
22052
22053 2008-12-16  Bruno Haible  <bruno@clisp.org>
22054
22055         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22056         expressions.
22057
22058 2008-12-15  Bruno Haible  <bruno@clisp.org>
22059
22060         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22061         * doc/glibc-functions/flistxattr.texi: Likewise.
22062         * doc/glibc-functions/fopencookie.texi: Likewise.
22063         * doc/glibc-functions/fremovexattr.texi: Likewise.
22064         * doc/glibc-functions/fsetxattr.texi: Likewise.
22065         * doc/glibc-functions/getxattr.texi: Likewise.
22066         * doc/glibc-functions/lgetxattr.texi: Likewise.
22067         * doc/glibc-functions/listxattr.texi: Likewise.
22068         * doc/glibc-functions/llistxattr.texi: Likewise.
22069         * doc/glibc-functions/lremovexattr.texi: Likewise.
22070         * doc/glibc-functions/lsetxattr.texi: Likewise.
22071         * doc/glibc-functions/removexattr.texi: Likewise.
22072         * doc/glibc-functions/setxattr.texi: Likewise.
22073         * doc/posix-functions/open_memstream.texi: Likewise.
22074
22075 2008-12-15  Eric Blake  <ebb9@byu.net>
22076
22077         Update doc for cygwin 1.7.
22078         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22079         functions.
22080         * doc/posix-functions/fchmodat.texi: Likewise.
22081         * doc/posix-functions/fchownat.texi: Likewise.
22082         * doc/posix-functions/fdopendir.texi: Likewise.
22083         * doc/posix-functions/fmemopen.texi: Likewise.
22084         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22085         * doc/posix-functions/fstatat.texi: Likewise.
22086         * doc/posix-functions/futimens.texi: Likewise.
22087         * doc/posix-functions/gai_strerror.texi: Likewise.
22088         * doc/posix-functions/getaddrinfo.texi: Likewise.
22089         * doc/posix-functions/getnameinfo.texi: Likewise.
22090         * doc/posix-functions/if_freenameindex.texi: Likewise.
22091         * doc/posix-functions/if_indextoname.texi: Likewise.
22092         * doc/posix-functions/if_nameindex.texi: Likewise.
22093         * doc/posix-functions/if_nametoindex.texi: Likewise.
22094         * doc/posix-functions/insque.texi: Likewise.
22095         * doc/posix-functions/linkat.texi: Likewise.
22096         * doc/posix-functions/llrint.texi: Likewise.
22097         * doc/posix-functions/llrintf.texi: Likewise.
22098         * doc/posix-functions/llrintl.texi: Likewise.
22099         * doc/posix-functions/lockf.texi: Likewise.
22100         * doc/posix-functions/lrintl.texi: Likewise.
22101         * doc/posix-functions/mkdirat.texi: Likewise.
22102         * doc/posix-functions/mkfifoat.texi: Likewise.
22103         * doc/posix-functions/mknodat.texi: Likewise.
22104         * doc/posix-functions/mq_close.texi: Likewise.
22105         * doc/posix-functions/mq_getattr.texi: Likewise.
22106         * doc/posix-functions/mq_notify.texi: Likewise.
22107         * doc/posix-functions/mq_open.texi: Likewise.
22108         * doc/posix-functions/mq_receive.texi: Likewise.
22109         * doc/posix-functions/mq_send.texi: Likewise.
22110         * doc/posix-functions/mq_setattr.texi: Likewise.
22111         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22112         * doc/posix-functions/mq_timedsend.texi: Likewise.
22113         * doc/posix-functions/mq_unlink.texi: Likewise.
22114         * doc/posix-functions/open_memstream.texi: Likewise.
22115         * doc/posix-functions/openat.texi: Likewise.
22116         * doc/posix-functions/posix_fadvise.texi: Likewise.
22117         * doc/posix-functions/posix_fallocate.texi: Likewise.
22118         * doc/posix-functions/posix_madvise.texi: Likewise.
22119         * doc/posix-functions/posix_memalign.texi: Likewise.
22120         * doc/posix-functions/posix_openpt.texi: Likewise.
22121         * doc/posix-functions/readlinkat.texi: Likewise.
22122         * doc/posix-functions/remque.texi: Likewise.
22123         * doc/posix-functions/renameat.texi: Likewise.
22124         * doc/posix-functions/rintl.texi: Likewise.
22125         * doc/posix-functions/sem_unlink.texi: Likewise.
22126         * doc/posix-functions/shm_open.texi: Likewise.
22127         * doc/posix-functions/shm_unlink.texi: Likewise.
22128         * doc/posix-functions/signgam.texi: Likewise.
22129         * doc/posix-functions/sigset.texi: Likewise.
22130         * doc/posix-functions/stpcpy.texi: Likewise.
22131         * doc/posix-functions/stpncpy.texi: Likewise.
22132         * doc/posix-functions/strerror.texi: Likewise.
22133         * doc/posix-functions/strtod.texi: Likewise.
22134         * doc/posix-functions/symlinkat.texi: Likewise.
22135         * doc/posix-functions/unlinkat.texi: Likewise.
22136         * doc/posix-functions/utimensat.texi: Likewise.
22137         * doc/glibc-functions/bindresvport.texi: Likewise.
22138         * doc/glibc-functions/dn_expand.texi: Likewise.
22139         * doc/glibc-functions/exp10.texi: Likewise.
22140         * doc/glibc-functions/exp10f.texi: Likewise.
22141         * doc/glibc-functions/fgetxattr.texi: Likewise.
22142         * doc/glibc-functions/flistxattr.texi: Likewise.
22143         * doc/glibc-functions/fopencookie.texi: Likewise.
22144         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22145         * doc/glibc-functions/fremovexattr.texi: Likewise.
22146         * doc/glibc-functions/fsetxattr.texi: Likewise.
22147         * doc/glibc-functions/getifaddrs.texi: Likewise.
22148         * doc/glibc-functions/getxattr.texi: Likewise.
22149         * doc/glibc-functions/lgetxattr.texi: Likewise.
22150         * doc/glibc-functions/listxattr.texi: Likewise.
22151         * doc/glibc-functions/llistxattr.texi: Likewise.
22152         * doc/glibc-functions/lremovexattr.texi: Likewise.
22153         * doc/glibc-functions/lsetxattr.texi: Likewise.
22154         * doc/glibc-functions/pow10.texi: Likewise.
22155         * doc/glibc-functions/pow10f.texi: Likewise.
22156         * doc/glibc-functions/rcmd_af.texi: Likewise.
22157         * doc/glibc-functions/removexattr.texi: Likewise.
22158         * doc/glibc-functions/res_init.texi: Likewise.
22159         * doc/glibc-functions/res_mkquery.texi: Likewise.
22160         * doc/glibc-functions/res_query.texi: Likewise.
22161         * doc/glibc-functions/res_querydomain.texi: Likewise.
22162         * doc/glibc-functions/res_send.texi: Likewise.
22163         * doc/glibc-functions/rresvport_af.texi: Likewise.
22164         * doc/glibc-functions/setxattr.texi: Likewise.
22165         * doc/glibc-functions/strcasestr.texi: Likewise.
22166
22167 2008-12-15  Bruno Haible  <bruno@clisp.org>
22168
22169         Fix compilation error on OSF/1 4.0.
22170         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22171         <sys/time.h>, simply delegate to the system header.
22172         Reported by Daniel Richard G. <oss@teragram.com>.
22173
22174 2008-12-15  Bruno Haible  <bruno@clisp.org>
22175
22176         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22177         * doc/posix-functions/fchmodat.texi: Likewise.
22178         * doc/posix-functions/fchownat.texi: Likewise.
22179         * doc/posix-functions/fdopendir.texi: Likewise.
22180         * doc/posix-functions/fstatat.texi: Likewise.
22181         * doc/posix-functions/mkdirat.texi: Likewise.
22182         * doc/posix-functions/unlinkat.texi: Likewise.
22183
22184 2008-12-14  Bruno Haible  <bruno@clisp.org>
22185
22186         Update doc for POSIX:2008.
22187         * doc/posix-functions/faccessat.texi: New file.
22188         * doc/posix-functions/fchmodat.texi: New file.
22189         * doc/posix-functions/fchownat.texi: New file.
22190         * doc/posix-functions/fdopendir.texi: New file.
22191         * doc/posix-functions/fstatat.texi: New file.
22192         * doc/posix-functions/futimens.texi: New file.
22193         * doc/posix-functions/linkat.texi: New file.
22194         * doc/posix-functions/mkdirat.texi: New file.
22195         * doc/posix-functions/mkfifoat.texi: New file.
22196         * doc/posix-functions/mknodat.texi: New file.
22197         * doc/posix-functions/open_wmemstream.texi: New file.
22198         * doc/posix-functions/openat.texi: New file.
22199         * doc/posix-functions/psiginfo.texi: New file.
22200         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22201         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22202         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22203         * doc/posix-functions/readlinkat.texi: New file.
22204         * doc/posix-functions/renameat.texi: New file.
22205         * doc/posix-functions/strerror_l.texi: New file.
22206         * doc/posix-functions/symlinkat.texi: New file.
22207         * doc/posix-functions/unlinkat.texi: New file.
22208         * doc/posix-functions/utimensat.texi: New file.
22209         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22210
22211 2008-12-14  Bruno Haible  <bruno@clisp.org>
22212
22213         Update doc for POSIX:2008.
22214         * doc/posix-functions/alphasort.texi: Renamed from
22215         doc/glibc-functions/alphasort.texi.
22216         * doc/posix-functions/dirfd.texi: Renamed from
22217         doc/glibc-functions/dirfd.texi.
22218         * doc/posix-functions/dprintf.texi: Renamed from
22219         doc/glibc-functions/dprintf.texi.
22220         * doc/posix-functions/duplocale.texi: Renamed from
22221         doc/glibc-functions/duplocale.texi.
22222         * doc/posix-functions/fexecve.texi: Renamed from
22223         doc/glibc-functions/fexecve.texi.
22224         * doc/posix-functions/fmemopen.texi: Renamed from
22225         doc/glibc-functions/fmemopen.texi.
22226         * doc/posix-functions/freelocale.texi: Renamed from
22227         doc/glibc-functions/freelocale.texi.
22228         * doc/posix-functions/getdate_err.texi: Renamed from
22229         doc/glibc-functions/getdate_err.texi.
22230         * doc/posix-functions/isalnum_l.texi: Renamed from
22231         doc/glibc-functions/isalnum_l.texi.
22232         * doc/posix-functions/isalpha_l.texi: Renamed from
22233         doc/glibc-functions/isalpha_l.texi.
22234         * doc/posix-functions/isblank_l.texi: Renamed from
22235         doc/glibc-functions/isblank_l.texi.
22236         * doc/posix-functions/iscntrl_l.texi: Renamed from
22237         doc/glibc-functions/iscntrl_l.texi.
22238         * doc/posix-functions/isdigit_l.texi: Renamed from
22239         doc/glibc-functions/isdigit_l.texi.
22240         * doc/posix-functions/isgraph_l.texi: Renamed from
22241         doc/glibc-functions/isgraph_l.texi.
22242         * doc/posix-functions/islower_l.texi: Renamed from
22243         doc/glibc-functions/islower_l.texi.
22244         * doc/posix-functions/isprint_l.texi: Renamed from
22245         doc/glibc-functions/isprint_l.texi.
22246         * doc/posix-functions/ispunct_l.texi: Renamed from
22247         doc/glibc-functions/ispunct_l.texi.
22248         * doc/posix-functions/isspace_l.texi: Renamed from
22249         doc/glibc-functions/isspace_l.texi.
22250         * doc/posix-functions/isupper_l.texi: Renamed from
22251         doc/glibc-functions/isupper_l.texi.
22252         * doc/posix-functions/iswalnum_l.texi: Renamed from
22253         doc/glibc-functions/iswalnum_l.texi.
22254         * doc/posix-functions/iswalpha_l.texi: Renamed from
22255         doc/glibc-functions/iswalpha_l.texi.
22256         * doc/posix-functions/iswblank_l.texi: Renamed from
22257         doc/glibc-functions/iswblank_l.texi.
22258         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22259         doc/glibc-functions/iswcntrl_l.texi.
22260         * doc/posix-functions/iswctype_l.texi: Renamed from
22261         doc/glibc-functions/iswctype_l.texi.
22262         * doc/posix-functions/iswdigit_l.texi: Renamed from
22263         doc/glibc-functions/iswdigit_l.texi.
22264         * doc/posix-functions/iswgraph_l.texi: Renamed from
22265         doc/glibc-functions/iswgraph_l.texi.
22266         * doc/posix-functions/iswlower_l.texi: Renamed from
22267         doc/glibc-functions/iswlower_l.texi.
22268         * doc/posix-functions/iswprint_l.texi: Renamed from
22269         doc/glibc-functions/iswprint_l.texi.
22270         * doc/posix-functions/iswpunct_l.texi: Renamed from
22271         doc/glibc-functions/iswpunct_l.texi.
22272         * doc/posix-functions/iswspace_l.texi: Renamed from
22273         doc/glibc-functions/iswspace_l.texi.
22274         * doc/posix-functions/iswupper_l.texi: Renamed from
22275         doc/glibc-functions/iswupper_l.texi.
22276         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22277         doc/glibc-functions/iswxdigit_l.texi.
22278         * doc/posix-functions/isxdigit_l.texi: Renamed from
22279         doc/glibc-functions/isxdigit_l.texi.
22280         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22281         doc/glibc-functions/mbsnrtowcs.texi.
22282         * doc/posix-functions/mkdtemp.texi: Renamed from
22283         doc/glibc-functions/mkdtemp.texi.
22284         * doc/posix-functions/newlocale.texi: Renamed from
22285         doc/glibc-functions/newlocale.texi.
22286         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22287         doc/glibc-functions/nl_langinfo_l.texi.
22288         * doc/posix-functions/open_memstream.texi: Renamed from
22289         doc/glibc-functions/open_memstream.texi.
22290         * doc/posix-functions/opterr.texi: Renamed from
22291         doc/glibc-functions/opterr.texi.
22292         * doc/posix-functions/optind.texi: Renamed from
22293         doc/glibc-functions/optind.texi.
22294         * doc/posix-functions/optopt.texi: Renamed from
22295         doc/glibc-functions/optopt.texi.
22296         * doc/posix-functions/psignal.texi: Renamed from
22297         doc/glibc-functions/psignal.texi.
22298         * doc/posix-functions/scandir.texi: Renamed from
22299         doc/glibc-functions/scandir.texi.
22300         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22301         doc/glibc-functions/sched_get_priority_min.texi.
22302         * doc/posix-functions/signgam.texi: Renamed from
22303         doc/glibc-functions/signgam.texi.
22304         * doc/posix-functions/stpcpy.texi: Renamed from
22305         doc/glibc-functions/stpcpy.texi.
22306         * doc/posix-functions/stpncpy.texi: Renamed from
22307         doc/glibc-functions/stpncpy.texi.
22308         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22309         doc/glibc-functions/strcasecmp_l.texi.
22310         * doc/posix-functions/strcoll_l.texi: Renamed from
22311         doc/glibc-functions/strcoll_l.texi.
22312         * doc/posix-functions/strfmon_l.texi: Renamed from
22313         doc/glibc-functions/strfmon_l.texi.
22314         * doc/posix-functions/strftime_l.texi: Renamed from
22315         doc/glibc-functions/strftime_l.texi.
22316         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22317         doc/glibc-functions/strncasecmp_l.texi.
22318         * doc/posix-functions/strndup.texi: Renamed from
22319         doc/glibc-functions/strndup.texi.
22320         * doc/posix-functions/strnlen.texi: Renamed from
22321         doc/glibc-functions/strnlen.texi.
22322         * doc/posix-functions/strsignal.texi: Renamed from
22323         doc/glibc-functions/strsignal.texi.
22324         * doc/posix-functions/strxfrm_l.texi: Renamed from
22325         doc/glibc-functions/strxfrm_l.texi.
22326         * doc/posix-functions/timer_gettime.texi: Renamed from
22327         doc/glibc-functions/timer_gettime.texi.
22328         * doc/posix-functions/tolower_l.texi: Renamed from
22329         doc/glibc-functions/tolower_l.texi.
22330         * doc/posix-functions/toupper_l.texi: Renamed from
22331         doc/glibc-functions/toupper_l.texi.
22332         * doc/posix-functions/towctrans_l.texi: Renamed from
22333         doc/glibc-functions/towctrans_l.texi.
22334         * doc/posix-functions/towlower_l.texi: Renamed from
22335         doc/glibc-functions/towlower_l.texi.
22336         * doc/posix-functions/towupper_l.texi: Renamed from
22337         doc/glibc-functions/towupper_l.texi.
22338         * doc/posix-functions/uselocale.texi: Renamed from
22339         doc/glibc-functions/uselocale.texi.
22340         * doc/posix-functions/vdprintf.texi: Renamed from
22341         doc/glibc-functions/vdprintf.texi.
22342         * doc/posix-functions/wcpcpy.texi:
22343         Renamed from doc/glibc-functions/wcpcpy.texi.
22344         * doc/posix-functions/wcpncpy.texi: Renamed from
22345         doc/glibc-functions/wcpncpy.texi.
22346         * doc/posix-functions/wcscasecmp.texi: Renamed from
22347         doc/glibc-functions/wcscasecmp.texi.
22348         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22349         doc/glibc-functions/wcscasecmp_l.texi.
22350         * doc/posix-functions/wcscoll_l.texi: Renamed from
22351         doc/glibc-functions/wcscoll_l.texi.
22352         * doc/posix-functions/wcsdup.texi: Renamed from
22353         doc/glibc-functions/wcsdup.texi.
22354         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22355         doc/glibc-functions/wcsncasecmp.texi.
22356         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22357         doc/glibc-functions/wcsncasecmp_l.texi.
22358         * doc/posix-functions/wcsnlen.texi: Renamed from
22359         doc/glibc-functions/wcsnlen.texi.
22360         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22361         doc/glibc-functions/wcsnrtombs.texi.
22362         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22363         doc/glibc-functions/wcsxfrm_l.texi.
22364         * doc/posix-functions/wctrans_l.texi: Renamed from
22365         doc/glibc-functions/wctrans_l.texi.
22366         * doc/posix-functions/wctype_l.texi: Renamed from
22367         doc/glibc-functions/wctype_l.texi.
22368         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22369         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22370         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22371         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22372         these subsections.
22373         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22374         Remove sections.
22375
22376 2008-12-14  Bruno Haible  <bruno@clisp.org>
22377
22378         Update doc for POSIX:2008.
22379         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22380
22381 2008-12-14  Bruno Haible  <bruno@clisp.org>
22382
22383         Update doc for POSIX:2008.
22384         * doc/pastposix-functions/bcmp.texi: Renamed from
22385         doc/posix-functions/bcmp.texi.
22386         * doc/pastposix-functions/bcopy.texi: Renamed from
22387         doc/posix-functions/bcopy.texi.
22388         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22389         doc/posix-functions/bsd_signal.texi.
22390         * doc/pastposix-functions/bzero.texi: Renamed from
22391         doc/posix-functions/bzero.texi.
22392         * doc/pastposix-functions/ecvt.texi: Renamed from
22393         doc/posix-functions/ecvt.texi.
22394         * doc/pastposix-functions/fcvt.texi: Renamed from
22395         doc/posix-functions/fcvt.texi.
22396         * doc/pastposix-functions/ftime.texi: Renamed from
22397         doc/posix-functions/ftime.texi.
22398         * doc/pastposix-functions/gcvt.texi: Renamed from
22399         doc/posix-functions/gcvt.texi.
22400         * doc/pastposix-functions/getcontext.texi: Renamed from
22401         doc/posix-functions/getcontext.texi.
22402         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22403         doc/posix-functions/gethostbyaddr.texi.
22404         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22405         doc/posix-functions/gethostbyname.texi.
22406         * doc/pastposix-functions/getwd.texi: Renamed from
22407         doc/posix-functions/getwd.texi.
22408         * doc/pastposix-functions/h_errno.texi: Renamed from
22409         doc/posix-functions/h_errno.texi.
22410         * doc/pastposix-functions/index.texi: Renamed from
22411         doc/posix-functions/index.texi.
22412         * doc/pastposix-functions/makecontext.texi: Renamed from
22413         doc/posix-functions/makecontext.texi.
22414         * doc/pastposix-functions/mktemp.texi: Renamed from
22415         doc/posix-functions/mktemp.texi.
22416         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22417         doc/posix-functions/pthread_attr_getstackaddr.texi.
22418         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22419         doc/posix-functions/pthread_attr_setstackaddr.texi.
22420         * doc/pastposix-functions/rindex.texi: Renamed from
22421         doc/posix-functions/rindex.texi.
22422         * doc/pastposix-functions/scalb.texi: Renamed from
22423         doc/posix-functions/scalb.texi.
22424         * doc/pastposix-functions/setcontext.texi: Renamed from
22425         doc/posix-functions/setcontext.texi.
22426         * doc/pastposix-functions/swapcontext.texi: Renamed from
22427         doc/posix-functions/swapcontext.texi.
22428         * doc/pastposix-functions/ualarm.texi: Renamed from
22429         doc/posix-functions/ualarm.texi.
22430         * doc/pastposix-functions/usleep.texi: Renamed from
22431         doc/posix-functions/usleep.texi.
22432         * doc/pastposix-functions/vfork.texi: Renamed from
22433         doc/posix-functions/vfork.texi.
22434         * doc/pastposix-functions/wcswcs.texi: Renamed from
22435         doc/posix-functions/wcswcs.texi.
22436         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22437         (Function Substitutes): Update.
22438
22439 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22440
22441         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22442         m4/strerror.m4.
22443
22444 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22445             Bruno Haible  <bruno@clisp.org>
22446
22447         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22448
22449 2008-12-13  Bruno Haible  <bruno@clisp.org>
22450
22451         * modules/strtoull (Depends-on): Remove unistd.
22452
22453 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22454
22455         * modules/strtoull (Depends-on): Add stdlib.
22456
22457 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22458
22459         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22460
22461 2008-12-10  Jim Meyering  <meyering@redhat.com>
22462
22463         gl_ASSERT: don't say assertions are disabled when they're not
22464         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22465         "checking whether to enable assertions... no", when they are in
22466         fact enabled.  This is solely a bug in the output of configure.
22467         In spite of saying "no", NDEBUG was not defined in that case.
22468         Also, as noted by Eric Blake, leave assertions enabled upon
22469         --enable-assert=INVALID.
22470
22471 2008-12-10  Bruno Haible  <bruno@clisp.org>
22472
22473         Change MODULES.html to refer to POSIX:2008 where possible.
22474         * MODULES.html.sh (POSIX2008_URL): New variable.
22475         (posix_headers): Remove sys/timeb, ucontext.
22476         (posix2001_headers): New variable.
22477         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22478         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22479         index, makecontext, mktemp, pthread_attr_getstackaddr,
22480         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22481         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22482         (posix2001_functions): New variable.
22483         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22484         otherwise.
22485
22486 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22487
22488         add missing include to parse-duration.c
22489         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22490         * modules/parse-duration (Depends-on): Add xalloc.
22491
22492         fix sed script reading maint.mk
22493         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22494         (syntax-check-rules): Use it.
22495
22496 2008-12-09  Bruno Haible  <bruno@clisp.org>
22497
22498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22499         MacOS X 10.4/PowerPC.
22500         Reported by Simon Josefsson.
22501
22502 2008-12-08  Jim Meyering  <meyering@redhat.com>
22503
22504         work around mingw's lack of some S_IF definitions
22505         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22506         Reported by Simon Josefsson.
22507
22508 2008-12-08  Bruno Haible  <bruno@clisp.org>
22509
22510         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22511         applied to variables. Needed on MacOS X 10.4/PowerPC.
22512         Reported by Simon Josefsson.
22513
22514 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22515         and Eric Blake  <ebb9@byu.net>
22516
22517         assert: honor --enable-assert
22518         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22519         order to honor --enable-assert, rather than treating it as a
22520         synonym for --disable-assert.
22521
22522 2008-12-08  Jim Meyering  <meyering@redhat.com>
22523
22524         * lib/posixtm.c: Remove now-useless declaration of mktime.
22525
22526         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22527
22528 2008-12-07  Bruno Haible  <bruno@clisp.org>
22529
22530         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22531         test_once): Mark functions as static.
22532         * tests/test-tls.c (test_tls): Likewise.
22533
22534 2008-12-07  Bruno Haible  <bruno@clisp.org>
22535
22536         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22537         iconv_register_autodetect.
22538
22539 2008-12-07  Jim Meyering  <meyering@redhat.com>
22540
22541         posixtm.c: avoid a warning
22542         * lib/posixtm.c (posixtime): Don't initialize tm0.
22543         It's no longer needed to placate gcc4's -Wuninitialized,
22544         and the attempt to placate would elicit a new warning.
22545
22546         unicodeio.c: mark unused parameters
22547         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22548         (fallback_failure_callback): Likewise.
22549
22550 2008-12-07  Bruno Haible  <bruno@clisp.org>
22551
22552         * gnulib-tool (func_create_testdir): When building the tests
22553         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22554         Reported by Simon Josefsson.
22555
22556 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22557
22558         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22559
22560 2008-12-06  Bruno Haible  <bruno@clisp.org>
22561
22562         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22563         Suggested by Eric Blake.
22564
22565 2008-12-06  Bruno Haible  <bruno@clisp.org>
22566
22567         Fix a c-stack test failure on MacOS X.
22568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22569         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22570         handler for SIGBUS as well.
22571         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22572         install a signal handler for SIGBUS as well.
22573         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22574
22575 2008-12-06  Bruno Haible  <bruno@clisp.org>
22576
22577         Advocacy documentation.
22578         * doc/gnulib-intro.texi (Benefits): New section.
22579         * doc/gnulib.texi: Update.
22580
22581 2008-12-06  Bruno Haible  <bruno@clisp.org>
22582
22583         Document the 'manywarnings' module.
22584         * doc/manywarnings.texi: New file.
22585         * doc/gnulib.texi: Include it.
22586
22587 2008-12-05  Eric Blake  <ebb9@byu.net>
22588
22589         tests: silence some gcc warnings
22590         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22591         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22592         type mismatches.
22593
22594 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22595             Bruno Haible  <bruno@clisp.org>
22596
22597         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22598
22599 2008-11-29  Jim Meyering  <meyering@redhat.com>
22600
22601         unicodeio.c: mark unused parameters
22602         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22603         (fallback_failure_callback): Likewise.
22604
22605         fts: fix a thinko
22606         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22607         (set_stat_type): Return S_IF*-valued "type" directly.
22608         Prompted by James Youngman's spotting a related bug.
22609         Confirmed by further testing through find.
22610
22611         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22612         * lib/fts.c (D_TYPE): Define.
22613         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22614         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22615         (s_ifmt_shift_bits): New function.
22616         (set_stat_type): New function.
22617         (fts_build): When not calling fts_stat, call set_stat_type
22618         to propagate dirent.d_type info to fts_read caller.
22619         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22620         fts_statp->st_mode type information may be valid.
22621
22622 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22623
22624         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22625         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22626         <sds@gnu.org>.
22627
22628 2008-11-20  Bruno Haible  <bruno@clisp.org>
22629
22630         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22631         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22632         INCLUDE_NEXT.
22633         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22634         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22635         * modules/math (Makefile.am): Substitute
22636         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22637         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22638
22639 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22640             Bruno Haible  <bruno@clisp.org>
22641
22642         * lib/stdint.in.h: Define all type macros so that their expansion is
22643         a single typedef'ed token. Fixes a compilation failure in Boost which
22644         does "using ::int8_t;".
22645
22646 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22647
22648         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22649         gl_MANYWARN_ALL_GCC.
22650         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22651         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22652         * modules/manywarnings: New file.
22653         * MODULES.html.sh: Mention manywarnings module.
22654
22655 2008-11-18  Bruno Haible  <bruno@clisp.org>
22656
22657         * doc/gnulib-tool.texi (Unit tests): New section.
22658
22659 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22660
22661         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22662         paths like 'lib/po/foo.po'.
22663
22664 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22665
22666         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22667         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22668
22669 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22670
22671         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22672         parameter works.
22673
22674 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22675
22676         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22677
22678 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22679
22680         * modules/parse-duration-tests: New file.
22681         * tests/test-parse-duration.sh: New file.
22682         * tests/test-parse-duration.c: New file.
22683
22684         New module 'parse-duration'.
22685         * lib/parse-duration.h: New file.
22686         * lib/parse-duration.c: New file.
22687         * modules/parse-duration: New file.
22688
22689 2008-11-17  Bruno Haible  <bruno@clisp.org>
22690
22691         * tests/test-select-out.sh: Comment out the first pipe test.
22692         Reported by Simon Josefsson.
22693
22694 2008-11-17  Bruno Haible  <bruno@clisp.org>
22695
22696         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22698         gl_HOSTENT.
22699
22700 2008-11-17  Bruno Haible  <bruno@clisp.org>
22701
22702         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22703         -lnetwork and -lnet. Needed for Haiku and BeOS.
22704
22705 2008-11-16  Bruno Haible  <bruno@clisp.org>
22706
22707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22708
22709 2008-11-16  Bruno Haible  <bruno@clisp.org>
22710
22711         Avoid test failure on Haiku.
22712         * tests/test-fsync.c: Include <errno.h>.
22713         (main): Don't require that fsync (0) fails.
22714
22715 2008-11-15  Bruno Haible  <bruno@clisp.org>
22716
22717         New module 'hostent'.
22718         * modules/hostent: New file.
22719         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22720
22721 2008-11-15  Bruno Haible  <bruno@clisp.org>
22722
22723         New module 'servent'.
22724         * modules/servent: New file.
22725         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22726
22727 2008-11-15  Bruno Haible  <bruno@clisp.org>
22728
22729         Avoid generating same test program with two different rules.
22730         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22731         test-frexp to test-frexp-nolibm.
22732         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22733         test-frexpl to test-frexpl-nolibm.
22734
22735 2008-11-15  Bruno Haible  <bruno@clisp.org>
22736
22737         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22738         $(FREXPL_LIBM).
22739
22740 2008-11-15  Bruno Haible  <bruno@clisp.org>
22741
22742         * lib/netdb.in.h: Activate the definitions also when the system's
22743         <netdb.h> has 'struct addrinfo'.
22744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22745         EAI_OVERFLOW or AI_NUMERICSERV.
22746         * doc/posix-headers/netdb.texi: Document the problem.
22747
22748 2008-11-15  Bruno Haible  <bruno@clisp.org>
22749
22750         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22751
22752         Make the 'sched' module work on platforms where <sched.h> exists but
22753         is incomplete (such as Haiku).
22754         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22755         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22756         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22757         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22758         HAVE_STRUCT_SCHED_PARAM.
22759         * modules/sched (Depends-on): Add include_next.
22760         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22761         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22762         * doc/posix-headers/sched.texi: Document the issue.
22763
22764 2008-11-13  Jim Meyering  <meyering@redhat.com>
22765
22766         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22767         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22768         test would fail due to the difference in the Report bugs to ...
22769         line.  The expected address is empty, "<>", while the actual
22770         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22771
22772 2008-11-12  Bruno Haible  <bruno@clisp.org>
22773
22774         lstat: don't compile lstat.c on systems lacking lstat
22775         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22776         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22777         Reported by Daniel P. Berrange via Jim Meyering.
22778
22779 2008-11-12  Jim Meyering  <meyering@redhat.com>
22780
22781         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22782
22783 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22784
22785         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22786         instead.
22787
22788 2008-11-12  Bruno Haible  <bruno@clisp.org>
22789
22790         * lib/unicodeio.c: Include unistr.h.
22791         (utf8_wctomb): Remove function.
22792         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22793
22794 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22795
22796         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22797         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22798         <bruno@clisp.org>.
22799         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22800
22801 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22802
22803         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22804         * doc/gnulib.texi: Add section for warnings.
22805
22806 2008-11-11  Bruno Haible  <bruno@clisp.org>
22807
22808         * lib/sockets.h: Add a comment.
22809
22810 2008-11-11  Karl Berry  <karl@gnu.org>
22811
22812         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22813
22814 2008-11-11  Eric Blake  <ebb9@byu.net>
22815
22816         fdl.texi: avoid git symlinks
22817         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22818
22819 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22820
22821         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22822
22823 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22824
22825         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22826         (gl_WARN_ADD): Substitute $2 if literal.
22827
22828 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22829
22830         * m4/warning.m4: Remove.
22831
22832 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22833
22834         * m4/warnings.m4: Almost complete rewrite. :-)
22835
22836 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22837
22838         * modules/warnings: New module.
22839         * m4/warnings.m4: New file.
22840         * MODULES.html.sh: Mention warnings module.
22841         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22842         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22843
22844 2008-11-10  Eric Blake  <ebb9@byu.net>
22845
22846         fdl.texi: make a symlink to the latest version
22847         * doc/standards.texi: Revert today's earlier change.
22848         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22849         * doc/fdl.texi: ...and replace this with a symlink to the newer
22850         fdl-1.3.texi.
22851
22852 2008-11-10  Bruno Haible  <bruno@clisp.org>
22853
22854         * tests/test-select-fd.c (main): Accept the result file name as fourth
22855         argument.
22856         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22857         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22858
22859 2008-11-10  Bruno Haible  <bruno@clisp.org>
22860
22861         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22862         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22863         as autoconf-substituted macros.
22864         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22866         gl_NETDB_H_DEFAULTS. Set these variables.
22867         * modules/netdb (Makefile.am): Substitute these variables.
22868
22869 2008-11-10  Eric Blake  <ebb9@byu.net>
22870
22871         standards.texi: include correct file for FDL 1.3
22872         * doc/standards.texi (GNU Free Documentation License): Change
22873         include file to pull in FDL 1.3, not 1.2.
22874
22875         fdl.texi: revert accidental change to license
22876         * doc/fdl.texi: This is FDL 1.2, not 1.3.
22877
22878 2008-11-10  Bruno Haible  <bruno@clisp.org>
22879
22880         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
22881         cross-compiling guesses also when the native compile gives no result.
22882
22883 2008-11-10  Bruno Haible  <bruno@clisp.org>
22884
22885         * lib/spawni.c (__spawni): Force variable into the stack.
22886
22887 2008-11-10  Bruno Haible  <bruno@clisp.org>
22888
22889         Add support for Haiku.
22890         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
22891         glibc and BeOS, but also on Haiku.
22892         * lib/fpurge.c (fpurge): Likewise.
22893         * lib/freadable.c (freadable): Likewise.
22894         * lib/freadahead.c (freadahead): Likewise.
22895         * lib/freading.c (freading): Likewise.
22896         * lib/freadptr.c (freadptr): Likewise.
22897         * lib/freadseek.c (freadptrinc): Likewise.
22898         * lib/fseeko.c (rpl_fseeko): Likewise.
22899         * lib/fseterr.c (fseterr): Likewise.
22900         * lib/fwritable.c (fwritable): Likewise.
22901         * lib/fwriting.c (fwriting): Likewise.
22902         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
22903
22904 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22905
22906         * lib/config.charset: Treat Haiku like BeOS.
22907
22908 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22909
22910         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
22911         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
22912
22913 2008-11-08  Bruno Haible  <bruno@clisp.org>
22914
22915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
22916         AC_CACHE_CHECK.
22917
22918 2008-11-08  Bruno Haible  <bruno@clisp.org>
22919
22920         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
22921
22922 2008-11-08  Bruno Haible  <bruno@clisp.org>
22923
22924         * tests/test-select-fd.c: New file.
22925         * tests/test-select-in.sh: New file.
22926         * tests/test-select-out.sh: New file.
22927         * tests/test-select-stdin.c: New file.
22928         * modules/select-tests (Files): Add the new files.
22929         (Depends-on): Add gettimeofday.
22930         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
22931         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
22932         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
22933
22934 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
22935             Bruno Haible  <bruno@clisp.org>
22936
22937         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
22938
22939 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
22940
22941         * build-aux/pmccabe2html: Added support for C++ source files.
22942
22943 2008-11-05  Ben Pfaff  <blp@gnu.org>
22944
22945         Fix lib/close.c build on Windows.
22946         * modules/close (Files): Add lib/w32sock.h.
22947
22948 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
22949
22950         Accept Bison's NEWS format.
22951         * build-aux/announce-gen (print_news_deltas): Tweak
22952         $re_prefix.
22953
22954 2008-11-04  Bruno Haible  <bruno@clisp.org>
22955
22956         * modules/random_r (Maintainer): Add glibc.
22957
22958 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22959
22960         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
22961         by karl@freefriends.org (Karl Berry).
22962         * doc/alloca.texi: Likewise.
22963         * doc/c-ctype.texi: Likewise.
22964         * doc/c-strcase.texi: Likewise.
22965         * doc/c-strcaseeq.texi: Likewise.
22966         * doc/c-strcasestr.texi: Likewise.
22967         * doc/c-strstr.texi: Likewise.
22968         * doc/c-strtod.texi: Likewise.
22969         * doc/c-strtold.texi: Likewise.
22970         * doc/ctime.texi: Likewise.
22971         * doc/error.texi: Likewise.
22972         * doc/fdl.texi: Likewise.
22973         * doc/gcd.texi: Likewise.
22974         * doc/getdate.texi: Likewise.
22975         * doc/gnulib-intro.texi: Likewise.
22976         * doc/gnulib-tool.texi: Likewise.
22977         * doc/gnulib.texi: Likewise.
22978         * doc/inet_ntoa.texi: Likewise.
22979         * doc/maintain.texi: Likewise.
22980         * doc/make-stds.texi: Likewise.
22981         * doc/quote.texi: Likewise.
22982         * doc/regexprops-generic.texi: Likewise.
22983         * doc/standards.texi: Likewise.
22984         * doc/verify.texi: Likewise.
22985         * doc/visibility.texi: Likewise.
22986         * doc/gnulib.texi (GNU Free Documentation License): Include
22987         fdl-1.3.texi instead of fdl.texi.
22988
22989 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22990
22991         * doc/fdl-1.3.texi: New file, from
22992         <http://www.gnu.org/licenses/fdl-1.3.texi>.
22993         * modules/fdl-1.3: Add.
22994         * MODULES.html.sh: Add fdl-1.3.
22995
22996 2008-11-03  Bruno Haible  <bruno@clisp.org>
22997
22998         Make determination of absolute name of header file work with AIX xlc.
22999         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23000         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23001         preprocessing.
23002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23003         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23004
23005 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23006
23007         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23008         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23009         <ludo@gnu.org>.
23010
23011 2008-11-02  Bruno Haible  <bruno@clisp.org>
23012
23013         Mark 'strpbrk' obsolete.
23014         * modules/strpbrk (Status, Notice): New sections.
23015         * modules/strtok_r (Depends-on): Add strpbrk.
23016
23017 2008-11-02  Bruno Haible  <bruno@clisp.org>
23018
23019         Mark 'strdup' obsolete.
23020         * modules/strdup (Status, Notice): New sections.
23021         * modules/findprog (Depends-on): Add strdup.
23022         * modules/getaddrinfo (Depends-on): Likewise.
23023         * modules/localename (Depends-on): Likewise.
23024         * modules/relocatable-lib (Depends-on): Likewise.
23025         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23026         * modules/relocatable-prog (Depends-on): Likewise.
23027         * modules/trim (Depends-on): Likewise.
23028         * modules/unictype/gen-ctype (Depends-on): Likewise.
23029         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23030
23031 2008-11-02  Bruno Haible  <bruno@clisp.org>
23032
23033         Mark 'strcspn' obsolete.
23034         * modules/strcspn (Status, Notice): New sections.
23035
23036 2008-11-02  Bruno Haible  <bruno@clisp.org>
23037
23038         Mark 'rmdir' obsolete.
23039         * modules/rmdir (Status, Notice): New sections.
23040         * modules/clean-temp (Depends-on): Add rmdir.
23041         * modules/openat (Depends-on): Likewise.
23042
23043 2008-11-02  Bruno Haible  <bruno@clisp.org>
23044
23045         Mark 'raise' obsolete.
23046         * modules/raise (Status, Notice): New sections.
23047         (Include): Specify <signal.h>.
23048         * modules/stdio (Depends-on): Add raise.
23049         * modules/write (Depends-on): Likewise.
23050
23051 2008-11-02  Bruno Haible  <bruno@clisp.org>
23052
23053         Mark 'memset' obsolete.
23054         * modules/memset (Status, Notice): New sections.
23055
23056 2008-11-02  Bruno Haible  <bruno@clisp.org>
23057
23058         Mark 'memmove' obsolete.
23059         * modules/memmove (Status, Notice): New sections.
23060         * modules/argp (Depends-on): Add memmove.
23061         * modules/argz (Depends-on): Likewise.
23062         * modules/canonicalize (Depends-on): Likewise.
23063         * modules/canonicalize-lgpl (Depends-on): Likewise.
23064         * modules/fts (Depends-on): Likewise.
23065         * modules/getcwd (Depends-on): Likewise.
23066         * modules/human (Depends-on): Likewise.
23067         * modules/regex (Depends-on): Likewise.
23068         * modules/striconveh (Depends-on): Likewise.
23069         * modules/trim (Depends-on): Likewise.
23070         * modules/unistr/u8-move (Depends-on): Likewise.
23071         * modules/unistr/u16-move (Depends-on): Likewise.
23072         * modules/unistr/u32-move (Depends-on): Likewise.
23073
23074 2008-11-02  Bruno Haible  <bruno@clisp.org>
23075
23076         Mark 'memcpy' obsolete.
23077         * modules/memcpy (Status, Notice): New sections.
23078
23079 2008-11-02  Bruno Haible  <bruno@clisp.org>
23080
23081         Mark 'memcmp' obsolete.
23082         * modules/memcmp (Status, Notice): New sections.
23083         * modules/argmatch (Depends-on): Add memchr.
23084         * modules/backupfile (Depends-on): Likewise.
23085         * modules/c-strcasestr (Depends-on): Likewise.
23086         * modules/crypto/des (Depends-on): Likewise.
23087         * modules/csharpcomp (Depends-on): Likewise.
23088         * modules/fnmatch (Depends-on): Likewise.
23089         * modules/git-merge-changelog (Depends-on): Likewise.
23090         * modules/isnand (Depends-on): Likewise.
23091         * modules/isnand-nolibm (Depends-on): Likewise.
23092         * modules/isnanf (Depends-on): Likewise.
23093         * modules/isnanf-nolibm (Depends-on): Likewise.
23094         * modules/isnanl (Depends-on): Likewise.
23095         * modules/isnanl-nolibm (Depends-on): Likewise.
23096         * modules/mbchar (Depends-on): Likewise.
23097         * modules/memcoll (Depends-on): Likewise.
23098         * modules/quotearg (Depends-on): Likewise.
23099         * modules/regex (Depends-on): Likewise.
23100         * modules/relocatable-prog (Depends-on): Likewise.
23101         * modules/same (Depends-on): Likewise.
23102         * modules/signbit (Depends-on): Likewise.
23103         * modules/strcasestr-simple (Depends-on): Likewise.
23104         * modules/unictype/gen-ctype (Depends-on): Likewise.
23105         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23106         * modules/uniname/uniname (Depends-on): Likewise.
23107         * modules/unistr/u8-cmp (Depends-on): Likewise.
23108
23109 2008-11-02  Bruno Haible  <bruno@clisp.org>
23110
23111         Mark 'memchr' obsolete.
23112         * modules/memchr (Status, Notice): New sections.
23113         * modules/argp (Depends-on): Add memchr.
23114         * modules/base64 (Depends-on): Likewise.
23115         * modules/c-strcasestr (Depends-on): Likewise.
23116         * modules/chdir-long (Depends-on): Likewise.
23117         * modules/fnmatch (Depends-on): Likewise.
23118         * modules/getsubopt (Depends-on): Likewise.
23119         * modules/git-merge-changelog (Depends-on): Likewise.
23120         * modules/glob (Depends-on): Likewise.
23121         * modules/strcasestr-simple (Depends-on): Likewise.
23122         * modules/strnlen (Depends-on): Likewise.
23123
23124 2008-11-02  Bruno Haible  <bruno@clisp.org>
23125
23126         Mark 'atexit' obsolete.
23127         * modules/atexit (Status, Notice): New sections.
23128         * modules/chdir-long (Depends-on): Add atexit.
23129         * modules/wait-process (Depends-on): Likewise.
23130
23131 2008-11-02  Bruno Haible  <bruno@clisp.org>
23132
23133         * gnulib-tool: New option --with-obsolete.
23134         (func_usage): Document it.
23135         (func_modules_transitive_closure): Drop obsolete dependencies if
23136         incobsolete is not true.
23137         (func_import): Read and save the incobsolete variable to the cache.
23138
23139 2008-11-02  Bruno Haible  <bruno@clisp.org>
23140
23141         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23142         * gnulib-tool: New option --extract-status.
23143         (func_usage): Document it.
23144         (sed_extract_prog): Recognize it.
23145         (func_get_status): New function.
23146
23147 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23148
23149         * modules/sockets (License): Change from LGPL to LGPLv2+.
23150
23151 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23152
23153         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23154
23155 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23156
23157         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23158         Mention times and sys_times.
23159         * modules/sys_times, modules/sys_times-tests: New modules.
23160         * modules/times, modules/times-tests: Likewise
23161         * m4/sys_times_h.m4: New file.
23162         * lib/sys_times.in.h: Likewise
23163         * lib/times.c: Likewise.
23164         * tests/test-sys_times.c: Likewise.
23165         * tests/test-times.c: Likewise.
23166         * doc/posix-headers/sys_times.texi: Update.
23167         * doc/posix-functions/times.texi: Update.
23168
23169 2008-10-28  Jim Meyering  <meyering@redhat.com>
23170
23171         * modules/tempname (Depends-on): Add lstat.
23172
23173         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23174
23175 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23176
23177         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23178         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23179         using idiom used elsewhere in gnulib.
23180
23181 2008-10-27  Jim Meyering  <meyering@redhat.com>
23182
23183         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23184
23185 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23186
23187         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23188         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23189         programs.
23190         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23191
23192 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23193
23194         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23195
23196 2008-10-27  Bruno Haible  <bruno@clisp.org>
23197
23198         * tests/test-lstat.c: Include <stdio.h>.
23199
23200 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23201
23202         * modules/lstat-tests: New module.
23203         * tests/test-lstat.c: New file.
23204
23205 2008-10-26  Jim Meyering  <meyering@redhat.com>
23206
23207         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23208
23209 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23210             Bruno Haible  <bruno@clisp.org>
23211
23212         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23213         * modules/configmake (Include): Add a note that the include must come
23214         after all system headers.
23215         * lib/javaversion.c: Include configmake.h after all other includes.
23216
23217 2008-10-26  Bruno Haible  <bruno@clisp.org>
23218
23219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23220         HAVE_STRUCT_RANDOM_DATA to 1.
23221         (gl_STDLIB_H): Simplify.
23222
23223 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23224
23225         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23226         substitute HAVE_STRUCT_RANDOM_DATA.
23227         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23228         random_data.
23229         * modules/stdlib (Makefile.am): Substitute
23230         HAVE_STRUCT_RANDOM_DATA.
23231
23232 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23233
23234         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23235         * doc/gnulib-intro.texi (Copyright): Likewise.
23236
23237 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23238
23239         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23240         findings.
23241
23242 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23243             Bruno Haible  <bruno@clisp.org>
23244
23245         * lib/unistd.in.h: Include <winsock2.h>.
23246         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23247         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23248         Provide dummy declarations.
23249         (gethostname): Override.
23250         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23251         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23252         gl_PREREQ_SYS_H_WINSOCK2.
23253         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23254         * doc/posix-functions/gethostname.texi: More details.
23255
23256 2008-10-25  Bruno Haible  <bruno@clisp.org>
23257
23258         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23259         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23260         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23261
23262         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23263         here ...
23264         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23265         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23266         gl_UNISTD_H_DEFAULTS.
23267
23268 2008-10-25  Eric Blake  <ebb9@byu.net>
23269
23270         signbit: avoid spurious compiler failure
23271         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23272         declarations inside function.
23273
23274 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23275             Bruno Haible  <bruno@clisp.org>
23276
23277         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23278         * modules/random_r (Depends-on): Add stdint.
23279
23280 2008-10-24  Bruno Haible  <bruno@clisp.org>
23281
23282         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23283         Eggert.
23284         * modules/strerror (License): Likewise.
23285
23286 2008-10-24  Jim Meyering  <meyering@redhat.com>
23287
23288         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23289         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23290
23291 2008-10-24  Eric Blake  <ebb9@byu.net>
23292
23293         getgroups: fix compilation when getgroups is available
23294         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23295         but with <config.h> override of getgroups disabled.
23296
23297 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23298
23299         * doc/gnulib.texi (Header files): Add note about C++ problems.
23300         Explained by Bruno Haible <bruno@clisp.org>.
23301
23302 2008-10-23  Bruno Haible  <bruno@clisp.org>
23303
23304         Define a dummy SA_NODEFER macro on Interix.
23305         * lib/signal.in.h (SA_NODEFER): Define fallback.
23306         Reported by Aleksey Cheusov <cheusov@tut.by> via
23307         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23308
23309 2008-10-23  Bruno Haible  <bruno@clisp.org>
23310
23311         * modules/freadahead (License): Change to LGPLv2+.
23312         Suggested by Simon Josefsson.
23313
23314 2008-10-23  Jim Meyering  <meyering@redhat.com>
23315
23316         random_r: new module
23317         * modules/random_r: New file.
23318         * m4/random_r.m4: New file.
23319         * lib/random_r.c: New file, from glibc.
23320         * modules/random_r-tests: New file.
23321         * tests/test-random_r.c: New file.
23322         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23323          Declare.
23324         (RAND_MAX): Define.
23325         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23326         * modules/stdlib: Substitute them, too.
23327         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23328         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23329         * doc/glibc-functions/random_r.texi: Likewise.
23330         * doc/glibc-functions/setstate_r.texi: Likewise.
23331         * doc/glibc-functions/srandom_r.texi: Likewise.
23332         * config/srclist.txt: Mention it.
23333
23334 2008-10-23  David Lutterkort  <lutter@redhat.com>
23335
23336         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23337         link requirement
23338
23339 2008-10-23  Jim Meyering  <meyering@redhat.com>
23340
23341         selinux-h: mark parameters of stub functions as intentionally unused
23342         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23343         * lib/se-context.in.h: Likewise.
23344
23345 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23346
23347         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23348
23349 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23350
23351         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23352
23353 2008-10-22  Eric Blake  <ebb9@byu.net>
23354
23355         glthread/thread: avoid compiler warning
23356         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23357         Add unreachable abort to silence compiler.
23358
23359 2008-10-22  Eric Blake  <ebb9@byu.net>
23360
23361         netdb: also supply struct addrinfo for cygwin 1.5.x
23362         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23363         older cygwin.
23364         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23365         cygwin.
23366         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23367
23368 2008-10-22  Bruno Haible  <bruno@clisp.org>
23369
23370         * users.txt: Update entry about pspp.
23371
23372 2008-10-21  Bruno Haible  <bruno@clisp.org>
23373
23374         Simplification.
23375         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23376         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23377
23378         Simplification.
23379         * lib/ioctl.c (ioctl): Don't undefine.
23380         * lib/socket.c (socket): Don't undefine.
23381
23382         Remove unused module indicator macros.
23383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23384         GNULIB_$1 as a C macro.
23385
23386         * doc/posix-functions/close.texi: Undo last change.
23387         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23388         Windows platforms.
23389
23390 2008-10-21  Bruno Haible  <bruno@clisp.org>
23391
23392         Add gethostname() declaration to <unistd.h>.
23393         * lib/unistd.in.h (gethostname): New declaration.
23394         * lib/gethostname.c: Include <unistd.h>.
23395         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23396         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23398         and HAVE_GETHOSTNAME.
23399         * modules/gethostname (Depends-on): Add unistd.
23400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23401         (Include): Specify <unistd.h>.
23402         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23403         HAVE_GETHOSTNAME.
23404         * tests/test-gethostname.c: Include <unistd.h> first.
23405
23406 2008-10-21  Bruno Haible  <bruno@clisp.org>
23407
23408         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23409         * modules/select-tests (Depends-on): Likewise.
23410         Reported by Simon Josefsson.
23411
23412 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23413
23414         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23415         * lib/accept.c: New file, based on winsock.c.
23416         * lib/bind.c: New file, based on winsock.c.
23417         * lib/connect.c: New file, based on winsock.c.
23418         * lib/getpeername.c: New file, based on winsock.c.
23419         * lib/getsockname.c: New file, based on winsock.c.
23420         * lib/getsockopt.c: New file, based on winsock.c.
23421         * lib/ioctl.c: New file, based on winsock.c.
23422         * lib/listen.c: New file, based on winsock.c.
23423         * lib/recv.c: New file, based on winsock.c.
23424         * lib/recvfrom.c: New file, based on winsock.c.
23425         * lib/send.c: New file, based on winsock.c.
23426         * lib/sendto.c: New file, based on winsock.c.
23427         * lib/setsockopt.c: New file, based on winsock.c.
23428         * lib/shutdown.c: New file, based on winsock.c.
23429         * lib/socket.c: New file, based on winsock.c.
23430         * lib/w32sock.h: New file, based on winsock.c.
23431         * lib/winsock.c: Remove file.
23432         * modules/accept: Likewise.
23433         * modules/bind: Likewise.
23434         * modules/connect: Likewise.
23435         * modules/getpeername: Likewise.
23436         * modules/getsockname: Likewise.
23437         * modules/getsockopt: Likewise.
23438         * modules/ioctl: Likewise.
23439         * modules/listen: Likewise.
23440         * modules/recv: Likewise.
23441         * modules/recvfrom: Likewise.
23442         * modules/send: Likewise.
23443         * modules/sendto: Likewise.
23444         * modules/setsockopt: Likewise.
23445         * modules/shutdown: Likewise.
23446         * modules/socket: Use socket.c instead of winsock.c.
23447         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23448         * doc/posix-functions/accept.texi: Doc fix.
23449         * doc/posix-functions/bind.texi: Doc fix.
23450         * doc/posix-functions/close.texi: Doc fix.
23451         * doc/posix-functions/connect.texi: Doc fix.
23452         * doc/posix-functions/getpeername.texi: Doc fix.
23453         * doc/posix-functions/getsockname.texi: Doc fix.
23454         * doc/posix-functions/getsockopt.texi: Doc fix.
23455         * doc/posix-functions/ioctl.texi: Doc fix.
23456         * doc/posix-functions/listen.texi: Doc fix.
23457         * doc/posix-functions/recv.texi: Doc fix.
23458         * doc/posix-functions/recvfrom.texi: Doc fix.
23459         * doc/posix-functions/send.texi: Doc fix.
23460         * doc/posix-functions/sendto.texi: Doc fix.
23461         * doc/posix-functions/setsockopt.texi: Doc fix.
23462         * doc/posix-functions/shutdown.texi: Doc fix.
23463         * doc/posix-functions/socket.texi: Doc fix.
23464
23465 2008-10-20  Bruno Haible  <bruno@clisp.org>
23466
23467         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23468         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23469         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23470         as an alias for SIGABRT.
23471         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23472         (sigaction): Map it to SIGABRT.
23473         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23474
23475 2008-10-20  Bruno Haible  <bruno@clisp.org>
23476
23477         * lib/fts.c: Don't include lstat.h.
23478         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23479
23480         Move the lstat() declaration to <sys/stat.h>.
23481         * lib/lstat.h: Remove file.
23482         * lib/sys_stat.in.h: Add special invocation convention.
23483         (lstat): New declaration.
23484         * lib/lstat.c (orig_lstat): New function.
23485         (rpl_lstat): Use orig_lstat instead of lstat.
23486         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23487         AC_C_INLINE. Set REPLACE_LSTAT.
23488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23489         and REPLACE_LSTAT.
23490         * modules/lstat (Files): Remove lib/lstat.h.
23491         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23492         (Include): Specify <sys/stat.h> instead of lstat.h.
23493         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23494         REPLACE_LSTAT.
23495         * NEWS: Mention the change.
23496
23497 2008-10-20  Bruno Haible  <bruno@clisp.org>
23498
23499         * modules/posix_spawn-tests: New file.
23500         * tests/test-posix_spawn3.c: New file.
23501
23502 2008-10-20  Bruno Haible  <bruno@clisp.org>
23503
23504         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23505         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23506         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23507         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23508         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23509
23510 2008-10-20  Bruno Haible  <bruno@clisp.org>
23511
23512         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23513         of posix_spawn on AIX 5.3.
23514
23515 2008-10-20  Bruno Haible  <bruno@clisp.org>
23516
23517         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23518
23519 2008-10-20  Bruno Haible  <bruno@clisp.org>
23520
23521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23522         of AC_LANG_PROGRAM.
23523
23524 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23525
23526         * lib/netdb.in.h: Don't define GNU specific constants until they
23527         are supported or needed.  Reported by Bruno Haible
23528         <bruno@clisp.org>.
23529
23530 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23531
23532         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23533
23534 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23535
23536         * lib/getaddrinfo.h: Remove file.
23537         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23538         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23539         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23540         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23541         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23542         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23543         * tests/test-getaddrinfo.c: Likewise.
23544         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23545         * NEWS: Mention change.
23546
23547 2008-10-19  Bruno Haible  <bruno@clisp.org>
23548
23549         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23550
23551 2008-10-19  Bruno Haible  <bruno@clisp.org>
23552
23553         * lib/wait-process.c: Include simply <sys/wait.h>.
23554         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23555         WIFSTOPPED): Remove fallback definitions.
23556         * modules/wait-process (Depends-on): Add sys_wait.
23557
23558         New module 'sys_wait'.
23559         * modules/sys_wait: New file.
23560         * lib/sys_wait.in.h: New file, partially copied from
23561         lib/wait-process.c.
23562         * m4/sys_wait_h.m4: New file.
23563         * doc/posix-headers/sys_wait.texi: Mention the new module.
23564
23565 2008-10-19  Bruno Haible  <bruno@clisp.org>
23566
23567         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23568
23569 2008-10-19  Bruno Haible  <bruno@clisp.org>
23570
23571         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23572         * lib/wait-process.c (WAIT_T): Remove type.
23573         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23574         (wait_subprocess): Update.
23575
23576 2008-10-19  Bruno Haible  <bruno@clisp.org>
23577
23578         New module 'atoll'.
23579         * modules/atoll: New file.
23580         * lib/stdlib.in.h (atoll): New declaration.
23581         * lib/atoll.c: New file, from glibc with modifications.
23582         * m4/atoll.m4: New file.
23583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23584         HAVE_ATOLL.
23585         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23586         * doc/posix-functions/atoll.texi: Mention the new module.
23587
23588 2008-10-19  Bruno Haible  <bruno@clisp.org>
23589
23590         Add strtoull() declaration to <stdlib.h>.
23591         * lib/stdlib.in.h (strtoull): New declaration.
23592         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23593         Set HAVE_STRTOULL.
23594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23595         HAVE_STRTOULL.
23596         * modules/strtoull (Depends-on): Add stdlib.
23597         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23598         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23599         HAVE_STRTOULL.
23600
23601 2008-10-19  Bruno Haible  <bruno@clisp.org>
23602
23603         Add strtoll() declaration to <stdlib.h>.
23604         * lib/stdlib.in.h (strtoll): New declaration.
23605         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23606         Set HAVE_STRTOLL.
23607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23608         HAVE_STRTOLL.
23609         * modules/strtoll (Depends-on): Add stdlib.
23610         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23611         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23612
23613 2008-10-19  Bruno Haible  <bruno@clisp.org>
23614
23615         * modules/bcopy (Depends-on): Add strings.
23616         (Include): Specify <strings.h>.
23617
23618 2008-10-19  Bruno Haible  <bruno@clisp.org>
23619
23620         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23621
23622 2008-10-19  Bruno Haible  <bruno@clisp.org>
23623
23624         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23625         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23626         mingw.
23627
23628 2008-10-19  Bruno Haible  <bruno@clisp.org>
23629
23630         * lib/atanl.c: Don't include isnanl.h.
23631         * lib/cosl.c: Likewise.
23632         * lib/ldexpl.c: Likewise.
23633         * lib/logl.c: Likewise.
23634         * lib/sinl.c: Likewise.
23635         * lib/sqrtl.c: Likewise.
23636         * lib/tanl.c: Likewise.
23637
23638         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23639         * lib/isnanf.h: Remove file.
23640         * lib/isnand.h: Remove file.
23641         * lib/isnanl.h: Remove file.
23642         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23643         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23644         macros.
23645         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23646         HAVE_ISNANF, don't define it as a C macro.
23647         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23648         HAVE_ISNAND, don't define it as a C macro.
23649         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23650         HAVE_ISNANL, don't define it as a C macro.
23651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23652         HAVE_ISNAN[FDL].
23653         * modules/isnanf (Files): Remove lib/isnanf.h.
23654         (Depends-on): Add math.
23655         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23656         (Include): Specify <math.h> instead of isnanf.h.
23657         * modules/isnand (Files): Remove lib/isnand.h.
23658         (Depends-on): Add math.
23659         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23660         (Include): Specify <math.h> instead of isnand.h.
23661         * modules/isnanl (Files): Remove lib/isnanl.h.
23662         (Depends-on): Add math.
23663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23664         (Include): Specify <math.h> instead of isnanl.h.
23665         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23666         HAVE_ISNAN[FDL].
23667         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23668         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23669         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23670         * NEWS: Mention the change.
23671
23672 2008-10-18  Bruno Haible  <bruno@clisp.org>
23673
23674         Add getusershell(), setusershell(), endusershell() declarations to
23675         <unistd.h>.
23676         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23677         declarations.
23678         * lib/getusershell.c: Include unistd.h.
23679         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23680         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23681         HAVE_GETUSERSHELL.
23682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23683         and HAVE_GETUSERSHELL.
23684         * modules/getusershell (Depends-on): Add unistd, extensions.
23685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23686         (Include): Specify <unistd.h>.
23687         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23688         HAVE_GETUSERSHELL.
23689
23690 2008-10-18  Bruno Haible  <bruno@clisp.org>
23691
23692         Add a getloadavg() declaration to <stdlib.h>.
23693         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23694         getloadavg declaration.
23695         (getloadavg): New declaration.
23696         * lib/getloadavg.c: Include <stdlib.h> first.
23697         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23698         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23699         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23701         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23702         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23703         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23704         (Include): Specify <stdlib.h>.
23705         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23706         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23707
23708 2008-10-18  Bruno Haible  <bruno@clisp.org>
23709
23710         * lib/dirchownmod.c: Don't include lchmod.h.
23711
23712         Move the lchmod() declaration to <sys/stat.h>.
23713         * lib/lchmod.h: Remove file.
23714         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23715         (lchmod): New declaration, moved here from lib/lchown.h.
23716         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23717         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23719         and HAVE_LCHMOD.
23720         * modules/lchmod (Files): Remove lib/lchmod.h.
23721         (Depends-on): Add sys_stat, extensions.
23722         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23723         (Include): Specify <sys/stat.h> instead of lchmod.h.
23724         * modules/sys_stat (Depends-on): Add link-warning.
23725         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23726         definition of GL_LINK_WARNING.
23727         * NEWS: Mention the change.
23728
23729 2008-10-18  Bruno Haible  <bruno@clisp.org>
23730
23731         * lib/fchdir.c: Don't include dirfd.h.
23732         * lib/fts.c: Likewise.
23733         * lib/getcwd.c: Likewise.
23734         * lib/glob.c: Likewise.
23735
23736         Move the dirfd() declaration to <dirent.h>.
23737         * lib/dirfd.h: Remove file.
23738         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23739         (dirfd): New declaration.
23740         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23741         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23742         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23743         HAVE_DECL_DIRFD.
23744         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23745         HAVE_DECL_DIRFD.
23746         * modules/dirfd (Files): Remove lib/dirfd.h.
23747         (Depends-on): Add dirent, extensions.
23748         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23749         (Include): Specify <dirent.h> instead of dirfd.h.
23750         * modules/dirent (Depends-on): Add link-warning.
23751         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23752         definition of GL_LINK_WARNING.
23753         * NEWS: Mention the change.
23754
23755 2008-10-18  Bruno Haible  <bruno@clisp.org>
23756
23757         Move the euidaccess() declaration to <unistd.h>.
23758         * lib/euidaccess.h: Remove file.
23759         * lib/unistd.in.h (euidaccess): New declaration.
23760         * lib/euidaccess.c: Don't include euidaccess.h.
23761         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23762         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23764         and HAVE_EUIDACCESS.
23765         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23766         (Depends-on): Add unistd.
23767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23768         (Include): Specify <unistd.h> instead of euidaccess.h.
23769         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23770         HAVE_EUIDACCESS.
23771         * NEWS: Mention the change.
23772
23773 2008-10-18  Bruno Haible  <bruno@clisp.org>
23774
23775         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23776
23777         Move the getdomainname() declaration to <unistd.h>.
23778         * lib/getdomainname.h: Remove file.
23779         * lib/unistd.in.h (getdomainname): New declaration.
23780         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23781         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23782         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23783         HAVE_GETDOMAINNAME.
23784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23785         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23786         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23787         (Depends-on): Add unistd, extensions.
23788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23789         (Includes): Specify <unistd.h> instead of getdomainname.h.
23790         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23791         HAVE_GETDOMAINNAME.
23792         * NEWS: Mention the change.
23793
23794 2008-10-18  Bruno Haible  <bruno@clisp.org>
23795
23796         * modules/dirent: New file.
23797         * m4/dirent_h.m4: New file.
23798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23799         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23800         * modules/fchdir (Files): Remove lib/dirent.in.h.
23801         (Depends-on): Add dirent.
23802         (Makefile.am): Move rules to modules/dirent.
23803         * doc/posix-headers/dirent.texi: Mention the new module.
23804
23805 2008-10-18  Bruno Haible  <bruno@clisp.org>
23806
23807         Avoid -Wunused-parameter warnings in public gnulib header files.
23808         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23809         macro.
23810         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23811
23812 2008-10-18  Bruno Haible  <bruno@clisp.org>
23813
23814         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23815         * doc/glibc-functions/error.texi: Mention the module 'error'.
23816         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23817         * doc/glibc-functions/getdomainname.texi: Mention the module
23818         'getdomainname'.
23819         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23820         * doc/glibc-functions/getpagesize.texi: Mention the module
23821         'getpagesize'.
23822         * doc/glibc-functions/getusershell.texi: Mention the module
23823         'getusershell'.
23824         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23825         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23826         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23827         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23828         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23829         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23830         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23831         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23832         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23833         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23834         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23835         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23836         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23837         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23838
23839 2008-10-17  Bruno Haible  <bruno@clisp.org>
23840
23841         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23842         HP-UX and IRIX, use -0.0L.
23843         * tests/test-ceill.c (minus_zero): Likewise.
23844         * tests/test-floorl.c (minus_zero): Likewise.
23845         * tests/test-frexpl.c (minus_zero): Likewise.
23846         * tests/test-isnan.c (minus_zerol): Likewise.
23847         * tests/test-isnanl.h (minus_zero): Likewise.
23848         * tests/test-ldexpl.c (minus_zero): Likewise.
23849         * tests/test-roundl.c (minus_zero): Likewise.
23850         * tests/test-signbit.c (minus_zerol): Likewise.
23851         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23852         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23853         * tests/test-truncl.c (minus_zero): Likewise.
23854         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23855         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23856         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23857         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23858
23859 2008-10-17  Bruno Haible  <bruno@clisp.org>
23860
23861         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23862         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23863         that it gets activated only for gcc >= 3.0.
23864         * lib/dirent.in.h: Likewise.
23865         * lib/errno.in.h: Likewise.
23866         * lib/fcntl.in.h: Likewise.
23867         * lib/float.in.h: Likewise.
23868         * lib/iconv.in.h: Likewise.
23869         * lib/inttypes.in.h: Likewise.
23870         * lib/locale.in.h: Likewise.
23871         * lib/math.in.h: Likewise.
23872         * lib/netdb.in.h: Likewise.
23873         * lib/netinet_in.in.h: Likewise.
23874         * lib/search.in.h: Likewise.
23875         * lib/signal.in.h: Likewise.
23876         * lib/spawn.in.h: Likewise.
23877         * lib/stdarg.in.h: Likewise.
23878         * lib/stdint.in.h: Likewise.
23879         * lib/stdio.in.h: Likewise.
23880         * lib/stdlib.in.h: Likewise.
23881         * lib/string.in.h: Likewise.
23882         * lib/strings.in.h: Likewise.
23883         * lib/sys_file.in.h: Likewise.
23884         * lib/sys_ioctl.in.h: Likewise.
23885         * lib/sys_select.in.h: Likewise.
23886         * lib/sys_socket.in.h: Likewise.
23887         * lib/sys_stat.in.h: Likewise.
23888         * lib/sys_time.in.h: Likewise.
23889         * lib/sysexits.in.h: Likewise.
23890         * lib/time.in.h: Likewise.
23891         * lib/unistd.in.h: Likewise.
23892         * lib/wchar.in.h: Likewise.
23893         * lib/wctype.in.h: Likewise.
23894         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23895
23896 2008-10-17  Jim Meyering  <meyering@redhat.com>
23897
23898         ignore-value: don't depend on inline module
23899         * modules/ignore-value (Depends-on): Remove 'inline'.
23900         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
23901         Suggestion from Bruno Haible.
23902
23903 2008-10-17  Bruno Haible  <bruno@clisp.org>
23904
23905         New implementation of condition variables for Win32.
23906         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
23907         (gl_linked_waitqueue_t): New type.
23908         (gl_cond_t): Use it.
23909         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
23910         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
23911         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
23912         (glthread_cond_init_func, glthread_cond_wait_func,
23913         glthread_cond_timedwait_func, glthread_cond_signal_func,
23914         glthread_cond_broadcast_func, glthread_cond_destroy_func):
23915         Reimplemented on the basis of gl_linked_waitqueue_t.
23916         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
23917         gl_waitqueue_t.
23918         (gl_rwlock_t): Update.
23919         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
23920
23921 2008-10-17  Simon Josefsson  <simon@josefsson.org>
23922
23923         * modules/recvfrom (Depends-on): Add dependency on getpeername.
23924         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23925
23926 2008-10-17  Jim Meyering  <meyering@redhat.com>
23927
23928         ignore-value: new module
23929         * modules/ignore-value: New file.
23930         * lib/ignore-value.h: New file.
23931         * MODULES.html.sh (Compiler warning management): New section,
23932         just for this module.  More to come.
23933
23934 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23935
23936         open-safer.c: avoid 'signed and unsigned in conditional...' warning
23937         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
23938         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
23939
23940 2008-10-16  Jim Meyering  <meyering@redhat.com>
23941
23942         openat-die.c: avoid 'no previous prototype' warning
23943         * lib/openat-die.c: Include "openat.h".
23944         Reported by Reuben Thomas <rrt@sc3d.org>.
23945
23946 2008-10-16  Simon Josefsson  <simon@josefsson.org>
23947
23948         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
23949         * lib/netdb.in.h: Fix typo.
23950         Reported by Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/netdb.in.h: Include sys/socket.h for platforms without
23953         netdb.h, to get structures like hostent on MinGW.
23954         * modules/netdb (Depends-on): Add sys_socket.
23955
23956 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23957
23958         * modules/netdb, modules/netdb-tests: New file.
23959         * m4/netdb_h.m4: New file.
23960         * lib/netdb.in.h: Add, currently just an empty file pending
23961         definitions.
23962         * tests/test-netdb.c: New file.
23963         * doc/posix-headers/netdb.texi: Mention that we replace it if
23964         needed.
23965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23966         netdb.
23967
23968 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23969
23970         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
23971         with code.
23972
23973 2008-10-13  Bruno Haible  <bruno@clisp.org>
23974
23975         * lib/glthread/cond.c (glthread_cond_wait_func,
23976         glthread_cond_timedwait_func): Add a comment.
23977
23978 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23979
23980         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
23981         * tests/test-select.c: Likewise,
23982
23983 2008-10-13  Bruno Haible  <bruno@clisp.org>
23984
23985         * lib/glthread/cond.c (glthread_cond_wait_func,
23986         glthread_cond_timedwait_func): Fix variable name.
23987         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23988
23989 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
23990
23991         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
23992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
23993         struct sockaddr.sa_len.
23994         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
23995
23996 2008-10-13  Simon Josefsson  <simon@josefsson.org>
23997
23998         * build-aux/pmccabe2html: Add css and css_url parameters.
23999
24000 2008-10-12  Bruno Haible  <bruno@clisp.org>
24001
24002         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24003         calling aclx_get.
24004         Reported by Rainer Tammer <tammer@tammer.net>.
24005
24006 2008-10-12  Bruno Haible  <bruno@clisp.org>
24007
24008         Use msvcrt aware primitives for creation/termination of Win32 threads.
24009         * lib/glthread/thread.c: Include <process.h>.
24010         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24011         (wrapper_func): Update signature.
24012         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24013
24014 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24015             Bruno Haible  <bruno@clisp.org>
24016
24017         Provide a Win32 implementation of the 'cond' module.
24018         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24019         * lib/glthread/cond.c (glthread_cond_init_func,
24020         glthread_cond_wait_func, glthread_cond_timedwait_func,
24021         glthread_cond_signal_func, glthread_cond_broadcast_func,
24022         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24023         * modules/cond (Dependencies): Add gettimeofday.
24024
24025 2008-10-11  Bruno Haible  <bruno@clisp.org>
24026
24027         Make sleep work on older versions of mingw.
24028         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24029         only whether it exists.
24030         * doc/posix-functions/sleep.texi: Mention the problem with older
24031         versions of mingw.
24032
24033 2008-10-11  Bruno Haible  <bruno@clisp.org>
24034
24035         New module 'shutdown'.
24036         * modules/shutdown: New file.
24037         * lib/sys_socket.in.h (shutdown): New declaration.
24038         * lib/winsock.c (shutdown): New function.
24039         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24040         GNULIB_SHUTDOWN.
24041         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24042         * doc/posix-functions/shutdown.texi: Document the new module.
24043
24044 2008-10-11  Jim Meyering  <meyering@redhat.com>
24045
24046         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24047
24048 2008-10-11  Bruno Haible  <bruno@clisp.org>
24049
24050         New module 'fclose'.
24051         * modules/fclose: New file.
24052         * lib/stdio.in.h (fclose): New declaration.
24053         * lib/fclose.c: New file.
24054         * m4/fclose.m4: New file.
24055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24056         REPLACE_FCLOSE.
24057         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24058         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24059         REPLACE_FCLOSE.
24060         * modules/close (Depends-on): fclose.
24061         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24062
24063 2008-10-11  Bruno Haible  <bruno@clisp.org>
24064
24065         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24066         set errno and don't call _close.
24067
24068 2008-10-10  Bruno Haible  <bruno@clisp.org>
24069
24070         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24071         ACL, not afterwards. Fixes test failure on Cygwin.
24072
24073 2008-10-09  Ben Pfaff  <blp@gnu.org>
24074
24075         * build-aux/announce-gen: Fix gnulib version related part of usage
24076         message.  Die with a useful error message if no tarballs are
24077         found.
24078
24079 2008-10-10  Jim Meyering  <meyering@redhat.com>
24080
24081         bootstrap: use git's --depth=N option only if it's supported
24082         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24083         recognize the --depth option.  Reported by Pádraig Brady.
24084
24085 2008-10-09  Bruno Haible  <bruno@clisp.org>
24086
24087         New module 'ioctl'.
24088         * modules/ioctl: New file.
24089         * lib/sys_socket.in.h (ioctl): Remove declaration.
24090         * lib/winsock.c: Include <sys/ioctl.h>.
24091         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24093         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24094         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24095         * doc/posix-functions/ioctl.texi: Mention the new module.
24096
24097 2008-10-09  Bruno Haible  <bruno@clisp.org>
24098
24099         New module 'sys_ioctl'.
24100         * lib/sys_ioctl.in.h: New file.
24101         * m4/sys_ioctl_h.m4: New file.
24102         * modules/sys_ioctl: New file.
24103         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24104
24105 2008-10-09  Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24108         * lib/winsock.c: Include <stdarg.h>.
24109         (rpl_ioctl): Change to second argument 'int' and then varargs.
24110
24111 2008-10-09  Bruno Haible  <bruno@clisp.org>
24112
24113         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24114         when the sys_socket module is present and the system has <winsock2.h>.
24115
24116 2008-10-09  Bruno Haible  <bruno@clisp.org>
24117
24118         * doc/posix-functions/close.texi: Mention module 'close' instead of
24119         module 'sys_socket'.
24120
24121 2008-10-09  Bruno Haible  <bruno@clisp.org>
24122
24123         * doc/glibc-headers/sys_ioctl.texi: New file.
24124         * doc/gnulib.texi: Include it.
24125
24126 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24127             Bruno Haible  <bruno@clisp.org>
24128
24129         Combine the two replacements of 'close'.
24130         * lib/sys_socket.in.h (close): Define to a reminder to include
24131         <unistd.h>.
24132         (_gl_close_fd_maybe_socket): New declaration.
24133         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24134         * lib/winsock.c (close): Remove undefinition.
24135         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24136         needed for the gnulib module 'close'.
24137         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24138         define to an error symbol or to a warning, if suitable.
24139         * lib/close.c: Include <sys/socket.h>.
24140         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24141         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24142         UNISTD_H_HAVE_WINSOCK2_H.
24143         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24145         UNISTD_H_HAVE_WINSOCK2_H.
24146         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24147         (configure.ac): Set a module indicator.
24148         (Makefile.am): Substitute GNULIB_CLOSE.
24149         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24150         * modules/poll-tests (Depends-on): Add close.
24151         * modules/select-tests (Depends-on): Likewise.
24152
24153 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24154             Bruno Haible  <bruno@clisp.org>
24155
24156         New module 'close'.
24157         * modules/close: New file.
24158         * lib/unistd.in.h (close): Move declaration out of the
24159         FCHDIR_REPLACEMENT scope.
24160         (_gl_unregister_fd): New declaration.
24161         * lib/close.c: New file.
24162         * lib/fchdir.c (rpl_close): Remove function.
24163         * m4/close.m4: New file.
24164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24165         close.
24166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24167         REPLACE_CLOSE.
24168         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24169         REPLACE_CLOSE.
24170         * modules/fchdir (Depends-on): Add close.
24171
24172 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24173             Bruno Haible  <bruno@clisp.org>
24174
24175         * lib/fcntl.in.h (open): Simplify conditionals.
24176         (_gl_register_fd): New declaration.
24177         * lib/fchdir.c (rpl_open): Remove function.
24178         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24179         also.
24180         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24182         open.
24183
24184 2008-10-09  Jim Meyering  <meyering@redhat.com>
24185
24186         GNUmakefile: use the more name-space-friendly "_version"
24187         * top/GNUmakefile (_dummy): Update.
24188         (_version): Rename from "version".
24189
24190 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24191             Bruno Haible  <bruno@clisp.org>
24192
24193         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24194         rpl_close.
24195         (_gl_register_fd): New function, extracted from rpl_open.
24196         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24197         (rpl_open, rpl_opendir): Use _gl_register_fd.
24198
24199 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24200
24201         Fix organization of 'open' replacement.
24202         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24203         (gl_FUNC_OPEN): Use it.
24204         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24205
24206 2008-10-08  Bruno Haible  <bruno@clisp.org>
24207
24208         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24209
24210 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24211
24212         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24213         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24214         listen).
24215
24216 2008-10-08  Eric Blake  <ebb9@byu.net>
24217
24218         GNUmakefile: add 'make version' target
24219         * top/GNUmakefile (_curr-ver): Split version update rules...
24220         (version): ...into a target.
24221
24222 2008-10-07  Bruno Haible  <bruno@clisp.org>
24223
24224         Use a more portable replacement expression for -0.0L.
24225         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24226         instead of -0.0L. Fix m4 quotation.
24227
24228         * tests/test-signbit.c: Include <float.h>.
24229         (minus_zero): New variable.
24230         (test_signbitl): Use minus_zero instead of -zero.
24231         * modules/signbit-tests (Depends-on): Add float.
24232
24233         * tests/test-ceill.c: Include <float.h>.
24234         (zero): Remove variable.
24235         (minus_zero): New variable.
24236         (main): Use minus_zero instead of -zero.
24237         * modules/ceill-tests (Depends-on): Add float.
24238
24239         * tests/test-floorl.c: Include <float.h>.
24240         (zero): Remove variable.
24241         (minus_zero): New variable.
24242         (main): Use minus_zero instead of -zero.
24243         * modules/floorl-tests (Depends-on): Add float.
24244
24245         * tests/test-roundl.c: Include <float.h>.
24246         (zero): Remove variable.
24247         (minus_zero): New variable.
24248         (main): Use minus_zero instead of -zero.
24249         * modules/roundl-tests (Depends-on): Add float.
24250
24251         * tests/test-truncl.c: Include <float.h>.
24252         (zero): Remove variable.
24253         (minus_zero): New variable.
24254         (main): Use minus_zero instead of -zero.
24255         * modules/truncl-tests (Depends-on): Add float.
24256
24257         * tests/test-frexpl.c (zero): Remove variable.
24258         (minus_zero): New variable.
24259         (main): Use minus_zero instead of -zero.
24260         * modules/frexpl-tests (Depends-on): Add float.
24261
24262         * tests/test-isnan.c (zerol): Remove variable.
24263         (minus_zerol): New variable.
24264         (test_long_double): Use minus_zerol instead of -zerol.
24265         * modules/isnan-tests (Depends-on): Add float.
24266
24267         * tests/test-isnanl.h (zero): Remove variable.
24268         (minus_zero): New variable.
24269         (main): Use minus_zero instead of -zero.
24270         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24271         * modules/isnanl-tests (Depends-on): Add float.
24272
24273         * tests/test-ldexpl.c (zero): Remove variable.
24274         (minus_zero): New variable.
24275         (main): Use minus_zero instead of -zero.
24276         * modules/ldexpl-tests (Depends-on): Add float.
24277
24278         * tests/test-snprintf-posix.h (zerol): Remove variable.
24279         (minus_zerol): New variable.
24280         (test_function): Use minus_zerol instead of -zerol.
24281         * modules/snprintf-posix-tests (Depends-on): Add float.
24282         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24283
24284         * tests/test-sprintf-posix.h (zerol): Remove variable.
24285         (minus_zerol): New variable.
24286         (test_function): Use minus_zerol instead of -zerol.
24287         * modules/sprintf-posix-tests (Depends-on): Add float.
24288         * modules/vsprintf-posix-tests (Depends-on): Add float.
24289
24290         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24291         (minus_zerol): New variable.
24292         (test_function): Use minus_zerol instead of -zerol.
24293         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24294
24295         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24296         (minus_zerol): New variable.
24297         (test_function): Use minus_zerol instead of -zerol.
24298         * modules/vasprintf-posix-tests (Depends-on): Add float.
24299
24300 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24301
24302         * MODULES.html.sh (Support for building documentation): Mention
24303         pmccabe2html.  Sort entries.
24304
24305         Add pmccabe2html module, from gnupdf.
24306         * build-aux/pmccabe.css: New file.
24307         * build-aux/pmccabe2html: New file.
24308         * m4/pmccabe2html.m4: New file.
24309         * modules/pmccabe2html: New file.
24310
24311 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24312
24313         flock: new module
24314         * MODULES.html.sh: Add to list of modules.
24315         * lib/flock.c: flock implementation for Windows and Unix systems
24316         which have fcntl.
24317         * doc/glibc-functions/flock.texi: Update documentation.
24318         * lib/sys_file.in.h: <sys/file.h> header file.
24319         * m4/flock.m4: M4 macros.
24320         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24321         * modules/flock: flock module.
24322         * modules/flock-tests: flock tests module.
24323         * modules/sys_file: sys/file.h module.
24324         * tests/test-flock.c: test suite for flock.
24325
24326 2008-10-06  Jim Meyering  <meyering@redhat.com>
24327
24328         bootstrap: check for LT_INIT more portably still ;-)
24329         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24330         Spotted by Bruno Haible.
24331
24332 2008-10-06  Eric Blake  <ebb9@byu.net>
24333
24334         test-signbit: avoid tripping Irix cc bug on -0.0L
24335         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24336         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24337         entire testsuite consistent and avoids an Irix 6.2 bug.
24338
24339 2008-10-05  Bruno Haible  <bruno@clisp.org>
24340             Jim Meyering  <jim@meyering.net>
24341
24342         Add an option for ignoring EPIPE during close_stdout.
24343         * lib/closeout.h: Include <stdbool.h>.
24344         (close_stdout_set_ignore_EPIPE): New declaration.
24345         * lib/closeout.c: Include <stdbool.h>.
24346         (ignore_EPIPE): New variable.
24347         (close_stdout_set_ignore_EPIPE): New function.
24348         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24349         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24350         failure.
24351         * modules/closeout (Depends-on): Add stdbool.
24352
24353 2008-10-05  Bruno Haible  <bruno@clisp.org>
24354
24355         * modules/accept: New file.
24356         * modules/bind: New file.
24357         * modules/connect: New file.
24358         * modules/getpeername: New file.
24359         * modules/getsockname: New file.
24360         * modules/getsockopt: New file.
24361         * modules/listen: New file.
24362         * modules/recv: New file.
24363         * modules/recvfrom: New file.
24364         * modules/send: New file.
24365         * modules/sendto: New file.
24366         * modules/setsockopt: New file.
24367         * modules/socket: New file.
24368         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24369         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24370         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24371         the particular module is requested. Add a link warning when the
24372         particular module is not requested.
24373         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24374         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24375         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24376         the particular module is requested.
24377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24378         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24379         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24380         * modules/sys_socket (Depends-on): Add link-warning.
24381         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24382         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24383         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24384         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24385         GL_LINK_WARNING.
24386         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24387         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24388         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24389         * doc/posix-functions/getpeername.texi: Mention the new module
24390         'getpeername'.
24391         * doc/posix-functions/getsockname.texi: Mention the new module
24392         'getsockname'.
24393         * doc/posix-functions/getsockopt.texi: Mention the new module
24394         'getsockopt'.
24395         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24396         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24397         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24398         * doc/posix-functions/send.texi: Mention the new module 'send'.
24399         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24400         * doc/posix-functions/setsockopt.texi: Mention the new module
24401         'setsockopt'.
24402         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24403         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24404         listen, connect, accept.
24405         * modules/select-tests (Depends-on): Likewise.
24406
24407 2008-10-05  Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/winsock.c (strerror): Remove unused #undef.
24410         (rpl_close): Remove unused local variable.
24411
24412         * modules/sys_socket (Depends-on); Add errno.
24413
24414 2008-10-05  Bruno Haible  <bruno@clisp.org>
24415
24416         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24417         (select): Add a link warning when the 'select' module is not used.
24418         * modules/sys_select (Depends-on): Add link-warning.
24419         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24420         Suggested by Paolo Bonzini.
24421
24422 2008-10-05  Jim Meyering  <meyering@redhat.com>
24423
24424         bootstrap: check for LT_INIT more portably
24425         * build-aux/bootstrap: Avoid using grep -E, since it's not
24426         portable enough.  Suggestion from Bruno Haible.
24427
24428 2008-10-05  Bruno Haible  <bruno@clisp.org>
24429
24430         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24431         as being fixed by gnulib.
24432
24433 2008-10-05  Bruno Haible  <bruno@clisp.org>
24434
24435         * modules/select-tests: New file, mostly copied from
24436         modules/sys_select-tests.
24437         * tests/test-select.c: New file, mostly copied from
24438         tests/test-sys_select.c.
24439         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24440         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24441         (Makefile.am): Remove test_sys_select_LDADD.
24442
24443         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24444         to an undefined symbol, for an error message.
24445         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24446         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24447         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24448         winsock-select.c here.
24449         * modules/sys_select (Files): Remove lib/winsock-select.c.
24450         (Depends-on): Remove alloca.
24451         (Makefile.am): Substitute GNULIB_SELECT.
24452         * modules/select: New file.
24453         * doc/posix-functions/select.texi: Update.
24454
24455 2008-10-05  Bruno Haible  <bruno@clisp.org>
24456
24457         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24458         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24459         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24460         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24461         getdtablesize.
24462         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24463         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24464
24465 2008-10-05  Bruno Haible  <bruno@clisp.org>
24466
24467         * modules/getdtablesize-tests: New file.
24468         * tests/test-getdtablesize.c: New file.
24469
24470         New module 'getdtablesize'.
24471         * lib/unistd.in.h (getdtablesize): New declaration.
24472         * lib/getdtablesize.c: New file.
24473         * m4/getdtablesize.m4: New file.
24474         * modules/getdtablesize: New file.
24475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24476         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24477         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24478         HAVE_GETDTABLESIZE.
24479         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24480
24481 2008-10-05  Bruno Haible  <bruno@clisp.org>
24482
24483         * modules/sched (Makefile.am): Fix typo.
24484         Reported by Simon Josefsson.
24485
24486 2008-10-05  Jim Meyering  <meyering@redhat.com>
24487
24488         bootstrap: check for LT_INIT, too
24489         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24490         are deprecated.  Suggestion from Ralf Wildenhues.
24491
24492 2008-10-05  Bruno Haible  <bruno@clisp.org>
24493
24494         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24495         overriding them by ours.
24496         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24497
24498 2008-10-05  Jim Meyering  <meyering@redhat.com>
24499
24500         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24501         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24502         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24503
24504 2008-10-04  Bruno Haible  <bruno@clisp.org>
24505
24506         * modules/dup2 (License): Change to LGPLv2+.
24507         * modules/sleep (License): Likewise.
24508         * modules/perror (License): Likewise.
24509         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24510         Blake.
24511         * modules/signal (License): Likewise.
24512         * modules/sigprocmask (License): Likewise.
24513         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24514         Meyering.
24515
24516 2008-10-04  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24519         Reported by Rainer Tammer <tammer@tammer.net>.
24520
24521 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24522             Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24525         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24526         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24527
24528 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24529
24530         filevercmp: new module
24531         * lib/filevercmp.h: New function filevercmp comparing version strings.
24532         * lib/filevercmp.c: Implementation of filevercmp function.
24533         * modules/filevercmp: Module metadata.
24534         * tests/test-filevercmp.c: Unit test for new module.
24535         * modules/filevercmp-tests: Unit test metadata.
24536         * MODULES.html.sh: Add filevercmp module.
24537
24538 2008-10-03  Bruno Haible  <bruno@clisp.org>
24539
24540         * lib/c-ctype.h: Add comment.
24541         Reported by Jim Meyering.
24542
24543 2008-10-02  Bruno Haible  <bruno@clisp.org>
24544
24545         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24546
24547 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24548
24549         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24550         name of bootstrap.conf accordingly.
24551
24552 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24553
24554         * build-aux/bootstrap: Install git-merge-changelog configuration
24555         items into .gitconfig if needed.
24556
24557 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24558
24559         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24560         git repository, and initialize/update it accordingly.
24561
24562 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24563
24564         * modules/fsync-tests: New file.
24565         * tests/test-fsync.c: New file.
24566
24567         New module 'fsync'.
24568         * lib/fsync.c: New file.
24569         * m4/fsync.m4: New file.
24570         * modules/fsync: New file.
24571         * lib/unistd.in.h (fsync): New declaration.
24572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24573         GNULIB_FSYNC and HAVE_FSYNC.
24574         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24575         * MODULES.html.sh (posix_functions): Add fsync.
24576         * doc/posix-functions/fsync.texi: Mention the new module.
24577
24578 2008-10-02  Jim Meyering  <meyering@redhat.com>
24579
24580         fts.c: sync with similar code from coreutils' remove.c
24581         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24582         Guard also with "#if defined __linux__", since for now at least,
24583         this code is Linux-kernel-specific.
24584
24585 2008-10-02  Jim Meyering  <meyering@redhat.com>
24586
24587         fts: bug fixes
24588         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24589         Include <sys/vfs.h>, not <sys/statfs.h>.
24590
24591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24592         Include <sys/vfs.h>, not <sys/statfs.h>.
24593
24594 2008-10-01  Bruno Haible  <bruno@clisp.org>
24595
24596         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24597         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24598         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24599         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24600         * doc/posix-functions/posix_spawnp.texi: Likewise.
24601         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24602         whether posix_spawn actually works.
24603         * m4/pipe.m4 (gl_PIPE): Likewise.
24604         * modules/execute (Files): Add m4/posix_spawn.m4.
24605         * modules/pipe (Files): Add m4/posix_spawn.m4.
24606         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24607
24608 2008-10-01  Jim Meyering  <meyering@redhat.com>
24609
24610         remove trailing spaces
24611         * NEWS: Likewise.
24612         * lib/poll.c (poll): Likewise.
24613         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24614         * lib/winsock.c (rpl_close): Likewise.
24615         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24616         * modules/yield: Likewise.
24617         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24618         * tests/test-sys_select.c (connect_to_socket): Likewise.
24619
24620         fts.c: adjust a new interface to be more generally useful
24621         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24622         (fts_build): Adjust caller.
24623
24624 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24625
24626         * modules/cond-tests: New file.
24627         * tests/test-cond.c: New file.
24628
24629 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24630             Bruno Haible  <bruno@clisp.org>
24631
24632         * modules/cond (Dependencies): Add errno, time.
24633         * lib/glthread/cond.h: Include <time.h>.
24634         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24635         across platforms.
24636
24637 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24638             Bruno Haible  <bruno@clisp.org>
24639
24640         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24641
24642 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24643             Bruno Haible  <bruno@clisp.org>
24644
24645         * modules/tls-tests (Depends-on): Add thread, yield.
24646         (configure.ac): Remove all checks.
24647         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24648         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24649         gl_thread_self): Remove definitions. Include glthread/thread.h and
24650         glthread/yield.h instead.
24651         (test_tls): Pass an additional NULL argument to gl_thread_join.
24652
24653 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24654             Bruno Haible  <bruno@clisp.org>
24655
24656         * modules/lock-tests (Depends-on): Add thread, yield.
24657         (configure.ac): Remove all checks.
24658         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24659         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24660         gl_thread_self): Remove definitions. Include glthread/thread.h and
24661         glthread/yield.h instead.
24662         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24663         additional NULL argument to gl_thread_join.
24664
24665 2008-09-30  Bruno Haible  <bruno@clisp.org>
24666
24667         Fix the Win32 implementation of the 'thread' module.
24668         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24669         pointer type.
24670         (gl_thread_self): Invoke gl_thread_self_func.
24671         (gl_thread_self_func): New declaration.
24672         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24673         (do_init_self_key, init_self_key): New functions.
24674         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24675         Remove some fields.
24676         (running_threads, running_lock): Remove variables.
24677         (get_current_thread_handle): New function.
24678         (gl_thread_self_func, wrapper_func, glthread_create_func,
24679         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24680         simplified.
24681
24682 2008-09-30  Bruno Haible  <bruno@clisp.org>
24683
24684         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24685         files.
24686
24687 2008-09-30  Jim Meyering  <meyering@redhat.com>
24688
24689         fts.m4: correct the test for statfs.f_type
24690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24691         when checking for statfs.f_type.
24692
24693 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24694
24695         tests: avoid some compiler warnings
24696         * tests/test-memchr.c (main): Pass NULL indirectly.
24697         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24698
24699 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24700
24701         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24702         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24703         exactly specified dayshifts.
24704         (dayshift): New rule.
24705         (rel): Add dayshift.
24706         (relative_time_table) [tomorrow, yesterday, today, now]:
24707         Use tDAY_SHIFT in place of tDAY_UNIT.
24708         * tests/test-getdate.c: Add tests for now-disallowed countable
24709         dayshifts, e.g., "4 yesterday ago".
24710
24711 2008-09-29  Bruno Haible  <bruno@clisp.org>
24712
24713         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24714         * tests/test-posix_spawn1.in.sh: Renamed from
24715         tests/test-posix_spawn.in.sh.
24716         * tests/test-posix_spawn2.c: New file.
24717         * tests/test-posix_spawn2.in.sh: New file.
24718         * modules/posix_spawnp-tests (Files): Update.
24719         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24720
24721 2008-09-29  Bruno Haible  <bruno@clisp.org>
24722
24723         Propagate effects of putenv/setenv/unsetenv to child processes.
24724         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24725         * lib/pipe.c (create_pipe): Likewise.
24726
24727 2008-09-29  Bruno Haible  <bruno@clisp.org>
24728
24729         Enable use of shell scripts as executables in mingw.
24730         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24731         run the program as a shell script.
24732         * lib/pipe.c (create_pipe): Likewise.
24733         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24734         resulting array.
24735
24736 2008-09-29  Eric Blake  <ebb9@byu.net>
24737
24738         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24739
24740 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24741
24742         * doc/posix-functions/accept.texi: Update mingw problems.
24743         * doc/posix-functions/bind.texi: Update mingw problems.
24744         * doc/posix-functions/close.texi: Update mingw problems.
24745         * doc/posix-functions/connect.texi: Update mingw problems.
24746         * doc/posix-functions/getpeername.texi: Update mingw problems.
24747         * doc/posix-functions/getsockname.texi: Update mingw problems.
24748         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24749         * doc/posix-functions/ioctl.texi: Update mingw problems.
24750         * doc/posix-functions/listen.texi: Update mingw problems.
24751         * doc/posix-functions/recv.texi: Update mingw problems.
24752         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24753         * doc/posix-functions/select.texi: Update mingw problems.
24754         * doc/posix-functions/send.texi: Update mingw problems.
24755         * doc/posix-functions/sendto.texi: Update mingw problems.
24756         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24757         * doc/posix-functions/socket.texi: Update mingw problems.
24758
24759 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24760             Bruno Haible  <bruno@clisp.org>
24761
24762         * lib/sys_select.in.h: Include sys/time.h.
24763         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24764         * modules/sys_select: Depend on sys_time.
24765         * tests/test-sys_select.c: Test that sys/select.h defines struct
24766         timeval fully.
24767
24768 2008-09-29  Bruno Haible  <bruno@clisp.org>
24769
24770         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24771         * lib/sys_select.in.h: Likewise.
24772
24773 2008-09-29  Bruno Haible  <bruno@clisp.org>
24774
24775         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24776
24777 2008-09-29  Bruno Haible  <bruno@clisp.org>
24778
24779         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24780         Set LIBSOCKET instead of augmenting LIBS.
24781         * modules/sockets (Link): New section.
24782         * modules/sockets-tests (test_sockets_LDADD): New variable.
24783         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24784         * modules/poll-tests (test_poll_LDADD): New variable.
24785         * NEWS: Document the change.
24786
24787 2008-09-29  Bruno Haible  <bruno@clisp.org>
24788
24789         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24790         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24791         ARPA_INET_H directly.
24792         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24793
24794 2008-09-28  Bruno Haible  <bruno@clisp.org>
24795
24796         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24797         from gl_HEADER_SYS_SOCKET.
24798         (gl_HEADER_SYS_SOCKET): Invoke it.
24799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24800
24801 2008-09-28  Bruno Haible  <bruno@clisp.org>
24802
24803         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24804         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24805         Needed on OSF/1 4.0.
24806
24807 2008-09-28  Bruno Haible  <bruno@clisp.org>
24808
24809         Override open more carefully.
24810         * lib/open.c (orig_open): New function.
24811         (rpl_open): Use orig_open instead of open.
24812         * lib/fcntl.in.h: Add special invocation convention.
24813         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24814         (gl_FUNC_OPEN): Invoke it.
24815
24816         Override freopen more carefully.
24817         * lib/freopen.c (orig_freopen): New function.
24818         (rpl_freopen): Use orig_freopen instead of freopen.
24819         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24820         (gl_FUNC_FREOPEN): Invoke it.
24821
24822         Override fopen more carefully.
24823         * lib/fopen.c (orig_fopen): New function.
24824         (rpl_fopen): Use orig_fopen instead of fopen.
24825         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24826         (gl_FUNC_FOPEN): Invoke it.
24827         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24828
24829 2008-09-28  Bruno Haible  <bruno@clisp.org>
24830
24831         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24832         SIGPIPE.
24833
24834 2008-09-28  Bruno Haible  <bruno@clisp.org>
24835
24836         * tests/test-sigaction.c (handler, main): Disable the check whether
24837         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24838         glibc systems with LinuxThreads.
24839
24840 2008-09-28  Bruno Haible  <bruno@clisp.org>
24841
24842         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24843
24844         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24845         with AIX xlc.
24846         * lib/fcntl.in.h (open): Likewise.
24847         Reported by Rainer Tammer <tammer@tammer.net>.
24848
24849 2008-09-28  Bruno Haible  <bruno@clisp.org>
24850
24851         * modules/posix_spawnp-tests: New file.
24852         * tests/test-posix_spawn.c: New file.
24853         * tests/test-posix_spawn.in.sh: New file.
24854
24855         New module 'posix_spawnp'.
24856         * modules/posix_spawnp: New file.
24857         * lib/spawnp.c: New file, from GNU libc with modifications.
24858         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24859
24860         New module 'posix_spawn'.
24861         * modules/posix_spawn: New file.
24862         * lib/spawn.c: New file, from GNU libc with modifications.
24863         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24864
24865         New module 'posix_spawnattr_destroy'.
24866         * modules/posix_spawnattr_destroy: New file.
24867         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24868         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24869         module.
24870
24871         New module 'posix_spawnattr_setsigmask'.
24872         * modules/posix_spawnattr_setsigmask: New file.
24873         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24874         modifications.
24875         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24876         new module.
24877
24878         New module 'posix_spawnattr_getsigmask'.
24879         * modules/posix_spawnattr_getsigmask: New file.
24880         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
24881         modifications.
24882         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
24883         new module.
24884
24885         New module 'posix_spawnattr_setsigdefault'.
24886         * modules/posix_spawnattr_setsigdefault: New file.
24887         * lib/spawnattr_setdefault.c: New file, from GNU libc with
24888         modifications.
24889         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
24890         new module.
24891
24892         New module 'posix_spawnattr_getsigdefault'.
24893         * modules/posix_spawnattr_getsigdefault: New file.
24894         * lib/spawnattr_getdefault.c: New file, from GNU libc with
24895         modifications.
24896         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
24897         new module.
24898
24899         New module 'posix_spawnattr_setschedpolicy'.
24900         * modules/posix_spawnattr_setschedpolicy: New file.
24901         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
24902         modifications.
24903         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
24904         new module.
24905
24906         New module 'posix_spawnattr_getschedpolicy'.
24907         * modules/posix_spawnattr_getschedpolicy: New file.
24908         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
24909         modifications.
24910         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
24911         new module.
24912
24913         New module 'posix_spawnattr_setschedparam'.
24914         * modules/posix_spawnattr_setschedparam: New file.
24915         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
24916         modifications.
24917         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
24918         new module.
24919
24920         New module 'posix_spawnattr_getschedparam'.
24921         * modules/posix_spawnattr_getschedparam: New file.
24922         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
24923         modifications.
24924         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
24925         new module.
24926
24927         New module 'posix_spawnattr_setpgroup'.
24928         * modules/posix_spawnattr_setpgroup: New file.
24929         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
24930         modifications.
24931         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
24932         module.
24933
24934         New module 'posix_spawnattr_getpgroup'.
24935         * modules/posix_spawnattr_getpgroup: New file.
24936         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
24937         modifications.
24938         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
24939         module.
24940
24941         New module 'posix_spawnattr_setflags'.
24942         * modules/posix_spawnattr_setflags: New file.
24943         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
24944         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
24945         module.
24946
24947         New module 'posix_spawnattr_getflags'.
24948         * modules/posix_spawnattr_getflags: New file.
24949         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
24950         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
24951         module.
24952
24953         New module 'posix_spawnattr_init'.
24954         * modules/posix_spawnattr_init: New file.
24955         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
24956         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
24957         module.
24958
24959         New module 'posix_spawn_file_actions_destroy'.
24960         * modules/posix_spawn_file_actions_destroy: New file.
24961         * lib/spawn_faction_destroy.c: New file, from GNU libc with
24962         modifications.
24963         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
24964         the new module.
24965
24966         New module 'posix_spawn_file_actions_addopen'.
24967         * modules/posix_spawn_file_actions_addopen: New file.
24968         * lib/spawn_faction_addopen.c: New file, from GNU libc with
24969         modifications.
24970         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24971         the new module.
24972
24973         New module 'posix_spawn_file_actions_adddup2'.
24974         * modules/posix_spawn_file_actions_adddup2: New file.
24975         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
24976         modifications.
24977         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24978         the new module.
24979
24980         New module 'posix_spawn_file_actions_addclose'.
24981         * modules/posix_spawn_file_actions_addclose: New file.
24982         * lib/spawn_faction_addclose.c: New file, from GNU libc with
24983         modifications.
24984         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24985         the new module.
24986
24987         New module 'posix_spawn_file_actions_init'.
24988         * modules/posix_spawn_file_actions_init: New file.
24989         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
24990         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
24991         new module.
24992
24993         New module 'posix_spawn-internal'.
24994         * modules/posix_spawn-internal: New file.
24995         * lib/spawn_int.h: New file, from GNU libc with modifications.
24996         * lib/spawni.c: New file, from GNU libc with modifications.
24997         * m4/posix_spawn.m4: New file.
24998
24999         New module 'spawn'.
25000         * modules/spawn: New file.
25001         * lib/spawn.in.h: New file, from GNU libc with modifications.
25002         * m4/spawn_h.m4: New file.
25003         * doc/posix-headers/spawn.texi: Mention the new module.
25004
25005 2008-09-28  Bruno Haible  <bruno@clisp.org>
25006
25007         * modules/sched-tests: New file.
25008         * tests/test-sched.c: New file.
25009
25010         New module 'sched'.
25011         * modules/sched: New file.
25012         * lib/sched.in.h: New file.
25013         * m4/sched_h.m4: New file.
25014         * doc/posix-headers/sched.texi: Mention the new module.
25015
25016 2008-09-27  Eric Blake  <ebb9@byu.net>
25017
25018         Fix previous patch, and tweak references to $0.
25019         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25020         (func_version, func_gnulib_dir): Don't call this program
25021         gnulib-tool.
25022         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25023         with using $0 in function.
25024         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25025         (func_fatal_error): Reuse the name the user invoked us with.
25026
25027 2008-09-27  Bruno Haible  <bruno@clisp.org>
25028
25029         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25030         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25031         (gl_ICONV_H): Not here.
25032         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25033         instead of assigning ICONV_H directly.
25034
25035         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25037         WCHAR_H directly.
25038
25039 2008-09-27  Bruno Haible  <bruno@clisp.org>
25040
25041         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25042         * modules/arpa_inet (Depends-on): Add link-warning.
25043         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25044         * modules/unistd (Makefile.am): Likewise.
25045
25046 2008-09-26  Bruno Haible  <bruno@clisp.org>
25047
25048         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25049         variables.
25050         (func_version): Essentially copied from gnulib-tool.
25051         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25052         func_readlink): Copied from gnulib-tool.
25053
25054 2008-09-26  Bruno Haible  <bruno@clisp.org>
25055
25056         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25057         invoking git-version-gen.
25058
25059 2008-09-26  Bruno Haible  <bruno@clisp.org>
25060
25061         * posix-modules: Update to directory names changed on 2008-01-19.
25062         Remove commas in output before splitting into words. No more need to
25063         avoid 'ftruncate' since 2007-02-19.
25064
25065 2008-09-26  Bruno Haible  <bruno@clisp.org>
25066
25067         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25068
25069 2008-09-26  Bruno Haible  <bruno@clisp.org>
25070
25071         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25072         * modules/fwriteerror (Depends-on): Add errno.
25073
25074 2008-09-26  Bruno Haible  <bruno@clisp.org>
25075
25076         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25077         * tests/test-vc-list-files-cvs.sh: Likewise.
25078
25079 2008-09-26  Bruno Haible  <bruno@clisp.org>
25080
25081         * doc/posix-headers/sys_resource.texi: Reorder items.
25082
25083 2008-09-26  Jim Meyering  <meyering@redhat.com>
25084
25085         fts: tweak inode comparison function
25086         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25087         inode numbers, as documented.
25088
25089         fts: sort dirent entries on inode number before traversing
25090         This avoids a quadratic, seek-related performance penalty when
25091         operating on a directory containing many entries (measurable at 10k;
25092         3.5 hours at 2 million entries with a cold cache) on certain types
25093         of file systems, including ext3 and ext4, but not tmpfs.
25094         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25095         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25096         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25097         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25098         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25099         (fts_build): Set the stat.st_ino member from D_INO.
25100         If it is likely to be useful, sort dirent entries on inode number.
25101
25102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25103         and the struct statfs.f_type member.
25104         * modules/fts (Depends-on): Add d-ino.
25105
25106 2008-09-26  Bruno Haible  <bruno@clisp.org>
25107
25108         * modules/sigpipe-die (Depends-on): Add sigpipe.
25109
25110         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25111         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25112         and GNULIB_STDIO_H_SIGPIPE are set.
25113         * lib/stdio-write.c: New file.
25114         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25115         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25116         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25117         REPLACE_STDIO_WRITE_FUNCS.
25118         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25119         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25120         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25121         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25122         * modules/stdio (Files): Add lib/stdio-write.c.
25123         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25124         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25125         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25126         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25127         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25128         REPLACE_FPRINTF_POSIX.
25129         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25130         REPLACE_PRINTF_POSIX.
25131         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25132         REPLACE_VFPRINTF_POSIX.
25133         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25134         REPLACE_VPRINTF_POSIX.
25135         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25136         SIGPIPE issue.
25137         * doc/posix-functions/fputc.texi: Likewise.
25138         * doc/posix-functions/fputs.texi: Likewise.
25139         * doc/posix-functions/fwrite.texi: Likewise.
25140         * doc/posix-functions/printf.texi: Likewise.
25141         * doc/posix-functions/putc.texi: Likewise.
25142         * doc/posix-functions/putchar.texi: Likewise.
25143         * doc/posix-functions/puts.texi: Likewise.
25144         * doc/posix-functions/vfprintf.texi: Likewise.
25145         * doc/posix-functions/vprintf.texi: Likewise.
25146
25147         * modules/safe-write (Depends-on): Add write.
25148
25149         * modules/sigpipe-tests: New file.
25150         * tests/test-sigpipe.c: New file.
25151         * tests/test-sigpipe.sh: New file.
25152
25153         * modules/write: New file.
25154         * lib/unistd.in.h: Include <sys/types.h>.
25155         (write): New declaration.
25156         * lib/write.c: New file.
25157         * m4/write.m4: New file.
25158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25159         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25160         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25161         GNULIB_WRITE, REPLACE_WRITE.
25162         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25163         and the SIGPIPE issue.
25164
25165         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25166         (raise): New declaration.
25167         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25168         (ext_signal): New function.
25169         (rpl_raise): New function.
25170         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25171         GNULIB_SIGNAL_H_SIGPIPE.
25172         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25173         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25174
25175         * modules/sigpipe: New file.
25176         * m4/sigpipe.m4: New file.
25177
25178 2008-09-25  Derek Price  <derek@ximbiot.com>
25179             Bruno Haible  <bruno@clisp.org>
25180
25181         * gnulib-tool (func_import): Report all license incompatibilities, not
25182         just the first one.
25183
25184 2008-09-25  Bruno Haible  <bruno@clisp.org>
25185
25186         * gnulib-tool (func_import): When computing the edits, consider not
25187         only the Makefile.ams that exist but also those that will be generated.
25188
25189 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25190
25191         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25192         fixes gnulib-tool --test warning about duplicate dependency.
25193
25194 2008-09-25  Bruno Haible  <bruno@clisp.org>
25195
25196         * gnulib-tool: Don't ask the user to perform edits in the generated
25197         Makefile.ams.
25198         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25199         apply to the Makefile.am being generated.
25200         (func_emit_tests_Makefile_am): Execute edits that apply to the
25201         Makefile.am being generated.
25202         (func_import): Setup list of Makefile.am edits before emitting the
25203         Makefile.ams, not at the end.
25204         (func_create_testdir): Update.
25205         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25206
25207 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25208
25209         * gnulib-tool (func_import): Store the --tests-base option in the
25210         comment in gnulib-cache.m4.
25211
25212 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25213
25214         * NEWS: Document increased portability that sys_select now provides.
25215
25216         * lib/sys_select.in.h: Install select wrapper.
25217         * lib/sys_socket.in.h: Use more descriptive name when there is no
25218         select wrapper.
25219         * lib/winsock-select.c: New.
25220         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25221         Require gl_HEADER_SYS_SOCKET.
25222         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25223         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25224         * tests/test-sys_select.c: Add functional tests.
25225
25226 2008-09-24  Eric Blake  <ebb9@byu.net>
25227
25228         open, fopen: close fd leak in last patch
25229         * lib/open.c (rpl_open): Close fd before returning error.
25230         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25231         * doc/posix-functions/open.texi (open): Document that Irix also
25232         has the bug.
25233         * doc/posix-functions/fopen.texi (fopen): Likewise.
25234         Reported by Paolo Bonzini.
25235
25236 2008-09-24  Bruno Haible  <bruno@clisp.org>
25237
25238         Ensure that a filename ending in a slash cannot be used to access a
25239         non-directory.
25240         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25241         to check whether it's really a directory.
25242         * lib/fopen.c: Include fcntl.h, unistd.h.
25243         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25244         and fdopen().
25245         * modules/fopen (Depends-on): Add unistd.
25246         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25247         * tests/test-fopen.c (main): Likewise.
25248         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25249         * doc/posix-functions/fopen.texi: Likewise.
25250         Reported by Eric Blake.
25251
25252 2008-09-23  Eric Blake  <ebb9@byu.net>
25253
25254         c-stack: avoid compiler optimizations when provoking overflow
25255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25256         recursion harder to optimize, to ensure a stack overflow occurs.
25257         * tests/test-c-stack.c (recurse): Likewise.
25258         Borrowed from libsigsegv.
25259
25260         c-stack: work around Irix sigaltstack bug
25261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25262         whether sigaltstack uses wrong end of stack_t (copied in part from
25263         libsigsegv).
25264         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25265         Irix bug, without requiring an over-allocation.
25266         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25267         bug.
25268
25269         fopen: document mingw bug on directories
25270         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25271         not allowing a stream visiting a directory, even though reading
25272         from such a stream is not portable.
25273
25274 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25275
25276         * lib/poll.c: Rewrite.
25277         * modules/poll: Depend on alloca.
25278
25279 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25280
25281         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25282         instead define prototypes for a full set of wrappers.  Ensure
25283         that Cygwin does not use the compatibility code, which is only
25284         for MinGW.
25285         * lib/winsock.c: New.
25286         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25287         * modules/sys_socket: Add lib/winsock.c.
25288
25289         * modules/poll-tests: Add errno and perror.
25290         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25291
25292 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25293
25294         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25295
25296 2008-09-23  Bruno Haible  <bruno@clisp.org>
25297
25298         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25299         * doc/glibc-functions/*: Likewise.
25300
25301 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25302
25303         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25304         success.
25305
25306 2008-09-22  Eric Blake  <ebb9@byu.net>
25307             Bruno Haible  <bruno@clisp.org>
25308
25309         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25310         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25311         supply %A but mishandle pseudo-NaN.
25312         Reported by Simon Josefsson.
25313
25314 2008-09-21  Bruno Haible  <bruno@clisp.org>
25315
25316         * tests/test-lock.c (main): Tweak skip message.
25317         * tests/test-tls.c (main): Likewise.
25318
25319 2008-09-21  Bruno Haible  <bruno@clisp.org>
25320
25321         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25322         whether 'struct sigaction' has sa_sigaction here...
25323         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25324         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25325
25326 2008-09-21  Bruno Haible  <bruno@clisp.org>
25327
25328         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25329         section.
25330         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25331         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25332         the new section.
25333         (Support for obsolete systems lacking POSIX:2001): New section.
25334         (String handling <string.h>): Move strdup to the new section.
25335         Suggested by Simon Josefsson and Paolo Bonzini.
25336
25337 2008-09-21  Bruno Haible  <bruno@clisp.org>
25338
25339         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25340         exponents in %e and %g results on 'long double'. Needed for mingw's
25341         improved *printf functions.
25342         * tests/test-vasprintf-posix.c (test_function): Likewise.
25343         * tests/test-snprintf-posix.h (test_function): Likewise.
25344         * tests/test-sprintf-posix.h (test_function): Likewise.
25345         Reported by Eric Blake.
25346
25347 2008-09-21  Bruno Haible  <bruno@clisp.org>
25348
25349         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25350         * tests/test-sprintf-posix.h (test_function): Likewise.
25351
25352 2008-09-21  Bruno Haible  <bruno@clisp.org>
25353
25354         * modules/getpass (Depends-on): Add strdup-posix.
25355
25356         New module 'strdup-posix'.
25357         * modules/strdup-posix: New file.
25358         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25359         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25361         REPLACE_STRDUP.
25362         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25363         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25365         strdup-posix.
25366
25367         * modules/strdup (Depends-on): Remove malloc-posix.
25368
25369 2008-09-20  Bruno Haible  <bruno@clisp.org>
25370
25371         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25372         Wildenhues.
25373
25374 2008-09-20  Bruno Haible  <bruno@clisp.org>
25375
25376         Ensure that wint_t gets defined on IRIX 5.3.
25377         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25378         * lib/wctype.in.h (wint_t): Likewise.
25379         (__wctype_wint_t): Remove type.
25380         (isw*): Use wint_t instead of __wctype_wint_t.
25381         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25382         * modules/wchar (Files): Add m4/wint_t.m4.
25383         (Makefile.am): Substitute HAVE_WINT_T.
25384         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25385         * tests/test-wctype.c: Check that wint_t is defined.
25386         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25387         * doc/posix-headers/wctype.texi: Likewise.
25388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25389
25390 2008-09-18  Bruno Haible  <bruno@clisp.org>
25391
25392         * gnulib-tool (func_exit): Update comment.
25393
25394 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25395
25396         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25397         assumes strdup exists and does not depend on strdup to return
25398         ENOMEM on out of memory conditions.
25399
25400 2008-09-18  Bruno Haible  <bruno@clisp.org>
25401
25402         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25403         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25404         digits for the exponent.
25405
25406 2008-09-18  Jim Meyering  <meyering@redhat.com>
25407             Bruno Haible  <bruno@clisp.org>
25408
25409         * lib/vasnprintf.c (decimal_point_char): Define also if
25410         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25411
25412 2008-09-16  Bruno Haible  <bruno@clisp.org>
25413         and Eric Blake  <ebb9@byu.net>
25414
25415         vasnprintf: support Irix 5.3
25416         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25417         that mishandle long double infinity.
25418         Reported by Tom G. Christensen.
25419
25420 2008-09-16  Bruno Haible  <bruno@clisp.org>
25421
25422         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25423         Solaris 9.
25424         * doc/glibc-functions/alphasort.texi: Likewise.
25425         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25426
25427 2008-09-16  Jim Meyering  <meyering@redhat.com>
25428
25429         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25430         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25431         a umask modification leak out of a subshell.  Otherwise, the
25432         opensolaris /bin/sh would be accepted and thus cause unwarranted
25433         failures in the coreutils test suite.
25434
25435 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25436
25437         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25438         to succeed.
25439
25440 2008-09-16  Jim Meyering  <meyering@redhat.com>
25441
25442         avoid spurious test failure when library is built without ACL support
25443         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25444         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25445         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25446         * tests/test-copy-acl.sh: Likewise.
25447
25448 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25449
25450         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25451         based on character occurrence counts.
25452
25453 2008-09-15  Eric Blake  <ebb9@byu.net>
25454
25455         tests: avoid some compiler warnings
25456         * tests/test-memchr.c (main): Pass NULL indirectly.
25457         * tests/test-closein.c (main): Avoid unused variable.
25458
25459 2008-09-15  Bruno Haible  <bruno@clisp.org>
25460
25461         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25462         are missing on OpenBSD 4.0 individually.
25463         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25464
25465 2008-09-15  Bruno Haible  <bruno@clisp.org>
25466
25467         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25468         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25469         * doc/posix-functions/perror.texi: Likewise.
25470         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25471         is missing.
25472         Reported by Eric Blake.
25473
25474         * lib/errno.in.h: Use replacement values >= 2000.
25475         Reported by Eric Blake.
25476
25477 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25478
25479         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25480         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25481         limit.
25482         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25483         compareseq was aborted.
25484
25485 2008-09-14  Bruno Haible  <bruno@clisp.org>
25486
25487         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25488         yvec_edit_count.
25489         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25490         (fstrcmp_bounded): Simplify result computation accordingly.
25491
25492 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25493
25494         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25495         (fstrcmp): Define in terms of fstrcmp_bounded.
25496         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25497         lower_bound argument.
25498         Return quickly if the result is certainly < lower_bound.
25499         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25500
25501 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25502
25503         * lib/diffseq.h (EARLY_ABORT): New macro.
25504         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25505         evaluates to true.
25506
25507 2008-09-14  Bruno Haible  <bruno@clisp.org>
25508
25509         * modules/perror-tests: New file.
25510         * tests/test-perror.sh: New file.
25511         * tests/test-perror.c: New file.
25512
25513         New module 'perror'.
25514         * lib/stdio.in.h (perror): New declaration.
25515         * lib/perror.c: New file.
25516         * m4/perror.m4: New file.
25517         * modules/perror: New file.
25518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25519         * doc/posix-functions/perror.texi: Mention the perror module.
25520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25521         REPLACE_PERROR.
25522         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25523         REPLACE_PERROR.
25524
25525 2008-09-14  Bruno Haible  <bruno@clisp.org>
25526
25527         * modules/stdio (Makefile.am): Reorder to match the order in
25528         lib/stdio.in.h.
25529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25530
25531 2008-09-13  Bruno Haible  <bruno@clisp.org>
25532
25533         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25534
25535 2008-09-13  Bruno Haible  <bruno@clisp.org>
25536
25537         Extend strerror to cover the added errno values.
25538         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25539         (rpl_strerror): Provide error messages for the added errno values and
25540         for the WSA* values.
25541         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25542         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25543         strerror.
25544         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25545         * modules/strerror (Depends-on): Add errno.
25546         * doc/posix-functions/strerror.texi: Document the change.
25547         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25548         and EOVERFLOW.
25549
25550 2008-09-13  Bruno Haible  <bruno@clisp.org>
25551
25552         * modules/EOVERFLOW: Remove file.
25553         * m4/eoverflow.m4: Remove file.
25554         * modules/EOVERFLOW-tests: Remove file.
25555         * tests/test-EOVERFLOW.c: Remove file.
25556         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25557         * modules/ftell (Depends-on): Likewise.
25558         * modules/getdelim (Depends-on): Likewise.
25559         * modules/getugroups (Depends-on): Likewise.
25560         * modules/poll (Depends-on): Likewise.
25561         * modules/snprintf (Depends-on): Likewise.
25562         * modules/sprintf-posix (Depends-on): Likewise.
25563         * modules/vasnprintf (Depends-on): Likewise.
25564         * modules/vasprintf (Depends-on): Likewise.
25565         * modules/vfprintf-posix (Depends-on): Likewise.
25566         * modules/vsnprintf (Depends-on): Likewise.
25567         * modules/vsprintf-posix (Depends-on): Likewise.
25568         * modules/xvasprintf (Depends-on): Likewise.
25569         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25570         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25571         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25572         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25573         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25574         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25575         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25576         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25577         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25578         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25579         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25580         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25581         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25582         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25583         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25584         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25585         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25586         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25587         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25588         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25589         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25590         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25591         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25592         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25593         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25594         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25595         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25596         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25597         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25598         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25599         * MODULES.html.sh: Remove EOVERFLOW.
25600         * NEWS: Mention the change.
25601
25602 2008-09-13  Bruno Haible  <bruno@clisp.org>
25603
25604         * modules/errno-tests: New file.
25605         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25606
25607         * lib/errno.in.h: New file.
25608         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25609         * modules/errno: New file.
25610         * doc/posix-headers/errno.texi: Update documentation.
25611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25612
25613 2008-09-13  Bruno Haible  <bruno@clisp.org>
25614
25615         * tests/test-poll.c: Use #if for native Windows, rather than testing
25616         __MSVCRT__.
25617
25618 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25619             Bruno Haible  <bruno@clisp.org>
25620
25621         * lib/glob.c: Don't include <pwd.h> on native Windows.
25622         (WINDOWS32): New macro.
25623         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25624
25625 2008-09-13  Bruno Haible  <bruno@clisp.org>
25626
25627         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25628         (ETIMEDOUT): Remove macro.
25629         (glthread_cond_timedwait_multithreaded): New declaration.
25630         (glthread_cond_timedwait): Use it.
25631         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25632         (glthread_cond_timedwait_multithreaded): New function.
25633
25634 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25635
25636         * modules/poll-tests: Do not check for io.h.
25637         * tests/test-poll.c: Check for __MSVCRT__ instead.
25638
25639 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25640
25641         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25642         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25643         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25644
25645 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25646
25647         * modules/poll-tests: New.
25648         * tests/test-poll.c: New.
25649
25650 2008-09-12  Eric Blake  <ebb9@byu.net>
25651
25652         frexp: test for NetBSD failure on -0.0
25653         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25654         not all, bugs from NetBSD 3.0 have been fixed.
25655         * doc/posix-functions/frexp.texi (frexp): Document bug.
25656         Reported by Thomas Klausner.
25657
25658         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25659         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25660         literal -0.0.
25661         Reported by Jonathan C. Patschke <jp@centtech.com>.
25662
25663 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25664
25665         * lib/glthread/cond.h: Use dummy implementation also if
25666         USE_WIN32_THREADS.
25667
25668 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25669
25670         * modules/fnmatch-posix (License): Change to LGPLv2+.
25671         * modules/fnmatch-gnu (License): Likewise.
25672
25673 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25674
25675         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25676
25677 2008-09-11  Jim Meyering  <meyering@redhat.com>
25678
25679         * users.txt: Add gtk-vnc.
25680
25681 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25682
25683         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25684         rotate amounts.
25685
25686         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25687         required for 16-bit and 8-bit rotates.
25688         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25689         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25690         UINT8_MAX instead of hard-coded constants.
25691         Suggested by Paul Eggert.
25692
25693 2008-09-07  Bruno Haible  <bruno@clisp.org>
25694
25695         * tests/test-striconveh.c (main): Check behaviour when converting from
25696         UTF-7.
25697
25698         Make striconveh work better with stateful encodings.
25699         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25700         that iconv does not increment the inptr when returning -1/EINVAL.
25701
25702 2008-09-07  Bruno Haible  <bruno@clisp.org>
25703
25704         * build-aux/config.rpath: Update according to libtool-2.2.6.
25705         * build-aux/config.libpath: Likewise.
25706
25707 2008-09-06  Bruno Haible  <bruno@clisp.org>
25708
25709         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25710         * lib/freadptr.c (freadptr): Likewise.
25711         * lib/freadseek.c (freadptrinc): Likewise.
25712         Reported by Simon Josefsson.
25713
25714 2008-09-06  Bruno Haible  <bruno@clisp.org>
25715
25716         * modules/freadptr (License): Change to LGPLv2+.
25717         * modules/freadseek (License): Likewise.
25718         Suggested by Eric Blake.
25719
25720         * modules/memchr2 (License): Change to LGPLv2+.
25721         Approved by Eric Blake.
25722
25723 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25724             Bruno Haible  <bruno@clisp.org>
25725
25726         Make gnulib-tool work with native 'sed' on AIX.
25727         * gnulib-tool (sed_noop): New variable.
25728         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25729         func_add_or_update, func_create_testdir): Use it to initialize sed
25730         script variables.
25731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25732
25733 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25734             Bruno Haible  <bruno@clisp.org>
25735
25736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25737         also works after #include directives.
25738
25739 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
25740
25741         getdate.y: reject an out-of-range timezone value
25742         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25743         the range [-24...+24].  When specified with only one or two digits,
25744         * tests/test-getdate.c: Tests for the fix.
25745         * doc/getdate.texi: Document this change.
25746
25747 2008-09-03  Bruno Haible  <bruno@clisp.org>
25748
25749         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25750
25751 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25752
25753         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25754         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25755         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25756         Blake <ebb9@byu.net>.
25757
25758         * tests/test-bitrotate.c: Add more test vectors.
25759
25760 2008-09-02  Eric Blake  <ebb9@byu.net>
25761
25762         vasnprintf-posix: handle large precision via %.*d
25763         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25764         when handling it ourselves.
25765         * tests/test-vasnprintf-posix.c (test_function): Add test.
25766         * tests/test-snprintf-posix.h (test_function): Likewise.
25767         * tests/test-sprintf-posix.h (test_function): Likewise.
25768         * tests/test-vasprintf-posix.c (test_function): Likewise.
25769         Reported by Alain Guibert.
25770
25771 2008-09-01  Eric Blake  <ebb9@byu.net>
25772
25773         c-stack: make configure-time check more robust
25774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25775         successful sigaction call.
25776         Reported by Tom G. Christensen.
25777
25778 2008-09-01  Bruno Haible  <bruno@clisp.org>
25779
25780         New module 'findprog-lgpl'.
25781         * modules/findprog-lgpl: New file.
25782         * lib/findprog-lgpl.c: New file.
25783         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25784         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25785         to decide whether to use strdup or xstrdup, concatenated_filename or
25786         xconcatenated_filename.
25787
25788 2008-09-01  Bruno Haible  <bruno@clisp.org>
25789
25790         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25791         'xconcat-filename' (GPL).
25792         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25793         (License): Change to LGPLv2+.
25794         * modules/xconcat-filename: New file.
25795         * lib/concat-filename.h (concatenated_filename): Change specification.
25796         (xconcatenated_filename): New declaration.
25797         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25798         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25799         memory situations.
25800         * lib/xconcat-filename.c: New file.
25801         * NEWS: Mention the change.
25802         * lib/findprog.c: Include concat-filename.h, not filename.h.
25803         (find_in_path): Use xconcatenated_filename instead of
25804         concatenated_filename.
25805         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25806         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25807         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25808         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25809         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25810         instead of concatenated_filename.
25811         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25812         (execute_java_class): Use xconcatenated_filename instead of
25813         concatenated_filename.
25814         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25815         * modules/javacomp (Depends-on): Likewise.
25816         * modules/javaexec (Depends-on): Likewise.
25817
25818 2008-09-01  Bruno Haible  <bruno@clisp.org>
25819
25820         Split module 'filename' into 'filename' and 'concat-filename'.
25821         * modules/filename: Keep only lib/filename.h.
25822         (License): Change to LGPLv2+.
25823         * modules/concat-filename: New file, extracted from modules/filename.
25824         * lib/filename.h (concatenated_filename): Remove declaration.
25825         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25826         * lib/concat-filename.c: Include concat-filename.h.
25827         * NEWS: Mention the change.
25828
25829 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25830
25831         * lib/bitrotate.h (rotl8, rotr8): Add.
25832
25833         * modules/bitrotate (configure.ac): Need
25834         AC_REQUIRE([AC_C_INLINE]).
25835         (Description): Mention stdint.h.  Reported by Bruno Haible
25836         <bruno@clisp.org>.
25837
25838         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25839         Paolo Bonzini <bonzini@gnu.org>.
25840
25841 2008-08-31  Bruno Haible  <bruno@clisp.org>
25842
25843         Assume Solaris specific bi-arch conventions on Solaris systems.
25844         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25845         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25847         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25848         like acl_libdirstem.
25849         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25850         acl_libdirstem.
25851         * NEWS: Mention the change.
25852         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25853
25854 2008-08-31  Jim Meyering  <meyering@redhat.com>
25855
25856         * lib/strftime.h: Add comments describing the two added arguments.
25857
25858         remove duplicate #include directives
25859         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25860         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25861
25862 2008-08-31  Bruno Haible  <bruno@clisp.org>
25863
25864         New module 'sigpipe-die'.
25865         * modules/sigpipe-die: New file.
25866         * lib/sigpipe-die.h: New file.
25867         * lib/sigpipe-die.c: New file.
25868         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25869
25870 2008-08-31  Bruno Haible  <bruno@clisp.org>
25871
25872         Don't override previously installed signal handlers.
25873         * lib/fatal-signal.c (saved_sigactions): New variable.
25874         (uninstall_handlers): Reset the signal to the saved handler, not
25875         to SIG_DFL (except when ignored).
25876         (install_handlers): Save the previous handlers.
25877
25878 2008-08-30  Bruno Haible  <bruno@clisp.org>
25879
25880         * gnulib-tool (func_reset_sigpipe): New function.
25881         (func_get_automake_snippet, func_modules_transitive_closure,
25882         func_import): Invoke it before a join command that reads from stdin,
25883         to avoid "echo: write error: Broken pipe" error messages on stderr.
25884         Reported by Sam Steingold <sds@gnu.org>.
25885
25886 2008-08-30  Bruno Haible  <bruno@clisp.org>
25887
25888         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
25889         Code copied from m4/open.m4.
25890         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
25891         access and the filename ends in a slash. Code copied from lib/open.c.
25892         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
25893         * tests/test-fopen.c (main): Check against bug with trailing slash.
25894
25895 2008-08-29  Bruno Haible  <bruno@clisp.org>
25896
25897         Avoid some "gcc -pedantic" warnings.
25898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
25899         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
25900         * lib/dirent.in.h: Likewise.
25901         * lib/fcntl.in.h: Likewise.
25902         * lib/float.in.h: Likewise.
25903         * lib/iconv.in.h: Likewise.
25904         * lib/inttypes.in.h: Likewise.
25905         * lib/locale.in.h: Likewise.
25906         * lib/math.in.h: Likewise.
25907         * lib/netinet_in.in.h: Likewise.
25908         * lib/search.in.h: Likewise.
25909         * lib/signal.in.h: Likewise.
25910         * lib/stdarg.in.h: Likewise.
25911         * lib/stdint.in.h: Likewise.
25912         * lib/stdio.in.h: Likewise.
25913         * lib/stdlib.in.h: Likewise.
25914         * lib/string.in.h: Likewise.
25915         * lib/strings.in.h: Likewise.
25916         * lib/sys_select.in.h: Likewise.
25917         * lib/sys_socket.in.h: Likewise.
25918         * lib/sys_stat.in.h: Likewise.
25919         * lib/sys_time.in.h: Likewise.
25920         * lib/sysexits.in.h: Likewise.
25921         * lib/time.in.h: Likewise.
25922         * lib/unistd.in.h: Likewise.
25923         * lib/wchar.in.h: Likewise.
25924         * lib/wctype.in.h: Likewise.
25925         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
25926         * modules/fchdir (Makefile.am): Likewise.
25927         * modules/fcntl (Makefile.am): Likewise.
25928         * modules/float (Makefile.am): Likewise.
25929         * modules/iconv_open (Makefile.am): Likewise.
25930         * modules/inttypes (Makefile.am): Likewise.
25931         * modules/locale (Makefile.am): Likewise.
25932         * modules/math (Makefile.am): Likewise.
25933         * modules/netinet_in (Makefile.am): Likewise.
25934         * modules/search (Makefile.am): Likewise.
25935         * modules/signal (Makefile.am): Likewise.
25936         * modules/stdarg (Makefile.am): Likewise.
25937         * modules/stdint (Makefile.am): Likewise.
25938         * modules/stdio (Makefile.am): Likewise.
25939         * modules/stdlib (Makefile.am): Likewise.
25940         * modules/string (Makefile.am): Likewise.
25941         * modules/strings (Makefile.am): Likewise.
25942         * modules/sys_select (Makefile.am): Likewise.
25943         * modules/sys_socket (Makefile.am): Likewise.
25944         * modules/sys_stat (Makefile.am): Likewise.
25945         * modules/sys_time (Makefile.am): Likewise.
25946         * modules/sysexits (Makefile.am): Likewise.
25947         * modules/time (Makefile.am): Likewise.
25948         * modules/unistd (Makefile.am): Likewise.
25949         * modules/wchar (Makefile.am): Likewise.
25950         * modules/wctype (Makefile.am): Likewise.
25951         Reported by Reuben Thomas <rrt@sc3d.org>.
25952
25953 2008-08-29  Bruno Haible  <bruno@clisp.org>
25954
25955         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
25956         any more.
25957
25958 2008-08-29  Simon Josefsson  <simon@josefsson.org>
25959
25960         * MODULES.html.sh (Misc): Add bitrotate.
25961
25962         * modules/bitrotate: New file.
25963
25964         * lib/bitrotate.h: New file.
25965
25966         * modules/bitrotate-tests: New file.
25967
25968         * tests/test-bitrotate.c: New file.
25969
25970         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
25971         on the bitrotate module.
25972
25973         * lib/arctwo.c: Use new bitrotate module.
25974
25975 2008-08-29  Jim Meyering  <meyering@redhat.com>
25976
25977         bootstrap: merge changes from coreutils
25978         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
25979         of copied files.  Remove a kludge, now that this is fixed.
25980         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
25981         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
25982         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
25983
25984 2008-08-29  Bruno Haible  <bruno@clisp.org>
25985
25986         * MODULES.html.sh: Remove --cvs-urls option.
25987
25988 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
25989
25990         maint.mk: adjust to file name change
25991         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
25992
25993 2008-08-28  Jim Meyering  <meyering@redhat.com>
25994
25995         * modules/getndelim2 (License): Relicense to LGPLv2+.
25996         Approved by Richard Stallman for the version of 1995, and by
25997         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
25998
25999 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26000
26001         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26002         dummy if one is not available.  Do not touch them if
26003         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26004         (getc_maybe_unlocked): New.
26005         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26006
26007 2008-08-26  Eric Blake  <ebb9@byu.net>
26008
26009         doc/INSTALL: resync from autoconf
26010         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26011         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26012         moving...
26013         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26014         * INSTALL: Regenerate.
26015         * INSTALL.ISO: New file.
26016         * INSTALL.UTF-8: Likewise.
26017
26018 2008-08-26  Jim Meyering  <meyering@redhat.com>
26019
26020         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26021         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26022         these definitions conditional, so that they may be overridden, too.
26023
26024 2008-08-26  Bruno Haible  <bruno@clisp.org>
26025
26026         Generate INSTALL file variants with prettier quotes.
26027         * doc/Makefile (INSTALL_PRELUDE): New macro.
26028         (INSTALL): Use it.
26029         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26030
26031 2008-08-26  Bruno Haible  <bruno@clisp.org>
26032
26033         Run makeinfo in an English locale.
26034         * doc/Makefile (MAKEINFO): New variable.
26035
26036 2008-08-26  Bruno Haible  <bruno@clisp.org>
26037
26038         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26039         Suggested by Eric Blake.
26040
26041 2008-08-25  Bruno Haible  <bruno@clisp.org>
26042
26043         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26044
26045 2008-08-25  Eric Blake  <ebb9@byu.net>
26046
26047         c-stack: test that stack overflow can be caught
26048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26049         that platform allows handling stack overflow; at least OS/2 EMX
26050         has sigaltstack, but crashes before transferring control to
26051         handler on stack overflow.
26052         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26053         check for HAVE_STACK_OVERFLOW_HANDLING.
26054         Reported by Elbert Pol.
26055
26056 2008-08-25  Bruno Haible  <bruno@clisp.org>
26057
26058         * doc/posix-functions/strftime.texi: Fix description of strftime
26059         module.
26060
26061 2008-08-24  Bruno Haible  <bruno@clisp.org>
26062
26063         * tests/uniwidth/test-uc_width2.c: New file.
26064         * tests/uniwidth/test-uc_width2.sh: New file.
26065         * modules/uniwidth/width-tests (Files): Add the new files.
26066         (TESTS): Add uniwidth/test-uc_width2.sh.
26067         (TESTS_ENVIRONMENT): New variable.
26068         (check_PROGRAMS): Add test-uc_width2.
26069         (test_uc_width2_SOURCES): New variable.
26070
26071         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26072         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26073         not 0x00AB.
26074         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26075
26076 2008-08-22  Eric Blake  <ebb9@byu.net>
26077
26078         test-lock, test-tls: mention why a test is skipped
26079         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26080         skipped.
26081         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26082
26083         count-one-bits: relax license
26084         * modules/count-one-bits (License): Relicense to LGPLv2+.
26085         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26086
26087 2008-08-22  Andreas Schwab  <schwab@suse.de>
26088
26089         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26090         Remove spurious space in assignment.
26091
26092 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26093
26094         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26095         Paul Eggert <eggert@CS.UCLA.EDU>.
26096
26097 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26098
26099         * modules/gettext: Add m4/threadlib.m4.
26100
26101 2008-08-19  Eric Blake  <ebb9@byu.net>
26102
26103         test-c-stack: fix compilation failure on FreeBSD 5.0
26104         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26105         headers before <sys/resource.h>.
26106         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26107         the bug.
26108         Reported by Nelson H. F. Beebe.
26109
26110         strverscmp: migrate from "strverscmp.h" to <string.h>
26111         * modules/string (Makefile.am): Add new hooks.
26112         * modules/strverscmp (Files): Remove strverscmp.h.
26113         (Depends-on): Add string.
26114         (configure.ac): Add indicator.
26115         (Include): Mention new header.
26116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26117         defaults.
26118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26119         results.
26120         * lib/strverscmp.h: Delete.
26121         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26122         * tests/test-strverscmp.c (includes): Adjust client.
26123         * lib/check-version.c (includes): Likewise.
26124         * NEWS: Document the change.
26125
26126         strverscmp: add unit test
26127         * modules/strverscmp-tests: New file.
26128         * tests/test-strverscmp.c: Likewise.
26129
26130 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26131
26132         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26133         regarding Windows crypto stuff, from Mono.
26134
26135 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26136
26137         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26138         if present, for intel RND.  Return error on failures.
26139
26140 2008-08-18  Ben Pfaff  <blp@gnu.org>
26141
26142         gitlog-to-changelog: give better diagnostic for failed pipe-open
26143         * build-aux/gitlog-to-changelog: Improve error message: suggest
26144         that the version of Git may be too old.
26145
26146 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26147
26148         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26149         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26150
26151 2008-08-18  Bruno Haible  <bruno@clisp.org>
26152
26153         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26154         pthread_in_use().
26155
26156 2008-08-18  Bruno Haible  <bruno@clisp.org>
26157
26158         * lib/glthread/threadlib.c: Include <pthread.h>.
26159
26160 2008-08-18  Bruno Haible  <bruno@clisp.org>
26161
26162         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26163         glthread_recursive_lock_* macros.
26164         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26165         Fix syntax error.
26166
26167 2008-08-18  Bruno Haible  <bruno@clisp.org>
26168
26169         * lib/glthread/thread.c: Avoid forcing a context switch right after
26170         thread creation.
26171
26172 2008-08-17  Bruno Haible  <bruno@clisp.org>
26173
26174         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26175         * lib/glthread/thread.h: Provide Win32 specific implementation.
26176         * modules/thread (Files): Add lib/glthread/thread.c.
26177         (Depends-on): Add lock.
26178         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26179
26180 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26181
26182         New module 'yield'.
26183         * modules/yield: New file.
26184         * lib/glthread/yield.h: New file.
26185         * m4/yield.m4: New file.
26186         * MODULES.html.sh (Multithreading): Add yield.
26187
26188 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26189
26190         New module 'thread'.
26191         * modules/thread: New file.
26192         * lib/glthread/thread.h: New file.
26193         * m4/thread.m4: New file.
26194         * MODULES.html.sh (Multithreading): Add thread.
26195
26196 2008-08-17  Bruno Haible  <bruno@clisp.org>
26197
26198         * lib/glthread/lock.h: Include <stdlib.h> always.
26199         * lib/glthread/tls.h: Likewise.
26200         * lib/glthread/cond.h: Likewise.
26201
26202 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26203
26204         New module 'cond'.
26205         * modules/cond: New file.
26206         * lib/glthread/cond.h: New file.
26207         * lib/glthread/cond.c: New file.
26208         * m4/cond.m4: New file.
26209         * MODULES.html.sh (Multithreading): Add cond.
26210
26211 2008-08-16  Eric Blake  <ebb9@byu.net>
26212
26213         c-stack: fix regression on Irix 5.3 from 2008-06-21
26214         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26215         sa_sigaction...
26216         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26217         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26218         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26219         * modules/signal (Makefile.am): Use the value.
26220         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26221         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26222         * doc/posix-headers/signal.texi (signal.h): Document this
26223         portability issue.
26224         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26225         Reported by Tom G. Christensen.
26226
26227 2008-08-17  Bruno Haible  <bruno@clisp.org>
26228
26229         New module 'threadlib'.
26230         * modules/threadlib: New file.
26231         * lib/glthread/threadlib.c: New file, extracted from
26232         lib/glthread/lock.c.
26233         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26234         functions.
26235         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26236         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26237         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26238         macros.
26239         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26240         (gl_DISABLE_THREADS): Remove macro.
26241         * modules/lock (Files): Remove build-aux/config.rpath.
26242         (Depends-on): Remove havelib. Add threadlib.
26243         (configure.ac-early): Remove section.
26244         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26245         * modules/tls (Depends-on): Remove lock. Add threadlib.
26246         (Link): New section, copied from threadlib.
26247         * MODULES.html.sh (Multithreading): Add threadlib.
26248
26249 2008-08-14  Bruno Haible  <bruno@clisp.org>
26250
26251         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26252         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26253         glthread_rwlock_unlock, glthread_rwlock_destroy,
26254         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26255         glthread_recursive_lock_destroy): Define as macros always.
26256         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26257         glthread_lock_lock.
26258         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26259         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26260         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26261         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26262         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26263         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26264         (glthread_recursive_lock_lock_func): Renamed from
26265         glthread_recursive_lock_lock.
26266         (glthread_recursive_lock_unlock_func): Renamed from
26267         glthread_recursive_lock_unlock.
26268         (glthread_recursive_lock_destroy_func): Renamed from
26269         glthread_recursive_lock_destroy.
26270
26271 2008-08-14  Bruno Haible  <bruno@clisp.org>
26272
26273         * lib/glthread/lock.h: Renamed from lib/lock.h.
26274         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26275         * lib/glthread/tls.h: Renamed from lib/tls.h.
26276         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26277         * lib/fstrcmp.c: Update includes.
26278         * lib/strsignal.c: Update includes.
26279         * modules/lock (Files, Makefile.am): Update.
26280         (Include): Change to "glthread/lock.h".
26281         * modules/tls (Files, Makefile.am): Update.
26282         (Include): Change to "glthread/tls.h".
26283         * tests/test-lock.c: Update includes.
26284         * tests/test-tls.c: Update includes.
26285         * NEWS: Mention the renamed header files.
26286
26287 2008-08-11  Jim Meyering  <meyering@redhat.com>
26288
26289         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26290
26291 2008-08-11  Eric Blake  <ebb9@byu.net>
26292
26293         test-c-stack: avoid C99-ism
26294         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26295         before statement.
26296         Reported by Alain Guibert.
26297
26298 2008-08-10  Jim Meyering  <meyering@redhat.com>
26299
26300         ensure that return value of uinttostr et al are not ignored
26301         * lib/inttostr.h (__GNUC_PREREQ): Define.
26302         (__attribute_warn_unused_result__): Define.
26303         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26304
26305 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26306
26307         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26308         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26309
26310 2008-08-07  Jim Meyering  <meyering@redhat.com>
26311
26312         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26313
26314         * modules/mkstemp (License): Relicense under LGPLv2+.
26315         * modules/tempname (License): Likewise.
26316
26317 2008-08-06  Bruno Haible  <bruno@clisp.org>
26318
26319         * lib/poll.c (poll): Further micro-optimization.
26320
26321 2008-08-06  Jim Meyering  <meyering@redhat.com>
26322
26323         inet_pton.c: use locale-independent tolower
26324         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26325         (inet_pton6): Use c_tolower rather than tolower.
26326         * modules/inet_pton (Depends-on): Add c-ctype.
26327
26328 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26329
26330         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26331         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26332
26333 2008-08-06  Jim Meyering  <meyering@redhat.com>
26334
26335         * modules/inet_pton (License): Relicense under LGPLv2+.
26336
26337 2008-08-03  Bruno Haible  <bruno@clisp.org>
26338
26339         Additional non-aborting API for lock and tls.
26340         * lib/lock.h: Include <errno.h>.
26341         (glthread_lock_init): New macro/function.
26342         (gl_lock_init): Define as wrapper around glthread_lock_init.
26343         (glthread_lock_lock): New macro/function.
26344         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26345         (glthread_lock_unlock): New macro/function.
26346         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26347         (glthread_lock_destroy): New macro/function.
26348         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26349         (glthread_rwlock_init): New macro/function.
26350         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26351         (glthread_rwlock_rdlock): New macro/function.
26352         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26353         (glthread_rwlock_wrlock): New macro/function.
26354         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26355         (glthread_rwlock_unlock): New macro/function.
26356         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26357         (glthread_rwlock_destroy): New macro/function.
26358         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26359         (glthread_recursive_lock_init): New macro/function.
26360         (gl_recursive_lock_init): Define as wrapper around
26361         glthread_recursive_lock_init.
26362         (glthread_recursive_lock_lock): New macro/function.
26363         (gl_recursive_lock_lock): Define as wrapper around
26364         glthread_recursive_lock_lock.
26365         (glthread_recursive_lock_unlock): New macro/function.
26366         (gl_recursive_lock_unlock): Define as wrapper around
26367         glthread_recursive_lock_unlock.
26368         (glthread_recursive_lock_destroy): New macro/function.
26369         (gl_recursive_lock_destroy): Define as wrapper around
26370         glthread_recursive_lock_destroy.
26371         (glthread_once): New macro/function.
26372         (gl_once): Define as wrapper around glthread_once.
26373         Update function declarations.
26374         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26375         glthread_rwlock_init. Return error code.
26376         (glthread_rwlock_rdlock_multithreaded): Renamed from
26377         glthread_rwlock_rdlock. Return error code.
26378         (glthread_rwlock_wrlock_multithreaded): Renamed from
26379         glthread_rwlock_wrlock. Return error code.
26380         (glthread_rwlock_unlock_multithreaded): Renamed from
26381         glthread_rwlock_unlock. Return error code.
26382         (glthread_rwlock_destroy_multithreaded): Renamed from
26383         glthread_rwlock_destroy. Return error code.
26384         (glthread_recursive_lock_init_multithreaded): Renamed from
26385         glthread_recursive_lock_init. Return error code.
26386         (glthread_recursive_lock_lock_multithreaded): Renamed from
26387         glthread_recursive_lock_lock. Return error code.
26388         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26389         glthread_recursive_lock_unlock. Return error code.
26390         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26391         glthread_recursive_lock_destroy. Return error code.
26392         (glthread_once_call): Make static.
26393         (glthread_once_multithreaded): Renamed from glthread_once.
26394         * lib/tls.h: Include <errno.h>.
26395         (glthread_tls_key_init): New macro/function.
26396         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26397         (glthread_tls_set): New macro/function.
26398         (gl_tls_set): Define as wrapper around glthread_tls_set.
26399         (glthread_tls_key_destroy): New macro/function.
26400         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26401         Update function declarations.
26402         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26403         glthread_tls_get.
26404         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26405
26406 2008-08-04  Eric Blake  <ebb9@byu.net>
26407
26408         gnumakefile: use space, not TAB, outside of targets
26409         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26410
26411 2008-08-02  Jim Meyering  <meyering@redhat.com>
26412
26413         getdate.y: avoid locale-dependent date parsing failure
26414         In Turkish locales, getdate would fail to recognize keywords
26415         containing a lowercase "i".  The solution is not to rely on
26416         locale-sensitive case-conversion.
26417         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26418         (lookup_word): Use c_toupper in place of toupper.
26419         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26420         Reported by Vefa Bicakci <bicave@superonline.com> in
26421         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26422         * modules/getdate (Depends-on): Add c-ctype.
26423
26424 2008-08-02  Bruno Haible  <bruno@clisp.org>
26425
26426         * gnulib-tool (func_import): When updating or creating a .gitignore
26427         file, prepend each added line with a slash, and ignore leading slashes
26428         from the existing lines.
26429         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26430
26431 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26432
26433         Portability fix for GNU make 3.79.1.
26434         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26435         versions do not understand.
26436
26437 2008-08-01  Bruno Haible  <bruno@clisp.org>
26438
26439         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26440         * tests/test-isnanf.h (zero): New variable.
26441         (main): Avoid literal -0.0f.
26442         * tests/test-isnand.h (zero): New variable.
26443         (main): Avoid literal -0.0.
26444         * tests/test-isnanl.h (zero): New variable.
26445         (main): Avoid literal -0.0L.
26446         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26447         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26448         -0.0, -0.0L.
26449         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26450         (test_signbitd): Avoid literal -0.0.
26451         (test_signbitl): Avoid literal -0.0L.
26452         * tests/test-ceilf1.c (zero): New variable.
26453         (main): Avoid literal -0.0f.
26454         * tests/test-ceill.c (zero): New variable.
26455         (main): Avoid literal -0.0L.
26456         * tests/test-floorf1.c (zero): New variable.
26457         (main): Avoid literal -0.0f.
26458         * tests/test-floorl.c (zero): New variable.
26459         (main): Avoid literal -0.0L.
26460         * tests/test-roundf1.c (zero): New variable.
26461         (main): Avoid literal -0.0f.
26462         * tests/test-round1.c (zero): New variable.
26463         (main): Avoid literal -0.0.
26464         * tests/test-roundl.c (zero): New variable.
26465         (main): Avoid literal -0.0L.
26466         * tests/test-truncf1.c (zero): New variable.
26467         (main): Avoid literal -0.0f.
26468         * tests/test-trunc1.c (zero): New variable.
26469         (main): Avoid literal -0.0.
26470         * tests/test-truncl.c (zero): New variable.
26471         (main): Avoid literal -0.0L.
26472         * tests/test-frexp.c (zero): New variable.
26473         (main): Avoid literal -0.0.
26474         * tests/test-frexpl.c (zero): New variable.
26475         (main): Avoid literal -0.0L.
26476         * tests/test-ldexpl.c (zero): New variable.
26477         (main): Avoid literal -0.0L.
26478         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26479         (zerod, zerol): New variables.
26480         (test_function): Avoid literals -0.0, -0.0L.
26481         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26482         (zerod, zerol): New variables.
26483         (test_function): Avoid literals -0.0, -0.0L.
26484         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26485         (zerod, zerol): New variables.
26486         (test_function): Avoid literals -0.0, -0.0L.
26487         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26488         (zerod, zerol): New variables.
26489         (test_function): Avoid literals -0.0, -0.0L.
26490         * tests/test-strtod.c (zero): New variable.
26491         (main): Avoid literal -0.0.
26492         Reported by Jonathan C. Patschke <jp@centtech.com>.
26493
26494 2008-07-31  Jim Meyering  <meyering@redhat.com>
26495
26496         sha256.h: correct definition of SHA224_DIGEST_SIZE
26497         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26498         Reported by Paulie Pena IV <paulie4@gmail.com>.
26499         Define as 224 / 8, rather than as a literal.
26500         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26501         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26502         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26503
26504 2008-07-31  Bruno Haible  <bruno@clisp.org>
26505
26506         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26507         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26508         Reported by Jonathan Patschke <jp@centtech.com>.
26509
26510 2008-07-31  Bruno Haible  <bruno@clisp.org>
26511
26512         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26513         Reported by Paolo Bonzini <bonzini@gnu.org>.
26514
26515 2008-07-30  Eric Blake  <ebb9@byu.net>
26516
26517         test-strtod: allow compilation without -lm
26518         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26519         Reported by Dennis Clarke <blastwave@gmail.com>.
26520
26521 2008-07-28  Jim Meyering  <meyering@redhat.com>
26522
26523         bootstrap: work also when there are no .po files in po/
26524         * build-aux/bootstrap (update_po_files): Complete the change
26525         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26526
26527 2008-07-27  Jim Meyering  <meyering@redhat.com>
26528
26529         * users.txt: Add zile.
26530
26531 2008-07-26  Ben Pfaff  <blp@gnu.org>
26532
26533         Add missing dependencies on new m4/exponent[fdl].m4 files.
26534         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26535         * modules/isnand-nolibm: Add m4/exponentd.m4.
26536         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26537         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26538         m4/isnan[fdl].m4, because the macros actually used moved.
26539         Reported by Jim Meyering.
26540
26541 2008-07-14  Ben Pfaff  <blp@gnu.org>
26542
26543         Add isinf module.
26544         * lib/isinf.c: New file.
26545         * lib/math.in.h: Define isinf macro if we have decided to replace
26546         it.
26547         * m4/isinf.m4: New file.
26548         * m4/math_h.m4: Initialize and substitute variables for isinf
26549         module.
26550         * modules/isinf: New file.
26551         * modules/isinf-tests: New file.
26552         * modules/math: Add substitutions for new module.
26553         * tests/test-isinf.c: New file.
26554         * doc/posix-functions/isinf.texi: Mention new module.
26555         * MODULES.html.sh: Mention new module.
26556
26557 2008-07-14  Ben Pfaff  <blp@gnu.org>
26558
26559         Factor out some macros for use by additional modules.
26560         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26561         exponentf.m4.
26562         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26563         exponentd.m4.
26564         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26565         file exponentl.m4.
26566         * m4/exponentf.m4: New file.
26567         * m4/exponentd.m4: New file.
26568         * m4/exponentl.m4: New file.
26569         * modules/isnanf: Use new file m4/exponentf.m4.
26570         * modules/isnand: Use new file m4/exponentd.m4.
26571         * modules/isnanl: Use new file m4/exponentl.m4.
26572
26573 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26574
26575         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26576         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26577         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26578         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26579
26580         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26581         readlink on platforms without PATH_MAX.
26582
26583 2008-07-21  Eric Blake  <ebb9@byu.net>
26584
26585         Warn, not fail, on stale version.
26586         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26587
26588         Don't allow installation with stale devel version number.
26589         * top/GNUmakefile (_is-install-target): New macro.
26590         (_curr-ver): Forbid installation with stale version number.
26591
26592 2008-07-20  Bruno Haible  <bruno@clisp.org>
26593
26594         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26595         TESTS_ENVIRONMENT.
26596         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26597
26598 2008-07-20  Bruno Haible  <bruno@clisp.org>
26599
26600         * lib/c-stack.h (c_stack_action): Add documentation.
26601         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26602
26603 2008-07-20  Bruno Haible  <bruno@clisp.org>
26604
26605         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26606         * modules/readlink (License): Likewise.
26607
26608 2008-07-17  Eric Blake  <ebb9@byu.net>
26609
26610         * modules/c-stack (Link): Fix typo.
26611
26612         Make c-stack use libsigsegv, when available.
26613         * modules/c-stack (Depends-on): Add libsigsegv.
26614         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26615         needed.
26616         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26617         (segv_handler, overflow_handler, c_stack_action)
26618         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26619         implementation when libsigsegv is available, but only when using
26620         the library is necessary.
26621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26622         comment, explaining why XSI check fails on Linux.
26623         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26624         * tests/test-c-stack2.sh: Tweak skip message.
26625         * NEWS: Document new link-time requirements.
26626
26627 2008-07-16  Eric Blake  <ebb9@byu.net>
26628
26629         c-stack: Expose false positives when not using libsigsegv.
26630         * modules/c-stack-tests (Files): Expand test.
26631         * tests/test-c-stack.c (main): Add means to conditionally trigger
26632         non-overflow SIGSEGV.
26633         * tests/test-c-stack2.sh: New file.
26634
26635 2008-07-14  Bruno Haible  <bruno@clisp.org>
26636
26637         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26638         Reported by Eric Blake.
26639
26640 2008-07-14  Sam Steingold  <sds@gnu.org>
26641             Bruno Haible  <bruno@clisp.org>
26642
26643         New module libsigsegv.
26644         * modules/libsigsegv: New file.
26645         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26646         modifications.
26647         * MODULES.html.sh (Signal handling): New section.
26648
26649 2008-07-14  Bruno Haible  <bruno@clisp.org>
26650
26651         * modules/unictype/ctype-* (Description): Add the word "function".
26652         Improves the resulting doc in MODULES.html.
26653
26654 2008-07-12  Ben Pfaff  <blp@gnu.org>
26655
26656         Add longlong module.
26657         * modules/longlong: New file.
26658
26659 2008-07-12  Bruno Haible  <bruno@clisp.org>
26660
26661         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26662         to empty.
26663
26664 2008-07-10  Ben Pfaff  <blp@gnu.org>
26665
26666         Add isnan module.
26667         * doc/posix-functions/isnan.texi: Mention new module.
26668         * lib/math.in.h: Define isnan macro if we have decided to replace
26669         it.
26670         * m4/isnan.m4: New file.
26671         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26672         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26673         also.
26674         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26675         redundancy.
26676         * m4/math_h.m4: Initialize and substitute variables for isnan
26677         module.
26678         * modules/isnan: New file.
26679         * modules/isnan-tests: New file.
26680         * modules/math: Add substitutions for new module.
26681         * tests/test-isnan.c: New file.
26682         * MODULES.html.sh: Mention new module.
26683
26684 2008-07-10  Ben Pfaff  <blp@gnu.org>
26685
26686         Add isnanf module.
26687         * lib/isnanf.m4: New file.
26688         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26689         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26690         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26691         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26692         * modules/isnanf: New file.
26693         * modules/isnanf-tests: New file.
26694         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26695         files.
26696         * tests/test-isnanf-nolibm.c: factored most of its contents into
26697         new file tests/test-isnanf.h.
26698         * tests/test-isnanf.h: New file.
26699         * tests/test-isnanf.c: New file.
26700         * MODULES.html.sh: Mention new module.
26701         * doc/glibc-functions/isnanf.texi: Mention new module.
26702
26703 2008-07-10  Ben Pfaff  <blp@gnu.org>
26704
26705         Add isnand module.
26706         * lib/isnand.h: New file.
26707         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26708         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26709         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26710         functionality also.
26711         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26712         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26713         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26714         * modules/isnand: New file.
26715         * modules/isnand-tests: New file.
26716         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26717         files.
26718         * tests/test-isnand-nolibm.c: factored most of its contents into
26719         new file tests/test-isnand.h.
26720         * tests/test-isnand.h: New file.
26721         * tests/test-isnand.c: New file.
26722         * MODULES.html.sh: Mention new module.
26723
26724 2008-07-10  Ben Pfaff  <blp@gnu.org>
26725
26726         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26727         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26728         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26729         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26730         * modules/isnanf-nolibm: Update references to renamed files.
26731         * modules/isnand-nolibm: Likewise.
26732         * modules/isnanf-nolibm-tests: Likewise.
26733         * modules/isnand-nolibm-tests: Likewise.
26734         * lib/frexp.c: Likewise.
26735         * lib/isfinite.c: Likewise.
26736         * lib/signbitd.c: Likewise.
26737         * lib/signbitf.c: Likewise.
26738         * lib/vasnprintf.c: Likewise.
26739         * tests/test-ceilf1.c: Likewise.
26740         * tests/test-ceilf2.c: Likewise.
26741         * tests/test-floorf1.c: Likewise.
26742         * tests/test-floorf2.c: Likewise.
26743         * tests/test-frexp.c: Likewise.
26744         * tests/test-round1.c: Likewise.
26745         * tests/test-round2.c: Likewise.
26746         * tests/test-roundf1.c: Likewise.
26747         * tests/test-strtod.c: Likewise.
26748         * tests/test-trunc1.c: Likewise.
26749         * tests/test-trunc2.c: Likewise.
26750         * tests/test-truncf1.c: Likewise.
26751         * tests/test-truncf2.c: Likewise.
26752         * NEWS: Mention the renamed header files.
26753
26754 2008-07-11  Jim Meyering  <meyering@redhat.com>
26755
26756         vc-list-files: make the last-resort awk code more portable
26757         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26758         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26759         does not support it.
26760
26761 2008-07-10  Eric Blake  <ebb9@byu.net>
26762
26763         Work with tar's bootstrap.
26764         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26765         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26766         an m4 comment.
26767
26768 2008-07-09  Jim Meyering  <meyering@redhat.com>
26769
26770         posix-shell.m4: fix typo that made this test malfunction
26771         * m4/posix-shell.m4: Remove capitalization in variable name.
26772
26773 2008-07-08  Bruno Haible  <bruno@clisp.org>
26774
26775         * m4/onceonly.m4: Update comments.
26776         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26777
26778 2008-07-04  Jim Meyering  <meyering@redhat.com>
26779
26780         * users.txt: Add vc-dwim.
26781         (bison, coreutils): Use the gitweb URL.
26782
26783 2008-07-03  Jim Meyering  <meyering@redhat.com>
26784
26785         * users.txt: Add libffcall.  From Sam Steingold.
26786
26787 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
26788
26789         getdate.y: do not ignore TZ with relative day, month or year offset
26790         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26791         relative-date-handling, since otherwise, the latter would clobber the
26792         sole output (an updated Start value) of the tz-handling block.
26793         * tests/test-getdate.c: Tests for the fix
26794
26795 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26796
26797         Recognize 'foo_LIBRARIES += libgnu.a'.
26798         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26799         makefile snippet has already specified an installation location,
26800         also using '+='.
26801
26802 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
26803
26804         getdate.y: factor out common actions
26805         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26806         Use them in place of open-coded actions.
26807
26808 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26809
26810         Add self-test for getdate module.
26811         * modules/getdate-tests: New file.
26812         * tests/test-getdate.c: New file.
26813
26814 2008-06-29  Bruno Haible  <bruno@clisp.org>
26815
26816         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26817         .gitignore.
26818         Reported by Sylvain Beucler <beuc@beuc.net>.
26819
26820 2008-06-29  Bruno Haible  <bruno@clisp.org>
26821
26822         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26823         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26824
26825 2008-06-29  Bruno Haible  <bruno@clisp.org>
26826
26827         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26828         EXTRA_DIST.
26829         Reported by Sylvain Beucler <beuc@beuc.net>.
26830
26831 2008-06-26  Jim Meyering  <meyering@redhat.com>
26832
26833         make several modules depend on the "open" module
26834         This provides slightly increased consistency when opening-for-write
26835         the name of a non-directory spelled with a trailing slash.
26836         * modules/chdir-safer: Likewise.
26837         * modules/chown: Likewise.
26838         * modules/clean-temp: Likewise.
26839         * modules/copy-file: Likewise.
26840         * modules/fchdir: Likewise.
26841         * modules/fcntl-safer: Likewise.
26842         * modules/pipe: Likewise.
26843         * modules/utime: Likewise.
26844         Prompted by Eric Blake and Bruno Haible.
26845
26846 2008-06-24  Andreas Schwab  <schwab@suse.de>
26847
26848         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26849         literals can be used as initializers for global variables.
26850
26851 2008-06-23  Eric Blake  <ebb9@byu.net>
26852
26853         Make gnulib-cache.m4 easier to diff.
26854         * gnulib-tool (func_import): Allow newlines when reading cached
26855         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26856
26857 2008-06-23  Bruno Haible  <bruno@clisp.org>
26858
26859         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26860         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26861         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26862         m4/signalblocking.m4.
26863         (gl_PREREQ_SIGACTION): Don't invoke it.
26864         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26865         gl_PREREQ_SIG_HANDLER_H.
26866         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26867         Don't check for sigaction here.
26868
26869 2008-06-23  Bruno Haible  <bruno@clisp.org>
26870
26871         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26872         (install_handlers): Don't set the SA_RESETHAND flag.
26873
26874 2008-06-23  Bruno Haible  <bruno@clisp.org>
26875
26876         * m4/sigaction.m4: Comment fixes.
26877         * lib/signal.in.h: Likewise.
26878
26879 2008-06-23  Eric Blake  <ebb9@byu.net>
26880
26881         Fix typo.
26882         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
26883
26884         Avoid SA_ namespace.
26885         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
26886         Reported by Ralf Wildenhues.
26887
26888         Avoid test failure due to SA_RESTORER.
26889         * tests/test-sigaction.c (SA_MASK): New macro.
26890         (main): Avoid failing due to extension flags being set.
26891         Reported by Jim Meyering.
26892
26893         Revert use of sig-handler.h in sigprocmask.c.
26894         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
26895         it requires the existence of struct sigaction.
26896         * lib/sigprocmask.c (handler_t): Restore typedef.
26897         (rpl_signal, old_handlers): Use local type.
26898
26899 2008-06-22  Bruno Haible  <bruno@clisp.org>
26900
26901         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
26902         conditionally.
26903         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26904
26905 2008-06-22  Bruno Haible  <bruno@clisp.org>
26906
26907         * doc/posix-functions/siginterrupt.texi: Move note.
26908
26909         * lib/signal.in.h (SA_RESTART): New macro.
26910         * lib/sigaction.c: Update comment.
26911
26912         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
26913
26914         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
26915         (gl_PREREQ_SIGPROCMASK): Invoke it.
26916         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
26917
26918         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
26919
26920         * lib/sigprocmask.c: Update a comment.
26921
26922 2008-06-21  Eric Blake  <ebb9@byu.net>
26923
26924         Use sigaction module rather than signal().
26925         * modules/c-stack (Depends-on): Add sigaction.
26926         * modules/fatal-signal (Depends-on): Likewise.
26927         * modules/nanosleep (Depends-on): Likewise.
26928         * modules/sigprocmask (Files): Add sig-handler.h.
26929         * modules/sigaction (Files): Likewise.
26930         * lib/sig-handler.h (get_handler): New file, suggested by Paul
26931         Eggert.
26932         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
26933         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
26934         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26935         (init_fatal_signals): Likewise.
26936         * lib/nanosleep.c (rpl_nanosleep): Likewise.
26937         (siginterrupt): Delete fallback.
26938         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
26939         instead.
26940         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
26941         siginterrupt.
26942
26943         New module sigaction, for mingw.
26944         * modules/sigaction: New module...
26945         * modules/sigaction-tests: ...and its test.
26946         * m4/sigaction.m4: New file.
26947         * lib/sigaction.c: Likewise.
26948         * tests/test-sigaction.c: Likewise.
26949         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
26950         * modules/signal (Makefile.am): Likewise.
26951         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
26952         needed.
26953         * doc/posix-headers/signal.texi (signal.h): Mention provided
26954         types.
26955         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
26956         that sigaction is preferable.
26957         * doc/posix-functions/sigaction.texi (sigaction): Mention new
26958         module.
26959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26960         sigaction.
26961
26962         Improve robustness of sigprocmask by overriding signal.
26963         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
26964         is in use.
26965         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
26966         (SIGKILL, SIGSTOP): Provide fallbacks.
26967         (rpl_signal): Implement.
26968         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
26969         signal can be called inside handlers.
26970
26971         Fix nanosleep module on mingw.
26972         * modules/nanosleep (Depends-on): Add sys_select.
26973         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
26974
26975         Fix licensing of sigprocmask.
26976         * modules/raise (License): Relicense as LGPL.
26977
26978 2008-06-21  Bruno Haible  <bruno@clisp.org>
26979
26980         * lib/propername.c (proper_name_utf8): Don't use the transliterated
26981         result if it contains question marks.
26982         Reported by Michael Geng <linux@michaelgeng.de>.
26983
26984 2008-06-19  Bruno Haible  <bruno@clisp.org>
26985
26986         Fix CVS-ism.
26987         * doc/gnulib.texi: Include updated-stamp.texi.
26988         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
26989         (updated-stamp.texi): New rule.
26990         (gnulib.info): Depend on it.
26991         * doc/.gitignore: Add updated-stamp.texi.
26992         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
26993
26994 2008-06-19  Bruno Haible  <bruno@clisp.org>
26995
26996         * doc/Makefile (gnulib.info): Update and simplify dependencies.
26997         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26998
26999 2008-06-19  Eric Blake  <ebb9@byu.net>
27000
27001         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27002         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27003         Reported by Stepan Kasal.
27004
27005 2008-06-18  Bruno Haible  <bruno@clisp.org>
27006
27007         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27008         Reported by Eric Blake.
27009
27010 2008-06-18  Eric Blake  <ebb9@byu.net>
27011
27012         Work around cygwin 1.5.25 strsignal bug.
27013         * tests/test-strsignal.c: Allow for const char *.
27014         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27015
27016 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27017
27018         * users.txt: Update URL to article and add author/date
27019         information.
27020
27021 2008-06-17  Bruno Haible  <bruno@clisp.org>
27022
27023         New macro gl_DISABLE_THREADS.
27024         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27025         if the user did not pass --enable-threads or --disable-threads option.
27026         (gl_DISABLE_THREADS): New macro.
27027         Reported by Eric Blake <ebb9@byu.net>.
27028
27029 2008-06-17  Bruno Haible  <bruno@clisp.org>
27030
27031         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27032         when the macro ignores it.
27033         Based on a patch by Eric Blake <ebb9@byu.net>.
27034
27035 2008-06-17  Bruno Haible  <bruno@clisp.org>
27036
27037         * modules/tls (License): Change to LGPLv2+.
27038         Reported by Eric Blake.
27039
27040 2008-06-17  Eric Blake  <ebb9@byu.net>
27041
27042         Simplify c-stack prerequisites.
27043         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27045         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27046         check.
27047         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27048         <sys/resource.h>.
27049
27050         Move c-stack test into testsuite.
27051         * modules/c-stack-tests: New file.
27052         * lib/c-stack.c [DEBUG]: Move test program...
27053         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27054         fail test if sigaltstack is lacking.
27055         * tests/test-c-stack.sh: New driver file.
27056
27057 2008-06-16  Eric Blake  <ebb9@byu.net>
27058
27059         Use raise module consistently.
27060         * modules/fatal-signal (Depends-on): Add raise.
27061         * modules/sigprocmask (Depends-on): Likewise.
27062         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27063         * lib/sigprocmask.c (sigprocmask): Likewise.
27064         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27065         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27066
27067         Fix compliance bug in sigpending.
27068         * lib/sigprocmask.c (sigpending): Return pending array via
27069         parameter, not return value.
27070
27071 2008-06-14  Eric Blake  <ebb9@byu.net>
27072
27073         Improve obstack-printf test code.
27074         * tests/test-obstack-printf.c (test_function): Fix comment, and
27075         simplify usage of obstack_* in macros.  Add a test for coverage.
27076         Reported by Bruno Haible.
27077
27078 2008-06-14  Bruno Haible  <bruno@clisp.org>
27079
27080         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27081         array size as a constant, not as a const variable.
27082         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27083         AC_USE_SYSTEM_EXTENSIONS.
27084         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27085         Test whether the obstack_printf function actually exists.
27086         * modules/obstack-printf (Depends-on): Add extensions.
27087         (Include): Remove obstack.h.
27088         * modules/obstack-printf-posix (Depends-on): Add extensions.
27089         (Include): Remove obstack.h.
27090
27091 2008-06-13  Eric Blake  <ebb9@byu.net>
27092
27093         Add obstack-printf and obstack-printf-posix modules.
27094         * modules/obstack-printf: New file.
27095         * modules/obstack-printf-posix: Likewise.
27096         * MODULES.html.sh (Misc): Mention them.
27097         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27098         Likewise.
27099         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27100         Likewise.
27101         * modules/stdio (Makefile.am): Accomodate new modules.
27102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27103         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27104         Declare.
27105         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27106         functions.
27107         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27108         (gl_REPLACE_OBSTACK_PRINTF): New macros
27109         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27110         * tests/test-obstack-printf.c: New file.
27111         * modules/obstack-printf-tests: Likewise.
27112         * modules/obstack-printf-posix-tests: Likewise.
27113
27114 2008-06-11  Bruno Haible  <bruno@clisp.org>
27115
27116         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27117         * lib/open.c: Include errno.h.
27118         (open): Fail when attempting to write to a file that has a trailing
27119         slash.
27120         * tests/test-open.c (main): Test against trailing slash bug.
27121         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27122
27123 2008-06-10  Bruno Haible  <bruno@clisp.org>
27124
27125         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27126         for $? to work inside the trap command, with various /bin/sh-s.
27127         * tests/test-vc-list-files-cvs.sh: Likewise.
27128
27129 2008-06-10  Bruno Haible  <bruno@clisp.org>
27130
27131         * lib/acl-internal.h: Don't include gettext.h here.
27132         * lib/set-mode-acl.c: Include gettext.h here.
27133         * lib/copy-acl.c: Likewise.
27134
27135 2008-06-10  Bruno Haible  <bruno@clisp.org>
27136
27137         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27138         * lib/wait-process.c (wait_subprocess): Likewise.
27139         * lib/execute.h (execute): Add termsigp argument.
27140         * lib/execute.c (execute): Likewise.
27141         * lib/csharpcomp.c (compile_csharp_using_pnet,
27142         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27143         * lib/csharpexec.c (execute_csharp_using_pnet,
27144         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27145         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27146         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27147         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27148         is_jikes_present): Update.
27149         * lib/javaexec.c (execute_java_class): Update.
27150         * lib/javaversion.c (execute_and_read_line): Update.
27151         * NEWS: Document the changes.
27152         Reported by Eric Blake.
27153
27154 2008-06-10  Eric Blake  <ebb9@byu.net>
27155
27156         Add missing include.
27157         * tests/test-strstr.c (includes): Add <signal.h>.
27158         * tests/test-strcasestr.c (includes): Likewise.
27159         * tests/test-memmem.c (includes): Likewise.
27160
27161 2008-06-10  Bruno Haible  <bruno@clisp.org>
27162
27163         * lib/wait-process.c (wait_subprocess): Add an assertion.
27164
27165 2008-06-10  Bruno Haible  <bruno@clisp.org>
27166
27167         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27168
27169 2008-06-10  Bruno Haible  <bruno@clisp.org>
27170
27171         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27172         using alarm().
27173         * tests/test-strcasestr.c (main): Likewise.
27174         * tests/test-strstr.c (main): Likewise.
27175
27176 2008-06-09  Bruno Haible  <bruno@clisp.org>
27177
27178         Work around the Solaris 10 ACE ACLs ABI change.
27179         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27180         declare if ACL_NO_TRIVIAL is present.
27181         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27182         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27183         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27184         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27185         define if ACL_NO_TRIVIAL is present.
27186         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27187         and use the current ABI.
27188         (file_has_acl): Use same #if condition as elsewhere.
27189         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27190         in use, and use the current ABI.
27191         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27192         Reported by Jim Meyering.
27193
27194 2008-06-09  Eric Blake  <ebb9@byu.net>
27195
27196         Work around environments that (stupidly) ignore SIGALRM.
27197         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27198         before using alarm().
27199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27200         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27201         Reported by Ian Beckwith <ianb@erislabs.net>.
27202
27203         Produce autobuild blurb earlier in log.
27204         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27205
27206 2008-06-09  Jim Meyering  <meyering@redhat.com>
27207         and Ondřej Vašík  <ovasik@redhat.com>
27208
27209         utimens.c: correct kernel bug work-around
27210         Ondřej Vašík found that the invalid return value of 280 indicates
27211         failure, not success, and the kernel bug we're trying to work
27212         around affects not just the utimensat call, but also the fallback
27213         futimens call.
27214         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27215         not success.
27216         [HAVE_FUTIMENS]: Use the same work-around, here.
27217
27218 2008-06-09  Jim Meyering  <meyering@redhat.com>
27219
27220         add more guards around definition of ACE_-related code
27221         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27222         ALLOW and ACE_OWNER are also defined.
27223
27224 2008-06-08  Bruno Haible  <bruno@clisp.org>
27225
27226         * lib/acl-internal.h: Add me as co-author.
27227         * lib/file-has-acl.c: Likewise.
27228         * lib/set-mode-acl.c: Likewise.
27229         * lib/copy-acl.c: Likewise.
27230
27231 2008-06-08  Bruno Haible  <bruno@clisp.org>
27232
27233         Add support for AIX ACLs.
27234         * lib/acl-internal.h (acl_nontrivial): New declaration.
27235         * lib/file-has-acl.c (acl_nontrivial): New function.
27236         (file_has_acl): Add implementation using AIX 4 ACL API.
27237         * lib/set-mode-acl.c (qset_acl): Likewise.
27238         * lib/copy-acl.c (qcopy_acl): Likewise.
27239
27240 2008-06-08  Bruno Haible  <bruno@clisp.org>
27241
27242         Add support for HP-UX ACLs.
27243         * lib/acl-internal.h (acl_nontrivial): New declaration.
27244         * lib/file-has-acl.c (acl_nontrivial): New function.
27245         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27246         * lib/set-mode-acl.c (qset_acl): Likewise.
27247         * lib/copy-acl.c (qcopy_acl): Likewise.
27248
27249 2008-06-08  Bruno Haible  <bruno@clisp.org>
27250
27251         Add support for Cygwin ACLs.
27252         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27253         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27254         the chmod_or_fchmod call.
27255         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27256
27257 2008-06-08  Bruno Haible  <bruno@clisp.org>
27258
27259         Fix bug with setuid modes in Solaris 10+ code.
27260         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27261         succeeded, when the mode contains some special bits.
27262
27263 2008-06-08  Bruno Haible  <bruno@clisp.org>
27264
27265         Add support for Solaris 7..10 ACLs.
27266         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27267         declarations.
27268         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27269         functions.
27270         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27271         * lib/set-mode-acl.c (qset_acl): Likewise.
27272         * lib/copy-acl.c (qcopy_acl): Likewise.
27273
27274 2008-06-08  Bruno Haible  <bruno@clisp.org>
27275
27276         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27277         declaration.
27278         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27279         (acl_access_nontrivial): Remove MacOS X case.
27280         (file_has_acl): Use acl_extended_nontrivial.
27281         * lib/copy-acl.c (qcopy_acl): Likewise.
27282
27283 2008-06-08  Bruno Haible  <bruno@clisp.org>
27284
27285         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27286
27287 2008-06-08  Jim Meyering  <meyering@redhat.com>
27288
27289         * modules/acl (Maintainer): Add Bruno Haible.
27290
27291 2008-06-07  Bruno Haible  <bruno@clisp.org>
27292
27293         Improve support for Tru64 ACLs.
27294         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27295         ACL on OSF/1.
27296
27297 2008-06-07  Bruno Haible  <bruno@clisp.org>
27298
27299         Add support for MacOS X ACLs.
27300         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27301         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27302         * lib/set-mode-acl.c (qset_acl): Likewise.
27303         * lib/copy-acl.c (qcopy_acl): Likewise.
27304
27305 2008-06-07  Bruno Haible  <bruno@clisp.org>
27306
27307         Fix memory leak introduced on 2008-05-22.
27308         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27309         use.
27310
27311 2008-06-07  Bruno Haible  <bruno@clisp.org>
27312
27313         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27314         to construct an empty ACL.
27315
27316 2008-06-07  Bruno Haible  <bruno@clisp.org>
27317
27318         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27319         precisely.
27320         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27321
27322 2008-06-07  Bruno Haible  <bruno@clisp.org>
27323
27324         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27325         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27326
27327 2008-06-07  Bruno Haible  <bruno@clisp.org>
27328
27329         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27330         regardless of POSIX.
27331         * doc/posix-functions/_longjmp.texi: Likewise.
27332         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27333         SystemV platform in this case.
27334
27335 2008-06-06  Eric Blake  <ebb9@byu.net>
27336
27337         Document abort() bugs.
27338         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27339
27340         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27341         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27342         sigsetjmp.
27343         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27344         siglongjmp, but only as a macro.
27345         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27346         is obsolete.
27347         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27348
27349         Tweak documentation to cover cygwin argz bugs.
27350         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27351         argz bug fix; no code change needed since no cygwin releases
27352         occurred between the last fix and the bug being tested.
27353         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27354         module and recently fixed cygwin bugs.
27355         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27356         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27357         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27358         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27359         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27360         Likewise.
27361         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27362         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27363         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27364         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27365         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27366         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27367         Likewise.
27368
27369         Avoid gcc warning on cygwin.
27370         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27371         !ACL_NO_TRIVIAL]: Avoid unused variable.
27372
27373 2008-06-05  Eric Blake  <ebb9@byu.net>
27374
27375         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27376         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27377         git-version-gen fails to come up with a version.
27378         Reported by Simon Josefsson.
27379
27380 2008-06-05  Jim Meyering  <meyering@redhat.com>
27381             Paul Eggert  <eggert@cs.ucla.edu>
27382
27383         utimens.c: work around a probable Linux kernel bug
27384         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27385         appears to be a kernel bug that causes utimensat to return 280
27386         instead of 0, indicating success.
27387
27388 2008-06-04  Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27391         2008-06-01 commit.
27392
27393 2008-06-04  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27396         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27397         (file_has_acl): Use it. Save errno afterwards.
27398         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27399
27400 2008-06-03  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27403         draft code. Simplify #ifs.
27404         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27405         Put Solaris code after POSIX-draft code. Fix comments regarding
27406         Solaris 10, HP-UX. Mention Cygwin.
27407         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27408
27409 2008-06-03  Eric Blake  <ebb9@byu.net>
27410
27411         Provide fallback for older kernels.
27412         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27413         Provide runtime fallback if kernel lacks support.
27414         Reported by Mike Frysinger.
27415
27416 2008-06-02  Bruno Haible  <bruno@clisp.org>
27417
27418         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27419         it exists.
27420
27421 2008-06-02  Bruno Haible  <bruno@clisp.org>
27422
27423         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27424         * lib/copy-acl.c (qcopy_acl): Update comment.
27425
27426 2008-06-02  Bruno Haible  <bruno@clisp.org>
27427
27428         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27429         like ACL APIs.
27430
27431 2008-06-02  Bruno Haible  <bruno@clisp.org>
27432
27433         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27434         * tests/test-set-mode-acl.sh: Likewise.
27435         * tests/test-copy-acl.sh: Likewise.
27436         * tests/test-copy-file.sh: Likewise.
27437
27438 2008-06-02  Bruno Haible  <bruno@clisp.org>
27439
27440         * tests/test-file-has-acl.sh: Remove unused code.
27441
27442 2008-06-01  Bruno Haible  <bruno@clisp.org>
27443
27444         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27445         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27446         messages.
27447         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27448
27449 2008-06-01  Bruno Haible  <bruno@clisp.org>
27450
27451         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27452         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27453         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27454         APIs.
27455         * modules/acl-tests (configure.ac): Remove tests now contained in
27456         m4/acl.m4.
27457
27458 2008-06-02  Jim Meyering  <meyering@redhat.com>
27459
27460         announce-gen: use a better key-server host name
27461         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27462         it may be more consistently reliable.  Suggested by Werner Koch
27463         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27464
27465 2008-06-01  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27468         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27469
27470 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27471
27472         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27473
27474 2008-06-01  Bruno Haible  <bruno@clisp.org>
27475
27476         New ACL tests.
27477         * tests/test-file-has-acl.sh: New file.
27478         * tests/test-file-has-acl.c: New file.
27479         * tests/test-set-mode-acl.sh: New file.
27480         * tests/test-set-mode-acl.c: New file.
27481         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27482         * tests/test-copy-acl.c: New file.
27483         * modules/acl-tests: New file, based on modules/copy-file-tests.
27484         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27485         (Depends-on): Add acl-tests.
27486         (configure.ac): Remove checks.
27487         (Makefile.am): Don't create test-sameacls program here any more.
27488
27489 2008-06-01  Bruno Haible  <bruno@clisp.org>
27490
27491         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27492         * tests/test-sameacls.c: Include progname.h.
27493         (main): Invoke set_program_name. Portability fixes for MacOS X,
27494         Solaris, HP-UX.
27495
27496 2008-06-01  Bruno Haible  <bruno@clisp.org>
27497
27498         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27499         function.
27500         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27501
27502 2008-06-01  Bruno Haible  <bruno@clisp.org>
27503
27504         * modules/rpmatch (Depends-on): Add strdup.
27505
27506 2008-06-01  Bruno Haible  <bruno@clisp.org>
27507
27508         * lib/pipe.c: Include unistd-safer.h.
27509         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27510         * modules/pipe (Depends-on): Add unistd-safer.
27511
27512 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27513
27514         * modules/autobuild (configure.ac): Call AB_INIT.
27515
27516 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27517
27518         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27519         Suggested by Bruno Haible <bruno@clisp.org>.
27520
27521 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27522
27523         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27524         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27525         <bruno@clisp.org>.
27526
27527 2008-05-29  Eric Blake  <ebb9@byu.net>
27528
27529         Prefer new POSIX 200x interfaces over futimesat.
27530         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27531         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27532         when available.
27533         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27534
27535 2008-05-28  Bruno Haible  <bruno@clisp.org>
27536
27537         * modules/stpcpy (License): Change to LGPLv2+.
27538         Requested by David Lutterkort <dlutter@redhat.com>.
27539
27540 2008-05-27  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27543         current mingw.
27544         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27545
27546 2008-05-27  Bruno Haible  <bruno@clisp.org>
27547
27548         * modules/iconv_open (Link): New section, from module 'iconv'.
27549         * modules/striconv (Link): Likewise.
27550         * modules/striconveh (Link): Likewise.
27551         * modules/xstriconv (Link): Likewise.
27552         * modules/unicodeio (Link): Likewise.
27553         * modules/propername (Link): Likewise.
27554         Reported by Jim Meyering.
27555
27556 2008-05-26  Jim Meyering  <meyering@redhat.com>
27557
27558         sha256: do not artificially restrict buffer length to be < 2^32
27559         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27560         uint32_t to size_t.
27561         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27562         to match.
27563
27564         avoid unaligned access errors, e.g., on sparc
27565         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27566         direct access through a possibly-unaligned uint64* pointer.
27567         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27568         direct access through a possibly-unaligned uint32* pointer.
27569         Prompted by this patch from Tom "spot" Callaway:
27570         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27571
27572         sha512.c: fix typo in comment
27573         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27574
27575 2008-05-25  Bruno Haible  <bruno@clisp.org>
27576
27577         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27578         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27579         (Makefile.am): Update lib_SOURCES.
27580
27581 2008-05-25  Bruno Haible  <bruno@clisp.org>
27582
27583         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27584
27585 2008-05-25  Jim Meyering  <meyering@redhat.com>
27586
27587         useless-if-before-free: freed expr may have white-space differences
27588         * build-aux/useless-if-before-free: Recognize cases in which the
27589         freed expression differs from the tested one in embedded white
27590         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27591         $1 was used, so we can't make any regexp shy.  Improved tests now
27592         detect this.
27593
27594         useless-if-before-free: accept white space in the expression.
27595         * build-aux/useless-if-before-free: For now, any white space
27596         in the expression must be identical in the free argument.
27597
27598         useless-if-before-free: efficiency tweak
27599         * build-aux/useless-if-before-free: Make the expression-matching
27600         regexp "shy".
27601         Make the *outer* regexp shy, not the expr-matching one.
27602
27603         update code-in-comment to accept cast of free arg
27604         * build-aux/useless-if-before-free: Update regexp.
27605
27606 2008-05-25  Bruno Haible  <bruno@clisp.org>
27607
27608         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27609         * modules/copy-file-tests (Files, Makefile.am): Update.
27610         * tests/test-copy-file.c (func_test_copy): Update.
27611
27612 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27613
27614         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27615
27616 2008-05-23  Bruno Haible  <bruno@clisp.org>
27617
27618         Improve support for ACLs on OSF/1.
27619         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27620         Remove fallback for unknown flavors of ACLs.
27621
27622 2008-05-22  Bruno Haible  <bruno@clisp.org>
27623
27624         Add support for ACLs on OSF/1.
27625         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27626         replacements.
27627         (acl_free_text): New macro fallback.
27628         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27629         acl_free.
27630         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27631         acl_free_text function. Require AC_C_INLINE.
27632
27633 2008-05-22  Bruno Haible  <bruno@clisp.org>
27634
27635         Make copy_acl work on MacOS X 10.5.
27636         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27637         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27638         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27639         If MODE_INSIDE_ACL, don't assume that every system has the same text
27640         representation for ACLs as FreeBSD.
27641         * lib/copy-acl.c (copy_acl): Add support for platforms with
27642         !MODE_INSIDE_ACL.
27643         * lib/file-has-acl.c (file_has_acl): Likewise.
27644         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27645         FreeBSD, MacOS X, or IRIX, respectively.
27646
27647 2008-05-22  Bruno Haible  <bruno@clisp.org>
27648
27649         * lib/acl.h: Don't include <sys/acl.h>.
27650         (GETACLCNT): Move fallback to lib/acl-internal.h.
27651         * lib/acl-internal.h: Include <sys/acl.h> here.
27652         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27653
27654 2008-05-22  Bruno Haible  <bruno@clisp.org>
27655
27656         Split off copy_acl function to separate file.
27657         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27658         * lib/acl.c (copy_acl): Moved function to separate file.
27659         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27660         * modules/acl (Files): Add lib/copy-acl.c.
27661         (Makefiles.am): Augment lib_SOURCES.
27662
27663 2008-05-22  Bruno Haible  <bruno@clisp.org>
27664
27665         * modules/copy-file-tests: New file.
27666         * tests/test-copy-file.sh: New file.
27667         * tests/test-copy-file.c: New file.
27668         * tests/test-copy-file-sameacls.c: New file.
27669
27670 2008-05-22  Eric Blake  <ebb9@byu.net>
27671
27672         Avoid gcc warning.
27673         * tests/test-memcmp.c (main): Pass NULL indirectly.
27674
27675 2008-05-21  Bruno Haible  <bruno@clisp.org>
27676
27677         Add reference doc about ACLs.
27678         * doc/acl-resources.txt: New file.
27679         * doc/acl-cygwin.txt: New file.
27680
27681 2008-05-21  Bruno Haible  <bruno@clisp.org>
27682
27683         Avoid one more warning from gcc.
27684         * lib/vasnprintf.c (IF_LINT): Update comments.
27685         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27686
27687 2008-05-21  Jim Meyering  <meyering@redhat.com>
27688
27689         avoid a warning from gcc
27690         * lib/vasnprintf.c (IF_LINT): Define.
27691         (scale10_round_decimal_long_double):
27692         Use it to avoid a "may be used uninitialized" warning.
27693         (scale10_round_decimal_double): Likewise.
27694
27695 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27696
27697         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27698         declared.
27699
27700 2008-05-20  Bruno Haible  <bruno@clisp.org>
27701
27702         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27703         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27704
27705 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27706
27707         * modules/memcmp-tests: New file.
27708         * tests/test-memcmp.c: New file.
27709
27710 2008-05-19  Bruno Haible  <bruno@clisp.org>
27711
27712         * modules/propername (Notice, configure.ac): Put quoted "..." into
27713         --keyword option.
27714         * lib/propername.h: Update comments accordingly.
27715         Reported by Eric Blake.
27716
27717 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27718
27719         * modules/getpass-gnu (Depends-on): Add fseeko.
27720
27721 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27722
27723         * modules/base64-tests: New file.
27724
27725 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27726
27727         * lib/base64.c (base64_decode_ctx): If a decode context structure
27728         was passed in use it to ignore newlines.  If a context structure
27729         was _not_ passed in, continue to treat newlines as garbage (this
27730         is the historical behavior).  Formerly base64_decode.
27731         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27732         takes a decode context structure.
27733         * lib/base64.h (base64_decode): Macro for four-argument calls.
27734         (base64_decode_alloc): Likewise.
27735         * lib/base64.c (base64_decode_ctx): If a decode context structure
27736         was passed in use it to ignore newlines.  If a context structure
27737         was _not_ passed in, continue to treat newlines as garbage (this
27738         is the historical behavior).  Formerly base64_decode.
27739         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27740         takes a decode context structure.
27741         * lib/base64.h (base64_decode): Macro for four-argument calls.
27742         (base64_decode_alloc): Likewise.
27743
27744 2008-05-19  Jim Meyering  <meyering@redhat.com>
27745
27746         avoid a warning from gcc
27747         * lib/trim.c (IF_LINT): Define.
27748         (trim2): Use it to avoid a "may be used uninitialized" warning.
27749
27750         Fix doc typo.
27751         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27752
27753 2008-05-19  Bruno Haible  <bruno@clisp.org>
27754
27755         * doc/glibc-functions/getpass.texi: Document limits of other
27756         implementations.
27757
27758 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27759             Bruno Haible <bruno@clisp.org>
27760
27761         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27762
27763 2008-05-18  Bruno Haible  <bruno@clisp.org>
27764
27765         * modules/propername: New file, from GNU gettext.
27766         * lib/propername.h: New file, from GNU gettext.
27767         * lib/propername.c: New file, from GNU gettext.
27768         * MODULES.html.sh (Internationalization functions): Add propername.
27769
27770 2008-05-16  Jim Meyering  <meyering@redhat.com>
27771             Bruno Haible  <bruno@clisp.org>
27772
27773         Avoid some warnings from "gcc -Wshadow".
27774         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27775
27776 2008-05-15  Eric Blake  <ebb9@byu.net>
27777
27778         Extend previous patch to cygwin 1.7.0.
27779         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27780         fast implementation in cygwin >= 1.7.0.
27781         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27783
27784 2008-05-15  Bruno Haible  <bruno@clisp.org>
27785
27786         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27787         implementation in glibc >= 2.9.
27788         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27790
27791 2008-05-15  Bruno Haible  <bruno@clisp.org>
27792
27793         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27794         (Unicode string functions): Add unilbrk/*.
27795         Reported by Karl Berry.
27796
27797 2008-05-15  Eric Blake  <ebb9@byu.net>
27798
27799         Fix violation of <stdbool.h> replacement in regex.
27800         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27801         * lib/regexec.c (re_search_internal): Likewise.
27802         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27803
27804 2008-05-15  Jim Meyering  <meyering@redhat.com>
27805
27806         avoid distracting test output when git or cvs is not found
27807         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27808         * tests/test-vc-list-files-git.sh: Likewise.
27809
27810 2008-05-15  Eric Blake  <ebb9@byu.net>
27811
27812         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27813         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27814         glibc version.
27815         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27816         * doc/posix-functions/strstr.texi (strstr): Likewise.
27817         * lib/str-two-way.h (MAX): Sychronize with glibc.
27818
27819 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27820
27821         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27822         opr.ctx_type.
27823         (calc_first): Initialize constraint field.
27824         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27825         Fix grammar.
27826         (duplicate_node): Merge constraint field for all node types.
27827         (calc_eclosure_iter): Look at constraint field for all node types.
27828         * lib/regex_internal.c (create_cd_newstate): Don't look at
27829         opr.ctx_type.
27830
27831 2008-05-14  Bruno Haible  <bruno@clisp.org>
27832
27833         Help GCC to do better code generation.
27834         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27835         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27836         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27837         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27838         Declare with attribute 'malloc' if supported.
27839
27840 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27841
27842         use "echo STR|wc -c" rather than unportable "expr length STR"
27843         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27844         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27845
27846 2008-05-14  Jim Meyering  <meyering@redhat.com>
27847
27848         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27849         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27850         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27851         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27852         via Collin Lasse.
27853
27854 2008-05-14  Eric Blake  <ebb9@byu.net>
27855
27856         Avoid quadratic growth in gl_LIBSOURCES.
27857         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27858         Suggested by Bruno Haible.
27859
27860         Test xmemdup0.
27861         * modules/xmemdup0-tests: New file.
27862         * tests/test-xmemdup0.c: Likewise.
27863
27864 2008-05-13  Eric Blake  <ebb9@byu.net>
27865
27866         Split xmemdup0 into its own module.
27867         * modules/xmemdup0: New file.
27868         * lib/xmemdup0.h: Likewise.
27869         * lib/xmemdup0.c: Likewise.
27870         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27871         * lib/xalloc.h (xmemdup0): Remove.
27872         * lib/xmalloc.c (xmemdup0): Likewise.
27873
27874 2008-05-13  Eric Blake  <ebb9@byu.net>
27875             Bruno Haible  <bruno@clisp.org>
27876
27877         Reduce number of forks required during autoconf.
27878         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
27879         and gl_LIBSOURCES_DIR.
27880         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
27881         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
27882         m4_syscmd per file.
27883         <m4_foreach_w>: Move...
27884         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
27885
27886 2008-05-13  Eric Blake  <ebb9@byu.net>
27887
27888         * gnulib-tool: Fix various comment typos.
27889
27890 2008-05-12  Bruno Haible  <bruno@clisp.org>
27891
27892         Tailor the linebreaking algorithm.
27893         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
27894
27895 2008-05-12  Bruno Haible  <bruno@clisp.org>
27896
27897         Update to Unicode 5.0.0.
27898         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27899         LBP_JV, LBP_JT. Redistribute values.
27900         (unilbrk_table): Change size.
27901         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
27902         Unicode TR#14 rev. 22.
27903         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27904         LBP_JV, LBP_JT. Redistribute values.
27905         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
27906         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
27907         Update.
27908         * lib/unilbrk/lbrkprop1.h: Regenerated.
27909         * lib/unilbrk/lbrkprop2.h: Regenerated.
27910         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
27911         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
27912         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
27913         Likewise.
27914         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
27915         Likewise.
27916         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
27917         result.
27918         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27919         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27920         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27921         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
27922         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
27923         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
27924
27925 2008-05-11  Bruno Haible  <bruno@clisp.org>
27926
27927         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
27928
27929 2008-05-11  Bruno Haible  <bruno@clisp.org>
27930
27931         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
27932         * modules/unilbrk/gen-lbrk: New file.
27933
27934 2008-05-11  Bruno Haible  <bruno@clisp.org>
27935
27936         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
27937         * m4/sha512.m4 (gl_SHA512): Likewise.
27938
27939 2008-05-11  Jim Meyering  <meyering@redhat.com>
27940
27941         New modules: crypto/sha256, crypto/sha512 (from coreutils)
27942         * modules/crypto/sha256: New file.
27943         * modules/crypto/sha512: Likewise.
27944         * lib/sha256.c: Likewise.
27945         * lib/sha256.h: Likewise.
27946         * lib/sha512.c: Likewise.
27947         * lib/sha512.h: Likewise.
27948         * lib/u64.h: Likewise.
27949         * m4/sha256.m4: Likewise.
27950         * m4/sha512.m4: Likewise.
27951         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
27952
27953 2008-05-10  Bruno Haible  <bruno@clisp.org>
27954
27955         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
27956         (Input/Output <stdio.h>): Add xprintf.
27957         (Signal handling <signal.h>): Add strsignal.
27958         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
27959         (Core language properties): Add func.
27960         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
27961         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
27962         strings.
27963         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
27964         (Input/output): New section.
27965         (File system functions): Add openat-die, stat-macros.
27966         (Networking functions): Add sockets.
27967         (Unicode string functions): Add unictype/*.
27968         (Support for building libraries and executables): Add gperf.
27969         (Support for building documentation): Add agpl-3.0.
27970         (Misc): Add nocrash.
27971
27972 2008-05-10  Bruno Haible  <bruno@clisp.org>
27973
27974         * modules/unictype/gen-ctype: New file.
27975
27976 2008-05-10  Jim Meyering  <meyering@redhat.com>
27977
27978         Make chdir-safer.c more efficient on a system with no symlinks.
27979         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
27980         also if ELOOP is zero.  Suggested by Bruno Haible.
27981
27982         Make chdir-safer.c slightly safer.
27983         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
27984         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
27985
27986         Avoid compile failure on systems without ELOOP (like mingw).
27987         * lib/chdir-safer.c (ELOOP): Define if not already defined.
27988         Reported by Bruno Haible.
27989
27990 2008-05-10  Bruno Haible  <bruno@clisp.org>
27991
27992         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
27993         (is_utf8_encoding): Use a case-insensitive comparison.
27994         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
27995         streq.
27996
27997 2008-05-10  Bruno Haible  <bruno@clisp.org>
27998
27999         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28000         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28001         * lib/unilbrk/ulc-common.h (iconv_string_length,
28002         iconv_string_keeping_offsets): Remove declarations.
28003         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28004         Don't include <iconv.h>, streq.h, xsize.h.
28005         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28006         conversion.
28007         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28008         <iconv.h>, streq.h, xsize.h.
28009         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28010         conversion.
28011         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28012         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28013         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28014         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28015
28016 2008-05-10  Bruno Haible  <bruno@clisp.org>
28017
28018         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28019         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28020
28021         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28022         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28023
28024         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28025         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28026
28027         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28028         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28029
28030         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28031         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28032
28033         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28034         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28035
28036         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28037         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28038
28039         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28040         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28041
28042 2008-05-10  Bruno Haible  <bruno@clisp.org>
28043
28044         Split up 'linebreak' module.
28045         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28046         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28047         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28048         modifications.
28049         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28050         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28051         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28052         lib/linebreak.c.
28053         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28054         lib/linebreak.c.
28055         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28056         lib/linebreak.c.
28057         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28058         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28059         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28060         lib/linebreak.c.
28061         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28062         lib/linebreak.c.
28063         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28064         lib/linebreak.c.
28065         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28066         lib/linebreak.c.
28067         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28068         lib/linebreak.c.
28069         * modules/unilbrk/base: New file.
28070         * modules/unilbrk/tables: New file.
28071         * modules/unilbrk/u8-possible-linebreaks: New file.
28072         * modules/unilbrk/u16-possible-linebreaks: New file.
28073         * modules/unilbrk/u32-possible-linebreaks: New file.
28074         * modules/unilbrk/ulc-common: New file.
28075         * modules/unilbrk/ulc-possible-linebreaks: New file.
28076         * modules/unilbrk/u8-width-linebreaks: New file.
28077         * modules/unilbrk/u16-width-linebreaks: New file.
28078         * modules/unilbrk/u32-width-linebreaks: New file.
28079         * modules/unilbrk/ulc-width-linebreaks: New file.
28080         * lib/linebreak.h: Remove file.
28081         * lib/linebreak.c: Remove file.
28082         * m4/linebreak.m4: Remove file.
28083         * modules/linebreak: Remove file.
28084         * NEWS: Mention the changes.
28085
28086 2008-05-09  Eric Blake  <ebb9@byu.net>
28087
28088         Add xmemdup0.
28089         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28090         implementation.
28091         * lib/xmalloc.c (xmemdup0): New C implementation.
28092
28093 2008-05-08  Bruno Haible  <bruno@clisp.org>
28094
28095         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28096
28097 2008-05-07  Eric Blake  <ebb9@byu.net>
28098
28099         Support cross-compilation of <wctype.h>.
28100         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28101         AC_CACHE_CHECK.
28102
28103 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28104
28105         * build-aux/vc-list-files: Add support for bzr.
28106
28107 2008-05-03  Jim Meyering  <meyering@redhat.com>
28108
28109         avoid failed assertion with tight malloc
28110         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28111
28112 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28113
28114         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28115         are needed from arpa/inet.h.
28116         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28117         Reported by Bruno Haible.
28118
28119 2008-05-02  Jim Meyering  <meyering@redhat.com>
28120
28121         avoid compilation error on FreeBSD 6
28122         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28123
28124 2008-05-01  Jim Meyering  <meyering@redhat.com>
28125
28126         useless-if-before-free: correct --help's exit status description
28127         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28128         for one or more matches, etc.  Reported by Bruno Haible.
28129
28130         vc-list-files: make the stand-alone gnulib test work
28131         * modules/vc-list-files-tests (configure.ac):
28132         Define and AC_SUBST abs_aux_dir.
28133         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28134         $(abs_top_srcdir) to each script and having each of them
28135         duplicate the work of setting PATH, set PATH here, using
28136         the new variable, abs_aux_dir instead.
28137         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28138         * tests/test-vc-list-files-git.sh: Likewise.
28139         Reported by Bruno Haible.
28140
28141 2008-05-01  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28144         reallocation. Rename 'done' to 'found_delimiter'.
28145
28146 2008-05-01  Jim Meyering  <meyering@redhat.com>
28147
28148         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28149         * build-aux/vc-list-files: Use `...`, not $(...).
28150
28151 2008-04-30  Jim Meyering  <meyering@redhat.com>
28152
28153         add tests for vc-list-files
28154         * modules/vc-list-files-tests: New module.
28155         * tests/test-vc-list-files-cvs.sh: New file.
28156         * tests/test-vc-list-files-git.sh: New file.
28157
28158         avoid a warning from gcc
28159         * lib/getndelim2.c (IF_LINT): Define.
28160         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28161
28162         vc-list-files: work properly with build-aux/cvsu, too
28163         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28164         to all cvs-based clauses.
28165
28166         vc-list-files: work properly in the CVS+awk case, too
28167         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28168
28169         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28170         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28171         take more than one file argument, so .  Add quotes, just in case $dir
28172         ever contains a shell meta-character.  Prompted by Soren Hansen in
28173         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28174
28175 2008-04-29  Eric Blake  <ebb9@byu.net>
28176
28177         Optimize getndelim2 to use block operations when possible.
28178         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28179         freadseek, and memchr2.
28180         * lib/getndelim2.c (getndelim2): Use them for block reads.
28181
28182 2008-04-29  Bruno Haible  <bruno@clisp.org>
28183
28184         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28185         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28186         * modules/inet_ntop (Depends-on): Add extensions.
28187         * modules/inet_pton (Depends-on): Likewise.
28188         Reported by Simon Josefsson.
28189
28190 2008-04-29  Jim Meyering  <meyering@redhat.com>
28191
28192         When the is more than one match in a block, match all of them.
28193         * build-aux/useless-if-before-free: Iterate through each block
28194         until there are no more matches.
28195
28196         Fix broken useless-if-before-free script.
28197         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28198         the expression to match cast of argument to free-like function.
28199
28200 2008-04-29  Eric Blake  <ebb9@byu.net>
28201
28202         Use new header.
28203         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28204
28205 2008-04-29  Jim Meyering  <meyering@redhat.com>
28206
28207         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28208         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28209         by gnulib to exist and to declare e.g., inet_ntop.
28210         Don't include "inet_ntop.h", now removed.
28211
28212         * m4/arpa_inet_h.m4: Remove trailing blanks.
28213
28214 2008-04-29  Eric Blake  <ebb9@byu.net>
28215
28216         Silence valgrind on safe reads beyond potential array bounds.
28217         * lib/rawmemchr.valgrind: New file.
28218         * lib/strchrnul.valgrind: Likewise.
28219         * modules/rawmemchr (Files): Distribute new file.
28220         * modules/strchrnul (Files): Likewise.
28221         Suggested by Bruno Haible.
28222
28223 2008-04-29  Bruno Haible  <bruno@clisp.org>
28224
28225         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28226         (inet_ntop, inet_pton): Change portability warning's wording.
28227         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28228         Invoke gl_CHECK_NEXT_HEADERS.
28229         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28230         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28231         set ARPA_INET_H.
28232         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28233         * modules/arpa_inet (Description): No longer only for systems that
28234         lack it.
28235         (Depends-on): Add include_next.
28236         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28237         HAVE_ARPA_INET_H.
28238
28239 2008-04-29  Jim Meyering  <meyering@redhat.com>
28240
28241         * modules/mkdir (License): Re-license as LGPLv2+.
28242
28243 2008-04-29  Bruno Haible  <bruno@clisp.org>
28244
28245         * modules/rawmemchr (Maintainer): Set to Eric.
28246         * modules/strchrnul (Maintainer): Likewise.
28247
28248 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28249
28250         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28251         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28252
28253         * modules/arpa_inet (arpa/inet.h): Use them.
28254
28255 2008-04-28  Eric Blake  <ebb9@byu.net>
28256
28257         Test getndelim2.
28258         * modules/getndelim2-tests: New file.
28259         * tests/test-getndelim2.c: Likewise.
28260         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28261         stream.
28262         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28263
28264         * MODULES.html.sh: Document new module.
28265
28266 2008-04-20  Bruno Haible  <bruno@clisp.org>
28267
28268         * lib/c-stack.c (die): Use raise.
28269         * modules/c-stack (Depends-on): Add raise.
28270
28271 2008-04-28  Bruno Haible  <bruno@clisp.org>
28272
28273         Expect rpmatch to be declared.
28274         * lib/yesno.c (rpmatch): Remove declaration.
28275
28276         Declare rpmatch.
28277         * lib/stdlib.in.h (rpmatch): New declaration.
28278         * lib/rpmatch.c: Include <stdlib.h> first.
28279         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28280         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28282         HAVE_RPMATCH.
28283         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28284         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28285         (Include): Set to <stdlib.h>.
28286         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28287         HAVE_RPMATCH.
28288         * NEWS: Document the change.
28289
28290 2008-04-28  Bruno Haible  <bruno@clisp.org>
28291
28292         Change rpmatch to use nl_langinfo when appropriate.
28293         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28294         (N_): New macro.
28295         (localized_pattern): New function/macro.
28296         (try): Remove match, nomatch arguments. Copy the pattern into safe
28297         memory before caching it.
28298         (rpmatch): Use localized_pattern. Add translator comments.
28299         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28300         Suggested by Eric Blake.
28301         * modules/rpmatch (Depends-on): Add stdbool.
28302
28303 2008-04-28  Eric Blake  <ebb9@byu.net>
28304
28305         Add rawmemchr module, matching glibc.
28306         * modules/string (Makefile.am): New indicator.
28307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28308         * lib/string.in.h (rawmemchr): Declare when appropriate.
28309         * modules/rawmemchr: New file.
28310         * m4/rawmemchr.m4: Likewise.
28311         * lib/rawmemchr.c: Likewise.
28312         * modules/rawmemchr-tests: Likewise.
28313         * tests/test-rawmemchr.c: Likewise.
28314         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28315         module.
28316         * modules/strchrnul (Depends-on): Add rawmemchr.
28317         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28318
28319         Whitespace cleanup.
28320         * tests/test-strchrnul.c: Reindent.
28321         * lib/strchrnul.c: Likewise.
28322
28323         Optimize and test strchrnul.
28324         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28325         * modules/strchrnul-tests: New file.
28326         * tests/test-strchrnul.c: Likewise.
28327
28328         Remove intprops dependency.
28329         * modules/memchr (Depends-on): Remove intprops.
28330         * modules/memrchr (Depends-on): Likewise.
28331         * modules/memchr2 (Depends-on): Likewise.
28332         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28333         * lib/memrchr.c (__memrchr): Likewise.
28334         * lib/memrchr2.c (memchr2): Likewise.
28335         Reported by Simon Josefsson.
28336
28337 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28338
28339         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28340         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28341
28342 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28343
28344         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28345
28346         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28347
28348         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28349
28350         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28351         declarations.
28352         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28353
28354         * m4/inet_pton.m4: Don't check for header files.
28355
28356         * m4/inet_ntop.m4: Don't check for header files.
28357
28358 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28359
28360         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28361         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28362         trigger for cygwin).
28363         Reported by Bruno Haible  <bruno@clisp.org>.
28364
28365 2008-04-28  Bruno Haible  <bruno@clisp.org>
28366
28367         * doc/posix-functions/strdup.texi: Mention mingw problem.
28368
28369 2008-04-27  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/stat-time-tests (Depends-on): Add sleep.
28372         * tests/test-stat-time.c (force_unlink): New function.
28373         (cleanup): Use it.
28374         (test_mtime): Remove the ctime related tests.
28375         (test_ctime): New function, containing the ctime related tests.
28376         (main): Call test_ctime, except on native Windows platforms.
28377
28378 2008-04-27  Bruno Haible  <bruno@clisp.org>
28379
28380         * lib/rpmatch.c (rpmatch): Add some comments.
28381         Reported by James Youngman <jay@gnu.org>.
28382
28383 2008-04-27  Bruno Haible  <bruno@clisp.org>
28384
28385         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28386         quiet NaNs.
28387
28388 2008-04-27  Bruno Haible  <bruno@clisp.org>
28389
28390         Make test-yesno.sh work on mingw.
28391         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28392         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28393         (main): Set stdin to binary mode.
28394         * modules/yesno-tests (Depends-on): Add binary-io.
28395
28396 2008-04-27  Bruno Haible  <bruno@clisp.org>
28397
28398         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28399         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28400         argument that lie outside the IEEE 854 domain.
28401         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28402         (gl_ISFINITE): Use it.
28403         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28404
28405 2008-04-27  Bruno Haible  <bruno@clisp.org>
28406
28407         Allow local renaming in config.h.
28408         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28409
28410 2008-04-27  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/memchr.c (__memchr): Change type of 'i'.
28413         * lib/memchr2.c (memchr2): Likewise.
28414
28415 2008-04-26  Eric Blake  <ebb9@byu.net>
28416         and Bruno Haible  <bruno@clisp.org>
28417
28418         Optimize and test memrchr.
28419         * modules/memrchr (Depends-on): Add intprops.
28420         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28421         * modules/memrchr-tests: New file.
28422         * tests/test-memrchr.c: New file.
28423
28424 2008-04-26  Bruno Haible  <bruno@clisp.org>
28425
28426         Add tentative support for DragonFly BSD.
28427         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28428         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28429         fp.
28430         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28431         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28432         * lib/fpurge.c (fpurge): Likewise.
28433         * lib/freadable.c (freaadable): Likewise.
28434         * lib/freadahead.c (freadahead): Likewise.
28435         * lib/freading.c (freading): Likewise.
28436         * lib/freadptr.c (freadptr): Likewise.
28437         * lib/freadseek.c (freadptrinc): Likewise.
28438         * lib/fseeko.c (fseeko): Likewise.
28439         * lib/fseterr.c (fseterr): Likewise.
28440         * lib/fwritable.c (fwritable): Likewise.
28441         * lib/fwriting.c (fwriting): Likewise.
28442
28443 2008-04-26  Bruno Haible  <bruno@clisp.org>
28444
28445         * lib/stdio-impl.h: New file.
28446         * lib/fbufmode.c: Include stdio-impl.h.
28447         (fbufmode): Use fp_, remove redundant #defines.
28448         * lib/fflush.c: Include stdio-impl.h.
28449         (clear_ungetc_buffer): Remove redundant #defines.
28450         * lib/fpurge.c: Include stdio-impl.h.
28451         (fpurge): Remove redundant #defines.
28452         * lib/freadable.c: Include stdio-impl.h.
28453         (freadable): Remove redundant #defines.
28454         * lib/freadahead.c: Include stdio-impl.h.
28455         (freadahead): Remove redundant #defines.
28456         * lib/freading.c: Include stdio-impl.h.
28457         (freading): Remove redundant #defines.
28458         * lib/freadptr.c: Include stdio-impl.h.
28459         (freadptr): Remove redundant #defines.
28460         * lib/freadseek.c: Include stdio-impl.h.
28461         (freadptrinc): Remove redundant #defines.
28462         * lib/fseeko.c: Include stdio-impl.h.
28463         (rpl_fseeko): Remove redundant #defines.
28464         * lib/fseterr.c: Include stdio-impl.h.
28465         (fseterr): Remove redundant #defines.
28466         * lib/fwritable.c: Include stdio-impl.h.
28467         (fwritable: Remove redundant #defines.
28468         * lib/fwriting.c: Include stdio-impl.h.
28469         (fwriting): Remove redundant #defines.
28470         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28471         * modules/fflush (Files): Likewise.
28472         * modules/fpurge (Files): Likewise.
28473         * modules/freadable (Files): Likewise.
28474         * modules/freadahead (Files): Likewise.
28475         * modules/freading (Files): Likewise.
28476         * modules/freadptr (Files): Likewise.
28477         * modules/freadseek (Files): Likewise.
28478         * modules/fseeko (Files): Likewise.
28479         * modules/fseterr (Files): Likewise.
28480         * modules/fwritable (Files): Likewise.
28481         * modules/fwriting (Files): Likewise.
28482
28483 2008-04-26  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28486         restore_seek_optimization, update_fpos_cache): New functions, extracted
28487         from rpl_fflush.
28488         (rpl_fflush): Use them.
28489         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28490         (gl_REPLACE_FFLUSH): Use it.
28491
28492 2008-04-26  Bruno Haible  <bruno@clisp.org>
28493
28494         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28495         on Solaris.
28496         * tests/test-xstrtoimax.sh: Likewise.
28497         * tests/test-xstrtoumax.sh: Likewise.
28498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28499
28500 2008-04-26  Bruno Haible  <bruno@clisp.org>
28501
28502         * modules/memchr-tests: New file.
28503         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28504
28505 2008-04-26  Eric Blake  <ebb9@byu.net>
28506             Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/memchr.c: Include intprops.h.
28509         (__memchr): Optimize parallel detection of matching bytes. Rename local
28510         variables. Add explanatory comments.
28511
28512 2008-04-26  Bruno Haible  <bruno@clisp.org>
28513
28514         Fix module 'memchr', broken since 2000-10-28.
28515         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28516
28517 2008-04-26  Bruno Haible  <bruno@clisp.org>
28518
28519         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28520         comments.
28521
28522 2008-04-25  Eric Blake  <ebb9@byu.net>
28523
28524         Use native fstatat on cygwin 1.7.0.
28525         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28526         first.
28527
28528 2008-04-23  Eric Blake  <ebb9@byu.net>
28529
28530         Improve memchr2 performance.
28531         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28532         NUL bytes.
28533         * modules/memchr2 (Depends-on): Use intprops.h.
28534
28535 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28536
28537         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28538         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28539         <blp@cs.stanford.edu>.
28540
28541 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28542
28543         * lib/arpa_inet.in.h: New file.
28544
28545         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28546         (Makefile.am): Sed in substitute header file.
28547
28548         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28549         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28550
28551         * modules/inet_ntop (configure.ac): Use
28552         gl_ARPA_INET_MODULE_INDICATOR.
28553
28554         * modules/inet_pton (configure.ac): Use
28555         gl_ARPA_INET_MODULE_INDICATOR.
28556
28557 2008-04-22  Jim Meyering  <meyering@redhat.com>
28558
28559         * modules/verify (License): Re-license as LGPLv2+.
28560
28561 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28562
28563         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28564         parameter to void* as per POSIX standard (MinGW uses char*).
28565
28566 2008-04-21  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28569         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28570         Define to replacements if REPLACE_ISWCNTRL is 1.
28571         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28572         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28573         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28574         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28575         what it fixes.
28576         * doc/posix-functions/iswalpha.texi: Likewise.
28577         * doc/posix-functions/iswblank.texi: Likewise.
28578         * doc/posix-functions/iswcntrl.texi: Likewise.
28579         * doc/posix-functions/iswdigit.texi: Likewise.
28580         * doc/posix-functions/iswgraph.texi: Likewise.
28581         * doc/posix-functions/iswlower.texi: Likewise.
28582         * doc/posix-functions/iswprint.texi: Likewise.
28583         * doc/posix-functions/iswpunct.texi: Likewise.
28584         * doc/posix-functions/iswspace.texi: Likewise.
28585         * doc/posix-functions/iswupper.texi: Likewise.
28586         * doc/posix-functions/iswxdigit.texi: Likewise.
28587         Reported by Alain Guibert.
28588
28589 2008-04-21  Bruno Haible  <bruno@clisp.org>
28590
28591         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28592         Patch by Alain Guibert.
28593
28594 2008-04-21  Bruno Haible  <bruno@clisp.org>
28595
28596         Fix test failures on mingw.
28597         * tests/test-xstrtol.c (print_no_progname): New function.
28598         (main): Install it in error_print_progname hook.
28599         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28600         * tests/test-xstrtoimax.sh: Likewise.
28601         * tests/test-xstrtoumax.sh: Likewise.
28602
28603 2008-04-21  Bruno Haible  <bruno@clisp.org>
28604
28605         Fix test failure on mingw.
28606         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28607
28608 2008-04-21  Bruno Haible  <bruno@clisp.org>
28609
28610         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28611         Actually assign a value.
28612
28613 2008-04-20  Bruno Haible  <bruno@clisp.org>
28614
28615         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28616         take 2.
28617         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28618         'canonicalize-lgpl' module is also used.
28619         * lib/canonicalize-lgpl.c: Undo last change.
28620         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28621
28622 2008-04-20  Bruno Haible  <bruno@clisp.org>
28623
28624         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28625         config.h. Provide _mkdir based fallback for mingw.
28626         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28627         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28628         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28629         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28630         rather than defining mkdir in config.h.
28631         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28632         (gl_SYS_STAT_H_DEFAULTS): New macro.
28633         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28634         HAVE_IO_H any more.
28635         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28636         HAVE_DECL_MKDIR and HAVE_IO_H.
28637
28638 2008-04-20  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/isapipe.c: Port to native Windows platforms.
28641
28642 2008-04-20  Bruno Haible  <bruno@clisp.org>
28643
28644         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28645
28646 2008-04-21  Eric Blake  <ebb9@byu.net>
28647
28648         Work around preprocessors that don't handle UINTMAX_MAX.
28649         * lib/memchr2.c (memchr2): Avoid embedded #if.
28650         Reported by Alain Guibert, fix suggested by Bruno Haible.
28651
28652 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28653
28654         * doc/posix-functions/strftime.texi (strftime): Explain better
28655         Windows incompatibility.  Suggested by Micah Cowan
28656         <micah@cowan.name>.
28657
28658 2008-04-20  Bruno Haible  <bruno@clisp.org>
28659
28660         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28661         unistr/u8-mblen.
28662
28663 2008-04-20  Bruno Haible  <bruno@clisp.org>
28664
28665         Fix test failure on platforms with non-GNU iconv.
28666         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28667         (U_TO_U8): Use it, rather than u16_to_u8.
28668         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28669         units at the end of the input string.
28670         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28671
28672 2008-04-20  Bruno Haible  <bruno@clisp.org>
28673
28674         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28675         when the resulting length is 0.
28676         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28677
28678 2008-04-20  Bruno Haible  <bruno@clisp.org>
28679
28680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28681         works.
28682         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28683
28684 2008-04-20  Bruno Haible  <bruno@clisp.org>
28685
28686         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28687         * modules/tsearch-tests (configure.ac): Test for initstate function.
28688
28689 2008-04-20  Bruno Haible  <bruno@clisp.org>
28690
28691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28692         for nlink_t if missing.
28693         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28694
28695 2008-04-19  Bruno Haible  <bruno@clisp.org>
28696
28697         Work around snprintf bug on Linux libc5.
28698         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28700         gl_SNPRINTF_SIZE1.
28701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28702         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28703         that test failed.
28704         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28705         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28706         * modules/snprintf (Files): Add m4/printf.m4.
28707         * modules/vsnprintf (Files): Likewise.
28708         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28709         * doc/posix-functions/vsnprintf.texi: Likewise.
28710
28711 2008-04-19  Bruno Haible  <bruno@clisp.org>
28712
28713         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28714         from 0.0058 to less than 10^-7.
28715
28716 2008-04-19  Bruno Haible  <bruno@clisp.org>
28717
28718         Fix rounding when a precision is given.
28719         * lib/vasnprintf.c (is_borderline): New function.
28720         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28721         9...9x.
28722         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28723         %e, %g.
28724         * tests/test-vasprintf-posix.c (test_function): Likewise.
28725         * tests/test-snprintf-posix.h (test_function): Likewise.
28726         * tests/test-sprintf-posix.h (test_function): Likewise.
28727         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28728         * tests/test-printf-posix.h (test_function): Likewise.
28729         * tests/test-printf-posix.output: Update.
28730         Reported by John Darrington <john@darrington.wattle.id.au> via
28731         Ben Pfaff <blp@cs.stanford.edu>.
28732
28733 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28734
28735         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28736         Suggested by Bruno Haible <bruno@clisp.org>.
28737
28738 2008-04-17  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28741         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28742         implementation.
28743         Patch by Bruce Merry <bmerry@gmail.com>.
28744
28745 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28746
28747         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28748         doesn't work under Windows.
28749
28750 2008-04-16  Bruno Haible  <bruno@clisp.org>
28751
28752         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28753         New macros.
28754         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28755         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28756         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28757         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28758         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28759         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28760         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28761         macros.
28762         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28763         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28764         Northern Sotho, Uighur.
28765
28766 2008-04-16  Bruno Haible  <bruno@clisp.org>
28767
28768         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28769         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28770         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28771         Reported by Daniel Bergström <daniel@octocode.com>.
28772
28773 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28774             Bruno Haible  <bruno@clisp.org>
28775
28776         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28777         function.
28778         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28779         New functions, mostly extracted from gl_locale_name_default.
28780         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28781
28782 2008-04-16  Eric Blake  <ebb9@byu.net>
28783
28784         Adjust strtod detection to catch glibc 2.7 bug.
28785         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28786         Reported by John Gatewood Ham.
28787
28788 2008-04-16  Bruno Haible  <bruno@clisp.org>
28789
28790         Add tentative support for Linux libc5.
28791         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28792         * lib/fpurge.c (fpurge): Likewise.
28793         * lib/freadable.c (freadable): Likewise.
28794         * lib/freadahead.c (freadahead): Likewise.
28795         * lib/freading.c (freading): Likewise.
28796         * lib/freadptr.c (freadptr): Likewise.
28797         * lib/freadseek.c (freadptrinc): Likewise.
28798         * lib/fseeko.c (rpl_fseeko): Likewise.
28799         * lib/fseterr.c (fseterr): Likewise.
28800         * lib/fwritable.c (fwritable): Likewise.
28801         * lib/fwriting.c (fwriting): Likewise.
28802         Reported by Alain Guibert <alguibert+bts@free.fr>.
28803
28804 2008-04-15  Bruno Haible  <bruno@clisp.org>
28805
28806         * modules/mathl (configure.ac): Define module indicator.
28807
28808 2008-04-15  Bruno Haible  <bruno@clisp.org>
28809
28810         * lib/logl.c (logl): Remove unused variables.
28811
28812 2008-04-15  Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28815         fails.
28816
28817 2008-04-15  Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/trim.c (trim2): Fix argument of isspace() macro.
28820
28821 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28822
28823         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28824         to 0.
28825         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28826
28827 2008-04-14  Bruno Haible  <bruno@clisp.org>
28828
28829         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28830         AC_LANG_PROGRAM argument.
28831         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28832         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28834         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28835         * m4/math_h.m4 (gl_MATH_H): Likewise.
28836         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28837         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28838         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28839         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28840         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28841         * m4/regex.m4 (gl_REGEX): Likewise.
28842         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28843         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28844         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28845         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28847         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28848         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28850
28851 2008-04-14  Jim Meyering  <meyering@redhat.com>
28852
28853         test-strtod: fix typos: s/abs/fabs/
28854         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28855
28856 2008-04-13  Bruno Haible  <bruno@clisp.org>
28857
28858         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28859         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28860         module is also used and while not building the reloc-wrapper.
28861
28862 2008-04-13  Bruno Haible  <bruno@clisp.org>
28863
28864         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28865
28866 2008-04-13  Bruno Haible  <bruno@clisp.org>
28867
28868         Fix AIX compilation failure introduced on 2008-04-02.
28869         * tests/test-frexp.c (exp): Undefine before redefining.
28870         * tests/test-frexpl.c (exp): Likewise.
28871
28872 2008-04-13  Bruno Haible  <bruno@clisp.org>
28873
28874         Work around a HP-UX stdio bug.
28875         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28876         * tests/test-ftello.c (main): Likewise.
28877         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
28878         * doc/posix-functions/ftello.texi: Likewise.
28879
28880 2008-04-13  Bruno Haible  <bruno@clisp.org>
28881
28882         Make test-signbit pass on HP-UX/hppa.
28883         * tests/test-signbit.c (minus_zerol): New variable.
28884         (test_signbitl): Use it.
28885
28886 2008-04-13  Bruno Haible  <bruno@clisp.org>
28887
28888         Make truncl work on OSF/1 4.0.
28889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
28890         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28891         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
28893         HAVE_DECL_TRUNCL.
28894         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
28895         HAVE_DECL_TRUNCL.
28896         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
28897
28898 2008-04-13  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/unictype.h: Remove trailing comma from enumeration definitions.
28901
28902 2008-04-13  Bruno Haible  <bruno@clisp.org>
28903
28904         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
28905         expression, so as to avoid HP-UX 11 cc compiler bug.
28906
28907 2008-04-13  Bruno Haible  <bruno@clisp.org>
28908
28909         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
28910
28911 2008-04-13  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/git-merge-changelog.c: Remove empty declaration outside of
28914         functions.
28915
28916 2008-04-13  Bruno Haible  <bruno@clisp.org>
28917
28918         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
28919
28920 2008-04-13  Bruno Haible  <bruno@clisp.org>
28921
28922         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
28923         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
28924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
28925         also if it exists but lacks definitions of the SHUT_* macros.
28926         * modules/sys_socket (Description): Update.
28927         Reported by Elbert Pol <e.pol@chello.nl>.
28928
28929 2008-04-13  Bruno Haible  <bruno@clisp.org>
28930
28931         * lib/localcharset.c (OS2): Don't redefine if already defined.
28932         Reported by Elbert Pol <e.pol@chello.nl>.
28933
28934 2008-04-13  Bruno Haible  <bruno@clisp.org>
28935
28936         * lib/binary-io.h [__EMX__]: Include <io.h>.
28937         Reported by Elbert Pol <e.pol@chello.nl>.
28938
28939 2008-04-12  Bruno Haible  <bruno@clisp.org>
28940
28941         * lib/fpucw.h: Enable the definitions also for x86_64.
28942         Needed for NetBSD/x86_64.
28943         Reported by Thomas Klausner <tk@giga.or.at>.
28944
28945 2008-04-12  Bruno Haible  <bruno@clisp.org>
28946
28947         * tests/test-strtod.c: Include isnand.h.
28948         (main): Use isnand instead of isnan.
28949         Reported by Jim Meyering.
28950
28951 2008-04-12  Bruno Haible  <bruno@clisp.org>
28952
28953         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
28954         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28955
28956 2008-04-12  Jim Meyering  <meyering@redhat.com>
28957
28958         * m4/math_h.m4 (gl_MATH_H): Fix typos.
28959
28960 2008-04-12  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
28963         Reported by Elbert Pol <e.pol@chello.nl>.
28964
28965 2008-04-12  Eric Blake  <ebb9@byu.net>
28966
28967         Work around Solaris 10 math.h bug.
28968         * m4/math_h.m4 (gl_MATH_H): Check for bug.
28969         (gl_MATH_H_DEFAULTS): Set up default.
28970         * modules/math (Makefile.am): Replace new indicators.
28971         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
28972         * tests/test-math.c (main): Test this.
28973         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
28974         * doc/posix-headers/math.texi (math.h): Mention bug.
28975         Reported by Nelson H. F. Beebe and Jim Meyering.
28976
28977 2008-04-11  Bruno Haible  <bruno@clisp.org>
28978
28979         Adapt to future versions of Apple GCC.
28980         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
28981         Reported by Peter O'Gorman <peter@pogma.com>.
28982
28983 2008-04-11  Bruno Haible  <bruno@clisp.org>
28984
28985         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
28986
28987 2008-04-11  Bruno Haible  <bruno@clisp.org>
28988
28989         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
28990
28991         * modules/getaddrinfo-tests (Makefile.am): Define
28992         test_getaddrinfo_LDADD.
28993
28994 2008-04-11  Bruno Haible  <bruno@clisp.org>
28995
28996         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
28997         (init): Fix syntax error.
28998         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
28999         is declared.
29000
29001 2008-04-11  Bruno Haible  <bruno@clisp.org>
29002
29003         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29004         * modules/glob (Depends-on): Add stdbool.
29005
29006 2008-04-11  Bruno Haible  <bruno@clisp.org>
29007
29008         * lib/trim.c: Include <string.h>.
29009
29010 2008-04-11  Eric Blake  <ebb9@byu.net>
29011
29012         Avoid compile failure on OS/2.
29013         * lib/regex_internal.h (internal_function): Disable optimization
29014         on OS/2 (__EMX__), where it caused compiler error.
29015         Reported by Elbert Pol.
29016
29017 2008-04-11  Bruno Haible  <bruno@clisp.org>
29018
29019         Flush the standard error stream before aborting. Needed on mingw.
29020         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29021         * tests/test-array_list.c (ASSERT): Likewise.
29022         * tests/test-array_oset.c (ASSERT): Likewise.
29023         * tests/test-avltree_list.c (ASSERT): Likewise.
29024         * tests/test-avltree_oset.c (ASSERT): Likewise.
29025         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29026         * tests/test-binary-io.c (ASSERT): Likewise.
29027         * tests/test-byteswap.c (ASSERT): Likewise.
29028         * tests/test-c-ctype.c (ASSERT): Likewise.
29029         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29030         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29031         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29032         * tests/test-c-strstr.c (ASSERT): Likewise.
29033         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29034         * tests/test-canonicalize.c (ASSERT): Likewise.
29035         * tests/test-carray_list.c (ASSERT): Likewise.
29036         * tests/test-ceilf1.c (ASSERT): Likewise.
29037         * tests/test-ceilf2.c (ASSERT): Likewise.
29038         * tests/test-ceill.c (ASSERT): Likewise.
29039         * tests/test-count-one-bits.c (ASSERT): Likewise.
29040         * tests/test-fbufmode.c (ASSERT): Likewise.
29041         * tests/test-fflush2.c (ASSERT): Likewise.
29042         * tests/test-floorf1.c (ASSERT): Likewise.
29043         * tests/test-floorf2.c (ASSERT): Likewise.
29044         * tests/test-floorl.c (ASSERT): Likewise.
29045         * tests/test-fopen.c (ASSERT): Likewise.
29046         * tests/test-fpending.c (ASSERT): Likewise.
29047         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29048         * tests/test-fpurge.c (ASSERT): Likewise.
29049         * tests/test-freadable.c (ASSERT): Likewise.
29050         * tests/test-freadahead.c (ASSERT): Likewise.
29051         * tests/test-freading.c (ASSERT): Likewise.
29052         * tests/test-freadptr.c (ASSERT): Likewise.
29053         * tests/test-freadptr2.c (ASSERT): Likewise.
29054         * tests/test-freadseek.c (ASSERT): Likewise.
29055         * tests/test-freopen.c (ASSERT): Likewise.
29056         * tests/test-frexp.c (ASSERT): Likewise.
29057         * tests/test-frexpl.c (ASSERT): Likewise.
29058         * tests/test-fseek.c (ASSERT): Likewise.
29059         * tests/test-fseeko.c (ASSERT): Likewise.
29060         * tests/test-fstrcmp.c (ASSERT): Likewise.
29061         * tests/test-ftell.c (ASSERT): Likewise.
29062         * tests/test-ftello.c (ASSERT): Likewise.
29063         * tests/test-func.c (ASSERT): Likewise.
29064         * tests/test-fwritable.c (ASSERT): Likewise.
29065         * tests/test-fwriting.c (ASSERT): Likewise.
29066         * tests/test-getdelim.c (ASSERT): Likewise.
29067         * tests/test-getline.c (ASSERT): Likewise.
29068         * tests/test-i-ring.c (ASSERT): Likewise.
29069         * tests/test-iconv-utf.c (ASSERT): Likewise.
29070         * tests/test-iconv.c (ASSERT): Likewise.
29071         * tests/test-isfinite.c (ASSERT): Likewise.
29072         * tests/test-isnand.c (ASSERT): Likewise.
29073         * tests/test-isnanf.c (ASSERT): Likewise.
29074         * tests/test-isnanl.h (ASSERT): Likewise.
29075         * tests/test-ldexpl.c (ASSERT): Likewise.
29076         * tests/test-linked_list.c (ASSERT): Likewise.
29077         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29078         * tests/test-localename.c (ASSERT): Likewise.
29079         * tests/test-lseek.c (ASSERT): Likewise.
29080         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29081         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29082         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29083         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29084         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29085         * tests/test-mbschr.c (ASSERT): Likewise.
29086         * tests/test-mbscspn.c (ASSERT): Likewise.
29087         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29088         * tests/test-mbspbrk.c (ASSERT): Likewise.
29089         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29090         * tests/test-mbsrchr.c (ASSERT): Likewise.
29091         * tests/test-mbsspn.c (ASSERT): Likewise.
29092         * tests/test-mbsstr1.c (ASSERT): Likewise.
29093         * tests/test-mbsstr2.c (ASSERT): Likewise.
29094         * tests/test-mbsstr3.c (ASSERT): Likewise.
29095         * tests/test-memchr2.c (ASSERT): Likewise.
29096         * tests/test-memmem.c (ASSERT): Likewise.
29097         * tests/test-open.c (ASSERT): Likewise.
29098         * tests/test-printf-frexp.c (ASSERT): Likewise.
29099         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29100         * tests/test-printf-posix.c (ASSERT): Likewise.
29101         * tests/test-quotearg.c (ASSERT): Likewise.
29102         * tests/test-rbtree_list.c (ASSERT): Likewise.
29103         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29104         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29105         * tests/test-round1.c (ASSERT): Likewise.
29106         * tests/test-roundf1.c (ASSERT): Likewise.
29107         * tests/test-roundl.c (ASSERT): Likewise.
29108         * tests/test-signbit.c (ASSERT): Likewise.
29109         * tests/test-sleep.c (ASSERT): Likewise.
29110         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29111         * tests/test-snprintf.c (ASSERT): Likewise.
29112         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29113         * tests/test-stat-time.c (ASSERT): Likewise.
29114         * tests/test-strcasestr.c (ASSERT): Likewise.
29115         * tests/test-strerror.c (ASSERT): Likewise.
29116         * tests/test-striconv.c (ASSERT): Likewise.
29117         * tests/test-striconveh.c (ASSERT): Likewise.
29118         * tests/test-striconveha.c (ASSERT): Likewise.
29119         * tests/test-strsignal.c (ASSERT): Likewise.
29120         * tests/test-strstr.c (ASSERT): Likewise.
29121         * tests/test-strtod.c (ASSERT): Likewise.
29122         * tests/test-trunc1.c (ASSERT): Likewise.
29123         * tests/test-trunc2.c (ASSERT): Likewise.
29124         * tests/test-truncf1.c (ASSERT): Likewise.
29125         * tests/test-truncf2.c (ASSERT): Likewise.
29126         * tests/test-truncl.c (ASSERT): Likewise.
29127         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29128         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29129         * tests/test-vasnprintf.c (ASSERT): Likewise.
29130         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29131         * tests/test-vasprintf.c (ASSERT): Likewise.
29132         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29133         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29134         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29135         * tests/test-vsnprintf.c (ASSERT): Likewise.
29136         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29137         * tests/test-wcwidth.c (ASSERT): Likewise.
29138         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29139         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29140         * tests/test-xvasprintf.c (ASSERT): Likewise.
29141         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29142         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29143         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29144         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29145         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29146         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29147         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29148         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29149         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29150         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29151         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29152         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29153         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29154         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29155         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29156         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29157         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29158         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29159         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29160         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29161         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29162         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29163         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29164         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29165         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29166         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29167         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29168         * tests/unictype/test-combining.c (ASSERT): Likewise.
29169         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29170         * tests/unictype/test-digit.c (ASSERT): Likewise.
29171         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29172         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29173         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29174         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29175         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29176         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29177         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29178         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29179         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29180         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29181         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29182         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29183         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29184         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29185         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29186         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29187         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29188         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29189         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29190         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29191         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29192         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29193         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29194         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29195         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29196         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29197         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29198         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29199         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29200         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29201         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29202         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29203         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29204         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29205         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29206         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29207         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29208         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29209         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29210         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29211         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29212         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29213         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29214         Reported by Eric Blake.
29215
29216 2008-04-11  Bruno Haible  <bruno@clisp.org>
29217
29218         * lib/wchar.in.h: Tweak comment.
29219
29220 2008-04-11  Bruno Haible  <bruno@clisp.org>
29221
29222         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29223         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29224         gl_COMMON.
29225         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29226
29227 2008-04-11  Bruno Haible  <bruno@clisp.org>
29228
29229         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29230
29231 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29232
29233         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29234         of attempting to use non-existing /dev/*random.  Based on patch
29235         from Adam Strzelecki <ono@java.pl> in
29236         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29237
29238 2008-04-08  Bruno Haible  <bruno@clisp.org>
29239
29240         Add tentative support for emx+gcc.
29241         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29242         * lib/fpurge.c (fpurge): Likewise.
29243         * lib/freadable.c (freadable): Likewise.
29244         * lib/freadahead.c (freadahead): Likewise.
29245         * lib/freading.c (freading): Likewise.
29246         * lib/freadptr.c (freadptr): Likewise.
29247         * lib/freadseek.c (freadptrinc): Likewise.
29248         * lib/fseeko.c (rpl_fseeko): Likewise.
29249         * lib/fseterr.c (fseterr): Likewise.
29250         * lib/fwritable.c (fwritable): Likewise.
29251         * lib/fwriting.c (fwriting): Likewise.
29252         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29253
29254 2008-04-09  Eric Blake  <ebb9@byu.net>
29255
29256         Avoid some autoconf warnings.
29257         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29258         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29259         * m4/afs.m4 (gl_AFS): Likewise.
29260         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29261         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29263         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29264         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29265         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29266         (AC_CHECK_DECLS_ONCE): Likewise.
29267         Rename file...
29268         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29269         gnulib-tool requires autoconf 2.59 or better.
29270         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29271
29272 2008-04-08  Eric Blake  <ebb9@byu.net>
29273
29274         Use 'git describe --match' if present (added in git 1.5.5).
29275         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29276         if possible.
29277
29278 2008-04-08  Bruno Haible  <bruno@clisp.org>
29279
29280         Add tentative support for OpenServer.
29281         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29282         _ptr, _cnt.
29283         * lib/fpurge.c (fpurge): Likewise.
29284         * lib/freadable.c (freadable): Likewise.
29285         * lib/freadahead.c (freadahead): Likewise.
29286         * lib/freading.c (freading): Likewise.
29287         * lib/freadptr.c (freadptr): Likewise.
29288         * lib/freadseek.c (freadptrinc): Likewise.
29289         * lib/fseeko.c (rpl_fseeko): Likewise.
29290         * lib/fseterr.c (fseterr): Likewise.
29291         * lib/fwritable.c (fwritable): Likewise.
29292         * lib/fwriting.c (fwriting): Likewise.
29293         Reported by Roger Cornelius <rac@tenzing.org> and
29294         Brian K. White <brian@aljex.com>.
29295
29296 2008-04-06  Jim Meyering  <meyering@redhat.com>
29297
29298         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29299
29300 2008-04-06  Bruno Haible  <bruno@clisp.org>
29301
29302         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29303         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29304         * tests/test-printf-posix.sh: Likewise.
29305         * tests/test-vfprintf-posix.sh: Likewise.
29306         * tests/test-vprintf-posix.sh: Likewise.
29307         * tests/test-xprintf-posix.sh: Likewise.
29308
29309 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29310
29311         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29312         hide error from 'ls', needed on OS/2.
29313         Report by Elbert Pol <elbert.pol@gmail.com>.
29314
29315 2008-04-04  Eric Blake  <ebb9@byu.net>
29316
29317         Make test-fseeko.c failures meaningful.
29318         * tests/test-fseeko.c: Print line number on failure.
29319         * tests/test-fseek.c: Likewise.
29320         Reported by Nelson H. F. Beebe.
29321
29322         Improve strtod bug detection check.
29323         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29324         required for Solaris 10.
29325         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29326
29327 2008-04-04  Bruno Haible  <bruno@clisp.org>
29328
29329         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29330         by m4/setenv.m4.
29331
29332 2008-04-03  Eric Blake  <ebb9@byu.net>
29333
29334         Ensure sane .version contents.
29335         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29336         version string.
29337         * build-aux/git-version-gen: Improve documentation.
29338
29339         Make GNU make output nicer.
29340         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29341         MAKECMDGOALS to enforce message for all command line targets.  Set
29342         srcdir for use in maint.mk.
29343
29344         Another maintainer tweak.
29345         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29346         a target that regenerates version.
29347
29348 2008-04-03  Jim Meyering  <meyering@redhat.com>
29349
29350         vc-list-files: don't cause coreutils "make po-check" failure
29351         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29352
29353 2008-04-03  Eric Blake  <ebb9@byu.net>
29354
29355         Allow VPATH usage of vc-list-files.
29356         * build-aux/vc-list-files (scriptversion): Add timestamp.
29357         (options): Add --help, --version, -C.
29358         (CVS): Support installed cvsu.
29359
29360 2008-04-02  Bruno Haible  <bruno@clisp.org>
29361
29362         Avoid some "statement with no effect" warnings from gcc.
29363         * tests/test-wctype.c (main): Explicitly ignore unused values.
29364         Reported by Jim Meyering.
29365
29366 2008-04-02  Jim Meyering  <meyering@redhat.com>
29367
29368         Avoid some warnings from "gcc -Wshadow".
29369         * tests/test-frexp.c (exp): Define to a different identifier.
29370         * tests/test-frexpl.c (exp): Likewise.
29371
29372 2008-04-03  Jim Meyering  <meyering@redhat.com>
29373
29374         bootstrap: remove dangling *.[ch] symlinks from lib
29375         * build-aux/bootstrap [dangling symlink removal]: Move find's
29376         -depth option to precede all others, to avoid a warning.
29377         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29378
29379 2008-04-02  Bruno Haible  <bruno@clisp.org>
29380
29381         Avoid some warnings from "gcc -Wshadow".
29382         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29383         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29384         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29385         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29386         Reported by Jim Meyering.
29387
29388 2008-04-01  Bruno Haible  <bruno@clisp.org>
29389
29390         Fix test to work on IRIX 6.5 with cc.
29391         * tests/test-math.c (numeric_equal): New function.
29392         (main): Use it.
29393
29394 2008-04-01  Bruno Haible  <bruno@clisp.org>
29395
29396         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29397
29398 2008-04-01  Bruno Haible  <bruno@clisp.org>
29399
29400         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29401         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29402         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29403         (Depends-on): Remove math.
29404
29405         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29406         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29407         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29408         (Depends-on): Remove math.
29409
29410         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29411         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29412         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29413         (Depends-on): Remove math.
29414         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29415         (Depends-on): Remove math.
29416
29417         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29418         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29419         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29420         (Depends-on): Remove math.
29421         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29422         (Depends-on): Remove math.
29423
29424         * tests/test-round1.c: Include nan.h.
29425         (main): Use NaNd instead of NAN.
29426         * modules/round-tests (Files): Add tests/nan.h.
29427
29428         * tests/test-trunc1.c: Include nan.h.
29429         (main): Use NaNd instead of NAN.
29430         * modules/trunc-tests (Files): Add tests/nan.h.
29431
29432         * tests/test-roundf1.c: Include nan.h.
29433         (main): Use NaNf instead of NAN.
29434         * modules/roundf-tests (Files): Add tests/nan.h.
29435
29436         * tests/test-truncf1.c: Include nan.h.
29437         (main): Use NaNf instead of NAN.
29438         * modules/truncf-tests (Files): Add tests/nan.h.
29439
29440         * tests/test-ceilf1.c: Include nan.h.
29441         (main): Use NaNf instead of NAN.
29442         * modules/ceilf-tests (Files): Add tests/nan.h.
29443
29444         * tests/test-floorf1.c: Include nan.h.
29445         (main): Use NaNf instead of NAN.
29446         * modules/floorf-tests (Files): Add tests/nan.h.
29447
29448         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29449         (main): Use NaNf instead of NAN.
29450         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29451
29452         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29453         (main): Use NaNd instead of NAN.
29454         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29455
29456         * tests/test-frexp.c: Include nan.h.
29457         (main): Use NaNd instead of NAN.
29458         * modules/frexp-tests (Files): Add tests/nan.h.
29459
29460         * lib/isnan.c: Don't include <math.h>.
29461         (FUNC): Don't use NAN macro.
29462         * modules/isnand-nolibm (Depends-on): Remove math.
29463         * modules/isnanf-nolibm (Depends-on): Remove math.
29464         * modules/isnanl (Depends-on): Remove math.
29465         * modules/isnanl-nolibm (Depends-on): Remove math.
29466
29467         * tests/nan.h: New file.
29468
29469 2008-04-01  Eric Blake  <ebb9@byu.net>
29470
29471         Fix typos.
29472         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29473         values to be the right type.
29474
29475         For now, cater to gnulib strtod inaccuracies.
29476         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29477         fractional results.  While not as nice from a QoI perspective, it
29478         is a quicker patch than correctly implementing decimal to binary
29479         rounding.
29480
29481 2008-03-31  Eric Blake  <ebb9@byu.net>
29482
29483         Guarantee a definition of NAN.
29484         * lib/math.in.h (NAN): Define if missing.
29485         * tests/test-math.c (main): Test it.
29486         * doc/posix-headers/math.texi (math.h): Document this.
29487         * lib/isnan.c (rpl_isnand): Use it.
29488         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29489         * tests/test-floorf1.c (NaN): Likewise.
29490         * tests/test-frexp.c (NaN): Likewise.
29491         * tests/test-isnand.c (NaN): Likewise.
29492         * tests/test-isnanf.c (NaN): Likewise.
29493         * tests/test-round1.c (NaN): Likewise.
29494         * tests/test-roundf1.c (NaN): Likewise.
29495         * tests/test-snprintf-posix.h (NaN): Likewise.
29496         * tests/test-sprintf-posix.h (NaN): Likewise.
29497         * tests/test-trunc1.c (NaN): Likewise.
29498         * tests/test-truncf1.c (NaN): Likewise.
29499         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29500         * tests/test-vasprintf-posix.c (NaN): Likewise.
29501         * modules/isnand-nolibm (Depends-on): Add math.
29502         * modules/isnanf-nolibm (Depends-on): Likewise.
29503         * modules/isnanl (Depends-on): Likewise.
29504         * modules/isnanl-nolibm (Depends-on): Likewise.
29505         * modules/snprintf-posix-tests (Depends-on): Likewise.
29506         * modules/sprintf-posix-tests (Depends-on): Likewise.
29507         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29508         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29509         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29510         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29511
29512 2008-03-31  Bruno Haible  <bruno@clisp.org>
29513
29514         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29515         * doc/posix-functions/strtod.texi: Likewise.
29516
29517 2008-03-31  Bruno Haible  <bruno@clisp.org>
29518
29519         * tests/test-strtod.c (main): Don't use C99 syntax.
29520
29521 2008-03-31  Bruno Haible  <bruno@clisp.org>
29522
29523         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29524         Reported by Eric Blake.
29525
29526 2008-03-31  Jim Meyering  <meyering@redhat.com>
29527
29528         Don't compare actual signbit return values.
29529         * tests/test-strtod.c (main): Rather, compare only their
29530         zero/non-zero nature.
29531
29532 2008-03-31  Eric Blake  <ebb9@byu.net>
29533
29534         More strtod documentation.
29535         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29536         failures as distinct bugs.
29537
29538 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29539
29540         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29541         Problem reported by Erik Benada in
29542         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29543
29544 2008-03-30  Bruno Haible  <bruno@clisp.org>
29545
29546         * tests/test-strtod.c: Add comments about which assertion fails on which
29547         platform.
29548         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29549
29550 2008-03-30  Eric Blake  <ebb9@byu.net>
29551
29552         Test signbit behavior on zeros.
29553         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29554         (test_signbitd, test_signbitl): Likewise.
29555
29556         More strtod touchups.
29557         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29558         sign of negative underflow, for now.  Use .5, not .1.
29559         * doc/posix-functions/strtod.texi (strtod): Mention these
29560         limitations.
29561         Reported by Jim Meyering.
29562
29563 2008-03-30  Bruno Haible  <bruno@clisp.org>
29564
29565         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29566         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29567
29568 2008-03-30  Bruno Haible  <bruno@clisp.org>
29569
29570         Avoid failure when attempting to return empty iconv results on some
29571         platforms.
29572         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29573         allocation, don't report ENOMEM when the resulting string is empty.
29574
29575 2008-03-30  Bruno Haible  <bruno@clisp.org>
29576
29577         Fix buffer overrun.
29578         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29579         Don't consider the width for tmp_length. Check count against tmp_length
29580         before doing the padding. Ensure enough allocation during padding.
29581
29582 2008-03-30  Eric Blake  <ebb9@byu.net>
29583
29584         strtod touchups.
29585         * lib/strtod.c (strtod): Avoid compiler warnings.
29586         Reported by Jim Meyering.
29587
29588 2008-03-30  Bruno Haible  <bruno@clisp.org>
29589
29590         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29591         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29592         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29593         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29594         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29595         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29596         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29597         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29598
29599         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29600         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29601         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29602         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29603         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29604         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29605         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29606         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29607
29608         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29609         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29610         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29611         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29612         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29613         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29614         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29615         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29616
29617         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29618         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29619
29620         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29621         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29622
29623         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29624         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29625
29626         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29628         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29629
29630         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29632         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29633
29634         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29636         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29637
29638         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29640         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29641
29642         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29643         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29645         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29646         (Depends-on): Add EOVERFLOW.
29647         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29648         (Depends-on): Add EOVERFLOW.
29649         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29650         (Depends-on): Add EOVERFLOW.
29651         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29652         (Depends-on): Add EOVERFLOW.
29653         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29654         (Depends-on): Add EOVERFLOW.
29655         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29656         (Depends-on): Add EOVERFLOW.
29657         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29658         (Depends-on): Add EOVERFLOW.
29659         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29660         (Depends-on): Add EOVERFLOW.
29661
29662         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29663         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29664         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29665
29666         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29668         * modules/snprintf (Depends-on): Add EOVERFLOW.
29669
29670         * lib/poll.c (EOVERFLOW): Remove fallback.
29671         * modules/poll (Depends-on): Add EOVERFLOW.
29672
29673         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29674         * modules/getugroups (Depends-on): Add EOVERFLOW.
29675
29676         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29677         * modules/getdelim (Depends-on): Add EOVERFLOW.
29678
29679         * lib/ftell.c (EOVERFLOW): Remove fallback.
29680         * modules/ftell (Depends-on): Add EOVERFLOW.
29681
29682         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29684         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29685
29686         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29687
29688         * modules/EOVERFLOW-tests: New file.
29689         * tests/test-EOVERFLOW.c: New file.
29690
29691         * modules/EOVERFLOW: New file.
29692         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29693
29694 2008-03-30  Bruno Haible  <bruno@clisp.org>
29695
29696         Fix bug introduced on 2007-06-10.
29697         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29698         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29699
29700 2008-03-30  Bruno Haible  <bruno@clisp.org>
29701
29702         Improve freadseek's efficiency after ungetc.
29703         * lib/freadseek.c: Include freadahead.h.
29704         (freadptrinc): New function, extracted from freadseek.
29705         (freadseek): Use it in a loop. Use freadahead to determine the number
29706         of loop iterations.
29707         * modules/freadseek (Depends-on): Add freadahead.
29708         (configure.ac): Require AC_C_INLINE.
29709
29710 2008-03-30  Bruno Haible  <bruno@clisp.org>
29711
29712         * lib/freadseek.c (freadseek): Don't ignore the return value of
29713         freadptr.
29714
29715 2008-03-29  Eric Blake  <ebb9@byu.net>
29716
29717         Add hex float support.
29718         * modules/strtod (Depends-on): Add c-ctype.
29719         (Link): Mention POW_LIB.
29720         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29721         whitespace between 'e' and exponent.
29722         * tests/test-strtod.c (main): Enable hex float tests.
29723         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29724         now provides.
29725
29726         Document various strtod bugs, with some fixes.
29727         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29728         "-0x", "inf", "nan", and hex constants.
29729         * doc/posix-functions/atof.texi (atof): Likewise.
29730         * modules/stdlib (Makefile.am): Support strtod.
29731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29732         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29733         detect additional strtod bugs.
29734         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29735         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29736         bool where appropriate.  Parse 'inf' and 'nan'.
29737         * tests/test-strtod.c: New file.
29738         * modules/strtod (Depends-on): Add stdbool, stdlib.
29739         (configure.ac): Turn on module indicator.
29740         * modules/strtod-tests: New module.
29741
29742 2008-03-29  Eric Blake  <ebb9@byu.net>
29743
29744         Fix ftell on mingw.
29745         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29746         * modules/ftell-tests (Depends-on): Add binary-io.
29747         * modules/ftello-tests (Depends-on): Likewise.
29748         * tests/test-ftell.c (main): Enhance test to cover behavior after
29749         ungetc.  Enforce binary mode.
29750         * tests/test-ftello.c (main): Likewise.
29751
29752         Pass test-freadseek on cygwin.
29753         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29754         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29755         ungetc buffer.
29756
29757         * tests/test-fflush2.c (main): Fix typo.
29758
29759 2008-03-29  Bruno Haible  <bruno@clisp.org>
29760
29761         * tests/test-fflush2.c (main): Temporarily disable the contents of
29762         this test.
29763         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29764         Reported by Eric Blake.
29765
29766 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29767
29768         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29769         (GC_SHA224_DIGEST_SIZE): Add.
29770
29771         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29772         (gc_hash_digest_length): Likewise.
29773         (gc_hash_buffer): Likewise.
29774
29775 2008-03-25  Bruno Haible  <bruno@clisp.org>
29776
29777         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29778         detail which gettext release to use.
29779         Reported by Simon Josefsson.
29780
29781 2008-03-26  Jim Meyering  <meyering@redhat.com>
29782
29783         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29784         * modules/gnumakefile (clean-GNUmakefile): Also, use
29785         test ... && ... || : syntax rather than if-then ... fi.
29786
29787         gnumakefile: Don't double-quote-expand $(VPATH) value.
29788         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29789
29790 2008-03-24  Eric Blake  <ebb9@byu.net>
29791
29792         Alter GNUmakefile to install into top directory.
29793         * modules/maintainer-makefile: Split, and add dependency...
29794         * modules/gnumakefile: to this new module.
29795         * build-aux/GNUmakefile: Move...
29796         * top/GNUmakefile: ...here.
29797         * build-aux/maint.mk: Move...
29798         * top/maint.mk: ...here.
29799         * MODULES.html.sh (Support for maintaining...): Document new
29800         module.
29801
29802 2008-03-23  Bruno Haible  <bruno@clisp.org>
29803
29804         * gnulib-tool: New options --vc-files, --no-vc-files.
29805         (func_usage): Document them.
29806         (vc_files): New variable.
29807         (func_import): Consider vc_files.
29808         (func_create_testdir): Set vc_files to empty.
29809         Suggested by Jim Meyering and Karl Berry.
29810
29811 2008-03-23  Bruno Haible  <bruno@clisp.org>
29812
29813         Fix regex compilation error on HP-UX 11.
29814         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29815         * modules/regex (Files): Add m4/mbstate_t.m4.
29816         Reported by Ton Voon <ton.voon@altinity.com>.
29817
29818 2008-03-23  Bruno Haible  <bruno@clisp.org>
29819
29820         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29821
29822 2008-03-23  Eric Blake  <ebb9@byu.net>
29823             Bruno Haible  <bruno@clisp.org>
29824
29825         Install files from top/ in the destination directory.
29826         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29827         augmentation also for the files from top/.
29828         (func_import, func_create_testdir): Rewrite file names:
29829         top/filename -> filename.
29830
29831 2008-03-23  Bruno Haible  <bruno@clisp.org>
29832
29833         Tweak "gnulib --version" output.
29834         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29835
29836 2008-03-23  Bruno Haible  <bruno@clisp.org>
29837
29838         Tweak "gnulib --version" output.
29839         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29840         rather than contents of ChangeLog, when possible.
29841
29842 2008-03-21  Eric Blake  <ebb9@byu.net>
29843
29844         More --version tweaks.
29845         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29846         date of last ChangeLog entry.
29847
29848 2008-03-21  Jim Meyering  <meyering@redhat.com>
29849
29850         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29851
29852 2008-03-20  Eric Blake  <ebb9@byu.net>
29853
29854         VPATH fix.
29855         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29856
29857 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29858
29859         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29860         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29861
29862 2008-03-20  Eric Blake  <ebb9@byu.net>
29863
29864         Sync GNUmakefile with coreutils.
29865         * build-aux/GNUmakefile (have-Makefile): Rename...
29866         (_have-Makefile): ...to this, for namespace consideration.
29867         (GNUmakefile.cfg): Include, if present.
29868         (_autoreconf): Define a default.
29869         (_is-dist-target): New rule for rebuilds to pick up intra-release
29870         version.
29871         (maint-cfg.mk): Rename...
29872         (cfg.mk): ...to this.
29873
29874 2008-03-18  Jim Meyering  <meyering@redhat.com>
29875
29876         New script and module: mktempd
29877         * MODULES.html.sh (maint+release support): Add mktempd.
29878         * build-aux/mktempd: New file.
29879         * modules/mktempd: New file.
29880
29881 2008-03-15  Jim Meyering  <meyering@redhat.com>
29882
29883         Undo last change.
29884         * lib/sha1.c, lib/md5.c: 63 != ~63.
29885         Reported by Andreas Schwab.
29886
29887         sha1.c, md5.c: Hoist a redundant expression.
29888         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
29889         "ctx->buflen" only once, before calling *_process_block.
29890         * lib/md5.c (md5_process_bytes): Likewise.
29891
29892 2008-03-14  Eric Blake  <ebb9@byu.net>
29893
29894         Bump copyright year in files generated by gnulib-tool.
29895         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
29896         gnulib-tool, rather than hard-coding it.
29897
29898         Fix 'gnulib-tool --version' output to work with git.
29899         * gnulib-tool (func_gnulib_dir): New function, extracted from...
29900         (startup): ...here.
29901         (func_version): Use it to invoke git-version-gen, rather than
29902         relying on CVS keyword expansion.  Modernize wording.
29903         (cvsdatestamp, last_checkin_date, version): Kill unused
29904         variables.
29905
29906 2008-03-12  Jim Meyering  <meyering@redhat.com>
29907
29908         Recognize optional cast of the argument to free.
29909         * build-aux/useless-if-before-free: Update regexps.
29910
29911         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
29912
29913 2008-03-11  Bruno Haible  <bruno@clisp.org>
29914
29915         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
29916         by a single package.
29917         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
29918         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
29919         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
29920         Reported by Sam Steingold <sds@gnu.org>.
29921
29922 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29923
29924         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
29925         repositories.
29926
29927 2008-03-11  Bruno Haible  <bruno@clisp.org>
29928
29929         Avoid conflicts between local macro definitions.
29930         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29931         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
29932
29933 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
29934             Bruno Haible  <bruno@clisp.org>
29935
29936         Make va_copy work with some version of xlc on AIX 5.1.
29937         * lib/stdarg.in.h: New file.
29938         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
29939         On AIX, use a <stdarg.h> file substitute.
29940         * modules/stdarg (Files): Add lib/stdarg.in.h.
29941         (Depends-on): Add include_next.
29942         (Makefile.am): Build a stdarg.h substitute if requested.
29943         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
29944
29945 2008-03-10  Bruno Haible  <bruno@clisp.org>
29946
29947         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
29948         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29949         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29950
29951 2008-03-10  Bruno Haible  <bruno@clisp.org>
29952
29953         * modules/stdlib (Depends-on): Add include_next, remove
29954         absolute-header.
29955
29956 2008-03-09  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/freadahead.h (freadahead): Document more precisely.
29959         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
29960         the sum of both buffer sizes.
29961         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
29962         * NEWS: Document the change.
29963
29964 2008-03-09  Bruno Haible  <bruno@clisp.org>
29965
29966         Extend freadptr to return also the buffer size.
29967         * lib/freadptr.h (freadptr): Add sizep argument.
29968         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
29969         (freadptr): Add sizep argument. Determine buffer size like freadahead
29970         does.
29971         * tests/test-freadptr.c: Don't include freadahead.h.
29972         (main): Adapt for new calling convention of freadptr.
29973         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
29974         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
29975         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
29976         tests/test-freadptr2.sh.
29977         (Depends): Remove freadahead.
29978         (TESTS): Add test-freadptr2.sh.
29979         (check_PROGRAMS): Add test-freadptr2.
29980
29981 2008-03-09  Bruno Haible  <bruno@clisp.org>
29982
29983         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
29984         Report and solution by Simon Josefsson.
29985
29986 2008-03-06  Bruno Haible  <bruno@clisp.org>
29987
29988         Make fflush after ungetc work on BSD platforms.
29989         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
29990         * tests/test-fflush2.c: New file.
29991         * tests/test-fflush2.sh: New file.
29992         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
29993         tests/test-fflush2.c.
29994         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
29995         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
29996
29997 2008-03-06  Eric Blake  <ebb9@byu.net>
29998
29999         Likewise for ftello.
30000         * modules/ftello (Dependencies): Add extensions.
30001         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30002
30003 2008-03-06  Bruno Haible  <bruno@clisp.org>
30004
30005         * modules/fseeko (Dependencies): Add extensions.
30006         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30007         Needed on glibc systems.
30008
30009 2008-03-06  Bruno Haible  <bruno@clisp.org>
30010
30011         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30012         email address.
30013         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30014
30015 2008-03-06  Bruno Haible  <bruno@clisp.org>
30016
30017         * users.txt: Add libgnupdf.
30018
30019 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30020
30021         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30022         (Header File Substitutes, Function Substitutes,
30023         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30024         (Build robot for gnulib): Fix typo.
30025
30026 2008-03-06  Bruno Haible  <bruno@clisp.org>
30027
30028         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30029         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30030
30031 2008-03-06  Bruno Haible  <bruno@clisp.org>
30032
30033         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30034         * doc/gnulib.texi: Include it.
30035
30036 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30037
30038         * modules/func (License): Change license to unlimited; there was
30039         no LGPL parts in the module anyway.
30040
30041 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30042
30043         * modules/__func__: Renamed to modules/func.
30044         * modules/__func__-tests: Renamed to modules/func-tests.
30045         * tests/test-__func__.c: Renamed to tests/test-func.c.
30046         * m4/__func__.m4: Renamed to m4/func.m4.
30047         * doc/gnulib.texi (__func__): Section renamed to func.
30048         Suggested by Eric Blake <ebb9@byu.net>.
30049
30050 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30051
30052         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30053         about __func__.  Make example self-contained.  Suggested by Eric
30054         Blake <ebb9@byu.net>.
30055
30056         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30057         Suggested by Eric Blake <ebb9@byu.net>.
30058
30059 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30060
30061         * modules/__func__: New file.
30062         * modules/__func__-tests: New file.
30063         * tests/test-__func__.c: New file.
30064         * m4/__func__.m4: New file.
30065         * doc/gnulib.texi (__func__): Document __func__ module.
30066
30067 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30068
30069         * modules/byteswap (License): Re-license as LGPLv2+.
30070
30071 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30072
30073         * doc/Makefile: Add pdf target.
30074
30075 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30076
30077         * modules/inline (License): Use 'unlimited', since there are only
30078         *.m4 files in this module.
30079
30080 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30081             Bruno Haible  <bruno@clisp.org>
30082
30083         Add support for HP C 7.1 on OpenVMS 8.3.
30084         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30085
30086 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30087
30088         Update VMS specifics.
30089         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30090
30091 2008-03-02  Jim Meyering  <meyering@redhat.com>
30092
30093         Remove the last dependency on the "free" module.
30094         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30095         Reported by Bob Proulx.
30096
30097         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30098
30099         Remove useless "if" tests before free.  Deprecate "free" module.
30100         * doc/posix-functions/free.texi: Mention that this
30101         module is no longer useful.
30102         * modules/free (Notice): Say this module is obsolete.
30103         * modules/readutmp (Depends-on): Remove free.
30104         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30105         * lib/putenv.c (putenv): Likewise.
30106         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30107         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30108         * tests/test-c-strcasestr.c (main): Likewise.
30109         * tests/test-c-strstr.c (main): Likewise.
30110         * tests/test-mbscasestr1.c (main): Likewise.
30111         * tests/test-mbscasestr2.c (main): Likewise.
30112         * tests/test-mbsstr1.c (main): Likewise.
30113         * tests/test-mbsstr2.c (main): Likewise.
30114         * tests/test-memmem.c (main): Likewise.
30115         * tests/test-strcasestr.c (main): Likewise.
30116         * tests/test-striconv.c (main): Likewise.
30117         * tests/test-striconveh.c (main): Likewise.
30118         * tests/test-striconveha.c (main): Likewise.
30119         * tests/test-strstr.c (main): Likewise.
30120
30121         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30122
30123         bootstrap: sync from coreutils again
30124         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30125
30126 2008-03-01  Jim Meyering  <meyering@redhat.com>
30127
30128         bootstrap: sync from coreutils
30129         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30130         also when the target doesn't exist.
30131
30132 2008-03-01  Eric Blake  <ebb9@byu.net>
30133
30134         Fix bugs in last patch.
30135         * lib/memchr2.c (memchr2): Fix typo.
30136         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30137         extension.
30138         Reported by Bruce Korb.
30139
30140         New module 'memchr2'.
30141         * modules/memchr2: New file.
30142         * modules/memchr2-tests: Likewise.
30143         * lib/memchr2.h: Likewise.
30144         * lib/memchr2.c: Likewise, based on memchr.c.
30145         * tests/test-memchr2.c: New test.
30146         * MODULES.html.sh (String handling): Add memchr2.
30147
30148 2008-02-29  Bruno Haible  <bruno@clisp.org>
30149
30150         * modules/freadseek-tests: New file.
30151         * tests/test-freadseek.sh: New file.
30152         * tests/test-freadseek.c: New file.
30153
30154         New module 'freadseek'.
30155         * modules/freadseek: New file.
30156         * lib/freadseek.h: New file.
30157         * lib/freadseek.c: New file.
30158         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30159
30160 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30161
30162         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30163         wydawca.
30164
30165         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30166         program_invocation_name and program_invocation_short_name are
30167         present.
30168
30169 2008-02-28  Bruno Haible  <bruno@clisp.org>
30170
30171         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30172         * tests/test-freadptr.sh: Also test non-seekable stdin.
30173
30174 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30175
30176         * build-aux/bootstrap (source_base, m4_base)
30177         (doc_base, tests_base): New variables.
30178         (gnulib_tool_options): Do not hardcode base directories, use
30179         the above variables instead.
30180
30181 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30182
30183         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30184
30185 2008-02-28  Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/freadptr-tests: New file.
30188         * tests/test-freadptr.sh: New file.
30189         * tests/test-freadptr.c: New file.
30190
30191         New module 'freadptr'.
30192         * modules/freadptr: New file.
30193         * lib/freadptr.h: New file.
30194         * lib/freadptr.c: New file.
30195         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30196
30197 2008-02-26  Karl Berry  <karl@freefriends.org>
30198
30199         Sync from Libtool:
30200         * libltdl/argz.c (argz_add, argz_count): New functions.
30201         * libltdl/argz.in.h: Declare them.
30202         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30203
30204 2008-02-22  Bruno Haible  <bruno@clisp.org>
30205
30206         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30207         is a pointer type.  Needed for HP-UX 10.
30208         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30209         * doc/posix-functions/gmtime_r.texi: Likewise.
30210         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30211
30212 2008-02-24  Bruno Haible  <bruno@clisp.org>
30213
30214         * modules/environ-tests: New file.
30215         * tests/test-environ.c: New file.
30216
30217         New module 'environ'.
30218         * modules/environ: New file.
30219         * lib/unistd.in.h (environ): New declaration.
30220         * m4/environ.m4: New file.
30221         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30222         after use.
30223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30224         HAVE_DECL_ENVIRON.
30225         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30226         HAVE_DECL_ENVIRON.
30227         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30228         wrong claim that 'environ' is missing on some systems.
30229         * modules/execute (Depends-on): Add environ.
30230         * lib/execute.c (environ): Remove fallback declaration.
30231         * modules/pipe (Depends-on): Add environ.
30232         * lib/pipe.c (environ): Remove fallback declaration.
30233         * modules/setenv (Depends-on): Add environ.
30234         * lib/setenv.c (environ): Remove fallback declaration.
30235         * modules/unsetenv (Depends-on): Add environ.
30236         * lib/unsetenv.c (environ): Remove fallback declaration.
30237         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30238         m4/environ.m4.
30239         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30240         (gl_PREREQ_UNSETENV): Likewise.
30241
30242 2008-02-24  Bruno Haible  <bruno@clisp.org>
30243
30244         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30245
30246 2008-02-20  Bob Proulx  <bob@proulx.com>
30247
30248         Enable use of older two part flavor 'git describe'.
30249         * build-aux/git-version-gen: If using the older two part flavor of
30250         git version then recreate the third part now present in the
30251         newer three part flavor of git describe.
30252
30253 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30254
30255         * lib/fts.c (fts_build): Typo correction to comment.
30256
30257 2008-02-17  Bruno Haible  <bruno@clisp.org>
30258
30259         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30260         generating no-op conflicts.
30261
30262 2008-02-17  Bruno Haible  <bruno@clisp.org>
30263
30264         Speed up by 10%.
30265         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30266         result_entries, rather than an index-based loop.
30267
30268 2008-02-17  Bruno Haible  <bruno@clisp.org>
30269
30270         Speed up by 25%.
30271         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30272         'hashcode_cached'.
30273         (entry_create): New function.
30274         (entry_hashcode): Use the cached hashcode if possible.
30275         (read_changelog_file, try_split_merged_entry): Use entry_create.
30276
30277 2008-02-17  Bruno Haible  <bruno@clisp.org>
30278
30279         Speed up from O(n^2) to O(n) for long ChangeLog files.
30280         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30281         (read_changelog_file): Change implementation of entries_reversed list
30282         to rbtreehash.
30283         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30284
30285 2008-02-17  Bruno Haible  <bruno@clisp.org>
30286
30287         New option --split-merged-entry.
30288         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30289         (find_paragraph_end, try_split_merged_entry): New functions.
30290         (long_options): Add option --split-merged-entry.
30291         (usage): Document option --split-merged-entry.
30292         (main): Implement option --split-merged-entry.
30293         Reported by Eric Blake.
30294
30295 2008-02-17  Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/git-merge-changelog.c: Include c-strstr.h.
30298         (main): Support the "git pull --rebase" situation.
30299         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30300         Reported by Eric Blake.
30301
30302 2008-02-16  Eric Blake  <ebb9@byu.net>
30303
30304         Avoid doubling \ in common case of "c-maybe" quoting style.
30305         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30306         eliding outer quotes.
30307         * lib/quotearg.h: Document this.
30308         * tests/test-quotearg.c (result_strings, inputs, results_g)
30309         (flag_results, locale_results): Test it by adding a new string to
30310         each test group.
30311         (compare_strings): Test new string.
30312
30313 2008-02-13  Eric Blake  <ebb9@byu.net>
30314
30315         Avoid trigraph quoting in default output.
30316         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30317         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30318         unless explicitly requested.
30319         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30320
30321 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30322
30323         Don't rely on signed integer overflowing to negative value.
30324         * lib/getugroups.c (getugroups): Include <limits.h>.
30325         Instead, compare against INT_MAX, and increment only if the test passes.
30326
30327 2008-02-13  Jim Meyering  <meyering@redhat.com>
30328         and Eric Blake  <ebb9@byu.net>
30329
30330         Avoid shadowing warning and compile errors on Linux.
30331         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30332         forwarding macros on Linux.
30333         (dcgettext): Define a stub, for Linux.
30334         (results_g, main): Avoid warnings.
30335
30336 2008-02-12  Eric Blake  <ebb9@byu.net>
30337
30338         Silence warning in last patch.
30339         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30340
30341         Quotearg part 4: add tests, fix c-maybe colon quoting.
30342         * lib/quotearg.h: Improve documentation.
30343         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30344         escapes when adding outer quotes.  When quoting trigraphs, use
30345         valid C notation.  When quoting NUL, omit extra characters if next
30346         character is not digit.  Alter prototype.
30347         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30348         callers.
30349         * modules/quotearg-tests: New module.
30350         * tests/test-quotearg.c: New test.
30351
30352 2008-02-07  Eric Blake  <ebb9@byu.net>
30353
30354         Quotearg part 3: add flag to control outer quote elision.
30355         * lib/quotearg.h (c_maybe_quoting_style): New style.
30356         (enum quoting_flags): Better documentation of flags.
30357         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30358         c-maybe style.
30359         (quotearg_buffer_restyled): Handle new flag to elide outer
30360         quotes.
30361
30362         Quotearg part 2: add flag that can control NUL elision.
30363         * lib/quotearg.h (set_quoting_flags): New prototype.
30364         * lib/quotearg.c (struct quoting_options): Add flag field.
30365         (set_quoting_flags): New function.
30366         (quotearg_buffer_restyled): Add flags parameter.
30367         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30368         (quotearg_n_options): Set the flag, since length cannot be
30369         returned.
30370         (quoting_options_from_style): Default flags correctly.
30371
30372         Quotearg part 1: more wrappers, restore quotearg_char state.
30373         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30374         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30375         (quotearg_colon_mem): New wrappers.
30376         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30377         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30378         functions.
30379         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30380         (quotearg_colon_mem): New functions.
30381
30382 2008-02-11  Bruno Haible  <bruno@clisp.org>
30383
30384         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30385         library in the current directory: it does not work with parallel make.
30386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30387
30388 2008-02-11  Bruno Haible  <bruno@clisp.org>
30389
30390         * .gitattributes: New file.
30391
30392 2008-02-11  Jim Meyering  <meyering@redhat.com>
30393
30394         useless-if-before-free: Fix reversed exit values.
30395         * build-aux/useless-if-before-free: Use correct values
30396         for EXIT_MATCH and EXIT_NO_MATCH.
30397
30398         * build-aux/useless-if-before-free: Close stdout carefully.
30399
30400 2008-02-10  Bruno Haible  <bruno@clisp.org>
30401
30402         New module 'git-merge-changelog'.
30403         * modules/git-merge-changelog: New file.
30404         * lib/git-merge-changelog.c: New file.
30405
30406 2008-02-10  Jim Meyering  <meyering@redhat.com>
30407
30408         useless-if-before-free: New option: --list (-l).
30409
30410         useless-if-before-free: Don't exit immediately upon open failure.
30411         * build-aux/useless-if-before-free: Exit 2 for errors.
30412         Upon failure to open a file, don't exit immediately.
30413         Rather, just warn and continue with any remaining files.
30414
30415 2008-02-10  Bruno Haible  <bruno@clisp.org>
30416
30417         New abstract list operation 'node_set_value'.
30418         * lib/gl_list.h (gl_list_node_set_value): New function.
30419         (struct gl_list_implementation): New field node_set_value.
30420         * lib/gl_list.c (gl_list_node_set_value): New function.
30421         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30422         (gl_array_list_implementation): Update.
30423         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30424         (gl_carray_list_implementation): Update.
30425         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30426         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30427         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30428         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30429         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30430         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30431         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30432         Update.
30433         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30434         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30435         (gl_sublist_list_implementation): Update.
30436
30437 2008-02-10  Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30440         Needed when ELEMENT is #defined to 'some_type *'.
30441
30442 2008-02-10  Jim Meyering  <meyering@redhat.com>
30443
30444         New script and module: useless-if-before-free
30445         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30446         * build-aux/useless-if-before-free: New file.
30447         * modules/useless-if-before-free: New file.
30448
30449         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30450
30451         xstrtol_error: Fix typo.
30452         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30453         s/exit_failure/exit_status/.
30454
30455 2008-02-09  Jim Meyering  <meyering@redhat.com>
30456
30457         New script and module: gitlog-to-changelog
30458         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30459         * modules/gitlog-to-changelog: New file.
30460         * build-aux/gitlog-to-changelog: New file.
30461
30462 2008-02-08  Jim Meyering  <meyering@redhat.com>
30463
30464         Avoid two "parameter unused" warnings.
30465         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30466         Mark "st" as used.
30467
30468         Use "git COMMAND", not "git-COMMAND".
30469         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30470         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30471         * build-aux/git-version-gen: Use "git status", not "git-status".
30472
30473 2008-02-07  Bruno Haible  <bruno@clisp.org>
30474
30475         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30476         Avoids a crash on Windows Vista.
30477         Reported by Adam Strzelecki <ono@java.pl> via
30478         Simon Josefsson <simon@josefsson.org>.
30479
30480 2008-02-06  Bruno Haible  <bruno@clisp.org>
30481
30482         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30483         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30484         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30486         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30488         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30489         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30497         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30498         left-adjust flag.
30499         * tests/test-snprintf-posix.h (test_function): Likewise.
30500         * tests/test-sprintf-posix.h (test_function): Likewise.
30501         * tests/test-vasprintf-posix.c (test_function): Likewise.
30502         * doc/posix-functions/fprintf.texi: Update.
30503         * doc/posix-functions/printf.texi: Update.
30504         * doc/posix-functions/snprintf.texi: Update.
30505         * doc/posix-functions/sprintf.texi: Update.
30506         * doc/posix-functions/vfprintf.texi: Update.
30507         * doc/posix-functions/vprintf.texi: Update.
30508         * doc/posix-functions/vsnprintf.texi: Update.
30509         * doc/posix-functions/vsprintf.texi: Update.
30510         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30511
30512 2008-02-06  Bruno Haible  <bruno@clisp.org>
30513
30514         Fix bug introduced on 2008-01-26.
30515         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30516
30517 2008-02-06  Bruno Haible  <bruno@clisp.org>
30518
30519         Fix bug introduced on 2007-06-10.
30520         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30521         !NEED_PRINTF_FLAG_ZERO.
30522
30523 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30524
30525         getloadavg: use libperfstat on AIX5
30526         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30527
30528 2008-02-03  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/diffseq.h: Add comments about required #includes.
30531         Reported by Michael Biggs <gnulib@doubleplum.net>.
30532
30533 2008-02-01  Bruno Haible  <bruno@clisp.org>
30534
30535         * users.txt: Add gnuit.
30536
30537 2008-01-31  Bruno Haible  <bruno@clisp.org>
30538
30539         * lib/md4.c (set_uint32): Mark as inline.
30540         * lib/md5.c (set_uint32): Likewise.
30541         * lib/sha1.c (set_uint32): Likewise.
30542         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30543         * m4/md5.m4 (gl_MD5): Likewise.
30544         * m4/sha1.m4 (gl_SHA1): Likewise.
30545
30546 2008-01-31  Jim Meyering  <meyering@redhat.com>
30547
30548         Use "sizeof VAR", rather than a literal "4".
30549         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30550         * lib/md4.c (md4_read_ctx): Likewise.
30551         * lib/sha1.c (sha1_read_ctx): Likewise.
30552
30553 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30554
30555         * tests/test-sha1.c: New file, based on test-md5.c.
30556
30557         * modules/crypto/sha1-tests: New file.
30558
30559 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30560
30561         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30562
30563 2008-01-31  Jim Meyering  <meyering@redhat.com>
30564
30565         Prefer "sizeof v" over the equivalent "4".
30566         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30567         * lib/md5.c (set_uint32): Likewise.
30568         * lib/sha1.c (set_uint32): Likewise.
30569
30570 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30571
30572         * lib/sha1.c (set_uint32): Mark function as static.
30573
30574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30575
30576         md2: clarify comments to say that alignment is not required.
30577         * lib/md2.h: Remove warning about alignment in comment.
30578         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30579         never been required.
30580
30581 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30582
30583         md4: adapt alignment constraint fix from sha1.
30584         * lib/md4.c (set_uint32): New function, from sha1.c
30585         (md4_read_ctx): Use it.
30586         (md4_finish_ctx): Doc fix.
30587         * lib/md4.h: Doc fix.
30588
30589 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30590
30591         md5: adapt alignment constraint fix from sha1.
30592         * lib/md5.c (set_uint32): New function, from sha1.c
30593         (md5_read_ctx): Use it.
30594         (md5_finish_ctx): Doc fix.
30595         * lib/md5.h: Doc fix.
30596
30597 2008-01-30  Peter Palfrader  <weasel@debian.org>
30598
30599         sha1: remove the result buffer alignment constraint
30600         * lib/sha1.c (set_uint32): New function.
30601         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30602         constraint.
30603         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30604         * lib/sha1.h: Likewise.
30605
30606 2008-01-30  Andreas Schwab  <schwab@suse.de>
30607             Bruno Haible  <bruno@clisp.org>
30608
30609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30610         correct definition of LDBL_MIN_EXP.
30611
30612 2008-01-30  Karl Berry  <karl@gnu.org>
30613
30614         * config/srclist-update: try to preserve x bit on updates.
30615         * config/srclistvars.sh: update for karl.
30616
30617 2008-01-29  Jim Meyering  <meyering@redhat.com>
30618
30619         vasnprintf.c: Avoid warning about unused label
30620         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30621         "overflow" label definition and associated code with the
30622         same cpp condition that guards the sole use of that label.
30623
30624 2008-01-26  Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30627         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30628         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30629         * lib/isnanl-nolibm.h (isnanl): Likewise.
30630         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30631
30632 2008-01-26  Bruno Haible  <bruno@clisp.org>
30633
30634         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30635         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30636
30637 2008-01-26  Bruno Haible  <bruno@clisp.org>
30638
30639         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30640         GCC >= 4.0 built-in.
30641         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30642
30643 2008-01-26  Bruno Haible  <bruno@clisp.org>
30644
30645         Rename isnan, applicable to 'double' only, to isnand.
30646         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30647         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30648         (configure.ac): Update.
30649         (Include): Replace "isnan.h" with "isnand.h".
30650         * m4/isnand.m4: Renamed from m4/isnan.m4.
30651         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30652         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30653         instead of isnan.c.
30654         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30655         instead of HAVE_ISNAN_IN_LIBC.
30656         (isnand): Renamed from isnan.
30657         * lib/isnand.c: New file.
30658         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30659         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30660         (Makefile.am): Update.
30661         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30662         Include isnand.h instead of isnan.h.
30663         (main): Test isnand instead of isnan.
30664         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30665         isnan-nolibm.
30666         * modules/frexp (Depends-on): Likewise.
30667         * modules/frexp-tests (Depends-on): Likewise.
30668         * modules/frexp-nolibm (Depends-on): Likewise.
30669         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30670         * modules/isfinite (Depends-on): Likewise.
30671         * modules/round-tests (Depends-on): Likewise.
30672         * modules/signbit (Depends-on): Likewise.
30673         * modules/signbit-tests (Depends-on): Likewise.
30674         * modules/snprintf-posix (Depends-on): Likewise.
30675         * modules/sprintf-posix (Depends-on): Likewise.
30676         * modules/trunc-tests (Depends-on): Likewise.
30677         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30678         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30679         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30680         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30681         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30682         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30683         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30684         * modules/vasnprintf-posix (Depends-on): Likewise.
30685         * modules/vasprintf-posix (Depends-on): Likewise.
30686         * modules/vfprintf-posix (Depends-on): Likewise.
30687         * modules/vsnprintf-posix (Depends-on): Likewise.
30688         * modules/vsprintf-posix (Depends-on): Likewise.
30689         * lib/frexp.c: Include isnand.h instead of isnan.h.
30690         (ISNAN): Set to isnand instead of isnan.
30691         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30692         (gl_isfinited): Use isnand instead of isnan.
30693         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30694         (gl_signbitd): Use isnand instead of isnan.
30695         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30696         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30697         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30698         (main): Use isnand instead of isnan.
30699         * tests/test-round1.c: Include isnand.h.
30700         (main): Use isnand instead of isnan.
30701         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30702         (ISNAN): Set to isnand instead of isnan.
30703         * tests/test-trunc1.c: Include isnand.h.
30704         (main): Use isnand instead of isnan.
30705         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30706         (equal): Use isnand instead of isnan.
30707         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30708         isnand-nolibm.
30709         * NEWS: Mention the change.
30710
30711 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30712             Bruno Haible  <bruno@clisp.org>
30713
30714         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30715         the GCC builtins for signbits are present and set
30716         REPLACE_SIGNBIT_USING_GCC if so.
30717         * lib/math.in.h (signbit): Define using GCC builtins if
30718         REPLACE_SIGNBIT_USING_GCC is set.
30719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30720         REPLACE_SIGNBIT_USING_GCC.
30721         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30722
30723 2008-01-25  Jim Meyering  <meyering@redhat.com>
30724
30725         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30726         * lib/poll.c: Include <config.h>, not "config.h".
30727         * tests/test-getaddrinfo.c: Likewise.
30728
30729 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30730
30731         * modules/sockets-tests: New file.
30732
30733 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30734
30735         * modules/sockets: New module, can be used to call WSA_Startup and
30736         WSA_Cleanup when needed.
30737
30738         * lib/sockets.h, lib/sockets.c: New files.
30739
30740         * m4/sockets.m4: New file.
30741
30742         * tests/test-sockets.c: New file.
30743
30744 2008-01-19  Bruno Haible  <bruno@clisp.org>
30745
30746         * doc/posix-headers: Renamed from doc/headers.
30747         * doc/posix-functions: Renamed from doc/functions.
30748         * doc/gnulib.texi: Update.
30749
30750 2008-01-19  Bruno Haible  <bruno@clisp.org>
30751
30752         * doc/glibc-functions/strcasestr.texi: Include contents of
30753         doc/functions/strcasestr.texi, fixing the list of platforms.
30754         * doc/functions/strcasestr.texi: Remove file.
30755
30756 2008-01-19  Bruno Haible  <bruno@clisp.org>
30757
30758         * doc/glibc-functions/memmem.texi: Include contents of
30759         doc/functions/memmem.texi.
30760         * doc/functions/memmem.texi: Remove file.
30761
30762 2008-01-18  Bruno Haible  <bruno@clisp.org>
30763
30764         * doc/glibc-functions/*.texi: New files.
30765         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30766         to use the new files.
30767
30768 2008-01-17  Bruno Haible  <bruno@clisp.org>
30769
30770         * tests/test-gethostname.c (main): Fix printf statement.
30771
30772 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30773
30774         * modules/gethostname-tests: New file.
30775
30776         * tests/test-gethostname.c: New file.
30777
30778 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30779
30780         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30781         used by the UNAME case.  Reported by Bruno Haible
30782         <bruno@clisp.org>.
30783
30784 2008-01-17  Eric Blake  <ebb9@byu.net>
30785
30786         Convert c-strcasestr to be more efficient.
30787         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30788         (Depends-on): Add c-strcase, remove malloca, strnlen.
30789         * tests/test-c-strcasestr.c (main): Enhance test.
30790         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30791
30792 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30793
30794         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30795         Use it in creating po/Makevars.
30796
30797 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30798
30799         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30800         Applications that requires it should initialize libgcrypt
30801         manually.
30802
30803 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30804
30805         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30806
30807 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30808
30809         Fix problem with getdate on mingw32 reported by Simon Josefsson
30810         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30811         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30812         tzname", when deciding whether to declare tzname.
30813         * lib/strftime.c (tzname): Likewise.
30814
30815 2008-01-15  Bruno Haible  <bruno@clisp.org>
30816
30817         Work around a MacOS X 10.5 bug in frexpl().
30818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30819         * doc/functions/frexpl.texi: Document the bug.
30820         Reported by Elias Pipping <pipping@gentoo.org>.
30821
30822 2008-01-14  Eric Blake  <ebb9@byu.net>
30823
30824         Touch up previous patch.
30825         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30826         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30827
30828         Convert strcasestr module to use Two-Way algorithm.
30829         * modules/strcasestr-simple: New module, based on the old
30830         strcasestr, but with Two-Way rather than KMP.
30831         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30832         * lib/string.in.h (rpl_strcasestr): Declare.
30833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30834         performance.
30835         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30836         * modules/string (Makefile.am): Support strcasestr.
30837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30838         * modules/strcasestr-tests (Depends-on): Check for alarm.
30839         * tests/test-strcasestr.c: Augment test.
30840         * lib/str-two-way.h: Clean up stray macro.
30841         * NEWS: Document new module.
30842         * MODULES.html.sh (string handling): Likewise.
30843         * doc/functions/strcasestr.texi: New file.
30844         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30845         here, since it is not a POSIX function.
30846
30847 2008-01-14  Colin Watson  <cjwatson@debian.org>
30848             Bruno Haible  <bruno@clisp.org>
30849
30850         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30851         works fine; if not, set REPLACE_STRSIGNAL.
30852         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30854         REPLACE_STRSIGNAL.
30855         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30856         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30857         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30858
30859 2008-01-14  Bruno Haible  <bruno@clisp.org>
30860
30861         * modules/strsignal (Include): Change to <string.h>.
30862
30863 2008-01-14  Colin Watson  <cjwatson@debian.org>
30864
30865         * modules/argp (Notice): Add a notice recommending to change
30866         XGETTEXT_OPTIONS.
30867         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30868
30869 2008-01-13  Colin Watson  <cjwatson@debian.org>
30870
30871         * modules/strsignal-tests: New file.
30872         * tests/test-strsignal.c: New file.
30873
30874         * lib/strsignal.c: New file, from glibc with modifications.
30875         * lib/siglist.h: New file, from glibc with modifications.
30876         * lib/string.in.h (strsignal): New declaration.
30877         * m4/strsignal.m4: New file.
30878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30879         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
30880         * modules/strsignal: New file.
30881         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
30882         HAVE_DECL_STRSIGNAL.
30883
30884 2008-01-13  Bruno Haible  <bruno@clisp.org>
30885
30886         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
30887         locale encoding is not ASCII. Needed for OpenBSD 4.0.
30888         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30889         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30890
30891 2008-01-13  Bruno Haible  <bruno@clisp.org>
30892
30893         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
30894         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
30895         * lib/argp.h (__attribute__): Likewise.
30896         * lib/c-stack.c (__attribute__): Likewise.
30897         * lib/error.h (__attribute__): Likewise.
30898         * lib/fts.c (__attribute__): Likewise.
30899         * lib/openat.h (__attribute__): Likewise.
30900         * lib/stdio.in.h (__attribute__): Likewise.
30901         * lib/string.in.h (__attribute__): Likewise.
30902         * lib/utimens.c (__attribute__): Likewise.
30903         * lib/vasnprintf.h (__attribute__): Likewise.
30904         * lib/xalloc.h (__attribute__): Likewise.
30905         * lib/xprintf.h (__attribute__): Likewise.
30906         * lib/xstrtol.h (__attribute__): Likewise.
30907         * lib/xvasprintf.h (__attribute__): Likewise.
30908
30909 2008-01-12  Bruno Haible  <bruno@clisp.org>
30910
30911         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
30912         * doc/glibc-headers/a.out.texi: New file.
30913         * doc/glibc-headers/aliases.texi: New file.
30914         * doc/glibc-headers/alloca.texi: New file.
30915         * doc/glibc-headers/ar.texi: New file.
30916         * doc/glibc-headers/argp.texi: New file.
30917         * doc/glibc-headers/argz.texi: New file.
30918         * doc/glibc-headers/byteswap.texi: New file.
30919         * doc/glibc-headers/crypt.texi: New file.
30920         * doc/glibc-headers/endian.texi: New file.
30921         * doc/glibc-headers/envz.texi: New file.
30922         * doc/glibc-headers/err.texi: New file.
30923         * doc/glibc-headers/error.texi: New file.
30924         * doc/glibc-headers/execinfo.texi: New file.
30925         * doc/glibc-headers/fpu_control.texi: New file.
30926         * doc/glibc-headers/fstab.texi: New file.
30927         * doc/glibc-headers/fts.texi: New file.
30928         * doc/glibc-headers/getopt.texi: New file.
30929         * doc/glibc-headers/ieee754.texi: New file.
30930         * doc/glibc-headers/ifaddrs.texi: New file.
30931         * doc/glibc-headers/libintl.texi: New file.
30932         * doc/glibc-headers/mcheck.texi: New file.
30933         * doc/glibc-headers/mntent.texi: New file.
30934         * doc/glibc-headers/obstack.texi: New file.
30935         * doc/glibc-headers/paths.texi: New file.
30936         * doc/glibc-headers/printf.texi: New file.
30937         * doc/glibc-headers/pty.texi: New file.
30938         * doc/glibc-headers/resolv.texi: New file.
30939         * doc/glibc-headers/shadow.texi: New file.
30940         * doc/glibc-headers/sysexits.texi: New file.
30941         * doc/glibc-headers/ttyent.texi: New file.
30942
30943 2008-01-12  Jim Meyering  <meyering@redhat.com>
30944
30945         announce-gen: emit Gnulib's git-based version string.
30946         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
30947         New option --gnulib-version=V, where V is expected to be
30948         the output of running git describe in the gnulib directory.
30949         (get_tool_versions): Request feedback on xdelta.  I suspect it's
30950         not useful, and plan to stop publishing an xdelta file with each
30951         coreutils release.
30952
30953         * build-aux/announce-gen: Also check for lzma-compressed files.
30954
30955 2008-01-11  Bruno Haible  <bruno@clisp.org>
30956
30957         * tests/test-memmem.c (main): Increase maximum allowed time.
30958         * tests/test-strstr.c (main): Likewise.
30959
30960 2008-01-11  Bruno Haible  <bruno@clisp.org>
30961
30962         * doc/functions/memmem.texi: Add more precisions about platforms.
30963         * doc/functions/strstr.texi: Likewise.
30964
30965 2008-01-10  Eric Blake  <ebb9@byu.net>
30966
30967         * m4/strstr.m4: Delete cruft from copy-n-paste.
30968         Reported by Bruno Haible.
30969
30970 2008-01-10  Bruno Haible  <bruno@clisp.org>
30971
30972         Make c-strstr rely on strstr.
30973         * lib/c-strstr.c: Don't include str-kmp.h.
30974         (c_strstr): Define in terms of strstr.
30975         * modules/c-strstr (Files): Remove lib/str-kmp.h.
30976         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
30977
30978 2008-01-10  Bruno Haible  <bruno@clisp.org>
30979
30980         * doc/gnulib.texi (String Functions in C Locale): New section.
30981         * doc/c-ctype.texi: New file.
30982         * doc/c-strcase.texi: New file.
30983         * doc/c-strcaseeq.texi: New file.
30984         * doc/c-strcasestr.texi: New file.
30985         * doc/c-strstr.texi: New file.
30986         * doc/c-strtod.texi: New file.
30987         * doc/c-strtold.texi: New file.
30988
30989 2008-01-10  Eric Blake  <ebb9@byu.net>
30990
30991         * lib/relocatable.h: Fix a comment.
30992
30993 2008-01-10  Eric Blake  <ebb9@byu.net>
30994
30995         Share two-way algorithm.
30996         * lib/str-two-way.h: New file, merged from...
30997         * lib/memmem.c: ...here...
30998         * lib/strstr.c: ...and here.
30999         * modules/memmem (Files): Use it.
31000         * modules/strstr (Files): Likewise.
31001
31002         Avoid quadratic strstr implementations.
31003         * lib/strstr.c: New file.
31004         * m4/strstr.m4: Likewise.
31005         * modules/strstr: Likewise.
31006         * modules/strstr-tests: Likewise.
31007         * tests/test-strstr.c: Likewise.
31008         * lib/string.in.h (rpl_strstr): Declare.
31009         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31011         * modules/string (Makefile.am): Likewise.
31012         * MODULES.html.sh (string handling): Mention new module.
31013         * doc/functions/strstr.texi (strstr): Document the bug.
31014
31015 2008-01-10  Bruno Haible  <bruno@clisp.org>
31016
31017         * lib/relocatable.h (relocate): State whether result is freshly
31018         allocated or not.
31019         * lib/relocatable.c (relocate): Return a freshly allocated string
31020         instead of a pointer to a privately held string.
31021         Reported by Sylvain Beucler <beuc@gnu.org>.
31022
31023 2008-01-10  Colin Watson  <cjwatson@debian.org>
31024
31025         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31026         s/S_ISNLK/S_ISLNK/.
31027
31028 2008-01-09  Bruno Haible  <bruno@clisp.org>
31029
31030         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31031         and other files.
31032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31033         if it's only a guess.
31034         * modules/memmem: Simplify by depending on memmem-simple.
31035
31036 2008-01-09  Bruno Haible  <bruno@clisp.org>
31037
31038         Work around OpenBSD 4.0 tdelete() bug.
31039         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31040         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31041         macros and don't redefine the enum values.
31042         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31043         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31044         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31045
31046 2008-01-09  Bruno Haible  <bruno@clisp.org>
31047
31048         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31049         (main): Don't perform the tests if setlocale did not install a UTF-8
31050         locale. Needed on OpenBSD 4.0.
31051         * modules/wcwidth-tests (Depends-on): Add localcharset.
31052
31053 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31054
31055         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31056         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31057         * NEWS: announce this.
31058         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31059
31060 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31061         and Eric Blake  <ebb9@byu.net>
31062
31063         Add memmem-simple module.
31064         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31065         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31066         * modules/memmem-simple: New file.
31067         * modules/memmem (Description): Tweak.
31068         * MODULES.html.sh (string handling): Mention new module.
31069         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31070         addressed by memmem-simple.
31071         * NEWS: Document the difference.
31072
31073 2008-01-09  Eric Blake  <ebb9@byu.net>
31074
31075         Give gcc some memmem optimization hints.
31076         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31077         (strcasestr): Declare as pure.
31078         * modules/memmem (Maintainer): Claim my implementation.
31079
31080 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31081
31082         Support AIX 6.1 and higher.
31083         * build-aux/config.libpath: Likewise.
31084         * build-aux/config.rpath: Likewise.
31085
31086 2008-01-08  Jim Meyering  <meyering@redhat.com>
31087             Bruno Haible  <bruno@clisp.org>
31088
31089         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31090         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31091         Reported by Peter Fales in
31092         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31093
31094 2008-01-08  Bruno Haible  <bruno@clisp.org>
31095
31096         * modules/unictype/category-of (Depends-on): Add
31097         unictype/category-none.
31098         * modules/unictype/category-and-tests (Depends-on): Add
31099         unictype/category-{L,N,Lu,Nd}.
31100         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31101         * modules/unictype/category-or-tests (Depends-on): Add
31102         unictype/category-{L,N}.
31103         * modules/unictype/category-name-tests (Depends-on): Add
31104         unictype/category-{Z,Nl}.
31105         Reported by Simon Josefsson.
31106
31107 2008-01-08  Bruno Haible  <bruno@clisp.org>
31108
31109         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31110         convention better.
31111         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31112         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31113         Reported by Peter Miller <millerp@canb.auug.org.au>.
31114
31115 2008-01-08  Eric Blake  <ebb9@byu.net>
31116
31117         Rewrite memmem to guarantee linear complexity without malloc.
31118         * lib/memmem.c (memmem): Use Two-Way rather than
31119         Knuth-Morris-Pratt, to allow O(1) space usage.
31120         (critical_factorization, two_way_short_needle)
31121         (two_way_long_needle): New functions.
31122         (knuth_morris_pratt): Delete.
31123         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31124         Add stdint.
31125         * tests/test-memmem.c (main): Add tests for periodic needle and
31126         sublinear performance.
31127         * doc/functions/memmem.texi (memmem): Document other deficiencies
31128         in cygwin and older glibc.
31129
31130 2008-01-08  Bruno Haible  <bruno@clisp.org>
31131
31132         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31133         augmentation.
31134
31135 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31136
31137         Add a configure time option: --disable-acl.
31138         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31139         AC_ARG_ENABLE(acl).
31140
31141 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31142
31143         * tests/test-localename.c: Don't include obsolete "setenv.h".
31144
31145         * modules/localename-tests (Depends-on): Need unsetenv.
31146
31147 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31148
31149         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31150
31151 2008-01-06  Colin Watson  <cjwatson@debian.org>
31152
31153         * users.txt: Add man-db.
31154
31155 2008-01-07  Bruno Haible  <bruno@clisp.org>
31156
31157         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31158         previous section name.
31159
31160 2008-01-07  Bruno Haible  <bruno@clisp.org>
31161
31162         * lib/progname.c (set_program_name): Don't strip off a leading
31163         "lt-" prefix outside a .libs directory.
31164         Suggested by Paul Eggert.
31165
31166 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31167             Bruno Haible  <bruno@clisp.org>
31168
31169         Improve memory cleanup in 'relocatable' module.
31170         * lib/relocatable.h (compute_curr_prefix): Change return type to
31171         'char *'.
31172         * lib/relocatable.c (compute_curr_prefix): Change return type to
31173         'char *'. Free curr_installdir after use.
31174         (relocate): Free curr_prefix_better after use.
31175         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31176
31177 2008-01-01  Bruno Haible  <bruno@clisp.org>
31178
31179         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31180         failure on older glibc systems.
31181         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31182
31183 2008-01-05  Eric Blake  <ebb9@byu.net>
31184
31185         Avoid quadratic system memmem.
31186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31187         Reported by Ralf Wildenhues.
31188
31189         Fix memmem test for mingw.
31190         * modules/memmem-tests (configure.ac): Check for alarm.
31191         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31192         it.
31193         * doc/functions/memmem.texi: New file.
31194         * doc/gnulib.texi (Function Substitutes): Add memmem.
31195         Reported by Bruno Haible.
31196
31197 2008-01-04  Bruno Haible  <bruno@clisp.org>
31198
31199         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31200         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31201         gl_HEADER_STRING_H_DEFAULTS.
31202
31203 2008-01-04  Eric Blake  <ebb9@byu.net>
31204
31205         Shorten duration of memmem test.
31206         * tests/test-memmem.c (main): Use alarm to declare failure if test
31207         is taking too long.
31208         Reported by Ralf Wildenhues.
31209
31210 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31211
31212         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31213         string, needed by strerror.
31214
31215 2008-01-03  Colin Watson  <cjwatson@debian.org>
31216             Bruno Haible  <bruno@clisp.org>
31217
31218         * doc/gnulib-tool.texi (Localization): New section.
31219
31220 2008-01-02  Bruno Haible  <bruno@clisp.org>
31221
31222         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31223         variables to 'unsigned char *' type.
31224         Reported by Paul Eggert.
31225
31226 2008-01-02  Jim Meyering  <jim@meyering.net>
31227
31228         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31229
31230 2007-12-31  Jim Meyering  <jim@meyering.net>
31231
31232         Avoid use of private FTS type name.
31233         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31234
31235 2007-12-30  Karl Berry  <karl@gnu.org>
31236
31237         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31238         work around defect in Texinfo and/or the standalone Info browser.
31239
31240 2007-12-30  Bruno Haible  <bruno@clisp.org>
31241
31242         Unify 5 copies of the KMP code.
31243         * lib/str-kmp.h: New file.
31244         * lib/c-strcasestr.c: Include str-kmp.h.
31245         (knuth_morris_pratt): Remove function.
31246         (c_strcasestr): Update.
31247         * lib/c-strstr.c: Include str-kmp.h.
31248         (knuth_morris_pratt): Remove function.
31249         (c_strcasestr): Update.
31250         * lib/mbscasestr.c: Include str-kmp.h.
31251         (knuth_morris_pratt_unibyte): Remove function.
31252         * lib/mbsstr.c: Include str-kmp.h.
31253         (knuth_morris_pratt_unibyte): Remove function.
31254         * lib/strcasestr.c: Include str-kmp.h.
31255         (knuth_morris_pratt): Remove function.
31256         (strcasestr): Update.
31257         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31258         * modules/c-strstr (Files): Likewise.
31259         * modules/mbscasestr (Files): Likewise.
31260         * modules/mbsstr (Files): Likewise.
31261         * modules/strcasestr (Files): Likewise.
31262         Suggested by Paul Eggert.
31263
31264 2007-12-30  Bruno Haible  <bruno@clisp.org>
31265
31266         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31267         defined.
31268
31269 2007-12-30  Bruno Haible  <bruno@clisp.org>
31270
31271         * lib/xmalloca.h: Include xalloc.h.
31272         (xnmalloca): New macro.
31273
31274 2007-12-30  Bruno Haible  <bruno@clisp.org>
31275
31276         * lib/malloca.h (nmalloca): New macro.
31277         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31278         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31279         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31280         knuth_morris_pratt_multibyte): Likewise.
31281         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31282         knuth_morris_pratt_multibyte): Likewise.
31283         * lib/memmem.c (knuth_morris_pratt): Likewise.
31284         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31285
31286 2007-12-25  Bruno Haible  <bruno@clisp.org>
31287
31288         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31289         * lib/glob.c: Don't include openat.h.
31290         (link_exists2_p): Add back the code that deals with the
31291         !GLOB_ALTDIRFUNC case.
31292         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31293         let it do the filename concatenation.
31294         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31295         * modules/glob (Depends-on): Remove openat.
31296
31297 2007-12-31  Bruno Haible  <bruno@clisp.org>
31298
31299         * modules/dirfd (License): Change to LGPLv2+.
31300         Approved by Jim Meyering.
31301
31302 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31303
31304         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31305         when multiplying M by sizeof (size_t).
31306
31307 2007-12-10  Martin Lambers  <marlam@marlam.de>
31308
31309         Override getpagesize on mingw.
31310         * lib/getpagesize.c: New file.
31311         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31312         * modules/getpagesize (Files): Add lib/getpagesize.c.
31313         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31315         REPLACE_GETPAGESIZE.
31316         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31317
31318 2007-12-25  Bruno Haible  <bruno@clisp.org>
31319
31320         * modules/localcharset (Notice): New field.
31321         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31322         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31323
31324 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31325             Bruno Haible  <bruno@clisp.org>
31326
31327         Avoid using the syntax symbol() in formatted documentation.
31328         * MODULES.html.sh (func_module): When replacing symbol() with a
31329         hyperlink, remove the parentheses. Show an error if some remain.
31330         Recognize and render the '...' syntax.
31331         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31332         Rework. Add paragraph about GCC's inlining.
31333         * doc/alloca.texi: Likewise.
31334         * doc/error.texi: Remove parentheses from symbol reference.
31335         * doc/gnulib-intro.texi: Likewise.
31336         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31337         * modules/fnmatch (Description): Reword to say "the ... function".
31338         * modules/full-read (Description): Likewise.
31339         * modules/full-write (Description): Likewise.
31340         * modules/safe-read (Description): Likewise.
31341         * modules/safe-write (Description): Likewise.
31342         * modules/strchrnul (Description): Likewise.
31343         * modules/trim (Description): Likewise.
31344         * modules/error (Description): Remove parentheses from symbol
31345         references.
31346         * modules/verror (Description): Likewise.
31347         Reported by Karl Berry.
31348
31349 2007-12-25  Bruno Haible  <bruno@clisp.org>
31350
31351         Fixup after 2007-10-16 commit.
31352         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31353
31354 2007-12-24  Bruno Haible  <bruno@clisp.org>
31355
31356         Make --enable-relocatable work with DESTDIR.
31357         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31358         to compute installdir from destprog.
31359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31360         also set the RELOC_DESTDIR variable.
31361         Reported by Левашев Иван <octagram@bluebottle.com>.
31362
31363 2007-12-24  Bruno Haible  <bruno@clisp.org>
31364
31365         Fix link error due to xalloc_die().
31366         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31367         of xreadlink.
31368         * lib/relocwrapper.c: Update comments.
31369         * build-aux/install-reloc: Remove xreadlink.c from file list.
31370         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31371         xreadlink.c.
31372         Reported by Левашев Иван <octagram@bluebottle.com>.
31373
31374 2007-12-24  Bruno Haible  <bruno@clisp.org>
31375
31376         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31377         * lib/setenv.h: Remove file.
31378         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31379         lib/setenv.h.
31380         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31381         (Depends-on): Add stdlib.
31382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31383         gl_FUNC_UNSETENV.
31384         (Include): Replace setenv.h with <stdlib.h>.
31385         * modules/unsetenv: New file.
31386         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31387         * lib/unsetenv.c: Include <stdlib.h> first.
31388         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31389         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31390         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31391         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31392         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31393         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31395         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31396         * doc/functions/unsetenv.texi: Update.
31397         * modules/xsetenv (Depends-on): Add unsetenv.
31398         * modules/getdate (Depends-on): Likewise.
31399         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31400         * lib/xsetenv.c: Don't include setenv.h.
31401         * lib/getdate.y: Likewise.
31402         * lib/relocwrapper.c: Likewise.
31403         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31404         (Depends-on): Add stdlib.
31405         * NEWS: Mention the changes.
31406         Reported by Левашев Иван <octagram@bluebottle.com>.
31407
31408 2007-12-23  Bruno Haible  <bruno@clisp.org>
31409
31410         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31411         indentation.
31412
31413 2007-12-23  Bruno Haible  <bruno@clisp.org>
31414
31415         * lib/c-strcasestr.c: Add more comments.
31416         * lib/c-strstr.c: Likewise.
31417         * lib/mbscasestr.c: Likewise.
31418         * lib/mbsstr.c: Likewise.
31419         * lib/strcasestr.c: Likewise.
31420         * lib/memmem.c: Likewise.
31421
31422 2007-12-23  Bruno Haible  <bruno@clisp.org>
31423
31424         * tests/test-memmem.c: Include <string.h> first.
31425
31426 2007-12-22  Bruno Haible  <bruno@clisp.org>
31427
31428         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31429         the contents of $testsbase.
31430         Reported by Ralf Wildenhues.
31431
31432 2007-12-22  Bruno Haible  <bruno@clisp.org>
31433
31434         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31435         two variables local_ldadd_before, local_ldadd_last.
31436
31437 2007-12-20  Eric Blake  <ebb9@byu.net>
31438
31439         Work around circular library issue when cross-compiling.
31440         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31441         that progname.o does not need to pull in rpl_memcmp.
31442
31443 2007-12-19  Eric Blake  <ebb9@byu.net>
31444
31445         Fix memmem to avoid O(n^2) worst-case complexity.
31446         * lib/memmem.c (knuth_morris_pratt): New function.
31447         (memmem): Use it if first few naive iterations fail.
31448         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31449         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31450         * modules/memchr (License): Likewise.
31451         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31452         malloca.
31453         * tests/test-memmem.c: Rewrite, borrowing ideas from
31454         test-mbsstr1.c; the old version wouldn't even compile!
31455         * modules/memmem-tests: New file.
31456         * lib/string.in.h (rpl_memmem): Add declaration.
31457         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31459         REPLACE_MEMMEM.
31460
31461 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31464         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31465         before any system include files, and undef after them all.  This
31466         should fix a problem on VMS reported by John E. Malmberg in
31467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31468
31469 2007-12-17  Eric Blake  <ebb9@byu.net>
31470
31471         Revert addition of verify, for BSD/OS.
31472         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31473         can't handle large files, for the sake of obsolete platforms.
31474         * modules/fseeko (Depends-on): Remove verify.
31475         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31476         * doc/functions/ftello.texi (ftello): Likewise.
31477         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31478         Reported by Larry Jones.
31479
31480 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31481
31482         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31483         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31484
31485 2007-12-17  Jim Meyering  <meyering@redhat.com>
31486
31487         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31488         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31489         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31490         * modules/getcwd (Depends-on): Add openat.
31491         Reported by Petr Salinger.
31492
31493 2007-12-17  Bruno Haible  <bruno@clisp.org>
31494
31495         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31496         avoid a segmentation fault of the configure test on x86_64 systems.
31497
31498 2007-12-15  Jim Meyering  <meyering@redhat.com>
31499
31500         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31501
31502 2007-12-13  Eric Blake  <ebb9@byu.net>
31503
31504         Another fseek test.
31505         * tests/test-fseek.c (main): Also test ungetc handling.
31506         * tests/test-fseeko.c (main): Likewise.
31507         * modules/fseeko (Depends-on): Add verify.
31508         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31509         large.
31510         Reported by Larry Jones.
31511
31512         Fix fseeko on mingw.
31513         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31514         seek.
31515
31516         Beef up fseek tests.
31517         * tests/test-fseek.c (main): Also test eof handling.
31518         * tests/test-fseeko.c (main): Likewise.
31519         Reported by Larry Jones.
31520
31521 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31522
31523         Fix fseeko on BSD-based platforms.
31524         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31525         successful seek.
31526
31527 2007-12-12  Eric Blake  <ebb9@byu.net>
31528
31529         Allow circular dependency of separate libtests.a
31530         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31531         when use_libtests.
31532
31533 2007-12-11  Eric Blake  <ebb9@byu.net>
31534
31535         Fix bug with -0.0L in previous patch.
31536         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31537         * tests/test-isnan.c (main): Also test on zeroes.
31538         * tests/test-isnanf.c (main): Likewise.
31539         * tests/test-isnanl.h (main): Likewise.
31540
31541         Detect pseudo-denormals on x86 even when cross-compiling.
31542         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31543         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31544         invalid bit patterns that happen to satisfy ==.
31545
31546         Avoid link failures with separate libtests.a.
31547         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31548         last, to satisfy circular dependencies.
31549
31550 2007-12-11  Eric Blake  <ebb9@byu.net>
31551         and Bruno Haible  <bruno@clisp.org>
31552
31553         Fix OpenBSD 4.0 <float.h> handling of long double.
31554         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31555         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31556         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31557
31558 2007-12-11  Jim Meyering  <meyering@redhat.com>
31559
31560         * users.txt: Add libvirt.
31561
31562         Support versions of autoconf prior to 2.59c.
31563         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31564         if it is not already defined.
31565
31566 2007-12-09  Bruno Haible  <bruno@clisp.org>
31567
31568         Let 'gnulib-tool --import' collect sources needed for the tests in
31569         tests/ rather than in lib/.
31570         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31571         argument. If true, add rules to generate libtests.a, and put libtests.a
31572         into $(LDADD). Consider source files in subdirectories and set
31573         uses_subdirs.
31574         (func_emit_initmacro_start, func_emit_initmacro_end,
31575         func_emit_initmacro_done): Pass all arguments explicitly.
31576         (func_import): Determine two module lists main_modules,
31577         testsrelated_modules. Determine use_libtests. Determine two variables
31578         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31579         instead of just sed_transform_lib_file. Determine two variables
31580         main_files and testsrelated_files. Compute 'files' as the union of
31581         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31582         func_add_or_update. In the generated gnulib-comp.m4, collect the
31583         object files for tests/ in different variables than those for lib/.
31584         Substitute LIBTESTS_LIBDEPS.
31585         (func_create_testdir): Combine the uses_subdirs results from
31586         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31587
31588 2007-12-09  Bruno Haible  <bruno@clisp.org>
31589
31590         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31591         the build-aux directory.
31592
31593 2007-12-09  Bruno Haible  <bruno@clisp.org>
31594
31595         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31596         introduced on 2006-09-09.
31597
31598 2007-12-07  Jim Meyering  <meyering@redhat.com>
31599
31600         Let these macros work also with autoconf-2.59.
31601         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31602         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31603         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31604
31605 2007-12-06  Jim Meyering  <meyering@redhat.com>
31606
31607         Avoid a configure-time syntax error in gl_FUNC_ACL.
31608         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31609         function in each branch, before testing the cache variable.
31610
31611 2007-12-04  Eric Blake  <ebb9@byu.net>
31612
31613         Make scripts executable.
31614         * build-aux/config.guess: Add execute permissions.
31615         * build-aux/config.sub: Likewise.
31616         * build-aux/gendocs.sh: Likewise.
31617
31618         Fix frexp on mingw.
31619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31620         cross-compiling.
31621         * doc/functions/frexp.texi (frexp): Document the bug.
31622
31623         Make cygwin fseeko check more reliable.
31624         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31625         version numbers, rather than unrelated feature check.
31626         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31627         * doc/functions/ftello.texi (ftello): Likewise.
31628         Reported by Bruno Haible.
31629
31630         * m4/strerror.m4: Bump version number.
31631
31632 2007-12-03  Bruno Haible  <bruno@clisp.org>
31633
31634         * doc/functions/mprotect.texi: Mention the mingw problem.
31635
31636 2007-12-03  Eric Blake  <ebb9@byu.net>
31637
31638         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31639         REPLACE_STRERROR is initialized before this macro.
31640
31641 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31642
31643         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31644         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31645         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31646         put -lsec in even for programs other than 'ls'.  This fixes a problem
31647         for gettext reported by Bruno Haible in
31648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31649         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31650         Add support for Solaris 10.  This isn't efficient, but should get the
31651         job done for now.
31652
31653 2007-12-03  James Youngman  <jay@gnu.org>
31654
31655         * doc/regexprops-generic.texi: change "an close-group" to "a
31656         close-group" and "illegal" to "not allowed".
31657
31658 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31659
31660         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31661         pr_byname.h. Needed for the rare case when the maintainer has done
31662         "make maintainer-clean" in the source directory and then attempts a
31663         build outside the source directory.
31664         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31665         scripts_byname.h.
31666
31667 2007-12-02  Martin Lambers <marlam@marlam.de>
31668             Bruno Haible  <bruno@clisp.org>
31669
31670         * lib/getpagesize.h: Remove file.
31671         * lib/unistd.in.h: Include declaration of getpagesize here.
31672         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31673         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31674         HAVE_SYS_PARAM_H.
31675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31676         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31677         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31678         (Depends-on): Add unistd.
31679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31680         (Include): Use <unistd.h> instead of getpagesize.h.
31681         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31682         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31683         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31684         gl_GETPAGESIZE invocation, already handled by module dependency.
31685         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31686
31687 2007-12-02  Bruno Haible  <bruno@clisp.org>
31688
31689         * modules/strings-tests: New file.
31690         * tests/test-strings.c: New file.
31691
31692         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31693         * lib/strings.in.h: New file.
31694         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31695         * m4/strings_h.m4: New file.
31696         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31697         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31698         * modules/strings: New file.
31699         * modules/string (Makefile.am): Update.
31700         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31701         Reported by Karl Berry.
31702
31703 2007-12-01  Eric Blake  <ebb9@byu.net>
31704
31705         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31706         accomodate fix in cygwin 1.5.25.
31707
31708 2007-12-01  Jim Meyering  <meyering@redhat.com>
31709
31710         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31711         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31712         that would inhibit utf8-optimization of a regexp containing line-
31713         or buffer-anchors, e.g., `^', `$'.
31714
31715 2007-11-30  Bruno Haible  <bruno@clisp.org>
31716
31717         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31718         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31719         glthread_recursive_lock_init.
31720         * lib/lock.c (glthread_recursive_lock_init)
31721         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31722         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31723
31724 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31725
31726         New function qset_acl, like set_acl but with syscall semantics.
31727         * lib/acl.h (qset_acl): New decl.
31728         * lib/acl.c (qset_acl): New function.
31729         (set_acl): Use new function.  Use more-consistent diagnostics.
31730
31731 2007-11-28  Jim Meyering  <meyering@redhat.com>
31732
31733         * modules/physmem (License): Change from GPL to LGPLv2+.
31734
31735 2007-11-26  Bruno Haible  <bruno@clisp.org>
31736
31737         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31738         'long double' type has excess precision.
31739         Reported by Jim Meyering in
31740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31741
31742 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31743
31744         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31745         Sync from <http://gnu.org/licenses>.
31746         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31747         with license text from same location.
31748         * doc/maintain.texi, doc/standards.texi:  Sync from
31749         <http://savannah.gnu.org/projects/gnustandards>.
31750
31751 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
31752         and Jim Meyering  <meyering@redhat.com>
31753
31754         Adjust getdate' grammar to accept a slightly more regular language.
31755         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31756         Before, the former was rejected.
31757         * lib/getdate.y (digits_to_date_time): New function, factored
31758         out of ...
31759         (number): ...here.  Just call digits_to_date_time.
31760         (hybrid): New non-terminal to handle an <unsigned number,
31761         signed relative offset> sequence consistently.
31762
31763 2007-11-18  Jim Meyering  <meyering@redhat.com>
31764
31765         Pull my changes from coreutils:
31766         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31767         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31768         use of $gnulib_tool_option_extras, so that it's separated from the
31769         preceding argument.
31770
31771         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31772         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31773         parent destination directories before copying a file into place.
31774
31775 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31776
31777         bootstrap: work also with 4-argument variant of AC_INIT
31778         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31779
31780 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         Port test-getaddrinfo to Solaris.
31783         Problem reported by Bruno Haible in
31784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31785         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31786         explanation of setting 'hints'.
31787         Don't reject an implementation merely because it returns EAI_SERVICE.
31788         (EAI_SERVICE): Define to 0 if not defined.
31789
31790 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31791
31792         The license of gnu-make and posix-shell is now "GPLed build tool".
31793         * modules/gnu-make (License): Likewise.
31794         * modules/posix-shell (License): Likewise.
31795
31796         New module posix-shell, for determining a POSIX shell
31797         or perhaps something that is close enough to a POSIX shell.
31798         * m4/posix-shell.m4: New file.
31799         * modules/posix-shell: New file.
31800
31801         * MODULES.html.sh: Mention new module.
31802
31803         New module gnu-make, for determining whether we're using GNU Make.
31804         * m4/gnu-make.m4: New file.
31805         * modules/gnu-make: New file.
31806         * MODULES.html.sh: Mention new module.
31807
31808 2007-11-14  Jim Meyering  <meyering@redhat.com>
31809
31810         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31811         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31812         use this macro to create a function _definition_.
31813         Remove useless "#undef ARGMATCH_DIE".
31814
31815 2007-11-14  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/config.charset: Update for OpenBSD 4.1.
31818         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31819
31820 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31821
31822         Document 64-bit #if problems in stdint.texi.
31823         * doc/headers/stdint.texi (stdint.h): Mention problems with
31824         64-bit-#if, and how to work around them.
31825
31826         Don't insist on 'long long int' support in the preprocessor.  It
31827         breaks too many things.  For example, PRIdMAX still uses a 'long
31828         long int' format with the latest Sun compiler, even though
31829         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31830         preprocessor problem.  This causes the latest coreutils to dump
31831         core on Solaris 10 sparc with the Sun C compiler.
31832         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31833         the troublesome expressions at configure-time, not at #if-time.
31834         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31835         preprocessor.
31836         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31837         compile-time C checks, done at 'configure'-time.
31838         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31839         * modules/inttypes (Makefile): Substitute the new symbols that
31840         gl_INTTYPES_H now generates.
31841         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31842
31843 2007-11-12  Bruno Haible  <bruno@clisp.org>
31844
31845         Tests for Unicode character classification functions.
31846
31847         * modules/unictype/bidicategory-byname-tests: New file.
31848         * modules/unictype/bidicategory-name-tests: New file.
31849         * modules/unictype/bidicategory-of-tests: New file.
31850         * modules/unictype/bidicategory-test-tests: New file.
31851         * modules/unictype/block-list-tests: New file.
31852         * modules/unictype/block-of-tests: New file.
31853         * modules/unictype/block-test-tests: New file.
31854         * modules/unictype/category-C-tests: New file.
31855         * modules/unictype/category-Cc-tests: New file.
31856         * modules/unictype/category-Cf-tests: New file.
31857         * modules/unictype/category-Cn-tests: New file.
31858         * modules/unictype/category-Co-tests: New file.
31859         * modules/unictype/category-Cs-tests: New file.
31860         * modules/unictype/category-L-tests: New file.
31861         * modules/unictype/category-Ll-tests: New file.
31862         * modules/unictype/category-Lm-tests: New file.
31863         * modules/unictype/category-Lo-tests: New file.
31864         * modules/unictype/category-Lt-tests: New file.
31865         * modules/unictype/category-Lu-tests: New file.
31866         * modules/unictype/category-M-tests: New file.
31867         * modules/unictype/category-Mc-tests: New file.
31868         * modules/unictype/category-Me-tests: New file.
31869         * modules/unictype/category-Mn-tests: New file.
31870         * modules/unictype/category-N-tests: New file.
31871         * modules/unictype/category-Nd-tests: New file.
31872         * modules/unictype/category-Nl-tests: New file.
31873         * modules/unictype/category-No-tests: New file.
31874         * modules/unictype/category-P-tests: New file.
31875         * modules/unictype/category-Pc-tests: New file.
31876         * modules/unictype/category-Pd-tests: New file.
31877         * modules/unictype/category-Pe-tests: New file.
31878         * modules/unictype/category-Pf-tests: New file.
31879         * modules/unictype/category-Pi-tests: New file.
31880         * modules/unictype/category-Po-tests: New file.
31881         * modules/unictype/category-Ps-tests: New file.
31882         * modules/unictype/category-S-tests: New file.
31883         * modules/unictype/category-Sc-tests: New file.
31884         * modules/unictype/category-Sk-tests: New file.
31885         * modules/unictype/category-Sm-tests: New file.
31886         * modules/unictype/category-So-tests: New file.
31887         * modules/unictype/category-Z-tests: New file.
31888         * modules/unictype/category-Zl-tests: New file.
31889         * modules/unictype/category-Zp-tests: New file.
31890         * modules/unictype/category-Zs-tests: New file.
31891         * modules/unictype/category-and-not-tests: New file.
31892         * modules/unictype/category-and-tests: New file.
31893         * modules/unictype/category-byname-tests: New file.
31894         * modules/unictype/category-name-tests: New file.
31895         * modules/unictype/category-none-tests: New file.
31896         * modules/unictype/category-of-tests: New file.
31897         * modules/unictype/category-or-tests: New file.
31898         * modules/unictype/category-test-withtable-tests: New file.
31899         * modules/unictype/combining-class-tests: New file.
31900         * modules/unictype/ctype-alnum-tests: New file.
31901         * modules/unictype/ctype-alpha-tests: New file.
31902         * modules/unictype/ctype-blank-tests: New file.
31903         * modules/unictype/ctype-cntrl-tests: New file.
31904         * modules/unictype/ctype-digit-tests: New file.
31905         * modules/unictype/ctype-graph-tests: New file.
31906         * modules/unictype/ctype-lower-tests: New file.
31907         * modules/unictype/ctype-print-tests: New file.
31908         * modules/unictype/ctype-punct-tests: New file.
31909         * modules/unictype/ctype-space-tests: New file.
31910         * modules/unictype/ctype-upper-tests: New file.
31911         * modules/unictype/ctype-xdigit-tests: New file.
31912         * modules/unictype/decimal-digit-tests: New file.
31913         * modules/unictype/digit-tests: New file.
31914         * modules/unictype/mirror-tests: New file.
31915         * modules/unictype/numeric-tests: New file.
31916         * modules/unictype/property-alphabetic-tests: New file.
31917         * modules/unictype/property-ascii-hex-digit-tests: New file.
31918         * modules/unictype/property-bidi-arabic-digit-tests: New file.
31919         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
31920         * modules/unictype/property-bidi-block-separator-tests: New file.
31921         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
31922         * modules/unictype/property-bidi-common-separator-tests: New file.
31923         * modules/unictype/property-bidi-control-tests: New file.
31924         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
31925         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
31926         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
31927         * modules/unictype/property-bidi-european-digit-tests: New file.
31928         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
31929         * modules/unictype/property-bidi-left-to-right-tests: New file.
31930         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
31931         * modules/unictype/property-bidi-other-neutral-tests: New file.
31932         * modules/unictype/property-bidi-pdf-tests: New file.
31933         * modules/unictype/property-bidi-segment-separator-tests: New file.
31934         * modules/unictype/property-bidi-whitespace-tests: New file.
31935         * modules/unictype/property-byname-tests: New file.
31936         * modules/unictype/property-combining-tests: New file.
31937         * modules/unictype/property-composite-tests: New file.
31938         * modules/unictype/property-currency-symbol-tests: New file.
31939         * modules/unictype/property-dash-tests: New file.
31940         * modules/unictype/property-decimal-digit-tests: New file.
31941         * modules/unictype/property-default-ignorable-code-point-tests: New file.
31942         * modules/unictype/property-deprecated-tests: New file.
31943         * modules/unictype/property-diacritic-tests: New file.
31944         * modules/unictype/property-extender-tests: New file.
31945         * modules/unictype/property-format-control-tests: New file.
31946         * modules/unictype/property-grapheme-base-tests: New file.
31947         * modules/unictype/property-grapheme-extend-tests: New file.
31948         * modules/unictype/property-grapheme-link-tests: New file.
31949         * modules/unictype/property-hex-digit-tests: New file.
31950         * modules/unictype/property-hyphen-tests: New file.
31951         * modules/unictype/property-id-continue-tests: New file.
31952         * modules/unictype/property-id-start-tests: New file.
31953         * modules/unictype/property-ideographic-tests: New file.
31954         * modules/unictype/property-ids-binary-operator-tests: New file.
31955         * modules/unictype/property-ids-trinary-operator-tests: New file.
31956         * modules/unictype/property-ignorable-control-tests: New file.
31957         * modules/unictype/property-iso-control-tests: New file.
31958         * modules/unictype/property-join-control-tests: New file.
31959         * modules/unictype/property-left-of-pair-tests: New file.
31960         * modules/unictype/property-line-separator-tests: New file.
31961         * modules/unictype/property-logical-order-exception-tests: New file.
31962         * modules/unictype/property-lowercase-tests: New file.
31963         * modules/unictype/property-math-tests: New file.
31964         * modules/unictype/property-non-break-tests: New file.
31965         * modules/unictype/property-not-a-character-tests: New file.
31966         * modules/unictype/property-numeric-tests: New file.
31967         * modules/unictype/property-other-alphabetic-tests: New file.
31968         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
31969         * modules/unictype/property-other-grapheme-extend-tests: New file.
31970         * modules/unictype/property-other-id-continue-tests: New file.
31971         * modules/unictype/property-other-id-start-tests: New file.
31972         * modules/unictype/property-other-lowercase-tests: New file.
31973         * modules/unictype/property-other-math-tests: New file.
31974         * modules/unictype/property-other-uppercase-tests: New file.
31975         * modules/unictype/property-paired-punctuation-tests: New file.
31976         * modules/unictype/property-paragraph-separator-tests: New file.
31977         * modules/unictype/property-pattern-syntax-tests: New file.
31978         * modules/unictype/property-pattern-white-space-tests: New file.
31979         * modules/unictype/property-private-use-tests: New file.
31980         * modules/unictype/property-punctuation-tests: New file.
31981         * modules/unictype/property-quotation-mark-tests: New file.
31982         * modules/unictype/property-radical-tests: New file.
31983         * modules/unictype/property-sentence-terminal-tests: New file.
31984         * modules/unictype/property-soft-dotted-tests: New file.
31985         * modules/unictype/property-space-tests: New file.
31986         * modules/unictype/property-terminal-punctuation-tests: New file.
31987         * modules/unictype/property-test-tests: New file.
31988         * modules/unictype/property-titlecase-tests: New file.
31989         * modules/unictype/property-unassigned-code-value-tests: New file.
31990         * modules/unictype/property-unified-ideograph-tests: New file.
31991         * modules/unictype/property-uppercase-tests: New file.
31992         * modules/unictype/property-variation-selector-tests: New file.
31993         * modules/unictype/property-white-space-tests: New file.
31994         * modules/unictype/property-xid-continue-tests: New file.
31995         * modules/unictype/property-xid-start-tests: New file.
31996         * modules/unictype/property-zero-width-tests: New file.
31997         * modules/unictype/scripts-tests: New file.
31998         * modules/unictype/syntax-c-ident-tests: New file.
31999         * modules/unictype/syntax-c-whitespace-tests: New file.
32000         * modules/unictype/syntax-java-ident-tests: New file.
32001         * modules/unictype/syntax-java-whitespace-tests: New file.
32002         * tests/unictype/test-bidi_byname.c: New file.
32003         * tests/unictype/test-bidi_name.c: New file.
32004         * tests/unictype/test-bidi_of.c: New file.
32005         * tests/unictype/test-bidi_test.c: New file.
32006         * tests/unictype/test-block_list.c: New file.
32007         * tests/unictype/test-block_of.c: New file.
32008         * tests/unictype/test-block_test.c: New file.
32009         * tests/unictype/test-categ_and.c: New file.
32010         * tests/unictype/test-categ_and_not.c: New file.
32011         * tests/unictype/test-categ_byname.c: New file.
32012         * tests/unictype/test-categ_name.c: New file.
32013         * tests/unictype/test-categ_none.c: New file.
32014         * tests/unictype/test-categ_of.c: New file.
32015         * tests/unictype/test-categ_or.c: New file.
32016         * tests/unictype/test-categ_test_withtable.c: New file.
32017         * tests/unictype/test-combining.c: New file.
32018         * tests/unictype/test-decdigit.c: New file.
32019         * tests/unictype/test-digit.c: New file.
32020         * tests/unictype/test-mirror.c: New file.
32021         * tests/unictype/test-numeric.c: New file.
32022         * tests/unictype/test-pr_byname.c: New file.
32023         * tests/unictype/test-pr_test.c: New file.
32024         * tests/unictype/test-predicate-part1.h: New file.
32025         * tests/unictype/test-predicate-part2.h: New file.
32026         * tests/unictype/test-scripts.c: New file.
32027         * tests/unictype/test-sy_c_ident.c: New file.
32028         * tests/unictype/test-sy_java_ident.c: New file.
32029
32030         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32031         for Unicode 5.0.0.
32032         * tests/unictype/test-categ_Cc.c: Likewise.
32033         * tests/unictype/test-categ_Cf.c: Likewise.
32034         * tests/unictype/test-categ_Cn.c: Likewise.
32035         * tests/unictype/test-categ_Co.c: Likewise.
32036         * tests/unictype/test-categ_Cs.c: Likewise.
32037         * tests/unictype/test-categ_L.c: Likewise.
32038         * tests/unictype/test-categ_Ll.c: Likewise.
32039         * tests/unictype/test-categ_Lm.c: Likewise.
32040         * tests/unictype/test-categ_Lo.c: Likewise.
32041         * tests/unictype/test-categ_Lt.c: Likewise.
32042         * tests/unictype/test-categ_Lu.c: Likewise.
32043         * tests/unictype/test-categ_M.c: Likewise.
32044         * tests/unictype/test-categ_Mc.c: Likewise.
32045         * tests/unictype/test-categ_Me.c: Likewise.
32046         * tests/unictype/test-categ_Mn.c: Likewise.
32047         * tests/unictype/test-categ_N.c: Likewise.
32048         * tests/unictype/test-categ_Nd.c: Likewise.
32049         * tests/unictype/test-categ_Nl.c: Likewise.
32050         * tests/unictype/test-categ_No.c: Likewise.
32051         * tests/unictype/test-categ_P.c: Likewise.
32052         * tests/unictype/test-categ_Pc.c: Likewise.
32053         * tests/unictype/test-categ_Pd.c: Likewise.
32054         * tests/unictype/test-categ_Pe.c: Likewise.
32055         * tests/unictype/test-categ_Pf.c: Likewise.
32056         * tests/unictype/test-categ_Pi.c: Likewise.
32057         * tests/unictype/test-categ_Po.c: Likewise.
32058         * tests/unictype/test-categ_Ps.c: Likewise.
32059         * tests/unictype/test-categ_S.c: Likewise.
32060         * tests/unictype/test-categ_Sc.c: Likewise.
32061         * tests/unictype/test-categ_Sk.c: Likewise.
32062         * tests/unictype/test-categ_Sm.c: Likewise.
32063         * tests/unictype/test-categ_So.c: Likewise.
32064         * tests/unictype/test-categ_Z.c: Likewise.
32065         * tests/unictype/test-categ_Zl.c: Likewise.
32066         * tests/unictype/test-categ_Zp.c: Likewise.
32067         * tests/unictype/test-categ_Zs.c: Likewise.
32068         * tests/unictype/test-ctype_alnum.c: Likewise.
32069         * tests/unictype/test-ctype_alpha.c: Likewise.
32070         * tests/unictype/test-ctype_blank.c: Likewise.
32071         * tests/unictype/test-ctype_cntrl.c: Likewise.
32072         * tests/unictype/test-ctype_digit.c: Likewise.
32073         * tests/unictype/test-ctype_graph.c: Likewise.
32074         * tests/unictype/test-ctype_lower.c: Likewise.
32075         * tests/unictype/test-ctype_print.c: Likewise.
32076         * tests/unictype/test-ctype_punct.c: Likewise.
32077         * tests/unictype/test-ctype_space.c: Likewise.
32078         * tests/unictype/test-ctype_upper.c: Likewise.
32079         * tests/unictype/test-ctype_xdigit.c: Likewise.
32080         * tests/unictype/test-decdigit.h: Likewise.
32081         * tests/unictype/test-digit.h: Likewise.
32082         * tests/unictype/test-numeric.h: Likewise.
32083         * tests/unictype/test-pr_alphabetic.c: Likewise.
32084         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32085         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32086         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32087         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32088         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32089         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32090         * tests/unictype/test-pr_bidi_control.c: Likewise.
32091         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32092         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32093         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32094         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32095         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32096         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32097         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32098         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32099         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32100         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32101         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32102         * tests/unictype/test-pr_combining.c: Likewise.
32103         * tests/unictype/test-pr_composite.c: Likewise.
32104         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32105         * tests/unictype/test-pr_dash.c: Likewise.
32106         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32107         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32108         * tests/unictype/test-pr_deprecated.c: Likewise.
32109         * tests/unictype/test-pr_diacritic.c: Likewise.
32110         * tests/unictype/test-pr_extender.c: Likewise.
32111         * tests/unictype/test-pr_format_control.c: Likewise.
32112         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32113         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32114         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32115         * tests/unictype/test-pr_hex_digit.c: Likewise.
32116         * tests/unictype/test-pr_hyphen.c: Likewise.
32117         * tests/unictype/test-pr_id_continue.c: Likewise.
32118         * tests/unictype/test-pr_id_start.c: Likewise.
32119         * tests/unictype/test-pr_ideographic.c: Likewise.
32120         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32121         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32122         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32123         * tests/unictype/test-pr_iso_control.c: Likewise.
32124         * tests/unictype/test-pr_join_control.c: Likewise.
32125         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32126         * tests/unictype/test-pr_line_separator.c: Likewise.
32127         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32128         * tests/unictype/test-pr_lowercase.c: Likewise.
32129         * tests/unictype/test-pr_math.c: Likewise.
32130         * tests/unictype/test-pr_non_break.c: Likewise.
32131         * tests/unictype/test-pr_not_a_character.c: Likewise.
32132         * tests/unictype/test-pr_numeric.c: Likewise.
32133         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32134         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32135         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32136         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32137         * tests/unictype/test-pr_other_id_start.c: Likewise.
32138         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32139         * tests/unictype/test-pr_other_math.c: Likewise.
32140         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32141         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32142         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32143         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32144         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32145         * tests/unictype/test-pr_private_use.c: Likewise.
32146         * tests/unictype/test-pr_punctuation.c: Likewise.
32147         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32148         * tests/unictype/test-pr_radical.c: Likewise.
32149         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32150         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32151         * tests/unictype/test-pr_space.c: Likewise.
32152         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32153         * tests/unictype/test-pr_titlecase.c: Likewise.
32154         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32155         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32156         * tests/unictype/test-pr_uppercase.c: Likewise.
32157         * tests/unictype/test-pr_variation_selector.c: Likewise.
32158         * tests/unictype/test-pr_white_space.c: Likewise.
32159         * tests/unictype/test-pr_xid_continue.c: Likewise.
32160         * tests/unictype/test-pr_xid_start.c: Likewise.
32161         * tests/unictype/test-pr_zero_width.c: Likewise.
32162         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32163         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32164
32165 2007-11-12  Bruno Haible  <bruno@clisp.org>
32166
32167         Unicode character classification functions.
32168         * lib/unictype.h: New file.
32169         * modules/unictype/base: New file.
32170         * modules/unictype/category-L: New file.
32171         * modules/unictype/category-Lu: New file.
32172         * modules/unictype/category-Ll: New file.
32173         * modules/unictype/category-Lt: New file.
32174         * modules/unictype/category-Lm: New file.
32175         * modules/unictype/category-Lo: New file.
32176         * modules/unictype/category-M: New file.
32177         * modules/unictype/category-Mn: New file.
32178         * modules/unictype/category-Mc: New file.
32179         * modules/unictype/category-Me: New file.
32180         * modules/unictype/category-N: New file.
32181         * modules/unictype/category-Nd: New file.
32182         * modules/unictype/category-Nl: New file.
32183         * modules/unictype/category-No: New file.
32184         * modules/unictype/category-P: New file.
32185         * modules/unictype/category-Pc: New file.
32186         * modules/unictype/category-Pd: New file.
32187         * modules/unictype/category-Ps: New file.
32188         * modules/unictype/category-Pe: New file.
32189         * modules/unictype/category-Pi: New file.
32190         * modules/unictype/category-Pf: New file.
32191         * modules/unictype/category-Po: New file.
32192         * modules/unictype/category-S: New file.
32193         * modules/unictype/category-Sm: New file.
32194         * modules/unictype/category-Sc: New file.
32195         * modules/unictype/category-Sk: New file.
32196         * modules/unictype/category-So: New file.
32197         * modules/unictype/category-Z: New file.
32198         * modules/unictype/category-Zs: New file.
32199         * modules/unictype/category-Zl: New file.
32200         * modules/unictype/category-Zp: New file.
32201         * modules/unictype/category-C: New file.
32202         * modules/unictype/category-Cc: New file.
32203         * modules/unictype/category-Cf: New file.
32204         * modules/unictype/category-Cs: New file.
32205         * modules/unictype/category-Co: New file.
32206         * modules/unictype/category-Cn: New file.
32207         * modules/unictype/category-or: New file.
32208         * modules/unictype/category-of: New file.
32209         * modules/unictype/category-test: New file.
32210         * modules/unictype/category-test-withtable: New file.
32211         * modules/unictype/category-byname: New file.
32212         * modules/unictype/category-none: New file.
32213         * modules/unictype/category-and: New file.
32214         * modules/unictype/category-and-not: New file.
32215         * modules/unictype/category-name: New file.
32216         * modules/unictype/combining-class: New file.
32217         * modules/unictype/category-all: New file.
32218         * modules/unictype/bidicategory-all: New file.
32219         * modules/unictype/bidicategory-byname: New file.
32220         * modules/unictype/bidicategory-name: New file.
32221         * modules/unictype/bidicategory-of: New file.
32222         * modules/unictype/bidicategory-test: New file.
32223         * modules/unictype/decimal-digit: New file.
32224         * modules/unictype/digit: New file.
32225         * modules/unictype/numeric: New file.
32226         * modules/unictype/mirror: New file.
32227         * modules/unictype/property-white-space: New file.
32228         * modules/unictype/property-alphabetic: New file.
32229         * modules/unictype/property-other-alphabetic: New file.
32230         * modules/unictype/property-not-a-character: New file.
32231         * modules/unictype/property-default-ignorable-code-point: New file.
32232         * modules/unictype/property-other-default-ignorable-code-point: New
32233         file.
32234         * modules/unictype/property-deprecated: New file.
32235         * modules/unictype/property-logical-order-exception: New file.
32236         * modules/unictype/property-variation-selector: New file.
32237         * modules/unictype/property-private-use: New file.
32238         * modules/unictype/property-unassigned-code-value: New file.
32239         * modules/unictype/property-uppercase: New file.
32240         * modules/unictype/property-other-uppercase: New file.
32241         * modules/unictype/property-lowercase: New file.
32242         * modules/unictype/property-other-lowercase: New file.
32243         * modules/unictype/property-titlecase: New file.
32244         * modules/unictype/property-soft-dotted: New file.
32245         * modules/unictype/property-id-start: New file.
32246         * modules/unictype/property-other-id-start: New file.
32247         * modules/unictype/property-id-continue: New file.
32248         * modules/unictype/property-other-id-continue: New file.
32249         * modules/unictype/property-xid-start: New file.
32250         * modules/unictype/property-xid-continue: New file.
32251         * modules/unictype/property-pattern-white-space: New file.
32252         * modules/unictype/property-pattern-syntax: New file.
32253         * modules/unictype/property-join-control: New file.
32254         * modules/unictype/property-grapheme-base: New file.
32255         * modules/unictype/property-grapheme-extend: New file.
32256         * modules/unictype/property-other-grapheme-extend: New file.
32257         * modules/unictype/property-grapheme-link: New file.
32258         * modules/unictype/property-bidi-control: New file.
32259         * modules/unictype/property-bidi-left-to-right: New file.
32260         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32261         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32262         * modules/unictype/property-bidi-european-digit: New file.
32263         * modules/unictype/property-bidi-eur-num-separator: New file.
32264         * modules/unictype/property-bidi-eur-num-terminator: New file.
32265         * modules/unictype/property-bidi-arabic-digit: New file.
32266         * modules/unictype/property-bidi-common-separator: New file.
32267         * modules/unictype/property-bidi-block-separator: New file.
32268         * modules/unictype/property-bidi-segment-separator: New file.
32269         * modules/unictype/property-bidi-whitespace: New file.
32270         * modules/unictype/property-bidi-non-spacing-mark: New file.
32271         * modules/unictype/property-bidi-boundary-neutral: New file.
32272         * modules/unictype/property-bidi-pdf: New file.
32273         * modules/unictype/property-bidi-embedding-or-override: New file.
32274         * modules/unictype/property-bidi-other-neutral: New file.
32275         * modules/unictype/property-hex-digit: New file.
32276         * modules/unictype/property-ascii-hex-digit: New file.
32277         * modules/unictype/property-ideographic: New file.
32278         * modules/unictype/property-unified-ideograph: New file.
32279         * modules/unictype/property-radical: New file.
32280         * modules/unictype/property-ids-binary-operator: New file.
32281         * modules/unictype/property-ids-trinary-operator: New file.
32282         * modules/unictype/property-zero-width: New file.
32283         * modules/unictype/property-space: New file.
32284         * modules/unictype/property-non-break: New file.
32285         * modules/unictype/property-iso-control: New file.
32286         * modules/unictype/property-format-control: New file.
32287         * modules/unictype/property-dash: New file.
32288         * modules/unictype/property-hyphen: New file.
32289         * modules/unictype/property-punctuation: New file.
32290         * modules/unictype/property-line-separator: New file.
32291         * modules/unictype/property-paragraph-separator: New file.
32292         * modules/unictype/property-quotation-mark: New file.
32293         * modules/unictype/property-sentence-terminal: New file.
32294         * modules/unictype/property-terminal-punctuation: New file.
32295         * modules/unictype/property-currency-symbol: New file.
32296         * modules/unictype/property-math: New file.
32297         * modules/unictype/property-other-math: New file.
32298         * modules/unictype/property-paired-punctuation: New file.
32299         * modules/unictype/property-left-of-pair: New file.
32300         * modules/unictype/property-combining: New file.
32301         * modules/unictype/property-composite: New file.
32302         * modules/unictype/property-decimal-digit: New file.
32303         * modules/unictype/property-numeric: New file.
32304         * modules/unictype/property-diacritic: New file.
32305         * modules/unictype/property-extender: New file.
32306         * modules/unictype/property-ignorable-control: New file.
32307         * modules/unictype/property-test: New file.
32308         * modules/unictype/property-byname: New file.
32309         * modules/unictype/property-all: New file.
32310         * modules/unictype/scripts: New file.
32311         * modules/unictype/scripts-all: New file.
32312         * modules/unictype/block-of: New file.
32313         * modules/unictype/block-test: New file.
32314         * modules/unictype/block-list: New file.
32315         * modules/unictype/block-all: New file.
32316         * modules/unictype/syntax-c-whitespace: New file.
32317         * modules/unictype/syntax-java-whitespace: New file.
32318         * modules/unictype/syntax-c-ident: New file.
32319         * modules/unictype/syntax-java-ident: New file.
32320         * modules/unictype/ctype-alnum: New file.
32321         * modules/unictype/ctype-alpha: New file.
32322         * modules/unictype/ctype-cntrl: New file.
32323         * modules/unictype/ctype-digit: New file.
32324         * modules/unictype/ctype-graph: New file.
32325         * modules/unictype/ctype-lower: New file.
32326         * modules/unictype/ctype-print: New file.
32327         * modules/unictype/ctype-punct: New file.
32328         * modules/unictype/ctype-space: New file.
32329         * modules/unictype/ctype-upper: New file.
32330         * modules/unictype/ctype-xdigit: New file.
32331         * modules/unictype/ctype-blank: New file.
32332         * lib/unictype/bidi_byname.c: New file.
32333         * lib/unictype/bidi_name.c: New file.
32334         * lib/unictype/bidi_of.c: New file.
32335         * lib/unictype/bidi_test.c: New file.
32336         * lib/unictype/bitmap.h: New file.
32337         * lib/unictype/block_test.c: New file.
32338         * lib/unictype/blocks.c: New file.
32339         * lib/unictype/categ_C.c: New file.
32340         * lib/unictype/categ_Cc.c: New file.
32341         * lib/unictype/categ_Cf.c: New file.
32342         * lib/unictype/categ_Cn.c: New file.
32343         * lib/unictype/categ_Co.c: New file.
32344         * lib/unictype/categ_Cs.c: New file.
32345         * lib/unictype/categ_L.c: New file.
32346         * lib/unictype/categ_Ll.c: New file.
32347         * lib/unictype/categ_Lm.c: New file.
32348         * lib/unictype/categ_Lo.c: New file.
32349         * lib/unictype/categ_Lt.c: New file.
32350         * lib/unictype/categ_Lu.c: New file.
32351         * lib/unictype/categ_M.c: New file.
32352         * lib/unictype/categ_Mc.c: New file.
32353         * lib/unictype/categ_Me.c: New file.
32354         * lib/unictype/categ_Mn.c: New file.
32355         * lib/unictype/categ_N.c: New file.
32356         * lib/unictype/categ_Nd.c: New file.
32357         * lib/unictype/categ_Nl.c: New file.
32358         * lib/unictype/categ_No.c: New file.
32359         * lib/unictype/categ_P.c: New file.
32360         * lib/unictype/categ_Pc.c: New file.
32361         * lib/unictype/categ_Pd.c: New file.
32362         * lib/unictype/categ_Pe.c: New file.
32363         * lib/unictype/categ_Pf.c: New file.
32364         * lib/unictype/categ_Pi.c: New file.
32365         * lib/unictype/categ_Po.c: New file.
32366         * lib/unictype/categ_Ps.c: New file.
32367         * lib/unictype/categ_S.c: New file.
32368         * lib/unictype/categ_Sc.c: New file.
32369         * lib/unictype/categ_Sk.c: New file.
32370         * lib/unictype/categ_Sm.c: New file.
32371         * lib/unictype/categ_So.c: New file.
32372         * lib/unictype/categ_Z.c: New file.
32373         * lib/unictype/categ_Zl.c: New file.
32374         * lib/unictype/categ_Zp.c: New file.
32375         * lib/unictype/categ_Zs.c: New file.
32376         * lib/unictype/categ_and.c: New file.
32377         * lib/unictype/categ_and_not.c: New file.
32378         * lib/unictype/categ_byname.c: New file.
32379         * lib/unictype/categ_name.c: New file.
32380         * lib/unictype/categ_none.c: New file.
32381         * lib/unictype/categ_of.c: New file.
32382         * lib/unictype/categ_or.c: New file.
32383         * lib/unictype/categ_test.c: New file.
32384         * lib/unictype/combining.c: New file.
32385         * lib/unictype/ctype_alnum.c: New file.
32386         * lib/unictype/ctype_alpha.c: New file.
32387         * lib/unictype/ctype_blank.c: New file.
32388         * lib/unictype/ctype_cntrl.c: New file.
32389         * lib/unictype/ctype_digit.c: New file.
32390         * lib/unictype/ctype_graph.c: New file.
32391         * lib/unictype/ctype_lower.c: New file.
32392         * lib/unictype/ctype_print.c: New file.
32393         * lib/unictype/ctype_punct.c: New file.
32394         * lib/unictype/ctype_space.c: New file.
32395         * lib/unictype/ctype_upper.c: New file.
32396         * lib/unictype/ctype_xdigit.c: New file.
32397         * lib/unictype/decdigit.c: New file.
32398         * lib/unictype/digit.c: New file.
32399         * lib/unictype/identsyntaxmap.h: New file.
32400         * lib/unictype/mirror.c: New file.
32401         * lib/unictype/numeric.c: New file.
32402         * lib/unictype/pr_alphabetic.c: New file.
32403         * lib/unictype/pr_ascii_hex_digit.c: New file.
32404         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32405         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32406         * lib/unictype/pr_bidi_block_separator.c: New file.
32407         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32408         * lib/unictype/pr_bidi_common_separator.c: New file.
32409         * lib/unictype/pr_bidi_control.c: New file.
32410         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32411         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32412         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32413         * lib/unictype/pr_bidi_european_digit.c: New file.
32414         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32415         * lib/unictype/pr_bidi_left_to_right.c: New file.
32416         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32417         * lib/unictype/pr_bidi_other_neutral.c: New file.
32418         * lib/unictype/pr_bidi_pdf.c: New file.
32419         * lib/unictype/pr_bidi_segment_separator.c: New file.
32420         * lib/unictype/pr_bidi_whitespace.c: New file.
32421         * lib/unictype/pr_byname.c: New file.
32422         * lib/unictype/pr_byname.gperf: New file.
32423         * lib/unictype/pr_combining.c: New file.
32424         * lib/unictype/pr_composite.c: New file.
32425         * lib/unictype/pr_currency_symbol.c: New file.
32426         * lib/unictype/pr_dash.c: New file.
32427         * lib/unictype/pr_decimal_digit.c: New file.
32428         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32429         * lib/unictype/pr_deprecated.c: New file.
32430         * lib/unictype/pr_diacritic.c: New file.
32431         * lib/unictype/pr_extender.c: New file.
32432         * lib/unictype/pr_format_control.c: New file.
32433         * lib/unictype/pr_grapheme_base.c: New file.
32434         * lib/unictype/pr_grapheme_extend.c: New file.
32435         * lib/unictype/pr_grapheme_link.c: New file.
32436         * lib/unictype/pr_hex_digit.c: New file.
32437         * lib/unictype/pr_hyphen.c: New file.
32438         * lib/unictype/pr_id_continue.c: New file.
32439         * lib/unictype/pr_id_start.c: New file.
32440         * lib/unictype/pr_ideographic.c: New file.
32441         * lib/unictype/pr_ids_binary_operator.c: New file.
32442         * lib/unictype/pr_ids_trinary_operator.c: New file.
32443         * lib/unictype/pr_ignorable_control.c: New file.
32444         * lib/unictype/pr_iso_control.c: New file.
32445         * lib/unictype/pr_join_control.c: New file.
32446         * lib/unictype/pr_left_of_pair.c: New file.
32447         * lib/unictype/pr_line_separator.c: New file.
32448         * lib/unictype/pr_logical_order_exception.c: New file.
32449         * lib/unictype/pr_lowercase.c: New file.
32450         * lib/unictype/pr_math.c: New file.
32451         * lib/unictype/pr_non_break.c: New file.
32452         * lib/unictype/pr_not_a_character.c: New file.
32453         * lib/unictype/pr_numeric.c: New file.
32454         * lib/unictype/pr_other_alphabetic.c: New file.
32455         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32456         * lib/unictype/pr_other_grapheme_extend.c: New file.
32457         * lib/unictype/pr_other_id_continue.c: New file.
32458         * lib/unictype/pr_other_id_start.c: New file.
32459         * lib/unictype/pr_other_lowercase.c: New file.
32460         * lib/unictype/pr_other_math.c: New file.
32461         * lib/unictype/pr_other_uppercase.c: New file.
32462         * lib/unictype/pr_paired_punctuation.c: New file.
32463         * lib/unictype/pr_paragraph_separator.c: New file.
32464         * lib/unictype/pr_pattern_syntax.c: New file.
32465         * lib/unictype/pr_pattern_white_space.c: New file.
32466         * lib/unictype/pr_private_use.c: New file.
32467         * lib/unictype/pr_punctuation.c: New file.
32468         * lib/unictype/pr_quotation_mark.c: New file.
32469         * lib/unictype/pr_radical.c: New file.
32470         * lib/unictype/pr_sentence_terminal.c: New file.
32471         * lib/unictype/pr_soft_dotted.c: New file.
32472         * lib/unictype/pr_space.c: New file.
32473         * lib/unictype/pr_terminal_punctuation.c: New file.
32474         * lib/unictype/pr_test.c: New file.
32475         * lib/unictype/pr_titlecase.c: New file.
32476         * lib/unictype/pr_unassigned_code_value.c: New file.
32477         * lib/unictype/pr_unified_ideograph.c: New file.
32478         * lib/unictype/pr_uppercase.c: New file.
32479         * lib/unictype/pr_variation_selector.c: New file.
32480         * lib/unictype/pr_white_space.c: New file.
32481         * lib/unictype/pr_xid_continue.c: New file.
32482         * lib/unictype/pr_xid_start.c: New file.
32483         * lib/unictype/pr_zero_width.c: New file.
32484         * lib/unictype/scripts.c: New file.
32485         * lib/unictype/sy_c_ident.c: New file.
32486         * lib/unictype/sy_c_whitespace.c: New file.
32487         * lib/unictype/sy_java_ident.c: New file.
32488         * lib/unictype/sy_java_whitespace.c: New file.
32489
32490         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32491         Unicode 5.0.0.
32492         * lib/unictype/blocks.h: Likewise.
32493         * lib/unictype/categ_C.h: Likewise.
32494         * lib/unictype/categ_Cc.h: Likewise.
32495         * lib/unictype/categ_Cf.h: Likewise.
32496         * lib/unictype/categ_Cn.h: Likewise.
32497         * lib/unictype/categ_Co.h: Likewise.
32498         * lib/unictype/categ_Cs.h: Likewise.
32499         * lib/unictype/categ_L.h: Likewise.
32500         * lib/unictype/categ_Ll.h: Likewise.
32501         * lib/unictype/categ_Lm.h: Likewise.
32502         * lib/unictype/categ_Lo.h: Likewise.
32503         * lib/unictype/categ_Lt.h: Likewise.
32504         * lib/unictype/categ_Lu.h: Likewise.
32505         * lib/unictype/categ_M.h: Likewise.
32506         * lib/unictype/categ_Mc.h: Likewise.
32507         * lib/unictype/categ_Me.h: Likewise.
32508         * lib/unictype/categ_Mn.h: Likewise.
32509         * lib/unictype/categ_N.h: Likewise.
32510         * lib/unictype/categ_Nd.h: Likewise.
32511         * lib/unictype/categ_Nl.h: Likewise.
32512         * lib/unictype/categ_No.h: Likewise.
32513         * lib/unictype/categ_P.h: Likewise.
32514         * lib/unictype/categ_Pc.h: Likewise.
32515         * lib/unictype/categ_Pd.h: Likewise.
32516         * lib/unictype/categ_Pe.h: Likewise.
32517         * lib/unictype/categ_Pf.h: Likewise.
32518         * lib/unictype/categ_Pi.h: Likewise.
32519         * lib/unictype/categ_Po.h: Likewise.
32520         * lib/unictype/categ_Ps.h: Likewise.
32521         * lib/unictype/categ_S.h: Likewise.
32522         * lib/unictype/categ_Sc.h: Likewise.
32523         * lib/unictype/categ_Sk.h: Likewise.
32524         * lib/unictype/categ_Sm.h: Likewise.
32525         * lib/unictype/categ_So.h: Likewise.
32526         * lib/unictype/categ_Z.h: Likewise.
32527         * lib/unictype/categ_Zl.h: Likewise.
32528         * lib/unictype/categ_Zp.h: Likewise.
32529         * lib/unictype/categ_Zs.h: Likewise.
32530         * lib/unictype/categ_of.h: Likewise.
32531         * lib/unictype/combining.h: Likewise.
32532         * lib/unictype/ctype_alnum.h: Likewise.
32533         * lib/unictype/ctype_alpha.h: Likewise.
32534         * lib/unictype/ctype_blank.h: Likewise.
32535         * lib/unictype/ctype_cntrl.h: Likewise.
32536         * lib/unictype/ctype_digit.h: Likewise.
32537         * lib/unictype/ctype_graph.h: Likewise.
32538         * lib/unictype/ctype_lower.h: Likewise.
32539         * lib/unictype/ctype_print.h: Likewise.
32540         * lib/unictype/ctype_punct.h: Likewise.
32541         * lib/unictype/ctype_space.h: Likewise.
32542         * lib/unictype/ctype_upper.h: Likewise.
32543         * lib/unictype/ctype_xdigit.h: Likewise.
32544         * lib/unictype/decdigit.h: Likewise.
32545         * lib/unictype/digit.h: Likewise.
32546         * lib/unictype/mirror.h: Likewise.
32547         * lib/unictype/numeric.h: Likewise.
32548         * lib/unictype/pr_alphabetic.h: Likewise.
32549         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32550         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32551         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32552         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32553         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32554         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32555         * lib/unictype/pr_bidi_control.h: Likewise.
32556         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32557         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32558         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32559         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32560         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32561         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32562         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32563         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32564         * lib/unictype/pr_bidi_pdf.h: Likewise.
32565         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32566         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32567         * lib/unictype/pr_combining.h: Likewise.
32568         * lib/unictype/pr_composite.h: Likewise.
32569         * lib/unictype/pr_currency_symbol.h: Likewise.
32570         * lib/unictype/pr_dash.h: Likewise.
32571         * lib/unictype/pr_decimal_digit.h: Likewise.
32572         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32573         * lib/unictype/pr_deprecated.h: Likewise.
32574         * lib/unictype/pr_diacritic.h: Likewise.
32575         * lib/unictype/pr_extender.h: Likewise.
32576         * lib/unictype/pr_format_control.h: Likewise.
32577         * lib/unictype/pr_grapheme_base.h: Likewise.
32578         * lib/unictype/pr_grapheme_extend.h: Likewise.
32579         * lib/unictype/pr_grapheme_link.h: Likewise.
32580         * lib/unictype/pr_hex_digit.h: Likewise.
32581         * lib/unictype/pr_hyphen.h: Likewise.
32582         * lib/unictype/pr_id_continue.h: Likewise.
32583         * lib/unictype/pr_id_start.h: Likewise.
32584         * lib/unictype/pr_ideographic.h: Likewise.
32585         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32586         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32587         * lib/unictype/pr_ignorable_control.h: Likewise.
32588         * lib/unictype/pr_iso_control.h: Likewise.
32589         * lib/unictype/pr_join_control.h: Likewise.
32590         * lib/unictype/pr_left_of_pair.h: Likewise.
32591         * lib/unictype/pr_line_separator.h: Likewise.
32592         * lib/unictype/pr_logical_order_exception.h: Likewise.
32593         * lib/unictype/pr_lowercase.h: Likewise.
32594         * lib/unictype/pr_math.h: Likewise.
32595         * lib/unictype/pr_non_break.h: Likewise.
32596         * lib/unictype/pr_not_a_character.h: Likewise.
32597         * lib/unictype/pr_numeric.h: Likewise.
32598         * lib/unictype/pr_other_alphabetic.h: Likewise.
32599         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32600         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32601         * lib/unictype/pr_other_id_continue.h: Likewise.
32602         * lib/unictype/pr_other_id_start.h: Likewise.
32603         * lib/unictype/pr_other_lowercase.h: Likewise.
32604         * lib/unictype/pr_other_math.h: Likewise.
32605         * lib/unictype/pr_other_uppercase.h: Likewise.
32606         * lib/unictype/pr_paired_punctuation.h: Likewise.
32607         * lib/unictype/pr_paragraph_separator.h: Likewise.
32608         * lib/unictype/pr_pattern_syntax.h: Likewise.
32609         * lib/unictype/pr_pattern_white_space.h: Likewise.
32610         * lib/unictype/pr_private_use.h: Likewise.
32611         * lib/unictype/pr_punctuation.h: Likewise.
32612         * lib/unictype/pr_quotation_mark.h: Likewise.
32613         * lib/unictype/pr_radical.h: Likewise.
32614         * lib/unictype/pr_sentence_terminal.h: Likewise.
32615         * lib/unictype/pr_soft_dotted.h: Likewise.
32616         * lib/unictype/pr_space.h: Likewise.
32617         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32618         * lib/unictype/pr_titlecase.h: Likewise.
32619         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32620         * lib/unictype/pr_unified_ideograph.h: Likewise.
32621         * lib/unictype/pr_uppercase.h: Likewise.
32622         * lib/unictype/pr_variation_selector.h: Likewise.
32623         * lib/unictype/pr_white_space.h: Likewise.
32624         * lib/unictype/pr_xid_continue.h: Likewise.
32625         * lib/unictype/pr_xid_start.h: Likewise.
32626         * lib/unictype/pr_zero_width.h: Likewise.
32627         * lib/unictype/scripts.h: Likewise.
32628         * lib/unictype/scripts_byname.gperf: Likewise.
32629         * lib/unictype/sy_c_ident.h: Likewise.
32630         * lib/unictype/sy_c_whitespace.h: Likewise.
32631         * lib/unictype/sy_java_ident.h: Likewise.
32632         * lib/unictype/sy_java_whitespace.h: Likewise.
32633
32634         * lib/unictype/Makefile: New file.
32635         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32636         glibc.
32637         * lib/unictype/3level.h: New file, copied from glibc.
32638         * lib/unictype/3levelbit.h: New file.
32639
32640 2007-11-11  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/gperf: New file.
32643         * modules/iconv_open (Depends-on): Add it.
32644         (Makefile.am): Remove the GPERF definition.
32645
32646 2007-11-11  Bruno Haible  <bruno@clisp.org>
32647
32648         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32649         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32650
32651 2007-11-11  Bruno Haible  <bruno@clisp.org>
32652
32653         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32654         (usage): Remove function.
32655
32656 2007-11-11  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32659         gl_FUNC_CEILF_LIBS.
32660         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32661         gl_FUNC_CEIL_LIBS.
32662         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32663         gl_FUNC_CEILL_LIBS.
32664         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32665         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32666         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32667
32668 2007-11-11  Bruno Haible  <bruno@clisp.org>
32669
32670         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32671         roundf were declared but do not exist on functions.
32672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32673         roundl were declared but do not exist on functions.
32674         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32675         HAVE_FLOORL_AND_CEILL, respectively.
32676         Needed for Sun C on Solaris 10.
32677
32678 2007-11-11  Bruno Haible  <bruno@clisp.org>
32679
32680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32681         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32682         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32683         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32685         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32686         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32687         HAVE_DECL_ROUNDF.
32688         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32689         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32691         of HAVE_DECL_ROUND*.
32692         * modules/math (Makefile.am): Update.
32693
32694 2007-11-10  Bruno Haible  <bruno@clisp.org>
32695
32696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32697         ptrdiff_t as m4/intl.m4.
32698
32699 2007-11-10  Jim Meyering  <meyering@redhat.com>
32700
32701         Avoid link failure for the argmatch test.
32702         * tests/test-argmatch.c (usage): Define function to avoid a link
32703         failure: argmatch_die requires a usage function.
32704
32705 2007-11-09  Bruno Haible  <bruno@clisp.org>
32706
32707         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32708         * doc/functions/vsnprintf.texi: Likewise.
32709         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32710         with a size argument < 2.
32711
32712 2007-11-09  Bruno Haible  <bruno@clisp.org>
32713
32714         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32715         buffer. Fixes an inefficiency introduced on 2007-11-03.
32716
32717 2007-11-09  Bruno Haible  <bruno@clisp.org>
32718
32719         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32720         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32721
32722 2007-11-08  Jim Meyering  <meyering@redhat.com>
32723
32724         Change cache variable name prefix "jm_" to "gl_" everywhere.
32725         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32726         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32727         * m4/uptime.m4: s/gl_/jm_/
32728
32729 2007-11-07  Bruno Haible  <bruno@clisp.org>
32730
32731         Update to GNU gettext 0.17.
32732         * m4/intl.m4: Update to GNU gettext 0.17.
32733         * m4/po.m4: Likewise.
32734         * modules/gettext (Files): Remove m4/ulonglong.m4.
32735         (configure.ac): Require gettext infrastructure from version 0.17.
32736
32737 2007-11-06  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32740         symbolic values are not defined in a public header.
32741         * lib/freadable.c (freadable) [QNX]: Likewise.
32742         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32743         * lib/freading.c (freading) [QNX]: Likewise.
32744         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32745         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32746         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32747         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32748         Reported by Alain Magloire.
32749
32750         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32751
32752 2007-11-05  Bruno Haible  <bruno@clisp.org>
32753
32754         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32755         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32756         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32757         Reported by Eric Blake.
32758
32759 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32760             Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32763         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32764         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32765         (malloc): Undefine also before including <stdlib.h>.
32766         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32767         Needed on OSF/1 4.0.
32768
32769 2007-11-05  Jim Meyering  <meyering@redhat.com>
32770
32771         git-version-gen: sync from coreutils.
32772         * build-aux/git-version-gen: Add comments.
32773         Change the first '-' to '.' in the snapshot version string,
32774         e.g., 6.9-377-08144 -> 6.9.377-08144
32775         Remove first parameter.
32776         Don't declare a version "-dirty" merely because a time
32777         stamp has changed.
32778
32779 2007-11-04  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/lock.h: Protect all macro definitions containing an 'if'
32782         statement through a "do { ... } while (0)".
32783         * lib/tls.h: Likewise.
32784
32785 2007-11-04  Bruno Haible  <bruno@clisp.org>
32786
32787         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32788
32789 2007-11-04  Bruno Haible  <bruno@clisp.org>
32790
32791         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32792         * modules/fprintf-posix (Depends-on): Add nocrash.
32793         * modules/snprintf-posix (Depends-on): Likewise.
32794         * modules/sprintf-posix (Depends-on): Likewise.
32795         * modules/vasnprintf-posix (Depends-on): Likewise.
32796         * modules/vasprintf-posix (Depends-on): Likewise.
32797         * modules/vfprintf-posix (Depends-on): Likewise.
32798         * modules/vsnprintf-posix (Depends-on): Likewise.
32799         * modules/vsprintf-posix (Depends-on): Likewise.
32800         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32801         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32802         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32803         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32804         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32805         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32806         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32807
32808 2007-11-04  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/nocrash: New file.
32811         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32812         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32813
32814 2007-11-04  Bruno Haible  <bruno@clisp.org>
32815
32816         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32817         precision handling.
32818         * tests/test-vasprintf-posix.c (test_function): Likewise.
32819         * tests/test-snprintf-posix.h (test_function): Likewise.
32820         * tests/test-sprintf-posix.h (test_function): Likewise.
32821
32822         Fix *printf behaviour for large precisions on mingw and BeOS.
32823         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32824         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32826         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32828         gl_PRINTF_PRECISION and test its result. Invoke
32829         gl_PREREQ_VASNPRINTF_PRECISION.
32830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32837         * doc/functions/fprintf.texi: Update.
32838         * doc/functions/printf.texi: Update.
32839         * doc/functions/snprintf.texi: Update.
32840         * doc/functions/sprintf.texi: Update.
32841         * doc/functions/vfprintf.texi: Update.
32842         * doc/functions/vprintf.texi: Update.
32843         * doc/functions/vsnprintf.texi: Update.
32844         * doc/functions/vsprintf.texi: Update.
32845
32846 2007-11-04  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32849
32850 2007-11-04  Bruno Haible  <bruno@clisp.org>
32851
32852         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32853         Reported by Sylvain Beucler <beuc@gnu.org>.
32854
32855 2007-11-03  Bruno Haible  <bruno@clisp.org>
32856
32857         * tests/test-fprintf-posix2.sh: New file.
32858         * tests/test-fprintf-posix2.c: New file.
32859         * modules/fprintf-posix-tests (Files): Add them.
32860         (TESTS): Add test-fprintf-posix2.sh.
32861         (configure.ac): Check for getrlimit and setrlimit.
32862         (check_PROGRAMS): Add test-fprintf-posix2.
32863
32864         * tests/test-printf-posix2.sh: New file.
32865         * tests/test-printf-posix2.c: New file.
32866         * modules/printf-posix-tests (Files): Add them.
32867         (TESTS): Add test-printf-posix2.sh.
32868         (configure.ac): Check for getrlimit and setrlimit.
32869         (check_PROGRAMS): Add test-printf-posix2.
32870
32871         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32872         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32873         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32874         (decode_double): New function, copied from decode_long_double.
32875         (scale10_round_decimal_decoded): New function, extracted from
32876         scale10_round_decimal_long_double.
32877         (scale10_round_decimal_long_double): Use it.
32878         (scale10_round_decimal_double): New function.
32879         (floorlog10): New function.
32880         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
32881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
32882         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32884         gl_PRINTF_ENOMEM and test its result. Invoke
32885         gl_PREREQ_VASNPRINTF_ENOMEM.
32886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32893         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
32894         * modules/snprintf-posix (Depends-on): Likewise.
32895         * modules/sprintf-posix (Depends-on): Likewise.
32896         * modules/vasnprintf-posix (Depends-on): Likewise.
32897         * modules/vasprintf-posix (Depends-on): Likewise.
32898         * modules/vfprintf-posix (Depends-on): Likewise.
32899         * modules/vsnprintf-posix (Depends-on): Likewise.
32900         * modules/vsprintf-posix (Depends-on): Likewise.
32901         * doc/functions/fprintf.texi: Update.
32902         * doc/functions/printf.texi: Update.
32903         * doc/functions/snprintf.texi: Update.
32904         * doc/functions/sprintf.texi: Update.
32905         * doc/functions/vfprintf.texi: Update.
32906         * doc/functions/vprintf.texi: Update.
32907         * doc/functions/vsnprintf.texi: Update.
32908         * doc/functions/vsprintf.texi: Update.
32909
32910 2007-11-03  Bruno Haible  <bruno@clisp.org>
32911
32912         * modules/frexp-nolibm-tests: New file.
32913
32914         * modules/frexp-nolibm: New file.
32915         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
32916
32917 2007-11-03  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
32920         value is C99 compliant.
32921         Needed for OSF/1 5.1.
32922
32923 2007-11-03  Bruno Haible  <bruno@clisp.org>
32924
32925         Fix out-of-memory handling of vasnprintf.
32926         * lib/printf-parse.c: Include <errno.h>.
32927         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
32928         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
32929         is already set.
32930
32931 2007-11-02  Eric Blake  <ebb9@byu.net>
32932
32933         Fix tests on cygwin.
32934         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
32935
32936 2007-11-01  Bruno Haible  <bruno@clisp.org>
32937
32938         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
32939         warning.
32940         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
32941         needed for POSIX compatibility.
32942
32943 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32944
32945         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
32946         for compatibility with GNU.
32947
32948 2007-11-01  Bruno Haible  <bruno@clisp.org>
32949
32950         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
32951         (putenv): Renamed from rpl_putenv. Change argument type from
32952         'const char *' to 'char *'.
32953         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
32954         of defining putenv in config.h, just set REPLACE_PUTENV.
32955         * modules/putenv (Depends-on): Add stdlib.
32956         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32957         (Include): Use <stdlib.h>.
32958         * lib/stdlib.in.h (putenv): New declaration.
32959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
32960         REPLACE_PUTENV.
32961         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
32962         REPLACE_PUTENV.
32963         Needed for MacOS X 10.5.0.
32964         Reported by Peter O'Gorman <peter@pogma.com>.
32965
32966 2007-11-01  Jim Meyering  <meyering@redhat.com>
32967
32968         Treat an empty date string exactly like "0".
32969         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
32970         if the remaining date string (to be parsed) is empty, use "0".
32971         Reported by Mischa Molhoek and discussed in this thread:
32972         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
32973
32974 2007-10-31  Bruno Haible  <bruno@clisp.org>
32975
32976         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
32977         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
32978         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
32979         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
32980         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
32981         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
32982
32983 2007-10-31  Bruno Haible  <bruno@clisp.org>
32984
32985         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
32986         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
32987         (AC_TYPE_LONG_LONG_INT): Use it.
32988         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
32989         it as well.
32990         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
32991         to m4/longlong.m4.
32992         * modules/stdint (Files): Remove m4/ulonglong.m4.
32993         * modules/strtoull (Files): Use m4/longlong.m4 instead of
32994         m4/ulonglong.m4.
32995         * modules/strtoumax (Files): Likewise.
32996
32997 2007-10-30  Bruno Haible  <bruno@clisp.org>
32998
32999         * modules/xvasprintf-posix: New file.
33000         Suggested by Eric Blake.
33001
33002 2007-10-30  Bruno Haible  <bruno@clisp.org>
33003
33004         * modules/xprintf-posix-tests: New file.
33005         * tests/test-xprintf-posix.sh: New file.
33006         * tests/test-xprintf-posix.c: New file.
33007         * tests/test-xfprintf-posix.c: New file.
33008
33009         * modules/xprintf-posix: New file.
33010
33011 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33012
33013         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33014         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33015         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33016
33017 2007-10-29  Bruno Haible  <bruno@clisp.org>
33018
33019         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33020         contain the special marker '_cv_'.
33021         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33022         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33023         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33024         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33025         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33026         Reported by Ralf Wildenhues.
33027
33028 2007-10-29  Bruno Haible  <bruno@clisp.org>
33029
33030         * gnulib-tool (func_import): When --lgpl is not specified, set
33031         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33032         GPLv3.
33033         Reported by Simon Josefsson.
33034
33035 2007-10-28  Bruno Haible  <bruno@clisp.org>
33036
33037         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33038         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33039         HAVE_DECL_ISFINITE.
33040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33041         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33042         HAVE_DECL_ISFINITE.
33043
33044 2007-10-28  Bruno Haible  <bruno@clisp.org>
33045
33046         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33047         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33048
33049 2007-10-28  Bruno Haible  <bruno@clisp.org>
33050
33051         Fix link errors with Sun C 5.0 on Solaris 10.
33052         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33053         function is declared but not present in the compiler's libm.
33054         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33055         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33056         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33057         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33058         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33059         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33060         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33062         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33063         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33064         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33065         HAVE_DECL_FLOORL.
33066
33067 2007-10-28  Bruno Haible  <bruno@clisp.org>
33068
33069         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33070         gl_FUNC_FLOORL. Cache the result.
33071         (gl_FUNC_FLOORL): Use it.
33072         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33073         gl_FUNC_CEILL. Cache the result.
33074         (gl_FUNC_CEILL): Use it.
33075
33076         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33077         gl_FUNC_FLOOR. Cache the result.
33078         (gl_FUNC_FLOOR): Use it.
33079         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33080         gl_FUNC_CEIL. Cache the result.
33081         (gl_FUNC_CEIL): Use it.
33082
33083         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33084         gl_FUNC_FLOORF. Cache the result.
33085         (gl_FUNC_FLOORF): Use it.
33086         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33087         gl_FUNC_CEILF. Cache the result.
33088         (gl_FUNC_CEILF): Use it.
33089
33090 2007-10-28  Bruno Haible  <bruno@clisp.org>
33091
33092         * gnulib-tool: Allow specifying the LGPL version number through
33093         --lgpl=2 or --lgpl=3.
33094         (func_usage): Document --lgpl with argument.
33095         Handle --lgpl=... arguments.
33096         (func_import): Recognize also gl_LGPL calls with an argument. When
33097         --lgpl=2 is used and the module's license is just LGPL, report an
33098         error. Set sed_transform_lib_file according to the lgpl variable. In
33099         the generated files, use --lgpl or gl_LGPL invocations with argument,
33100         if necessary.
33101         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33102         an LGPv2+ license.
33103         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33104         gl_LGPL macro.
33105
33106 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33107             Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33110         (u16_uctomb_aux): Likewise.
33111         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33112         !HAVE_INLINE.
33113         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33114
33115 2007-10-28  Bruno Haible  <bruno@clisp.org>
33116
33117         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33118         Invoke AM_GETTEXT_OPTION if it exists.
33119         * modules/vasprintf: Likewise.
33120         * modules/verror: Likewise.
33121         * modules/xprintf: Likewise.
33122         * modules/xvasprintf: Likewise.
33123
33124 2007-10-27  Ben Pfaff  <blp@gnu.org>
33125
33126         * lib/math.in.h: Define isfinite macro and prototypes for
33127         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33128         implementations.
33129         * m4/math_h.m4: New substitutions for isfinite module.
33130         * lib/isfinite.c: New file.
33131         * m4/isfinite.m4: New file.
33132         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33133         * modules/isfinite: New file.
33134         * modules/isfinite-tests: New file.
33135         * tests/tests-isfinite.c: New file.
33136         * doc/functions/isfinite.texi: Mention isfinite module.
33137         * MODULES.html.sh: Mention new module.
33138
33139 2007-10-27  Ben Pfaff  <blp@gnu.org>
33140
33141         Ralf Wildenhues reported that Tru64 4.0D declares the round
33142         functions but does not have definitions.
33143         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33144         cannot be found in any library, set the output variable to
33145         "missing" instead of "".
33146         * m4/round.m4: Also use our substitute if we cannot find round in
33147         any library, even if it is declared.
33148         * m4/roundf.m4: Likewise for roundf.
33149         * m4/roundl.m4: Likewise for roundl.
33150         * lib/math.in.h: Undefine roundf, round, roundl before defining
33151         their replacements, to allow for hypothetical systems where these
33152         may be defined as macros but not available in libraries.
33153
33154 2007-10-27  Bruno Haible  <bruno@clisp.org>
33155
33156         * doc/gnulib.texi: Invoke @firstparagraphindent.
33157         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33158         changes in gnulib.
33159         (Source changes): New section.
33160
33161 2007-10-26  Bruno Haible  <bruno@clisp.org>
33162
33163         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33164         borrowed from autoconf.
33165
33166 2007-10-26  Bruno Haible  <bruno@clisp.org>
33167
33168         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33169         strerror returned the empty string. Needed on HP-UX 11.00.
33170
33171 2007-10-24  Micah Cowan  <micah@cowan.name>
33172
33173         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33174         * build-aux/bootstrap: Remove support for now-unnecessary option,
33175         --cvs-user, and envvars CVS_USER, CVS_RSH.
33176
33177 2007-10-24  Jim Meyering  <meyering@redhat.com>
33178
33179         Avoid diagnostics from sha1sum when there is no cached checksum.
33180         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33181         if the po.s1 file hasn't been created yet.
33182
33183         * build-aux/bootstrap: Sync from coreutils:
33184         2007-10-24  Jim Meyering  <meyering@redhat.com>
33185         Get gnulib from the git repository, not from an obsolete cvs one.
33186         * build-aux/bootstrap: Suggestion from Micah Cowan.
33187         2007-10-04  Jim Meyering  <jim@meyering.net>
33188         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33189         (update_po_files): Work also when there are no .po files in po/.
33190
33191 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33192
33193         * README: Append ".git" to git and cg examples.
33194         Problem reported by Benoit Sigoure.
33195
33196 2007-10-23  Micah Cowan  <micah@cowan.name>
33197
33198         * users.txt: Add wget.
33199
33200 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33201
33202         Fix linking of some unistdio tests on FreeBSD.
33203         * modules/unistdio/u16-vsnprintf-tests
33204         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33205         * modules/unistdio/u16-vsprintf-tests
33206         (test_u16_vsnprintf1_LDADD): Likewise.
33207         * modules/unistdio/u32-vsnprintf-tests
33208         (test_u32_vsnprintf1_LDADD): Likewise.
33209         * modules/unistdio/u32-vsprintf-tests
33210         (test_u32_vsprintf1_LDADD): Likewise.
33211         * modules/unistdio/u8-vsnprintf-tests
33212         (test_u8_vsnprintf1_LDADD): Likewise.
33213         * modules/unistdio/u8-vsprintf-tests
33214         (test_u8_vsprintf1_LDADD): Likewise.
33215         * modules/unistdio/ulc-vsnprintf-tests
33216         (test_ulc_vsnprintf1_LDADD): Likewise.
33217         * modules/unistdio/ulc-vsprintf-tests
33218         (test_ulc_vsprintf1_LDADD): Likewise.
33219
33220         Fix linking of some uniconv tests on FreeBSD.
33221         * modules/uniconv/u16-conv-from-enc-tests
33222         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33223         * modules/uniconv/u16-conv-to-enc-tests
33224         (test_u16_conv_to_enc_LDADD): Likewise.
33225         * modules/uniconv/u16-strconv-from-enc-tests
33226         (test_u16_strconv_from_enc_LDADD): Likewise.
33227         * modules/uniconv/u16-strconv-to-enc-tests
33228         (test_u16_strconv_to_enc_LDADD): Likewise.
33229         * modules/uniconv/u32-conv-from-enc-tests
33230         (test_u32_conv_from_enc_LDADD): Likewise.
33231         * modules/uniconv/u32-conv-to-enc-tests
33232         (test_u32_conv_to_enc_LDADD): Likewise.
33233         * modules/uniconv/u32-strconv-from-enc-tests
33234         (test_u32_strconv_from_enc_LDADD): Likewise.
33235         * modules/uniconv/u32-strconv-to-enc-tests
33236         (test_u32_strconv_to_enc_LDADD): Likewise.
33237         * modules/uniconv/u8-conv-from-enc-tests
33238         (test_u8_conv_from_enc_LDADD): Likewise.
33239         * modules/uniconv/u8-conv-to-enc-tests
33240         (test_u8_conv_to_enc_LDADD): Likewise.
33241         * modules/uniconv/u8-strconv-from-enc-tests
33242         (test_u8_strconv_from_enc_LDADD): Likewise.
33243         * modules/uniconv/u8-strconv-to-enc-tests
33244         (test_u8_strconv_to_enc_LDADD): Likewise.
33245
33246 2007-10-22  Bruno Haible  <bruno@clisp.org>
33247
33248         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33249         size.
33250
33251 2007-10-22  Eric Blake  <ebb9@byu.net>
33252
33253         Tweak x*printf documentation.
33254         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33255         variable name and comments.
33256         Suggested by Bruno Haible.
33257
33258 2007-10-22  Bruno Haible  <bruno@clisp.org>
33259
33260         * lib/acl.c (copy_acl): Fix file name in comment.
33261
33262 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33263
33264         Fix Tru64 problem with stdbool.h.
33265         * lib/stdbool.in.h (false, true):
33266         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33267         Don't declare as an enum in this situation; it runs afoul of Tru64.
33268         Problem reported by Steven M. Schweda in
33269         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33270
33271 2007-10-22  Eric Blake  <ebb9@byu.net>
33272
33273         Also wrap vf?printf.
33274         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33275         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33276         (xvprintf, xvfprintf): New functions.
33277
33278 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33279
33280         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33281         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33282
33283         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33284         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33285
33286 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33287
33288         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33289         by Bruno Haible.
33290
33291 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33292
33293         * lib/getloadavg.c
33294         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33295         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33296
33297         * tests/test-i-ring.c: Work for C89.
33298
33299 2007-10-22  Bruno Haible  <bruno@clisp.org>
33300
33301         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33302         -1u, in preprocessor expression, so that we don't test for the bug
33303         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33305
33306 2007-10-22  Eric Blake  <ebb9@byu.net>
33307
33308         * tests/test-yesno.sh: Silence stderr during test.
33309
33310 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33311
33312         * modules/crypto/gc-camellia: New file.
33313
33314         * m4/gc-camellia.m4: New file.
33315
33316         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33317
33318         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33319
33320 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33321
33322         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33323         --help to stdout.  Reported by sms@antinode.org (Steven
33324         M. Schweda).
33325
33326 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33327
33328         * users.txt: Fix link to libksba.
33329
33330 2007-10-21  Ben Pfaff  <blp@gnu.org>
33331
33332         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33333         round.c roundf implementation that depends on floorf and ceilf to
33334         be tested unconditionally.
33335
33336 2007-10-21  Ben Pfaff  <blp@gnu.org>
33337
33338         * m4/check-libm-func.m4: Removed.
33339         * m4/check-math-lib.m4: New file.
33340         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33341         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33342         definition and lack of AC_LIBOBJ([roundf]).
33343         * m4/roundl.m4: Ditto, and similarly for roundl.
33344         * modules/round: Reference new m4 file.
33345         * modules/roundf: Ditto.
33346         * modules/roundl: Ditto.
33347         * tests/test-round2.c (main): Use ROUND instead of round.
33348         Bug report from Bruno Haible.
33349
33350 2007-10-21  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33353         context.
33354
33355 2007-10-21  Bruno Haible  <bruno@clisp.org>
33356
33357         * tests/test-wcwidth.c (main): Allow negative result for some control
33358         characters.
33359
33360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33361         Needed on OSF/1 5.1.
33362
33363 2007-10-21  Bruno Haible  <bruno@clisp.org>
33364
33365         * tests/test-floorf1.c: Include isnanf.h.
33366         (main): Use isnanf() instead of isnan().
33367         * tests/test-ceilf1.c: Include isnanf.h.
33368         (main): Use isnanf() instead of isnan().
33369         * tests/test-truncf1.c: Include isnanf.h.
33370         (main): Use isnanf() instead of isnan().
33371         * tests/test-roundf1.c: Include isnanf.h.
33372         (main): Use isnanf() instead of isnan().
33373
33374 2007-10-21  Eric Blake  <ebb9@byu.net>
33375
33376         * users.txt: Update URL for m4.
33377
33378 2007-10-21  Bruno Haible  <bruno@clisp.org>
33379
33380         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33381
33382 2007-10-21  Bruno Haible  <bruno@clisp.org>
33383
33384         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33385         Git's management files if the CVS files are not present.
33386
33387 2007-10-20  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33390         gcc-3.4.x.
33391
33392 2007-10-20  Ben Pfaff  <blp@gnu.org>
33393
33394         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33395         implementations.
33396         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33397         * lib/round.c: New file.
33398         * lib/roundf.c: New file.
33399         * lib/roundl.c: New file.
33400         * m4/round.m4: New file.
33401         * m4/roundf.m4: New file.
33402         * m4/roundl.m4: New file.
33403         * m4/check-libm-func-m4: New file.
33404         * modules/math: Replace round, roundf, roundl related @VARS@ in
33405         math.in.h.
33406         * modules/round: New file.
33407         * modules/round-tests: New file.
33408         * modules/roundf: New file.
33409         * modules/roundf-tests: New file.
33410         * modules/roundl: New file.
33411         * modules/roundl-tests: New file.
33412         * tests/test-round1.c: New file.
33413         * tests/test-round2.c: New file.
33414         * tests/test-roundf1.c: New file.
33415         * tests/test-roundf2.c: New file.
33416         * tests/test-roundl.c: New file.
33417         * doc/functions/round.texi: Mention round module.
33418         * doc/functions/roundf.texi: Mention roundf module.
33419         * doc/functions/roundl.texi: Mention roundl module.
33420         * MODULES.html.sh: Mention new modules.
33421         Thanks to Bruno Haible for suggestions.
33422
33423 2007-10-20  Jim Meyering  <meyering@redhat.com>
33424
33425         * lib/xprintf.c: Include <config.h> unconditionally.
33426
33427         Change xprintf's license to GPL.
33428         * modules/xprintf (License): s/LGPL/GPL/, since this module
33429         depends on modules (exit and exitfail) which are GPL.
33430         Suggestion from Bruno Haible.
33431
33432         xprintf fixes.
33433         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33434         Use a clearer diagnostic.
33435         Patch from Bruno Haible.
33436
33437 2007-10-20  Bruno Haible  <bruno@clisp.org>
33438
33439         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33440         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33442
33443 2007-10-20  Bruno Haible  <bruno@clisp.org>
33444
33445         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33446         precision in the comparison result > x - 1 or similar.
33447         * tests/test-ceilf2.c (correct_result_p): Likewise.
33448         * tests/test-truncf2.c (correct_result_p): Likewise.
33449         * tests/test-trunc2.c (correct_result_p): Likewise.
33450         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33451
33452 2007-10-20  Bruno Haible  <bruno@clisp.org>
33453
33454         * modules/ceil: New file.
33455         * m4/ceil.m4: New file.
33456         * doc/functions/ceil.texi: Mention the 'ceil' module.
33457
33458 2007-10-20  Bruno Haible  <bruno@clisp.org>
33459
33460         * modules/floor: New file.
33461         * m4/floor.m4: New file.
33462         * doc/functions/floor.texi: Mention the 'floor' module.
33463
33464 2007-10-20  Bruno Haible  <bruno@clisp.org>
33465
33466         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33467         of %a.
33468         * modules/floorf-tests (Depends-on): Likewise.
33469         * modules/truncf-tests (Depends-on): Likewise.
33470         * modules/trunc-tests (Depends-on): Likewise.
33471         Reported by Ben Pfaff.
33472
33473 2007-10-19  Jim Meyering  <meyering@redhat.com>
33474
33475         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33476         Don't bother testing specific errno values.  Just test ferror.
33477
33478         New module: xprintf
33479         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33480
33481 2007-10-19  Bruno Haible  <bruno@clisp.org>
33482
33483         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33484         syntax.
33485         * modules/javaexec (Makefile.am): Likewise.
33486         * modules/relocatable-prog (Makefile.am): Likewise.
33487         Suggested by Jim Meyering.
33488
33489 2007-10-18  Bruno Haible  <bruno@clisp.org>
33490
33491         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33492         Reported by Jim Meyering.
33493
33494 2007-10-18  Eric Blake  <ebb9@byu.net>
33495
33496         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33497
33498 2007-10-18  Bruno Haible  <bruno@clisp.org>
33499
33500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33501         the format string into writable memory. Needed in Fortify conditions.
33502
33503 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33504             Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33507         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33508         * modules/trim (Depends-on): Add mbchar.
33509         (configure.ac): Add gl_FUNC_MBRTOWC.
33510         (Makefile.am): Augment lib_SOURCES.
33511
33512 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33513
33514         Modify glob.c to use fstatat and dirfd, to simplify it.
33515         Suggested by Eric Blake.
33516         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33517         Don't include <stdbool.h>; not used.
33518         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33519         (link_exists_p): Simplify implementation, since we can now assume
33520         dirfd and fstatat.
33521         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33522
33523 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33524
33525         * gnulib-tool (func_get_dependencies): Fix sed script to
33526         match only tests.
33527
33528 2007-10-17  Bruno Haible  <bruno@clisp.org>
33529
33530         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33531         allow locale names without encoding suffix.
33532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33533         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33534
33535 2007-10-16  Bruno Haible  <bruno@clisp.org>
33536
33537         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33538         * lib/getgroups.c (getgroups): Likewise.
33539         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33540
33541 2007-10-16  Bruno Haible  <bruno@clisp.org>
33542
33543         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33544         * modules/malloc-posix (License): Likewise.
33545         * modules/realloc-posix (License): Likewise.
33546         * modules/calloc-posix (License): Likewise.
33547         * modules/intprops (License): Change from GPL to LGPL, with
33548         Paul Eggert's approval.
33549
33550 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33551
33552         Merge glibc changes into lib/glob.c.
33553
33554         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33555         2007-10-15 04:59:03 UTC.  Here are the changes:
33556
33557         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33558
33559         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33560
33561         * lib/glob.c: Add some branch prediction throughout.
33562
33563         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33564
33565         [BZ #5103]
33566         * lib/glob.c (glob): Recognize patterns starting \/.
33567
33568         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33569
33570         [BZ #3996]
33571         * lib/glob.c (attribute_hidden): Define if not defined.
33572         (glob): Unescape dirname, filename or username when needed and not
33573         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33574         is NULL.  Handle unescaped [ in pattern without closing ].
33575         Don't pass GLOB_CHECK down to recursive glob for directories.
33576         (__glob_pattern_type): New function.
33577         (__glob_pattern_p): Implement using __glob_pattern_type.
33578         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33579         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33580         Remove unreachable code.
33581
33582         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33583
33584         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33585         explain why there are no leaks.
33586
33587         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33588
33589         [BZ #3253]
33590         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33591         time, rather allocate increasingly bigger arrays of pointers, if
33592         possible with alloca, if too large with malloc.
33593
33594 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33595
33596         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33597         Problem reported by H.Merijn Brand in
33598         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33599         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33600         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33601
33602 2007-10-15  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33605         with explicit rpl_ prefix.
33606         * lib/fopen.c (fopen): Likewise.
33607         * lib/freopen.c (freopen): Likewise.
33608         * lib/iconv.c (iconv): Likewise.
33609         * lib/iconv_close.c (iconv_close): Likewise.
33610
33611 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33612
33613         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33614
33615 2007-10-15  Bruno Haible  <bruno@clisp.org>
33616
33617         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33618         <stddef.h> instead of <stdlib.h> since we only need NULL.
33619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33620
33621 2007-10-15  Bruno Haible  <bruno@clisp.org>
33622
33623         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33624         Replace paragraph talking about LIBOBJS.
33625         Reported by Colin Watson <cjwatson@debian.org>.
33626
33627 2007-10-15  Bruno Haible  <bruno@clisp.org>
33628
33629         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33630         <stdlib.h> before using NULL.
33631
33632 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33633
33634         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33635         Reported by Albert Chin <china@thewrittenword.com>.
33636
33637 2007-10-14  Bruno Haible  <bruno@clisp.org>
33638
33639         * modules/iconv_open-utf-tests: New file.
33640         * tests/test-iconv-utf.c: New file.
33641
33642         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33643         * modules/iconv_open-utf: New file.
33644         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33645         (iconv, iconv_close): New declarations.
33646         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33647         be defined.
33648         (iconv_open): Add special handling of conversion between UTF-8 and
33649         UTF-{16,32}{BE,LE}.
33650         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33651         * lib/iconv_close.c: New file.
33652         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33653         gl_FUNC_ICONV_OPEN.
33654         (gl_FUNC_ICONV_OPEN): Use it.
33655         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33656         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33657         and REPLACE_ICONV_UTF.
33658         * modules/iconv_open (Depends-on): Add c-strcase.
33659         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33660         ICONV_CONST.
33661         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33662
33663 2007-10-13  Albert Chin  <china@thewrittenword.com>
33664             Bruno Haible  <bruno@clisp.org>
33665
33666         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33667         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33668
33669 2007-10-13  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33672         defined, use the ISO C99 inline semantics.
33673         * lib/argp.h (ARGP_EI): Likewise.
33674
33675 2007-10-13  Bruno Haible  <bruno@clisp.org>
33676
33677         Handle 'inline' change in gcc 4.3.0.
33678         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33679         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33680         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33681         argp_fmtstream_point): Disable 'extern' declaration if the function
33682         definition is going to be provided inline.
33683         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33684         semantics, not the ISO C99 inline semantics.
33685         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33686         'extern' declaration if the function definition is going to be provided
33687         inline.
33688         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33689         the GNU C inline semantics, not the ISO C99 inline semantics. With
33690         GCC 4.2, avoid a warning.
33691
33692 2007-10-13  Bruno Haible  <bruno@clisp.org>
33693
33694         * lib/freading.h (freading): Enable the use of __freading for
33695         glibc >= 2.7.
33696         * lib/freading.c (freading): Likewise.
33697
33698 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33701         "warning: C99 inline functions are not supported; using GNU89".
33702
33703 2007-10-12  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33706         of 2.
33707         * tests/test-ceilf2.c: New file.
33708         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33709
33710         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33711         * modules/ceilf-tests: Update.
33712
33713 2007-10-12  Bruno Haible  <bruno@clisp.org>
33714
33715         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33716         of 2.
33717         * tests/test-floorf2.c: New file.
33718         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33719
33720         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33721         * modules/floorf-tests: Update.
33722
33723 2007-10-12  Bruno Haible  <bruno@clisp.org>
33724
33725         * tests/test-trunc2.c: New file.
33726         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33727
33728         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33729         * modules/trunc-tests: Update.
33730
33731 2007-10-12  Bruno Haible  <bruno@clisp.org>
33732
33733         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33734         of 2.
33735         * tests/test-truncf2.c: New file.
33736         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33737
33738         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33739         * modules/truncf-tests: Update.
33740
33741 2007-10-11  Eric Blake  <ebb9@byu.net>
33742
33743         Don't claim strerror is broken on Interix.
33744         * doc/functions/strerror.texi (strerror): Known broken systems are
33745         now Solaris 8, and not Interix.
33746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33747         Interix on cross-compile.
33748         Reported by Martin Koeppe in
33749         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33750
33751 2007-10-11  Bruno Haible  <bruno@clisp.org>
33752
33753         * modules/i-ring-tests: New file.
33754         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33755         instead of assert.
33756
33757 2007-10-11  Bruno Haible  <bruno@clisp.org>
33758
33759         * modules/filenamecat-tests: New file.
33760         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33761         * lib/filenamecat.c: Remove test code.
33762
33763 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33764
33765         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33766
33767         * lib/strerror.c: Include <string.h> always, to test interface,
33768         and to remove the need for the dummy.
33769         Include intprops.h to compute width instead of doing it ourselves
33770         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33771         (strerror): Define it to return NULL if there's no system strerror.
33772         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33773         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33774         ancient pre-strerror Unix systems well any more.  Saying "unknown
33775         system error" is enough.
33776         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33777         simpler strerror.c implementation.
33778         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33779         Simplify the tests to reflect the simpler strerror implementation.
33780         * modules/strerror (Depends-on): Add intprops.
33781
33782 2007-10-09  Eric Blake  <ebb9@byu.net>
33783
33784         Silence test-fpending.
33785         * modules/fpending-tests (Files): Add wrapper script.
33786         * tests/test-fpending.sh: New file.
33787
33788 2007-10-09  Bruno Haible  <bruno@clisp.org>
33789
33790         * MODULES.html.sh (func_module): Don't create a hyperlink for
33791         function names like 'printf_frexp'.
33792         (Misc): Add crc, memxor.
33793         (Characteristics of floating types): New section.
33794         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33795         isnanf-nolibm, signbit, trunc, truncf, truncl.
33796         (Enhancements for ISO C 99 functions): New subsection Input/output.
33797         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33798         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33799         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33800         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33801         (Enhancements for POSIX:2001 functions): Add chdir-long.
33802         (File system functions): Add areadlink, chdir-safer, read-file.
33803         Remove cycle-check.
33804         (File system as inode set): New section.
33805         (Date and time): Add gethrxtime.
33806         (Multithreading): Add openmp.
33807         (Internationalization functions): Add localename.
33808         (Unicode string functions): Add unistr/u*-mbsnlen.
33809         (Support for maintaining and releasing projects): Add git-version-gen.
33810         (Lone files): Remove directories.
33811
33812 2007-10-08  Ben Pfaff  <blp@gnu.org>
33813
33814         * lib/xmalloca.h: Fix typo in comment.
33815
33816 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33817
33818         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33819         when avoiding problems with integer overflow.  Use a portable test
33820         instead.
33821
33822 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33823
33824         * modules/dummy (License): Change to LGPLv2+.
33825         * modules/float (License): Likewise
33826         * modules/realloc (License): Likewise
33827         * modules/stdlib (License): Likewise
33828
33829 2007-10-07  Bruno Haible  <bruno@clisp.org>
33830
33831         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33832         * floor.c (TWO_MANT_DIG): Likewise.
33833         * ceil.c (TWO_MANT_DIG): Likewise.
33834         Reported by Ben Pfaff.
33835
33836 2007-10-07  Bruno Haible  <bruno@clisp.org>
33837
33838         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33839         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33840         * lib/frexp.c (FUNC): Likewise.
33841         * lib/printf-frexp.h (printf_frexp): Likewise.
33842         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33843         * lib/printf-frexp.c (FUNC): Likewise.
33844         Suggested by Jim Meyering.
33845
33846 2007-10-07  Jim Meyering  <meyering@redhat.com>
33847
33848         Make xnanosleep's integer overflow test more robust.
33849         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33850         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33851
33852 2007-10-07  Bruno Haible  <bruno@clisp.org>
33853
33854         * NEWS: Mention the license change.
33855
33856         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33857         abbreviations in the modules files.
33858
33859         Change copyright notice from GPLv2+ to GPLv3+.
33860         * README: Change copyright notice.
33861         * MODULES.html.sh: Likewise.
33862         * build-aux/bootstrap.conf: Likewise.
33863         * build-aux/config.libpath: Likewise.
33864         * build-aux/csharpcomp.sh.in: Likewise.
33865         * build-aux/csharpexec.sh.in: Likewise.
33866         * build-aux/install-reloc: Likewise.
33867         * build-aux/javacomp.sh.in: Likewise.
33868         * build-aux/javaexec.sh.in: Likewise.
33869         * build-aux/ldd.sh.in: Likewise.
33870         * build-aux/reloc-ldflags: Likewise.
33871         * build-aux/relocatable.sh.in: Likewise.
33872         * build-aux/x-to-1.in: Likewise.
33873         * check-module: Likewise.
33874         * config/srclistvars.sh: Likewise.
33875         * gnulib-tool: Likewise.
33876         * lib/acl-internal.h: Likewise.
33877         * lib/acl.c: Likewise.
33878         * lib/acl.h: Likewise.
33879         * lib/acl_entries.c: Likewise.
33880         * lib/areadlink-with-size.c: Likewise.
33881         * lib/areadlink.c: Likewise.
33882         * lib/areadlink.h: Likewise.
33883         * lib/argmatch.c: Likewise.
33884         * lib/argmatch.h: Likewise.
33885         * lib/argp-ba.c: Likewise.
33886         * lib/argp-eexst.c: Likewise.
33887         * lib/argp-fmtstream.c: Likewise.
33888         * lib/argp-fmtstream.h: Likewise.
33889         * lib/argp-fs-xinl.c: Likewise.
33890         * lib/argp-help.c: Likewise.
33891         * lib/argp-namefrob.h: Likewise.
33892         * lib/argp-parse.c: Likewise.
33893         * lib/argp-pin.c: Likewise.
33894         * lib/argp-pv.c: Likewise.
33895         * lib/argp-pvh.c: Likewise.
33896         * lib/argp-xinl.c: Likewise.
33897         * lib/argp.h: Likewise.
33898         * lib/at-func.c: Likewise.
33899         * lib/atanl.c: Likewise.
33900         * lib/backupfile.c: Likewise.
33901         * lib/backupfile.h: Likewise.
33902         * lib/basename.c: Likewise.
33903         * lib/binary-io.h: Likewise.
33904         * lib/byteswap.in.h: Likewise.
33905         * lib/c-stack.c: Likewise.
33906         * lib/c-stack.h: Likewise.
33907         * lib/c-strcasestr.c: Likewise.
33908         * lib/c-strcasestr.h: Likewise.
33909         * lib/c-strstr.c: Likewise.
33910         * lib/c-strstr.h: Likewise.
33911         * lib/c-strtod.c: Likewise.
33912         * lib/calloc.c: Likewise.
33913         * lib/canon-host.c: Likewise.
33914         * lib/canon-host.h: Likewise.
33915         * lib/canonicalize-lgpl.c: Likewise.
33916         * lib/canonicalize.c: Likewise.
33917         * lib/canonicalize.h: Likewise.
33918         * lib/ceil.c: Likewise.
33919         * lib/ceilf.c: Likewise.
33920         * lib/ceill.c: Likewise.
33921         * lib/chdir-long.c: Likewise.
33922         * lib/chdir-long.h: Likewise.
33923         * lib/chdir-safer.c: Likewise.
33924         * lib/chdir-safer.h: Likewise.
33925         * lib/chown.c: Likewise.
33926         * lib/classpath.c: Likewise.
33927         * lib/classpath.h: Likewise.
33928         * lib/clean-temp.c: Likewise.
33929         * lib/clean-temp.h: Likewise.
33930         * lib/cloexec.c: Likewise.
33931         * lib/close-stream.c: Likewise.
33932         * lib/closein.c: Likewise.
33933         * lib/closein.h: Likewise.
33934         * lib/closeout.c: Likewise.
33935         * lib/closeout.h: Likewise.
33936         * lib/concat-filename.c: Likewise.
33937         * lib/copy-file.c: Likewise.
33938         * lib/copy-file.h: Likewise.
33939         * lib/count-one-bits.h: Likewise.
33940         * lib/crc.c: Likewise.
33941         * lib/crc.h: Likewise.
33942         * lib/creat-safer.c: Likewise.
33943         * lib/csharpcomp.c: Likewise.
33944         * lib/csharpcomp.h: Likewise.
33945         * lib/csharpexec.c: Likewise.
33946         * lib/csharpexec.h: Likewise.
33947         * lib/cycle-check.c: Likewise.
33948         * lib/cycle-check.h: Likewise.
33949         * lib/diacrit.c: Likewise.
33950         * lib/diacrit.h: Likewise.
33951         * lib/diffseq.h: Likewise.
33952         * lib/dirchownmod.c: Likewise.
33953         * lib/dirent.in.h: Likewise.
33954         * lib/dirfd.c: Likewise.
33955         * lib/dirfd.h: Likewise.
33956         * lib/dirname.c: Likewise.
33957         * lib/dirname.h: Likewise.
33958         * lib/dummy.c: Likewise.
33959         * lib/dup-safer.c: Likewise.
33960         * lib/dup2.c: Likewise.
33961         * lib/eealloc.h: Likewise.
33962         * lib/error.c: Likewise.
33963         * lib/error.h: Likewise.
33964         * lib/euidaccess.c: Likewise.
33965         * lib/exclude.c: Likewise.
33966         * lib/exclude.h: Likewise.
33967         * lib/execute.c: Likewise.
33968         * lib/execute.h: Likewise.
33969         * lib/exitfail.c: Likewise.
33970         * lib/exitfail.h: Likewise.
33971         * lib/expl.c: Likewise.
33972         * lib/fatal-signal.c: Likewise.
33973         * lib/fatal-signal.h: Likewise.
33974         * lib/fbufmode.c: Likewise.
33975         * lib/fbufmode.h: Likewise.
33976         * lib/fchdir.c: Likewise.
33977         * lib/fchmodat.c: Likewise.
33978         * lib/fchownat.c: Likewise.
33979         * lib/fcntl--.h: Likewise.
33980         * lib/fcntl-safer.h: Likewise.
33981         * lib/fcntl.in.h: Likewise.
33982         * lib/fd-safer.c: Likewise.
33983         * lib/fflush.c: Likewise.
33984         * lib/file-has-acl.c: Likewise.
33985         * lib/file-set.c: Likewise.
33986         * lib/file-type.c: Likewise.
33987         * lib/file-type.h: Likewise.
33988         * lib/fileblocks.c: Likewise.
33989         * lib/filemode.c: Likewise.
33990         * lib/filemode.h: Likewise.
33991         * lib/filename.h: Likewise.
33992         * lib/filenamecat.c: Likewise.
33993         * lib/filenamecat.h: Likewise.
33994         * lib/findprog.c: Likewise.
33995         * lib/findprog.h: Likewise.
33996         * lib/float.in.h: Likewise.
33997         * lib/floor.c: Likewise.
33998         * lib/floorf.c: Likewise.
33999         * lib/floorl.c: Likewise.
34000         * lib/fopen-safer.c: Likewise.
34001         * lib/fopen.c: Likewise.
34002         * lib/fpending.c: Likewise.
34003         * lib/fpending.h: Likewise.
34004         * lib/fprintf.c: Likewise.
34005         * lib/fprintftime.h: Likewise.
34006         * lib/fpucw.h: Likewise.
34007         * lib/fpurge.c: Likewise.
34008         * lib/fpurge.h: Likewise.
34009         * lib/freadable.c: Likewise.
34010         * lib/freadable.h: Likewise.
34011         * lib/freadahead.c: Likewise.
34012         * lib/freadahead.h: Likewise.
34013         * lib/freading.c: Likewise.
34014         * lib/freading.h: Likewise.
34015         * lib/free.c: Likewise.
34016         * lib/freopen.c: Likewise.
34017         * lib/frexp.c: Likewise.
34018         * lib/frexpl.c: Likewise.
34019         * lib/fseek.c: Likewise.
34020         * lib/fseterr.c: Likewise.
34021         * lib/fseterr.h: Likewise.
34022         * lib/fstatat.c: Likewise.
34023         * lib/fstrcmp.c: Likewise.
34024         * lib/fstrcmp.h: Likewise.
34025         * lib/fsusage.c: Likewise.
34026         * lib/fsusage.h: Likewise.
34027         * lib/ftell.c: Likewise.
34028         * lib/ftello.c: Likewise.
34029         * lib/fts-cycle.c: Likewise.
34030         * lib/fts.c: Likewise.
34031         * lib/fts_.h: Likewise.
34032         * lib/full-read.c: Likewise.
34033         * lib/full-read.h: Likewise.
34034         * lib/full-write.c: Likewise.
34035         * lib/full-write.h: Likewise.
34036         * lib/fwritable.c: Likewise.
34037         * lib/fwritable.h: Likewise.
34038         * lib/fwriteerror.c: Likewise.
34039         * lib/fwriteerror.h: Likewise.
34040         * lib/fwriting.c: Likewise.
34041         * lib/fwriting.h: Likewise.
34042         * lib/gcd.c: Likewise.
34043         * lib/gcd.h: Likewise.
34044         * lib/getcwd.c: Likewise.
34045         * lib/getdate.h: Likewise.
34046         * lib/getdate.y: Likewise.
34047         * lib/getdomainname.c: Likewise.
34048         * lib/getdomainname.h: Likewise.
34049         * lib/getgroups.c: Likewise.
34050         * lib/gethostname.c: Likewise.
34051         * lib/gethrxtime.c: Likewise.
34052         * lib/gethrxtime.h: Likewise.
34053         * lib/getloadavg.c: Likewise.
34054         * lib/getndelim2.c: Likewise.
34055         * lib/getndelim2.h: Likewise.
34056         * lib/getnline.c: Likewise.
34057         * lib/getnline.h: Likewise.
34058         * lib/getopt.c: Likewise.
34059         * lib/getopt.in.h: Likewise.
34060         * lib/getopt1.c: Likewise.
34061         * lib/getopt_int.h: Likewise.
34062         * lib/getpagesize.h: Likewise.
34063         * lib/getsubopt.c: Likewise.
34064         * lib/gettime.c: Likewise.
34065         * lib/getugroups.c: Likewise.
34066         * lib/getugroups.h: Likewise.
34067         * lib/getusershell.c: Likewise.
34068         * lib/gl_anyavltree_list1.h: Likewise.
34069         * lib/gl_anyavltree_list2.h: Likewise.
34070         * lib/gl_anyhash_list1.h: Likewise.
34071         * lib/gl_anyhash_list2.h: Likewise.
34072         * lib/gl_anylinked_list1.h: Likewise.
34073         * lib/gl_anylinked_list2.h: Likewise.
34074         * lib/gl_anyrbtree_list1.h: Likewise.
34075         * lib/gl_anyrbtree_list2.h: Likewise.
34076         * lib/gl_anytree_list1.h: Likewise.
34077         * lib/gl_anytree_list2.h: Likewise.
34078         * lib/gl_anytree_oset.h: Likewise.
34079         * lib/gl_anytreehash_list1.h: Likewise.
34080         * lib/gl_anytreehash_list2.h: Likewise.
34081         * lib/gl_array_list.c: Likewise.
34082         * lib/gl_array_list.h: Likewise.
34083         * lib/gl_array_oset.c: Likewise.
34084         * lib/gl_array_oset.h: Likewise.
34085         * lib/gl_avltree_list.c: Likewise.
34086         * lib/gl_avltree_list.h: Likewise.
34087         * lib/gl_avltree_oset.c: Likewise.
34088         * lib/gl_avltree_oset.h: Likewise.
34089         * lib/gl_avltreehash_list.c: Likewise.
34090         * lib/gl_avltreehash_list.h: Likewise.
34091         * lib/gl_carray_list.c: Likewise.
34092         * lib/gl_carray_list.h: Likewise.
34093         * lib/gl_linked_list.c: Likewise.
34094         * lib/gl_linked_list.h: Likewise.
34095         * lib/gl_linkedhash_list.c: Likewise.
34096         * lib/gl_linkedhash_list.h: Likewise.
34097         * lib/gl_list.c: Likewise.
34098         * lib/gl_list.h: Likewise.
34099         * lib/gl_oset.c: Likewise.
34100         * lib/gl_oset.h: Likewise.
34101         * lib/gl_rbtree_list.c: Likewise.
34102         * lib/gl_rbtree_list.h: Likewise.
34103         * lib/gl_rbtree_oset.c: Likewise.
34104         * lib/gl_rbtree_oset.h: Likewise.
34105         * lib/gl_rbtreehash_list.c: Likewise.
34106         * lib/gl_rbtreehash_list.h: Likewise.
34107         * lib/gl_sublist.c: Likewise.
34108         * lib/gl_sublist.h: Likewise.
34109         * lib/group-member.c: Likewise.
34110         * lib/group-member.h: Likewise.
34111         * lib/hard-locale.c: Likewise.
34112         * lib/hard-locale.h: Likewise.
34113         * lib/hash-pjw.c: Likewise.
34114         * lib/hash-pjw.h: Likewise.
34115         * lib/hash-triple.c: Likewise.
34116         * lib/hash.c: Likewise.
34117         * lib/hash.h: Likewise.
34118         * lib/human.c: Likewise.
34119         * lib/human.h: Likewise.
34120         * lib/i-ring.c: Likewise.
34121         * lib/i-ring.h: Likewise.
34122         * lib/idcache.c: Likewise.
34123         * lib/imaxabs.c: Likewise.
34124         * lib/imaxdiv.c: Likewise.
34125         * lib/inet_pton.c: Likewise.
34126         * lib/inet_pton.h: Likewise.
34127         * lib/intprops.h: Likewise.
34128         * lib/inttostr.c: Likewise.
34129         * lib/inttostr.h: Likewise.
34130         * lib/inttypes.in.h: Likewise.
34131         * lib/isapipe.c: Likewise.
34132         * lib/isdir.c: Likewise.
34133         * lib/isnan.c: Likewise.
34134         * lib/isnan.h: Likewise.
34135         * lib/isnanf.c: Likewise.
34136         * lib/isnanf.h: Likewise.
34137         * lib/isnanl-nolibm.h: Likewise.
34138         * lib/isnanl.c: Likewise.
34139         * lib/isnanl.h: Likewise.
34140         * lib/javacomp.c: Likewise.
34141         * lib/javacomp.h: Likewise.
34142         * lib/javaexec.c: Likewise.
34143         * lib/javaexec.h: Likewise.
34144         * lib/javaversion.c: Likewise.
34145         * lib/javaversion.h: Likewise.
34146         * lib/javaversion.java: Likewise.
34147         * lib/lbrkprop.h: Likewise.
34148         * lib/lchmod.h: Likewise.
34149         * lib/lchown.c: Likewise.
34150         * lib/ldexpl.c: Likewise.
34151         * lib/linebreak.c: Likewise.
34152         * lib/linebreak.h: Likewise.
34153         * lib/linebuffer.c: Likewise.
34154         * lib/linebuffer.h: Likewise.
34155         * lib/locale.in.h: Likewise.
34156         * lib/logl.c: Likewise.
34157         * lib/long-options.c: Likewise.
34158         * lib/long-options.h: Likewise.
34159         * lib/lstat.c: Likewise.
34160         * lib/lstat.h: Likewise.
34161         * lib/math.in.h: Likewise.
34162         * lib/mbchar.c: Likewise.
34163         * lib/mbchar.h: Likewise.
34164         * lib/mbfile.h: Likewise.
34165         * lib/mbiter.h: Likewise.
34166         * lib/mbscasecmp.c: Likewise.
34167         * lib/mbscasestr.c: Likewise.
34168         * lib/mbschr.c: Likewise.
34169         * lib/mbscspn.c: Likewise.
34170         * lib/mbslen.c: Likewise.
34171         * lib/mbsncasecmp.c: Likewise.
34172         * lib/mbsnlen.c: Likewise.
34173         * lib/mbspbrk.c: Likewise.
34174         * lib/mbspcasecmp.c: Likewise.
34175         * lib/mbsrchr.c: Likewise.
34176         * lib/mbssep.c: Likewise.
34177         * lib/mbsspn.c: Likewise.
34178         * lib/mbsstr.c: Likewise.
34179         * lib/mbstok_r.c: Likewise.
34180         * lib/mbswidth.c: Likewise.
34181         * lib/mbswidth.h: Likewise.
34182         * lib/mbuiter.h: Likewise.
34183         * lib/memcasecmp.c: Likewise.
34184         * lib/memcasecmp.h: Likewise.
34185         * lib/memchr.c: Likewise.
34186         * lib/memcmp.c: Likewise.
34187         * lib/memcoll.c: Likewise.
34188         * lib/memcoll.h: Likewise.
34189         * lib/memcpy.c: Likewise.
34190         * lib/memrchr.c: Likewise.
34191         * lib/mkancesdirs.c: Likewise.
34192         * lib/mkdir-p.c: Likewise.
34193         * lib/mkdir-p.h: Likewise.
34194         * lib/mkdir.c: Likewise.
34195         * lib/mkdirat.c: Likewise.
34196         * lib/mkdtemp.c: Likewise.
34197         * lib/mkstemp-safer.c: Likewise.
34198         * lib/mkstemp.c: Likewise.
34199         * lib/modechange.c: Likewise.
34200         * lib/modechange.h: Likewise.
34201         * lib/mountlist.c: Likewise.
34202         * lib/mountlist.h: Likewise.
34203         * lib/mpsort.c: Likewise.
34204         * lib/nanosleep.c: Likewise.
34205         * lib/obstack.c: Likewise.
34206         * lib/obstack.h: Likewise.
34207         * lib/open-safer.c: Likewise.
34208         * lib/open.c: Likewise.
34209         * lib/openat-die.c: Likewise.
34210         * lib/openat-priv.h: Likewise.
34211         * lib/openat-proc.c: Likewise.
34212         * lib/openat.c: Likewise.
34213         * lib/openat.h: Likewise.
34214         * lib/pagealign_alloc.c: Likewise.
34215         * lib/pagealign_alloc.h: Likewise.
34216         * lib/physmem.c: Likewise.
34217         * lib/physmem.h: Likewise.
34218         * lib/pipe-safer.c: Likewise.
34219         * lib/pipe.c: Likewise.
34220         * lib/pipe.h: Likewise.
34221         * lib/posixtm.c: Likewise.
34222         * lib/posixtm.h: Likewise.
34223         * lib/posixver.c: Likewise.
34224         * lib/printf-frexp.c: Likewise.
34225         * lib/printf-frexp.h: Likewise.
34226         * lib/printf-frexpl.c: Likewise.
34227         * lib/printf-frexpl.h: Likewise.
34228         * lib/printf.c: Likewise.
34229         * lib/progname.c: Likewise.
34230         * lib/progname.h: Likewise.
34231         * lib/progreloc.c: Likewise.
34232         * lib/putenv.c: Likewise.
34233         * lib/quote.c: Likewise.
34234         * lib/quote.h: Likewise.
34235         * lib/quotearg.c: Likewise.
34236         * lib/quotearg.h: Likewise.
34237         * lib/raise.c: Likewise.
34238         * lib/readline.c: Likewise.
34239         * lib/readline.h: Likewise.
34240         * lib/readlink.c: Likewise.
34241         * lib/readtokens.c: Likewise.
34242         * lib/readtokens.h: Likewise.
34243         * lib/readtokens0.c: Likewise.
34244         * lib/readtokens0.h: Likewise.
34245         * lib/readutmp.c: Likewise.
34246         * lib/readutmp.h: Likewise.
34247         * lib/realloc.c: Likewise.
34248         * lib/relocwrapper.c: Likewise.
34249         * lib/rename-dest-slash.c: Likewise.
34250         * lib/rename.c: Likewise.
34251         * lib/rmdir.c: Likewise.
34252         * lib/rpmatch.c: Likewise.
34253         * lib/safe-read.c: Likewise.
34254         * lib/safe-read.h: Likewise.
34255         * lib/safe-write.c: Likewise.
34256         * lib/safe-write.h: Likewise.
34257         * lib/same-inode.h: Likewise.
34258         * lib/same.c: Likewise.
34259         * lib/same.h: Likewise.
34260         * lib/save-cwd.c: Likewise.
34261         * lib/save-cwd.h: Likewise.
34262         * lib/savedir.c: Likewise.
34263         * lib/savedir.h: Likewise.
34264         * lib/savewd.c: Likewise.
34265         * lib/savewd.h: Likewise.
34266         * lib/search.in.h: Likewise.
34267         * lib/setenv.c: Likewise.
34268         * lib/setenv.h: Likewise.
34269         * lib/settime.c: Likewise.
34270         * lib/sh-quote.c: Likewise.
34271         * lib/sh-quote.h: Likewise.
34272         * lib/sig2str.c: Likewise.
34273         * lib/sig2str.h: Likewise.
34274         * lib/signal.in.h: Likewise.
34275         * lib/signbitd.c: Likewise.
34276         * lib/signbitf.c: Likewise.
34277         * lib/signbitl.c: Likewise.
34278         * lib/sigprocmask.c: Likewise.
34279         * lib/sincosl.c: Likewise.
34280         * lib/sleep.c: Likewise.
34281         * lib/sprintf.c: Likewise.
34282         * lib/sqrtl.c: Likewise.
34283         * lib/stat-time.h: Likewise.
34284         * lib/stdio--.h: Likewise.
34285         * lib/stdio-safer.h: Likewise.
34286         * lib/stdlib--.h: Likewise.
34287         * lib/stdlib-safer.h: Likewise.
34288         * lib/stdlib.in.h: Likewise.
34289         * lib/stpcpy.c: Likewise.
34290         * lib/stpncpy.c: Likewise.
34291         * lib/strchrnul.c: Likewise.
34292         * lib/strcspn.c: Likewise.
34293         * lib/strerror.c: Likewise.
34294         * lib/strftime.c: Likewise.
34295         * lib/strftime.h: Likewise.
34296         * lib/striconveh.c: Likewise.
34297         * lib/striconveh.h: Likewise.
34298         * lib/striconveha.c: Likewise.
34299         * lib/striconveha.h: Likewise.
34300         * lib/stripslash.c: Likewise.
34301         * lib/strnlen1.c: Likewise.
34302         * lib/strnlen1.h: Likewise.
34303         * lib/strtod.c: Likewise.
34304         * lib/strtoimax.c: Likewise.
34305         * lib/strtok_r.c: Likewise.
34306         * lib/strtol.c: Likewise.
34307         * lib/strtoll.c: Likewise.
34308         * lib/strtoul.c: Likewise.
34309         * lib/strtoull.c: Likewise.
34310         * lib/sysexits.in.h: Likewise.
34311         * lib/tempname.c: Likewise.
34312         * lib/tempname.h: Likewise.
34313         * lib/timespec.h: Likewise.
34314         * lib/tls.c: Likewise.
34315         * lib/tls.h: Likewise.
34316         * lib/tmpdir.c: Likewise.
34317         * lib/tmpdir.h: Likewise.
34318         * lib/tmpfile-safer.c: Likewise.
34319         * lib/tmpfile.c: Likewise.
34320         * lib/trigl.c: Likewise.
34321         * lib/trigl.h: Likewise.
34322         * lib/trim.c: Likewise.
34323         * lib/trim.h: Likewise.
34324         * lib/trunc.c: Likewise.
34325         * lib/truncf.c: Likewise.
34326         * lib/truncl.c: Likewise.
34327         * lib/tsearch.c: Likewise.
34328         * lib/unicodeio.c: Likewise.
34329         * lib/unicodeio.h: Likewise.
34330         * lib/unistd--.h: Likewise.
34331         * lib/unistd-safer.h: Likewise.
34332         * lib/unistdio/ulc-fprintf.c: Likewise.
34333         * lib/unistdio/ulc-vfprintf.c: Likewise.
34334         * lib/unlinkdir.c: Likewise.
34335         * lib/unlinkdir.h: Likewise.
34336         * lib/unlocked-io.h: Likewise.
34337         * lib/unsetenv.c: Likewise.
34338         * lib/userspec.c: Likewise.
34339         * lib/utime.c: Likewise.
34340         * lib/utimecmp.c: Likewise.
34341         * lib/utimecmp.h: Likewise.
34342         * lib/utimens.c: Likewise.
34343         * lib/verify.h: Likewise.
34344         * lib/verror.c: Likewise.
34345         * lib/verror.h: Likewise.
34346         * lib/version-etc-fsf.c: Likewise.
34347         * lib/version-etc.c: Likewise.
34348         * lib/version-etc.h: Likewise.
34349         * lib/vfprintf.c: Likewise.
34350         * lib/vprintf.c: Likewise.
34351         * lib/vsprintf.c: Likewise.
34352         * lib/w32spawn.h: Likewise.
34353         * lib/wait-process.c: Likewise.
34354         * lib/wait-process.h: Likewise.
34355         * lib/wcwidth.c: Likewise.
34356         * lib/write-any-file.c: Likewise.
34357         * lib/xalloc-die.c: Likewise.
34358         * lib/xalloc.h: Likewise.
34359         * lib/xasprintf.c: Likewise.
34360         * lib/xgetcwd.c: Likewise.
34361         * lib/xgetcwd.h: Likewise.
34362         * lib/xgetdomainname.c: Likewise.
34363         * lib/xgetdomainname.h: Likewise.
34364         * lib/xgethostname.c: Likewise.
34365         * lib/xmalloc.c: Likewise.
34366         * lib/xmalloca.c: Likewise.
34367         * lib/xmalloca.h: Likewise.
34368         * lib/xmemcoll.c: Likewise.
34369         * lib/xnanosleep.c: Likewise.
34370         * lib/xreadlink.c: Likewise.
34371         * lib/xreadlink.h: Likewise.
34372         * lib/xsetenv.c: Likewise.
34373         * lib/xsetenv.h: Likewise.
34374         * lib/xstriconv.c: Likewise.
34375         * lib/xstriconv.h: Likewise.
34376         * lib/xstrndup.c: Likewise.
34377         * lib/xstrndup.h: Likewise.
34378         * lib/xstrtod.c: Likewise.
34379         * lib/xstrtod.h: Likewise.
34380         * lib/xstrtol-error.c: Likewise.
34381         * lib/xstrtol.c: Likewise.
34382         * lib/xstrtol.h: Likewise.
34383         * lib/xtime.h: Likewise.
34384         * lib/xvasprintf.c: Likewise.
34385         * lib/xvasprintf.h: Likewise.
34386         * lib/yesno.c: Likewise.
34387         * lib/yesno.h: Likewise.
34388         * posix-modules: Likewise.
34389         * tests/test-alloca-opt.c: Likewise.
34390         * tests/test-arcfour.c: Likewise.
34391         * tests/test-arctwo.c: Likewise.
34392         * tests/test-argmatch.c: Likewise.
34393         * tests/test-argp-2.sh: Likewise.
34394         * tests/test-argp.c: Likewise.
34395         * tests/test-arpa_inet.c: Likewise.
34396         * tests/test-array_list.c: Likewise.
34397         * tests/test-array_oset.c: Likewise.
34398         * tests/test-atexit.c: Likewise.
34399         * tests/test-avltree_list.c: Likewise.
34400         * tests/test-avltree_oset.c: Likewise.
34401         * tests/test-avltreehash_list.c: Likewise.
34402         * tests/test-base64.c: Likewise.
34403         * tests/test-binary-io.c: Likewise.
34404         * tests/test-byteswap.c: Likewise.
34405         * tests/test-c-ctype.c: Likewise.
34406         * tests/test-c-strcasecmp.c: Likewise.
34407         * tests/test-c-strcasestr.c: Likewise.
34408         * tests/test-c-strncasecmp.c: Likewise.
34409         * tests/test-c-strstr.c: Likewise.
34410         * tests/test-canonicalize-lgpl.c: Likewise.
34411         * tests/test-canonicalize.c: Likewise.
34412         * tests/test-carray_list.c: Likewise.
34413         * tests/test-ceilf.c: Likewise.
34414         * tests/test-ceill.c: Likewise.
34415         * tests/test-count-one-bits.c: Likewise.
34416         * tests/test-crc.c: Likewise.
34417         * tests/test-dirname.c: Likewise.
34418         * tests/test-fbufmode.c: Likewise.
34419         * tests/test-fcntl.c: Likewise.
34420         * tests/test-fflush.c: Likewise.
34421         * tests/test-floorf.c: Likewise.
34422         * tests/test-floorl.c: Likewise.
34423         * tests/test-fopen.c: Likewise.
34424         * tests/test-fprintf-posix.c: Likewise.
34425         * tests/test-fprintf-posix.h: Likewise.
34426         * tests/test-fpurge.c: Likewise.
34427         * tests/test-freadable.c: Likewise.
34428         * tests/test-freadahead.c: Likewise.
34429         * tests/test-freading.c: Likewise.
34430         * tests/test-freopen.c: Likewise.
34431         * tests/test-frexp.c: Likewise.
34432         * tests/test-frexpl.c: Likewise.
34433         * tests/test-fseek.c: Likewise.
34434         * tests/test-fseeko.c: Likewise.
34435         * tests/test-fseterr.c: Likewise.
34436         * tests/test-fstrcmp.c: Likewise.
34437         * tests/test-ftell.c: Likewise.
34438         * tests/test-ftello.c: Likewise.
34439         * tests/test-fwritable.c: Likewise.
34440         * tests/test-fwriting.c: Likewise.
34441         * tests/test-getaddrinfo.c: Likewise.
34442         * tests/test-getpass.c: Likewise.
34443         * tests/test-gettimeofday.c: Likewise.
34444         * tests/test-hmac-md5.c: Likewise.
34445         * tests/test-hmac-sha1.c: Likewise.
34446         * tests/test-iconv.c: Likewise.
34447         * tests/test-iconvme.c: Likewise.
34448         * tests/test-inttypes.c: Likewise.
34449         * tests/test-isnan.c: Likewise.
34450         * tests/test-isnanf.c: Likewise.
34451         * tests/test-isnanl-nolibm.c: Likewise.
34452         * tests/test-isnanl.c: Likewise.
34453         * tests/test-isnanl.h: Likewise.
34454         * tests/test-ldexpl.c: Likewise.
34455         * tests/test-linked_list.c: Likewise.
34456         * tests/test-linkedhash_list.c: Likewise.
34457         * tests/test-locale.c: Likewise.
34458         * tests/test-localename.c: Likewise.
34459         * tests/test-lock.c: Likewise.
34460         * tests/test-lseek.c: Likewise.
34461         * tests/test-malloca.c: Likewise.
34462         * tests/test-math.c: Likewise.
34463         * tests/test-mbscasecmp.c: Likewise.
34464         * tests/test-mbscasestr1.c: Likewise.
34465         * tests/test-mbscasestr2.c: Likewise.
34466         * tests/test-mbscasestr3.c: Likewise.
34467         * tests/test-mbscasestr4.c: Likewise.
34468         * tests/test-mbschr.c: Likewise.
34469         * tests/test-mbscspn.c: Likewise.
34470         * tests/test-mbsncasecmp.c: Likewise.
34471         * tests/test-mbspbrk.c: Likewise.
34472         * tests/test-mbspcasecmp.c: Likewise.
34473         * tests/test-mbsrchr.c: Likewise.
34474         * tests/test-mbsspn.c: Likewise.
34475         * tests/test-mbsstr1.c: Likewise.
34476         * tests/test-mbsstr2.c: Likewise.
34477         * tests/test-mbsstr3.c: Likewise.
34478         * tests/test-md5.c: Likewise.
34479         * tests/test-memmem.c: Likewise.
34480         * tests/test-netinet_in.c: Likewise.
34481         * tests/test-open.c: Likewise.
34482         * tests/test-printf-frexp.c: Likewise.
34483         * tests/test-printf-frexpl.c: Likewise.
34484         * tests/test-printf-posix.c: Likewise.
34485         * tests/test-printf-posix.h: Likewise.
34486         * tests/test-rbtree_list.c: Likewise.
34487         * tests/test-rbtree_oset.c: Likewise.
34488         * tests/test-rbtreehash_list.c: Likewise.
34489         * tests/test-read-file.c: Likewise.
34490         * tests/test-rijndael.c: Likewise.
34491         * tests/test-search.c: Likewise.
34492         * tests/test-signbit.c: Likewise.
34493         * tests/test-sleep.c: Likewise.
34494         * tests/test-snprintf-posix.c: Likewise.
34495         * tests/test-snprintf-posix.h: Likewise.
34496         * tests/test-snprintf.c: Likewise.
34497         * tests/test-sprintf-posix.c: Likewise.
34498         * tests/test-sprintf-posix.h: Likewise.
34499         * tests/test-stat-time.c: Likewise.
34500         * tests/test-stdbool.c: Likewise.
34501         * tests/test-stdint.c: Likewise.
34502         * tests/test-stdio.c: Likewise.
34503         * tests/test-stdlib.c: Likewise.
34504         * tests/test-stpncpy.c: Likewise.
34505         * tests/test-strcasestr.c: Likewise.
34506         * tests/test-striconv.c: Likewise.
34507         * tests/test-striconveh.c: Likewise.
34508         * tests/test-striconveha.c: Likewise.
34509         * tests/test-string.c: Likewise.
34510         * tests/test-sys_select.c: Likewise.
34511         * tests/test-sys_socket.c: Likewise.
34512         * tests/test-sys_stat.c: Likewise.
34513         * tests/test-sys_time.c: Likewise.
34514         * tests/test-sysexits.c: Likewise.
34515         * tests/test-time.c: Likewise.
34516         * tests/test-tls.c: Likewise.
34517         * tests/test-trunc.c: Likewise.
34518         * tests/test-truncf.c: Likewise.
34519         * tests/test-truncl.c: Likewise.
34520         * tests/test-unistd.c: Likewise.
34521         * tests/test-vasnprintf-posix.c: Likewise.
34522         * tests/test-vasnprintf-posix2.c: Likewise.
34523         * tests/test-vasnprintf.c: Likewise.
34524         * tests/test-vasprintf-posix.c: Likewise.
34525         * tests/test-vasprintf.c: Likewise.
34526         * tests/test-verify.c: Likewise.
34527         * tests/test-vfprintf-posix.c: Likewise.
34528         * tests/test-vprintf-posix.c: Likewise.
34529         * tests/test-vsnprintf-posix.c: Likewise.
34530         * tests/test-vsnprintf.c: Likewise.
34531         * tests/test-vsprintf-posix.c: Likewise.
34532         * tests/test-wchar.c: Likewise.
34533         * tests/test-wctype.c: Likewise.
34534         * tests/test-wcwidth.c: Likewise.
34535         * tests/test-xstrtol.c: Likewise.
34536         * tests/test-xvasprintf.c: Likewise.
34537         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34538         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34539         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34540         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34541         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34542         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34543         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34544         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34545         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34546         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34547         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34548         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34549         * tests/uniname/test-uninames.c: Likewise.
34550         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34551         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34552         * tests/unistdio/test-u16-printf1.h: Likewise.
34553         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34554         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34555         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34556         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34557         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34558         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34559         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34560         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34561         * tests/unistdio/test-u32-printf1.h: Likewise.
34562         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34563         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34564         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34565         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34566         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34567         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34568         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34569         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34570         * tests/unistdio/test-u8-printf1.h: Likewise.
34571         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34572         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34573         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34574         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34575         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34576         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34577         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34578         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34579         * tests/unistdio/test-ulc-printf1.h: Likewise.
34580         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34581         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34582         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34583         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34584         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34585         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34586         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34587         * tests/uniwidth/test-u16-width.c: Likewise.
34588         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34589         * tests/uniwidth/test-u32-width.c: Likewise.
34590         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34591         * tests/uniwidth/test-u8-width.c: Likewise.
34592         * tests/uniwidth/test-uc_width.c: Likewise.
34593         * config/srclist-update: Likewise.
34594         (fixlicense): Update to GPLv3+.
34595
34596         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34597         * tests/test-tsearch.c: Change copyright notice.
34598
34599         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34600         * lib/c-strcaseeq.h: Change copyright notice.
34601         * lib/streq.h: Likewise.
34602         * lib/uniconv.h: Likewise.
34603         * lib/uniconv/u-conv-from-enc.h: Likewise.
34604         * lib/uniconv/u-conv-to-enc.h: Likewise.
34605         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34606         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34607         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34608         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34609         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34610         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34611         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34612         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34613         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34614         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34615         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34616         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34617         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34618         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34619         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34620         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34621         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34622         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34623         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34624         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34625         * lib/uniname.h: Likewise.
34626         * lib/uniname/uniname.c: Likewise.
34627         * lib/unistdio.h: Likewise.
34628         * lib/unistdio/u-asnprintf.h: Likewise.
34629         * lib/unistdio/u-asprintf.h: Likewise.
34630         * lib/unistdio/u-printf-args.c: Likewise.
34631         * lib/unistdio/u-printf-args.h: Likewise.
34632         * lib/unistdio/u-printf-parse.h: Likewise.
34633         * lib/unistdio/u-snprintf.h: Likewise.
34634         * lib/unistdio/u-sprintf.h: Likewise.
34635         * lib/unistdio/u-vasprintf.h: Likewise.
34636         * lib/unistdio/u-vsnprintf.h: Likewise.
34637         * lib/unistdio/u-vsprintf.h: Likewise.
34638         * lib/unistdio/u16-asnprintf.c: Likewise.
34639         * lib/unistdio/u16-asprintf.c: Likewise.
34640         * lib/unistdio/u16-printf-parse.c: Likewise.
34641         * lib/unistdio/u16-snprintf.c: Likewise.
34642         * lib/unistdio/u16-sprintf.c: Likewise.
34643         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34644         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34645         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34646         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34647         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34648         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34649         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34650         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34651         * lib/unistdio/u16-vasnprintf.c: Likewise.
34652         * lib/unistdio/u16-vasprintf.c: Likewise.
34653         * lib/unistdio/u16-vsnprintf.c: Likewise.
34654         * lib/unistdio/u16-vsprintf.c: Likewise.
34655         * lib/unistdio/u32-asnprintf.c: Likewise.
34656         * lib/unistdio/u32-asprintf.c: Likewise.
34657         * lib/unistdio/u32-printf-parse.c: Likewise.
34658         * lib/unistdio/u32-snprintf.c: Likewise.
34659         * lib/unistdio/u32-sprintf.c: Likewise.
34660         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34661         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34662         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34663         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34664         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34665         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34666         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34667         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34668         * lib/unistdio/u32-vasnprintf.c: Likewise.
34669         * lib/unistdio/u32-vasprintf.c: Likewise.
34670         * lib/unistdio/u32-vsnprintf.c: Likewise.
34671         * lib/unistdio/u32-vsprintf.c: Likewise.
34672         * lib/unistdio/u8-asnprintf.c: Likewise.
34673         * lib/unistdio/u8-asprintf.c: Likewise.
34674         * lib/unistdio/u8-printf-parse.c: Likewise.
34675         * lib/unistdio/u8-snprintf.c: Likewise.
34676         * lib/unistdio/u8-sprintf.c: Likewise.
34677         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34678         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34679         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34680         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34681         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34682         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34683         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34684         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34685         * lib/unistdio/u8-vasnprintf.c: Likewise.
34686         * lib/unistdio/u8-vasprintf.c: Likewise.
34687         * lib/unistdio/u8-vsnprintf.c: Likewise.
34688         * lib/unistdio/u8-vsprintf.c: Likewise.
34689         * lib/unistdio/ulc-asnprintf.c: Likewise.
34690         * lib/unistdio/ulc-asprintf.c: Likewise.
34691         * lib/unistdio/ulc-printf-parse.c: Likewise.
34692         * lib/unistdio/ulc-snprintf.c: Likewise.
34693         * lib/unistdio/ulc-sprintf.c: Likewise.
34694         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34695         * lib/unistdio/ulc-vasprintf.c: Likewise.
34696         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34697         * lib/unistdio/ulc-vsprintf.c: Likewise.
34698         * lib/unistr.h: Likewise.
34699         * lib/unistr/u-cpy-alloc.h: Likewise.
34700         * lib/unistr/u-cpy.h: Likewise.
34701         * lib/unistr/u-endswith.h: Likewise.
34702         * lib/unistr/u-move.h: Likewise.
34703         * lib/unistr/u-set.h: Likewise.
34704         * lib/unistr/u-startswith.h: Likewise.
34705         * lib/unistr/u-stpcpy.h: Likewise.
34706         * lib/unistr/u-stpncpy.h: Likewise.
34707         * lib/unistr/u-strcat.h: Likewise.
34708         * lib/unistr/u-strcpy.h: Likewise.
34709         * lib/unistr/u-strcspn.h: Likewise.
34710         * lib/unistr/u-strdup.h: Likewise.
34711         * lib/unistr/u-strlen.h: Likewise.
34712         * lib/unistr/u-strncat.h: Likewise.
34713         * lib/unistr/u-strncpy.h: Likewise.
34714         * lib/unistr/u-strnlen.h: Likewise.
34715         * lib/unistr/u-strpbrk.h: Likewise.
34716         * lib/unistr/u-strspn.h: Likewise.
34717         * lib/unistr/u-strstr.h: Likewise.
34718         * lib/unistr/u-strtok.h: Likewise.
34719         * lib/unistr/u16-check.c: Likewise.
34720         * lib/unistr/u16-chr.c: Likewise.
34721         * lib/unistr/u16-cmp.c: Likewise.
34722         * lib/unistr/u16-cpy-alloc.c: Likewise.
34723         * lib/unistr/u16-cpy.c: Likewise.
34724         * lib/unistr/u16-endswith.c: Likewise.
34725         * lib/unistr/u16-mblen.c: Likewise.
34726         * lib/unistr/u16-mbsnlen.c: Likewise.
34727         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34728         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34729         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34730         * lib/unistr/u16-mbtouc.c: Likewise.
34731         * lib/unistr/u16-mbtoucr.c: Likewise.
34732         * lib/unistr/u16-move.c: Likewise.
34733         * lib/unistr/u16-next.c: Likewise.
34734         * lib/unistr/u16-prev.c: Likewise.
34735         * lib/unistr/u16-set.c: Likewise.
34736         * lib/unistr/u16-startswith.c: Likewise.
34737         * lib/unistr/u16-stpcpy.c: Likewise.
34738         * lib/unistr/u16-stpncpy.c: Likewise.
34739         * lib/unistr/u16-strcat.c: Likewise.
34740         * lib/unistr/u16-strchr.c: Likewise.
34741         * lib/unistr/u16-strcmp.c: Likewise.
34742         * lib/unistr/u16-strcpy.c: Likewise.
34743         * lib/unistr/u16-strcspn.c: Likewise.
34744         * lib/unistr/u16-strdup.c: Likewise.
34745         * lib/unistr/u16-strlen.c: Likewise.
34746         * lib/unistr/u16-strmblen.c: Likewise.
34747         * lib/unistr/u16-strmbtouc.c: Likewise.
34748         * lib/unistr/u16-strncat.c: Likewise.
34749         * lib/unistr/u16-strncmp.c: Likewise.
34750         * lib/unistr/u16-strncpy.c: Likewise.
34751         * lib/unistr/u16-strnlen.c: Likewise.
34752         * lib/unistr/u16-strpbrk.c: Likewise.
34753         * lib/unistr/u16-strrchr.c: Likewise.
34754         * lib/unistr/u16-strspn.c: Likewise.
34755         * lib/unistr/u16-strstr.c: Likewise.
34756         * lib/unistr/u16-strtok.c: Likewise.
34757         * lib/unistr/u16-to-u32.c: Likewise.
34758         * lib/unistr/u16-to-u8.c: Likewise.
34759         * lib/unistr/u16-uctomb-aux.c: Likewise.
34760         * lib/unistr/u16-uctomb.c: Likewise.
34761         * lib/unistr/u32-check.c: Likewise.
34762         * lib/unistr/u32-chr.c: Likewise.
34763         * lib/unistr/u32-cmp.c: Likewise.
34764         * lib/unistr/u32-cpy-alloc.c: Likewise.
34765         * lib/unistr/u32-cpy.c: Likewise.
34766         * lib/unistr/u32-endswith.c: Likewise.
34767         * lib/unistr/u32-mblen.c: Likewise.
34768         * lib/unistr/u32-mbsnlen.c: Likewise.
34769         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34770         * lib/unistr/u32-mbtouc.c: Likewise.
34771         * lib/unistr/u32-mbtoucr.c: Likewise.
34772         * lib/unistr/u32-move.c: Likewise.
34773         * lib/unistr/u32-next.c: Likewise.
34774         * lib/unistr/u32-prev.c: Likewise.
34775         * lib/unistr/u32-set.c: Likewise.
34776         * lib/unistr/u32-startswith.c: Likewise.
34777         * lib/unistr/u32-stpcpy.c: Likewise.
34778         * lib/unistr/u32-stpncpy.c: Likewise.
34779         * lib/unistr/u32-strcat.c: Likewise.
34780         * lib/unistr/u32-strchr.c: Likewise.
34781         * lib/unistr/u32-strcmp.c: Likewise.
34782         * lib/unistr/u32-strcpy.c: Likewise.
34783         * lib/unistr/u32-strcspn.c: Likewise.
34784         * lib/unistr/u32-strdup.c: Likewise.
34785         * lib/unistr/u32-strlen.c: Likewise.
34786         * lib/unistr/u32-strmblen.c: Likewise.
34787         * lib/unistr/u32-strmbtouc.c: Likewise.
34788         * lib/unistr/u32-strncat.c: Likewise.
34789         * lib/unistr/u32-strncmp.c: Likewise.
34790         * lib/unistr/u32-strncpy.c: Likewise.
34791         * lib/unistr/u32-strnlen.c: Likewise.
34792         * lib/unistr/u32-strpbrk.c: Likewise.
34793         * lib/unistr/u32-strrchr.c: Likewise.
34794         * lib/unistr/u32-strspn.c: Likewise.
34795         * lib/unistr/u32-strstr.c: Likewise.
34796         * lib/unistr/u32-strtok.c: Likewise.
34797         * lib/unistr/u32-to-u16.c: Likewise.
34798         * lib/unistr/u32-to-u8.c: Likewise.
34799         * lib/unistr/u32-uctomb.c: Likewise.
34800         * lib/unistr/u8-check.c: Likewise.
34801         * lib/unistr/u8-chr.c: Likewise.
34802         * lib/unistr/u8-cmp.c: Likewise.
34803         * lib/unistr/u8-cpy-alloc.c: Likewise.
34804         * lib/unistr/u8-cpy.c: Likewise.
34805         * lib/unistr/u8-endswith.c: Likewise.
34806         * lib/unistr/u8-mblen.c: Likewise.
34807         * lib/unistr/u8-mbsnlen.c: Likewise.
34808         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34809         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34810         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34811         * lib/unistr/u8-mbtouc.c: Likewise.
34812         * lib/unistr/u8-mbtoucr.c: Likewise.
34813         * lib/unistr/u8-move.c: Likewise.
34814         * lib/unistr/u8-next.c: Likewise.
34815         * lib/unistr/u8-prev.c: Likewise.
34816         * lib/unistr/u8-set.c: Likewise.
34817         * lib/unistr/u8-startswith.c: Likewise.
34818         * lib/unistr/u8-stpcpy.c: Likewise.
34819         * lib/unistr/u8-stpncpy.c: Likewise.
34820         * lib/unistr/u8-strcat.c: Likewise.
34821         * lib/unistr/u8-strchr.c: Likewise.
34822         * lib/unistr/u8-strcmp.c: Likewise.
34823         * lib/unistr/u8-strcpy.c: Likewise.
34824         * lib/unistr/u8-strcspn.c: Likewise.
34825         * lib/unistr/u8-strdup.c: Likewise.
34826         * lib/unistr/u8-strlen.c: Likewise.
34827         * lib/unistr/u8-strmblen.c: Likewise.
34828         * lib/unistr/u8-strmbtouc.c: Likewise.
34829         * lib/unistr/u8-strncat.c: Likewise.
34830         * lib/unistr/u8-strncmp.c: Likewise.
34831         * lib/unistr/u8-strncpy.c: Likewise.
34832         * lib/unistr/u8-strnlen.c: Likewise.
34833         * lib/unistr/u8-strpbrk.c: Likewise.
34834         * lib/unistr/u8-strrchr.c: Likewise.
34835         * lib/unistr/u8-strspn.c: Likewise.
34836         * lib/unistr/u8-strstr.c: Likewise.
34837         * lib/unistr/u8-strtok.c: Likewise.
34838         * lib/unistr/u8-to-u16.c: Likewise.
34839         * lib/unistr/u8-to-u32.c: Likewise.
34840         * lib/unistr/u8-uctomb-aux.c: Likewise.
34841         * lib/unistr/u8-uctomb.c: Likewise.
34842         * lib/unitypes.h: Likewise.
34843         * lib/uniwidth.h: Likewise.
34844         * lib/uniwidth/cjk.h: Likewise.
34845         * lib/uniwidth/u16-strwidth.c: Likewise.
34846         * lib/uniwidth/u16-width.c: Likewise.
34847         * lib/uniwidth/u32-strwidth.c: Likewise.
34848         * lib/uniwidth/u32-width.c: Likewise.
34849         * lib/uniwidth/u8-strwidth.c: Likewise.
34850         * lib/uniwidth/u8-width.c: Likewise.
34851         * lib/uniwidth/width.c: Likewise.
34852
34853 2007-10-07  Bruno Haible  <bruno@clisp.org>
34854
34855         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34856         The file is still under LGPL (see modules/inttypes).
34857
34858 2007-10-06  Bruno Haible  <bruno@clisp.org>
34859
34860         * modules/trunc (Dependencies): Add 'extensions'.
34861         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34862         Reported by Ben Pfaff <blp@gnu.org>.
34863
34864 2007-10-06  Bruno Haible  <bruno@clisp.org>
34865
34866         * modules/freopen-tests: New file.
34867         * tests/test-freopen.c: New file.
34868
34869         * modules/fopen-tests: New file.
34870         * tests/test-fopen.c: New file.
34871
34872         * modules/fopen: New file.
34873         * lib/fopen.c: New file.
34874         * m4/fopen.m4: New file.
34875         * modules/freopen: New file.
34876         * lib/freopen.c: New file.
34877         * m4/freopen.m4: New file.
34878         * lib/stdio.in.h (fopen, freopen): New declarations.
34879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
34880         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34881         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
34882         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34883         * doc/functions/fopen.texi: Mention the 'fopen' module.
34884         * doc/functions/freopen.texi: Mention the 'freopen' module.
34885
34886 2007-10-06  Bruno Haible  <bruno@clisp.org>
34887
34888         * modules/open-tests: New file.
34889         * tests/test-open.c: New file.
34890
34891         * modules/open: New file.
34892         * lib/open.c: New file.
34893         * m4/open.m4: New file.
34894         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
34895         lib/open.c does.
34896         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34897         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
34898         macros.
34899         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
34900         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
34901         REPLACE_OPEN.
34902         * doc/functions/open.texi: Mention the 'open' module.
34903
34904 2007-10-04  Bruno Haible  <bruno@clisp.org>
34905
34906         * modules/ceill-tests: New file.
34907         * tests/test-ceill.c: New file.
34908
34909         * modules/ceill: New file.
34910         * lib/ceill.c: Replace entire file.
34911         * m4/ceill.m4: New file.
34912         * lib/math.in.h (ceill): Replace declaration.
34913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
34914         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
34915         * doc/functions/ceill.texi: Mention the 'ceill' module.
34916         * modules/mathl (Files): Remove lib/ceill.c.
34917         (Depends-on): Add ceill.
34918
34919 2007-10-04  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/ceilf-tests: New file.
34922         * tests/test-ceilf.c: New file.
34923
34924         * modules/ceilf: New file.
34925         * lib/ceil.c: New file.
34926         * lib/ceilf.c: New file.
34927         * m4/ceilf.m4: New file.
34928         * lib/math.in.h (ceilf): New declaration.
34929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
34930         HAVE_DECL_CEILF.
34931         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
34932         HAVE_DECL_CEILF.
34933         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
34934
34935 2007-10-04  Bruno Haible  <bruno@clisp.org>
34936
34937         * modules/floorl-tests: New file.
34938         * tests/test-floorl.c: New file.
34939
34940         * modules/floorl: New file.
34941         * lib/floorl.c: Replace entire file.
34942         * m4/floorl.m4: New file.
34943         * lib/math.in.h (floorl): Replace declaration.
34944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
34945         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
34946         * doc/functions/floorl.texi: Mention the 'floorl' module.
34947         * modules/mathl (Files): Remove lib/floorl.c.
34948         (Depends-on): Add floorl.
34949
34950 2007-10-04  Bruno Haible  <bruno@clisp.org>
34951
34952         * modules/floorf-tests: New file.
34953         * tests/test-floorf.c: New file.
34954
34955         * modules/floorf: New file.
34956         * lib/floor.c: New file.
34957         * lib/floorf.c: New file.
34958         * m4/floorf.m4: New file.
34959         * lib/math.in.h (floorf): New declaration.
34960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
34961         HAVE_DECL_FLOORF.
34962         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
34963         HAVE_DECL_FLOORF.
34964         * doc/functions/floorf.texi: Mention the 'floorf' module.
34965
34966 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
34967             Bruno Haible  <bruno@clisp.org>
34968
34969         Advertise for the Git server instead of the CVS server.
34970         * doc/gnulib-intro.texi (Steady Development): Mention the Git
34971         repository instead of the CVS one.
34972         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
34973         about all VCS systems generically.
34974         * doc/gnulib.texi (Introduction): Capitalize `Git'.
34975
34976 2007-10-04  Bruno Haible  <bruno@clisp.org>
34977
34978         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
34979         means.
34980         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
34981
34982 2007-10-04  Bruno Haible  <bruno@clisp.org>
34983
34984         * modules/truncl-tests: New file.
34985         * tests/test-truncl.c: New file.
34986
34987         * modules/truncl: New file.
34988         * lib/truncl.c: New file.
34989         * m4/truncl.m4: New file.
34990         * lib/math.in.h (truncl): New declaration.
34991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
34992         HAVE_DECL_TRUNCL.
34993         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
34994         HAVE_DECL_TRUNCL.
34995         * doc/functions/truncl.texi: Mention the 'truncl' module.
34996
34997 2007-10-04  Bruno Haible  <bruno@clisp.org>
34998
34999         * modules/truncf-tests: New file.
35000         * tests/test-truncf.c: New file.
35001
35002         * modules/truncf: New file.
35003         * lib/trunc.c: Make paramerizable through USE_* macros.
35004         * lib/truncf.c: New file.
35005         * m4/truncf.m4: New file.
35006         * lib/math.in.h (truncf): New declaration.
35007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35008         HAVE_DECL_TRUNCF.
35009         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35010         HAVE_DECL_TRUNCF.
35011         * doc/functions/truncf.texi: Mention the 'truncf' module.
35012
35013 2007-10-03  Bruno Haible  <bruno@clisp.org>
35014
35015         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35016         augmentation also for tests modules.
35017         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35018         * modules/atexit-tests (Makefile.am): Likewise.
35019         * modules/binary-io-tests (Makefile.am): Likewise.
35020         * modules/c-strcase-tests (Makefile.am): Likewise.
35021         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35022         * modules/canonicalize-tests (Makefile.am): Likewise.
35023         * modules/closein-tests (Makefile.am): Likewise.
35024         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35025         * modules/freadahead-tests (Makefile.am): Likewise.
35026         * modules/fseek-tests (Makefile.am): Likewise.
35027         * modules/fseeko-tests (Makefile.am): Likewise.
35028         * modules/ftell-tests (Makefile.am): Likewise.
35029         * modules/ftello-tests (Makefile.am): Likewise.
35030         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35031         * modules/isnanl-tests (Makefile.am): Likewise.
35032         * modules/lseek-tests (Makefile.am): Likewise.
35033         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35034         * modules/mbscasestr-tests (Makefile.am): Likewise.
35035         * modules/mbschr-tests (Makefile.am): Likewise.
35036         * modules/mbscspn-tests (Makefile.am): Likewise.
35037         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35038         * modules/mbspbrk-tests (Makefile.am): Likewise.
35039         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35040         * modules/mbsrchr-tests (Makefile.am): Likewise.
35041         * modules/mbsspn-tests (Makefile.am): Likewise.
35042         * modules/mbsstr-tests (Makefile.am): Likewise.
35043         * modules/printf-posix-tests (Makefile.am): Likewise.
35044         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35045         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35046         * modules/tsearch-tests (Makefile.am): Likewise.
35047         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35048         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35049         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35050         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35051         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35052         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35053         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35054         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35055         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35056         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35057         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35058         * modules/xstrtol-tests (Makefile.am): Likewise.
35059         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35060         * modules/yesno-tests (Makefile.am): Likewise.
35061
35062 2007-10-03  Bruno Haible  <bruno@clisp.org>
35063
35064         * modules/trunc-tests: New file.
35065         * tests/test-trunc.c: New file.
35066
35067         * modules/trunc: New file.
35068         * lib/trunc.c: New file.
35069         * m4/trunc.m4: New file.
35070         * lib/math.in.h (trunc): New declaration.
35071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35072         HAVE_DECL_TRUNC.
35073         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35074         HAVE_DECL_TRUNC.
35075         * doc/functions/trunc.texi: Mention the 'trunc' module.
35076
35077 2007-10-03  Bruno Haible  <bruno@clisp.org>
35078
35079         * tests/test-fpending.c: New file, mostly copied
35080         from coreutils/lib/t-fpending.c.
35081         * modules/fpending-tests: New file.
35082
35083 2007-10-03  Bruno Haible  <bruno@clisp.org>
35084
35085         Port the stdio extensions to QNX (untested).
35086         * lib/fseterr.c (fseterr): Add support for QNX.
35087         * lib/fbufmode.c (fbufmode): Likewise.
35088         * lib/freadable.c (freadable): Likewise.
35089         * lib/fwritable.c (fwritable): Likewise.
35090         * lib/freading.c (freading): Likewise.
35091         * lib/fwriting.c (fwriting): Likewise.
35092         * lib/freadahead.c (freadahed): Likewise.
35093         * lib/fpurge.c (fpurge): Likewise.
35094         * lib/fseeko.c (rpl_fseeko): Likewise.
35095
35096 2007-10-03  Bruno Haible  <bruno@clisp.org>
35097             Jim Meyering  <jim@meyering.net>
35098             Eric Blake  <ebb9@byu.net>
35099
35100         * doc/relocatable.texi: Use @command instead of @program.
35101
35102 2007-10-02  Jim Meyering  <jim@meyering.net>
35103
35104         Perform one more "_.h" -> ".in.h" substitution.
35105         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35106         instead of unistd_.h here, too.
35107
35108 2007-10-01  Bruno Haible  <bruno@clisp.org>
35109
35110         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35111         Needed for the alloca-opt module.
35112
35113 2007-09-30  Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35116         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35117         alloca_.h.
35118         * lib/argz.in.h: Renamed from lib/argz_.h.
35119         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35120         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35121         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35122         byteswap_.h.
35123         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35124         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35125         dirent_.h.
35126         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35127         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35128         fcntl_.h.
35129         * lib/float.in.h: Renamed from lib/float_.h.
35130         * modules/float (Files, Makefile.am): Use float.in.h instead of
35131         float_.h.
35132         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35133         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35134         fnmatch_.h.
35135         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35136         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35137         getopt_.h.
35138         * lib/glob.in.h: Renamed from lib/glob_.h.
35139         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35140         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35141         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35142         iconv_.h.
35143         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35144         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35145         inttypes_.h.
35146         * lib/locale.in.h: Renamed from lib/locale_.h.
35147         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35148         locale_.h.
35149         * lib/math.in.h: Renamed from lib/math_.h.
35150         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35151         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35152         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35153         of netinet_in_.h. Add dependency.
35154         * lib/poll.in.h: Renamed from lib/poll_.h.
35155         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35156         * lib/search.in.h: Renamed from lib/search_.h.
35157         * modules/search (Files, Makefile.am): Use search.in.h instead of
35158         search_.h.
35159         * lib/signal.in.h: Renamed from lib/signal_.h.
35160         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35161         _signal.h.
35162         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35163         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35164         stdbool_.h.
35165         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35166         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35167         stdint_.h.
35168         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35169         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35170         stdio_.h.
35171         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35172         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35173         stdlib_.h.
35174         * lib/string.in.h: Renamed from lib/string_.h.
35175         * modules/string (Files, Makefile.am): Use string.in.h instead of
35176         string_.h.
35177         * doc/gnulib-tool.texi (Initial import): Update.
35178         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35179         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35180         of sys_select_.h. Add dependency.
35181         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35182         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35183         of sys_socket_.h.
35184         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35185         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35186         sys_stat_.h.
35187         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35188         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35189         sys_time_.h.
35190         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35191         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35192         sysexits_.h.
35193         * lib/time.in.h: Renamed from lib/time_.h.
35194         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35195         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35196         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35197         unistd_.h.
35198         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35199         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35200         wchar_.h.
35201         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35202         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35203         wctype_.h.
35204         * build-aux/bootstrap (slurp): Update.
35205         * lib/.cppi-disable: Update.
35206
35207 2007-09-30  Bruno Haible  <bruno@clisp.org>
35208
35209         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35210         Needed on BeOS.
35211
35212 2007-09-30  Bruno Haible  <bruno@clisp.org>
35213
35214         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35215
35216 2007-09-29  Bruno Haible  <bruno@clisp.org>
35217
35218         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35219
35220 2007-09-29  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35223         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35224         * build-aux/install-reloc: Compile also areadlink.c.
35225         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35226
35227 2007-09-29  Bruno Haible  <bruno@clisp.org>
35228
35229         * gnulib-tool (func_emit_initmacro_done): Indentation.
35230
35231 2007-09-29  Bruno Haible  <bruno@clisp.org>
35232
35233         * README: Add CVS checkout update instructions.
35234         Info from Bob Proulx <bob@proulx.com>.
35235
35236 2007-09-28  Eric Blake  <ebb9@byu.net>
35237
35238         Provide move-if-change.
35239         * build-aux/move-if-change: New file, based on best practice
35240         rather than any canonical upstream location.
35241
35242 2007-09-28  Jim Meyering  <jim@meyering.net>
35243
35244         Fix canonicalize loop-detection corner case.
35245         Do not attempt to stat the symlink values stored via seen_triple.
35246         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35247         on linux-2.6.18, (but not 2.6.22).
35248         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35249         triple_compare.  The former compares dev,ino,filename, while the latter
35250         would actually stat dirname(filename) when dev and ino were equal.
35251         * lib/hash-triple.c: Install <string.h>.
35252         (STREQ): Define.
35253         (triple_compare_ino_str): New function.
35254         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35255
35256 2007-09-28  Eric Blake  <ebb9@byu.net>
35257
35258         Enforce that AC_REPLACE_FUNCS files exist.
35259         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35260         override check for typos.
35261
35262         Fix test-closein on Solaris 10.
35263         * tests/test-closein.c (main): Don't assume stdin can be inherited
35264         closed on all systems.
35265         * tests/test-closein.sh: Likewise.
35266         Reported by Piotr Tarnowski.
35267
35268 2007-09-28  Jim Meyering  <jim@meyering.net>
35269
35270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35271
35272 2007-09-27  Jim Meyering  <jim@meyering.net>
35273
35274         canonicalize: Avoid a false-positive cycle failure.
35275         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35276         Sort.  Remove cycle-check.
35277         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35278         not cycle-check.h.
35279         (seen_triple): New function.
35280         (canonicalize_filename_mode): Use it instead of cycle-check.
35281         * tests/test-canonicalize.c: Add a test for this bug.
35282         * tests/test-canonicalize.sh: Set up and run the test.
35283
35284         New module, file-set, from coreutils.
35285         * modules/file-set: Define it.
35286         * lib/file-set.c, lib/file-set.h: Implement.
35287
35288         New module, hash-triple, from coreutils.
35289         * modules/hash-triple: Define it.
35290         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35291
35292 2007-09-25  Eric Blake  <ebb9@byu.net>
35293
35294         Fix strerror on Interix.
35295         * lib/string_.h (strerror): Declare replacement.
35296         * doc/functions/strerror.texi (strerror): Document the Interix
35297         shortcoming.
35298         * modules/string (Makefile.am): Support new hooks.
35299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35300         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35301         gl_FUNC_STRERROR_SEPARATE.
35302         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35303         * lib/strerror.c (rpl_strerror): Provide replacement.
35304         * modules/strerror (Depends-on): Add string.
35305         (configure.ac): Detect use of module.
35306         * tests/test-strerror.c: New file.
35307         * modules/strerror-tests: New test module.
35308         * modules/argp (Depends-on): Add strerror.
35309         * modules/error (Depends-on): Likewise.
35310         Reported by Martin Koeppe.
35311
35312 2007-09-24  Bruno Haible  <bruno@clisp.org>
35313
35314         * README: Update git instructions.
35315
35316 2007-09-24  Eric Blake  <ebb9@byu.net>
35317
35318         Revert fpending breakage from 2007-09-08.
35319         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35320         __fpending.c.
35321
35322 2007-09-24  Jim Meyering  <jim@meyering.net>
35323
35324         filenamecat.c: Add a test.
35325         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35326         showing how the function works when DIR is the empty string.
35327
35328 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35329
35330         * tests/test-canonicalize.sh: Turn on executable bit.
35331
35332 2007-09-19  Eric Blake  <ebb9@byu.net>
35333
35334         * README: Update CVS instructions.
35335
35336 2007-09-18  Bruno Haible  <bruno@clisp.org>
35337
35338         * modules/areadlink: New file.
35339         * lib/areadlink.h (areadlink): New declaration.
35340         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35341
35342 2007-09-17  Jim Meyering  <jim@meyering.net>
35343
35344         * lib/savewd.c (ESTALE) [!defined]: Define.
35345         Reported to be required on Interix by Martin Koeppe.
35346
35347 2007-09-17  Bruno Haible  <bruno@clisp.org>
35348
35349         * gnulib-tool (func_version): Use $version.
35350
35351 2007-09-16  Bruno Haible  <bruno@clisp.org>
35352
35353         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35354         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35355         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35356         Reported by Greg Schafer <gschafer@zip.com.au>.
35357
35358 2007-09-15  Bruno Haible  <bruno@clisp.org>
35359
35360         * gnulib-tool (sed): Try a little harder to make bash understand the
35361         alias.
35362         Reported by Bruce Korb <bruce.korb@gmail.com>.
35363
35364 2007-09-13  Eric Blake  <ebb9@byu.net>
35365
35366         * ChangeLog: Remove conflict markers.
35367
35368 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35369
35370         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35371         Reported by Bruno Haible <bruno@clisp.org>.
35372
35373 2007-09-12  Bruno Haible  <bruno@clisp.org>
35374
35375         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35376         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35377         is not defined.
35378
35379 2007-09-12  Eric Blake  <ebb9@byu.net>
35380
35381         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35382         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35383         Autoconf definition.
35384         * modules/euidaccess (Depends-on): Add extensions, for
35385         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35386         * modules/fnmatch (Depends-on): Likewise.
35387         * modules/getaddrinfo (Depends-on): Likewise.
35388         * modules/getdelim (Depends-on): Likewise.
35389         * modules/getline (Depends-on): Likewise.
35390         * modules/getsubopt (Depends-on): Likewise.
35391         * modules/gettext (Depends-on): Likewise.
35392         * modules/group-member (Depends-on): Likewise.
35393         * modules/mbchar (Depends-on): Likewise.
35394         * modules/memmem (Depends-on): Likewise.
35395         * modules/mempcpy (Depends-on): Likewise.
35396         * modules/memrchr (Depends-on): Likewise.
35397         * modules/pagealign_alloc (Depends-on): Likewise.
35398         * modules/readutmp (Depends-on): Likewise.
35399         * modules/stpcpy (Depends-on): Likewise.
35400         * modules/stpncpy (Depends-on): Likewise.
35401         * modules/strchrnul (Depends-on): Likewise.
35402         * modules/strndup (Depends-on): Likewise.
35403         * modules/strsep (Depends-on): Likewise.
35404         * modules/strverscmp (Depends-on): Likewise.
35405         * modules/vasprintf (Depends-on): Likewise.
35406         * modules/wcwidth (Depends-on): Likewise.
35407         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35408         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35409         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35410         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35411         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35412         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35413         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35414         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35415         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35416         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35417         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35418         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35419         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35420         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35421         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35422         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35423         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35424         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35425         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35426         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35427         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35428         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35429         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35430         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35431         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35433         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35434         so that lock.m4 can be used in gettext without extensions module.
35435
35436 2007-09-11  Bruno Haible  <bruno@clisp.org>
35437
35438         * m4/isc-posix.m4: Remove file.
35439         Suggested by Eric Blake.
35440
35441 2007-09-11  Eric Blake  <ebb9@byu.net>
35442
35443         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35444
35445 2007-09-10  Bruno Haible  <bruno@clisp.org>
35446
35447         * posix-modules: Fix typo in error message.
35448         Reported by Matt <mkraai@beckman.com>.
35449
35450 2007-09-09  Bruno Haible  <bruno@clisp.org>
35451
35452         * doc/functions/getdelim.texi: Update list of platforms lacking the
35453         function.
35454         * doc/functions/getline.texi: Likewise.
35455
35456 2007-09-09  Jim Meyering  <jim@meyering.net>
35457
35458         * lib/hash.c (hash_initialize): Detect calloc failure.
35459         Reported by Bruno Haible.
35460
35461 2007-09-09  Bruno Haible  <bruno@clisp.org>
35462
35463         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35464         malloc or realloc fails.
35465
35466 2007-09-09  Bruno Haible  <bruno@clisp.org>
35467
35468         * modules/getcwd (Depends-on): Add malloc-posix.
35469         * modules/glob (Depends-on): Likewise.
35470         * modules/putenv (Depends-on): Likewise.
35471         * modules/strdup (Depends-on): Likewise.
35472         * modules/getdelim (Depends-on): Add realloc-posix.
35473         * modules/read-file (Depends-on): Likewise.
35474
35475 2007-09-09  Bruno Haible  <bruno@clisp.org>
35476
35477         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35478         (gl_FUNC_MALLOC_POSIX): Require it.
35479         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35480         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35481         * modules/realloc (Files): Add m4/malloc.m4.
35482         * modules/calloc (Files): Likewise.
35483
35484 2007-09-09  Bruno Haible  <bruno@clisp.org>
35485
35486         * modules/malloc-posix: New file.
35487         * modules/malloc (Depends-on): Add malloc-posix.
35488         * lib/malloc.c: Include errno.h.
35489         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35490         and a POSIX-compatible malloc into a single function. Set ENOMEM
35491         when returning NULL.
35492         * m4/malloc.m4: New file.
35493         * doc/functions/malloc.texi: Mention the malloc-posix module.
35494         * lib/stdlib_.h (malloc): New declaration.
35495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35496         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35497         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35498         and HAVE_MALLOC_POSIX.
35499
35500 2007-09-09  Bruno Haible  <bruno@clisp.org>
35501
35502         * modules/realloc-posix: New file.
35503         * modules/realloc (Depends-on): Add realloc-posix.
35504         * lib/realloc.c: Include errno.h.
35505         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35506         and a POSIX-compatible realloc into a single function. Set ENOMEM
35507         when returning NULL.
35508         * m4/realloc.m4: New file.
35509         * doc/functions/realloc.texi: Mention the realloc-posix module.
35510         * lib/stdlib_.h (realloc): New declaration.
35511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35512         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35513         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35514         and HAVE_REALLOC_POSIX.
35515
35516 2007-09-09  Bruno Haible  <bruno@clisp.org>
35517
35518         * modules/calloc-posix: New file.
35519         * modules/calloc (Depends-on): Add calloc-posix.
35520         * lib/calloc.c: Include errno.h.
35521         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35522         and a POSIX-compatible calloc into a single function. Set ENOMEM
35523         when returning NULL.
35524         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35525         * doc/functions/calloc.texi: Mention the calloc-posix module.
35526         * lib/stdlib_.h (calloc): New declaration.
35527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35528         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35529         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35530         and HAVE_CALLOC_POSIX.
35531
35532 2007-09-09  Bruno Haible  <bruno@clisp.org>
35533
35534         Allow for modules to show an arbitrary notice.
35535         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35536         * gnulib-tool: New option --extract-notice.
35537         (func_usage): Document it.
35538         (sed_extract_prog): Update.
35539         (func_get_notice): New function.
35540         (func_modules_notice): New function.
35541         (func_import, func_create_testdir): Invoke it.
35542         Suggested by Jim Meyering.
35543
35544 2007-09-09  Bruno Haible  <bruno@clisp.org>
35545
35546         * gnulib-tool: New options --verbose, --quiet.
35547         (func_usage): Document them.
35548         (verbose): New variable.
35549         (func_execute_command): New function.
35550         (func_import): Don't show the module list and the file list if
35551         $verbose < 0.
35552         (func_create_testdir): Likewise. Use func_execute_command.
35553         (func_create_megatestdir): Use func_execute_command.
35554
35555 2007-09-08  Bruno Haible  <bruno@clisp.org>
35556
35557         * gnulib-tool (func_import): Prefer rsync over wget when available,
35558         for fetching the PO files.
35559
35560 2007-09-08  Bruno Haible  <bruno@clisp.org>
35561
35562         * posix-modules: New file. Portions copied from gnulib-tool.
35563         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35564
35565 2007-09-08  Jim Meyering  <jim@meyering.net>
35566
35567         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35568         * lib/fpending.h: Rename from __fpending.h.
35569         * lib/fpending.c: Rename from __fpending.c.
35570         Include "fpending.h", not "__fpending.h".
35571         * lib/__fpending.h, lib/__fpending.c: Remove files.
35572         * modules/fpending (Files): Reflect new file names.
35573         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35574
35575 2007-09-08  Bruno Haible  <bruno@clisp.org>
35576
35577         * m4/inttypes-h.m4: Remove stub file.
35578
35579 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35580
35581         * doc/headers/stdint.texi: Discuss #include_next issue.
35582
35583 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35584
35585         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35586
35587 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35588
35589         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35590         in variable name.
35591
35592 2007-09-03  Jim Meyering  <jim@meyering.net>
35593
35594         New module: git-version-gen.
35595         * modules/git-version-gen: New file.
35596
35597         Import changes from coreutils for bootstrap script.
35598
35599         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35600
35601         bootstrap: uses rsync to download the .po files
35602         * build-aux/bootstrap (po_download_command_format): New global.
35603         (download_po_files): Use rsync.
35604         (update_po_files): Don't remove .po files after download,
35605         so future rsync runs can take advantage of the copies.
35606
35607         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35608
35609         Solve the unnecessary-.po-file-regeneration problem once and for all.
35610         * build-aux/bootstrap (download_po_files): New function, renamed from
35611         get_translations.  Now, downloads, but doesn't update LINGUAS.
35612         (update_po_files): New function.
35613
35614         bootstrap: Ignore more.
35615         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35616         uniwidth to e.g., lib/.gitignore.
35617         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35618
35619         * build-aux/bootstrap: New setting: vc_ignore.
35620         (insert_sorted_if_absent): Create $file if absent.
35621         Adapt to new, possibly empty, list: $vc_ignore.
35622
35623         bootstrap: generate more ignorable names
35624         * build-aux/bootstrap (slurp): When generating ignorable names,
35625         also map .sin to .sed, .gperf to .c, and .y to .c.
35626
35627 2007-09-03  Jim Meyering  <jim@meyering.net>
35628
35629         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35630         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35631
35632 2007-09-02  Bruno Haible  <bruno@clisp.org>
35633
35634         Fix mis-recognition of 'mcs' on QNX 6.
35635         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35636         output contains the string "Mono".
35637         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35638         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35639
35640 2007-09-01  Bruno Haible  <bruno@clisp.org>
35641
35642         Fix collision between uniwidth/* and linebreak modules.
35643         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35644         u32_width): Remove declarations.
35645         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35646         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35647         streq3, streq2, streq1, streq0): Remove functions.
35648         (STREQ): Remove macro.
35649         (is_cjk_encoding): Remove function.
35650         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35651         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35652         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35653         * NEWS: Document the change.
35654
35655 2007-09-01  Bruno Haible  <bruno@clisp.org>
35656
35657         * lib/streq.h: Add double-inclusion guard.
35658
35659 2007-09-01  Karl Berry  <karl@gnu.org>
35660
35661         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35662
35663 2007-08-28  Jim Meyering  <jim@meyering.net>
35664
35665         Rename mreadlink_with_size to areadlink_with_size.
35666         * NEWS: Document the change.
35667         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35668         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35669         * lib/mreadlink.h: Rename this to...
35670         * lib/areadlink.h: ...this.
35671         * modules/mreadlink-with-size: Rename this to...
35672         * modules/areadlink-with-size: ...this.
35673         * lib/canonicalize.c: Reflect the renaming.
35674         * modules/canonicalize: Likewise.
35675
35676 2007-08-26  Bruno Haible  <bruno@clisp.org>
35677
35678         * gnulib-tool (func_import): When deciding which files to remove,
35679         consider also dangling symbolic links.
35680         Reported by Eric Blake.
35681
35682 2007-08-26  Bruno Haible  <bruno@clisp.org>
35683
35684         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35685
35686 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35687
35688         * lib/readline.c: Don't include getline.h, the prototype is now
35689         found in stdio.h.
35690
35691 2007-08-23  Jim Meyering  <jim@meyering.net>
35692
35693         Getdelim touchup.
35694         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35695         around the funlockfile call, since funlockfile never sets errno.
35696         Don't set errno upon failed realloc.
35697
35698 2007-08-22  Eric Blake  <ebb9@byu.net>
35699
35700         Getline touchups.
35701         * lib/getdelim.c (getdelim): Revert regression that required *n to
35702         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35703         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35704         getdelim, rather than whether implementation is missing.
35705         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35706         * lib/stdio_.h (getline): Also declare if replacement is
35707         required.
35708         * doc/functions/getdelim.texi: New file.
35709         * doc/functions/getline.texi: Likewise.
35710         * doc/gnulib.texi (Function Substitutes): Add new files.
35711         Reported by Bruno Haible.
35712
35713 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35714
35715         * users.txt: Add Guile.
35716
35717 2007-08-22  Eric Blake  <ebb9@byu.net>
35718
35719         * tests/test-getdelim.c (main): Use remove, not unlink.
35720         * tests/test-getline.c (main): Likewise.
35721
35722         Move getline and getdelim into stdio.h, per POSIX 200x.
35723         * modules/getline (Files): Remove getline.h.
35724         (Depends-on): Add stdio.
35725         (configure.ac): Add module indicator.
35726         * modules/getdelim (Files): Remove getdelim.h.
35727         (Depends-on): Add stdio.
35728         (configure.ac): Add module indicator.
35729         * modules/stdio (Makefile.am): Work with new indicators.
35730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35731         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35732         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35733         * lib/getdelim.h: Delete.
35734         * lib/getline.h: Delete.
35735         * lib/stdio_.h (getdelim, getline): Declare.
35736         * modules/getdelim-tests: New module.
35737         * modules/getline-tests: Likewise.
35738         * tests/test-getdelim.c: New file.
35739         * tests/test-getline.c: Likewise.
35740         * NEWS: Document the change.
35741         * lib/getline.c: Update choice of header.
35742         * lib/csharpcomp.c: Likewise.
35743         * lib/getpass.c: Likewise.
35744         * lib/javacomp.c: Likewise.
35745         * lib/javaversion.c: Likewise.
35746         * lib/yesno.c: Likewise.
35747         * lib/getdelim.c: Likewise.
35748         (getdelim): Set errno on failure, and avoid memory leak.
35749
35750 2007-08-19  Bruno Haible  <bruno@clisp.org>
35751
35752         * modules/closein (Depends-on): Add freadahead.
35753         * lib/closein.c: Include freadahead.h.
35754         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35755         is zero.
35756
35757 2007-08-19  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/freadahead-tests: New file.
35760         * tests/test-freadahead.sh: New file.
35761         * tests/test-freadahead.c: New file.
35762
35763         * modules/freadahead: New file.
35764         * lib/freadahead.h: New file.
35765         * lib/freadahead.c: New file.
35766         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35767         fbufmode, fpurge, freadable, fwritable.
35768
35769 2007-08-19  Eric Blake  <ebb9@byu.net>
35770
35771         Test yesno in combination with closein.
35772         * lib/yesno.c (yesno): Document use of stdin.
35773         * modules/yesno-tests (Files): New module.
35774         * tests/test-yesno.c (main): New file.
35775         * tests/test-yesno.sh: Likewise.
35776
35777 2007-08-19  Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35780         * lib/fseeko.c (rpl_fseeko): Likewise.
35781         * lib/fseterr.c (fseterr): Likewise.
35782
35783 2007-08-19  Bruno Haible  <bruno@clisp.org>
35784
35785         * tests/test-lseek.c (main): Disable a test for BeOS.
35786         * doc/functions/lseek.texi: Document the BeOS bug.
35787
35788 2007-08-19  Bruno Haible  <bruno@clisp.org>
35789             Eric Blake  <ebb9@byu.net>
35790
35791         * lib/lseek.c: Include <sys/stat.h>.
35792         (rpl_lseek): Add workaround code also for Unix platforms.
35793         Needed for BeOS.
35794         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35795         * doc/functions/lseek.texi: Document BeOS definiency.
35796
35797 2007-08-18  Bruno Haible  <bruno@clisp.org>
35798
35799         * modules/fstrcmp-tests: New file.
35800         * tests/test-fstrcmp.c: New file.
35801
35802 2007-08-18  Bruno Haible  <bruno@clisp.org>
35803
35804         * modules/fstrcmp: New file, from GNU gettext with modifications.
35805         * lib/fstrcmp.h: New file, from GNU gettext.
35806         * lib/fstrcmp.c: New file, from GNU gettext.
35807         * MODULES.html.sh (String handling): Add fstrcmp.
35808
35809 2007-08-18  Bruno Haible  <bruno@clisp.org>
35810
35811         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35812         'bool'.
35813         (diag, compareseq): Remove const from the ctxt argument.
35814         (USE_HEURISTIC): Undefine at the end.
35815
35816 2007-08-18  Jim Meyering  <jim@meyering.net>
35817
35818         New file: lib/idcache.h
35819         * NEWS: Mention the addition.
35820         * modules/idcache (Files): Add lib/idcache.h
35821         * lib/idcache.c: Include "idcache.h".
35822         Don't include <sys/types.h>.
35823         Add a FIXME comment.
35824         Move file-scoped "static" declarations to the top.
35825         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35826
35827 2007-08-17  Bruno Haible  <bruno@clisp.org>
35828         and Paul Eggert  <eggert@cs.ucla.edu>
35829
35830         * MODULES.html.sh: Add diffseq.
35831         * modules/diffseq: New file.
35832         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35833         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35834
35835 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35836
35837         Import changes from coreutils for bootstrap script.
35838
35839         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35840
35841         * build-aux/bootstrap (slurp): Work even in environments where
35842         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35843         current code does not slurp files whose names start with ".", and
35844         this looks like it might be a troublesome area.
35845
35846         2007-07-11  Jim Meyering  <jim@meyering.net>
35847
35848         If there's a GPL vN copyright comment, require that N == 3.
35849
35850         2007-07-08  Jim Meyering  <jim@meyering.net>
35851
35852         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35853         * build-aux/bootstrap (mam_template): Move definition out of loop.
35854
35855         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35856
35857         * build-aux/bootstrap (symlink_to_dir): Rename function from
35858         symlink_to_gnulib.  Add a directory parameter.  Update all
35859         callers.
35860         (cp_mark_as_generated): Also check for -- and link to -- files in
35861         gl/.
35862
35863         2007-07-08  Jim Meyering  <jim@meyering.net>
35864
35865         Adapt to deeper hierarchy in gnulib.
35866         * build-aux/bootstrap (symlink_to_dir): If the destination
35867         directory doesn't exist, create it. This is required at least for
35868         "lib/uniwidth/cjk.h".
35869
35870         2007-05-15  Jim Meyering  <jim@meyering.net>
35871
35872         * build-aux/bootstrap: Now that generated Makefile.am files
35873         are no longer under version control, they must be created at
35874         bootstrap time.
35875
35876 2007-08-14  Ben Pfaff  <blp@gnu.org>
35877
35878         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
35879
35880 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35881
35882         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
35883         given the changes below.
35884         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
35885         even on hosts that have padding bits beyond the supported 64.
35886
35887 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35888
35889         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
35890         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
35891         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
35892         depends on it.
35893         (xstrtol_error): Remove.
35894         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
35895         but with a different signature.
35896         (ATTRIBUTE_NORETURN, __attribute__): New macros.
35897         * lib/xstrtol-error.c: Include exitfail.h.
35898         (xstrtol_fatal): New function, with a different signature from the
35899         old xstrtol_error, so that the caller need not worry about passing
35900         in an exit status, or about storage management of the option argument.
35901         (xstrtol_error): Now a static function.  Redo signature to
35902         implement xstrtol_fatal.  Output the correct number of hyphens in
35903         front of the option so that the caller need not worry about
35904         storage management.
35905         (N_): New macro.
35906         (_): Remove; not used now.
35907         * modules/xstrtol: Depend on getopt.
35908         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
35909         of old STRTOL_FATAL_ERROR macro.
35910         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
35911         of test program.
35912         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
35913         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
35914
35915 2007-08-08  Eric Blake  <ebb9@byu.net>
35916
35917         * lib/xstrtol-error.c: Add missing include.
35918
35919         Move xstrtol messages into gnulib domain, when --pobase is used.
35920         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
35921         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
35922         * modules/xstrtol (Files): Distribute new file.
35923         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
35924         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
35925         * tests/test-xstrtol.c: ...into new file.
35926         * tests/test-xstrtoul.c: Also test xstrtoul.
35927         * tests/test-xstrtoimax.c: Also test xstrtoimax.
35928         * tests/test-xstrtoumax.c: Also test xstrtoumax.
35929         * tests/test-xstrtol.sh: Drive the tests.
35930         * tests/test-xstrtoimax.sh: Likewise.
35931         * tests/test-xstrtoumax.sh: Likewise.
35932         * modules/xstrtol-tests: New module.
35933         * modules/xstrtoimax-tests: Likewise.
35934         * modules/xstrtoumax-tests: Likewise.
35935
35936 2007-08-08  Jim Meyering  <jim@meyering.net>
35937
35938         New function: mfile_name_concat.
35939         * lib/filenamecat.c (mfile_name_concat): New function, just like
35940         file_name_concat, but return NULL upon failure rather than exiting
35941         with a diagnostic.
35942         * lib/filenamecat.h: Declare it.
35943
35944 2007-08-07  Bruno Haible  <bruno@clisp.org>
35945
35946         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
35947         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
35948         warning from gcc.
35949         Reported by Eric Blake.
35950
35951 2007-08-07  Simon Josefsson  <simon@josefsson.org>
35952
35953         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
35954         * modules/crypto/arcfour (License): Likewise.
35955         * modules/crypto/des-tests (License): Likewise.
35956         * modules/crypto/gc-arctwo-tests (License): Likewise.
35957         * modules/crypto/gc-des-tests (License): Likewise.
35958         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
35959         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
35960         * modules/crypto/gc-md2-tests (License): Likewise.
35961         * modules/crypto/gc-md4-tests (License): Likewise.
35962         * modules/crypto/gc-md5-tests (License): Likewise.
35963         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
35964         * modules/crypto/gc-rijndael-tests (License): Likewise.
35965         * modules/crypto/gc-sha1-tests (License): Likewise.
35966         * modules/crypto/gc-tests (License): Likewise.
35967         * modules/crypto/hmac-md5 (License): Likewise.
35968         * modules/crypto/hmac-sha1 (License): Likewise.
35969         * modules/crypto/md2-tests (License): Likewise.
35970         * modules/crypto/md4-tests (License): Likewise.
35971         * modules/crypto/md5 (License): Likewise.
35972         * modules/crypto/rijndael (License): Likewise.
35973         * modules/crypto/sha1 (License): Likewise.
35974         * modules/memxor (License): Likewise.
35975
35976 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35977         and Bruno Haible  <bruno@clisp.org>
35978
35979         * NEWS: Describe interface changes to human, xstrtol.
35980         * lib/human.h: Include <xstrtol.h>.
35981         (human_options): Return enum strtol_error, not int.  Remove
35982         bool arg; take int * instead.
35983         * lib/human.c: Don't include "gettext.h".
35984         (_): Remove; no longer used.
35985         Don't include <xstrtol.h>, since human.h does it.
35986         (human_options): Adjust to abovementioned interface changes.
35987         Do not report error to stderr; that's now the caller's
35988         responsibility.
35989         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
35990         interface change.
35991         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
35992         Str, Argument_type_string.  All uses changed.  Put " argument"
35993         in diagnostics to make them clearer.  Change wording of suffix
35994         message for clarity.
35995         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
35996         Argument_type_string.
35997         (STRTOL_FATAL_WARN): Remove; no longer used.
35998         * modules/human (Depends-on): Remove gettext-h.
35999
36000 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36001
36002         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36003
36004 2007-07-31  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36007         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36008         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36009
36010 2007-07-31  Bruno Haible  <bruno@clisp.org>
36011
36012         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36013         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36014
36015 2007-07-30  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36018         * modules/c-ctype (License): Likewise.
36019         * modules/c-strcase (License): Likewise.
36020         * modules/check-version (License): Likewise.
36021         * modules/iconv (License): Likewise.
36022         * modules/iconv_open (License): Likewise.
36023         * modules/read-file (License): Likewise.
36024         * modules/striconv (License): Likewise.
36025         * modules/strverscmp (License): Likewise.
36026         * modules/vasprintf (License): Likewise.
36027         * modules/crypto/des (License): Likewise.
36028         * modules/crypto/gc (License): Likewise.
36029         * modules/crypto/gc-arcfour (License): Likewise.
36030         * modules/crypto/gc-arctwo (License): Likewise.
36031         * modules/crypto/gc-des (License): Likewise.
36032         * modules/crypto/gc-hmac-md5 (License): Likewise.
36033         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36034         * modules/crypto/gc-md2 (License): Likewise.
36035         * modules/crypto/gc-md4 (License): Likewise.
36036         * modules/crypto/gc-md5 (License): Likewise.
36037         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36038         * modules/crypto/gc-random (License): Likewise.
36039         * modules/crypto/gc-rijndael (License): Likewise.
36040         * modules/crypto/gc-sha1 (License): Likewise.
36041         * modules/crypto/md2 (License): Likewise.
36042         * modules/crypto/md4 (License): Likewise.
36043
36044 2007-07-30  Jim Meyering  <jim@meyering.net>
36045
36046         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36047         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36048         it has valid stat data.  This bug would cause du not to count the
36049         sizes of inaccessible directories.
36050         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36051         in <http://bugzilla.redhat.com/250077>.
36052
36053 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36054             Bruno Haible  <bruno@clisp.org>
36055
36056         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36057         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36058         #include_next, gives a diagnostic about it, but reports no error in
36059         the exit code.
36060         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36061
36062 2007-07-24  Ben Pfaff  <blp@gnu.org>
36063
36064         Improve name: "count-one-bits" is better than "popcount".
36065         * MODULES.html.sh: Update name.
36066         * lib/popcount.h: Renamed lib/count-one-bits.h.
36067         (popcount): Renamed count_one_bits.
36068         (popcountl): Renamed count_one_bits_l.
36069         (popcountll): Renamed count_one_bits_ll.
36070         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36071         * modules/popcount: Renamed module/count-one-bits.
36072         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36073         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36074
36075 2007-07-23  Ben Pfaff  <blp@gnu.org>
36076
36077         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36078         better code generation, and add U to large constants to avoid
36079         warnings, in non-GCC case.
36080         Suggested by Bruno Haible.
36081
36082 2007-07-23  Ben Pfaff  <blp@gnu.org>
36083
36084         * lib/popcount.h: Use verify_true instead of if...abort.
36085         * modules/popcount: Depend on verify module.
36086         Suggested by Jim Meyering.
36087
36088 2007-07-23  Bruno Haible  <bruno@clisp.org>
36089
36090         * gnulib-tool (func_import): Create a .cvsignore file also when the
36091         directory is not yet in CVS but the toplevel directory is. When
36092         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36093         Reported by Karl Berry.
36094
36095 2007-07-22  Ben Pfaff  <blp@gnu.org>
36096
36097         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36098         case.
36099         Suggested by Eric Blake.
36100
36101 2007-07-22  Ben Pfaff  <blp@gnu.org>
36102
36103         New module: popcount.
36104         * MODULES.html.sh: Add popcount.
36105         * modules/popcount: New file.
36106         * modules/popcount-tests: New file.
36107         * tests/test-popcount.c: New file.
36108         * lib/popcount.h: New file.
36109         * m4/popcount.m4: New file.
36110
36111 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36112
36113         * build-aux/announce-gen: Update to GPLv3.
36114
36115         * build-aux/config.guess: Update from config.
36116
36117 2007-07-21  Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36120         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36121
36122 2007-07-20  Jim Meyering  <jim@meyering.net>
36123
36124         * check-module: Diagnose a self-dependency.
36125
36126 2007-07-19  Bruno Haible  <bruno@clisp.org>
36127
36128         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36129         empty.
36130         Reported by Eric Blake.
36131
36132 2007-07-18  Bruno Haible  <bruno@clisp.org>
36133
36134         * gnulib-tool: New options --po-base, --po-domain.
36135         (func_usage): Document them.
36136         (pobase, po_domain): New variables.
36137         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36138         DEFAULT_TEXT_DOMAIN.
36139         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36140         (func_import): Consider pobase and po_domain. Create a po/ directory.
36141         (func_create_testdir): Set pobase and po_domain to empty.
36142         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36143         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36144
36145 2007-07-18  Bruno Haible  <bruno@clisp.org>
36146
36147         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36148         EXTRA_DIST augmentation for files in build-aux/.
36149
36150 2007-07-16  Bruno Haible  <bruno@clisp.org>
36151
36152         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36153         * modules/getdelim (License): Likewise.
36154
36155 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36156
36157         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36158         * modules/d-type (License): Likewise.
36159         * modules/extensions (License): Likewise.
36160         * modules/fnmatch (License): Likewise.
36161         * modules/fseeko (License): Likewise.
36162         * modules/getaddrinfo (License): Likewise.
36163         * modules/getline (License): Likewise.
36164         * modules/getlogin_r (License): Likewise.
36165         * modules/getpass (License): Likewise.
36166         * modules/gettimeofday (License): Likewise.
36167         * modules/glob (License): Likewise.
36168         * modules/inet_ntop (License): Likewise.
36169         * modules/malloc (License): Likewise.
36170         * modules/malloca (License): Likewise.
36171         * modules/memmem (License): Likewise.
36172         * modules/mempcpy (License): Likewise.
36173         * modules/memset (License): Likewise.
36174         * modules/minmax (License): Likewise.
36175         * modules/mktime (License): Likewise.
36176         * modules/netinet_in (License): Likewise.
36177         * modules/pathmax (License): Likewise.
36178         * modules/poll (License): Likewise.
36179         * modules/regex (License): Likewise.
36180         * modules/snprintf (License): Likewise.
36181         * modules/stdbool (License): Likewise.
36182         * modules/stdint (License): Likewise.
36183         * modules/stdio (License): Likewise.
36184         * modules/strcase (License): Likewise.
36185         * modules/strcasestr (License): Likewise.
36186         * modules/strdup (License): Likewise.
36187         * modules/string (License): Likewise.
36188         * modules/strndup (License): Likewise.
36189         * modules/strnlen (License): Likewise.
36190         * modules/strpbrk (License): Likewise.
36191         * modules/strptime (License): Likewise.
36192         * modules/strsep (License): Likewise.
36193         * modules/sys_select (License): Likewise.
36194         * modules/sys_socket (License): Likewise.
36195         * modules/sys_stat (License): Likewise.
36196         * modules/sys_time (License): Likewise.
36197         * modules/time (License): Likewise.
36198         * modules/time_r (License): Likewise.
36199         * modules/timegm (License): Likewise.
36200         * modules/unistd (License): Likewise.
36201         * modules/vsnprintf (License): Likewise.
36202         * modules/wctype (License): Likewise.
36203
36204 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36205
36206         * modules/argz (License): LGPLv2+.
36207
36208 2007-07-15  Karl Berry  <karl@gnu.org>
36209
36210         * doc/gnulib.texi: revise node structure per new fdl.texi.
36211
36212 2007-07-14  Bruno Haible  <bruno@clisp.org>
36213
36214         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36215         the output file.
36216         * lib/uniname/uninames.h: Regenerated.
36217
36218 2007-07-14  Karl Berry  <karl@gnu.org>
36219
36220         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36221         omitting sectioning and index commands.
36222
36223 2007-07-13  Bruno Haible  <bruno@clisp.org>
36224
36225         New gnulib-tool option --more-symlinks.
36226         * gnulib-tool (func_usage): Document --more-symlinks.
36227         (do_copyrights): New variable.
36228         Recognize option --more-symlinks.
36229         (func_import): Don't add a copyright notice transform to
36230         sed_transform_lib_file if do_copyrights is empty.
36231
36232 2007-07-13  Bruno Haible  <bruno@clisp.org>
36233
36234         * lib/vasnprintf.c (decimal_point_char): Define also if
36235         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36236         && !NEED_PRINTF_DIRECTIVE_A.
36237         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36238         Gary V. Vaughan <gary@gnu.org>.
36239
36240 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36241
36242         * lib/inttypes_.h: Undo previous change, since it was fixed
36243         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36244
36245 2007-07-13  Bruno Haible  <bruno@clisp.org>
36246
36247         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36248         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36249
36250 2007-07-13  Jim Meyering  <jim@meyering.net>
36251
36252         df: Don't fail for Tru64's "file-on-file mount".
36253         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36254         so we fall through and use statfs instead.  Details here:
36255         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36256         Reported by Albert Chin.
36257
36258 2007-07-13  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36261         * modules/configmake (License): Likewise.
36262         * modules/gettext (License): Likewise.
36263         * modules/gettext-h (License): Likewise.
36264         * modules/include_next (License): Likewise.
36265         * modules/link-warning (License): Likewise.
36266         * modules/localcharset (License): Likewise.
36267         * modules/localename (License): Likewise.
36268         * modules/lock (License): Likewise.
36269         * modules/relocatable-lib-lgpl (License): Likewise.
36270         * modules/size_max (License): Likewise.
36271         * modules/vasnprintf (License): Likewise.
36272         * modules/wchar (License): Likewise.
36273         * modules/xsize (License): Likewise.
36274
36275 2007-07-13  Bruno Haible  <bruno@clisp.org>
36276
36277         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36278         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36279
36280 2007-07-12  Bruno Haible  <bruno@clisp.org>
36281
36282         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36283         in the modules files.
36284
36285 2007-07-11  Karl Berry  <karl@gnu.org>
36286
36287         * MODULES.html.sh (func_module): use
36288          sed -e '\|^'"${includefile}"'$|d'
36289          instead of /.../d, to avoid errors on $includefile's containing /.
36290
36291 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36292
36293         * gnulib-tool (func_import): Avoid duplication of --avoid
36294         statements
36295         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36296         names to `_' in variable names.
36297
36298 2007-07-10  Eric Blake  <ebb9@byu.net>
36299
36300         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36301         * NEWS: Document this change.
36302
36303 2007-07-08  Bruno Haible  <bruno@clisp.org>
36304
36305         Update to Unicode 5.0.
36306         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36307         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36308         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36309         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36310         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36311         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36312         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36313         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36314         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36315         U+10A3F, U+1D242..U+1D244.
36316         (nonspacing_table_ind): Update.
36317         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36318         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36319
36320 2007-07-08  Bruno Haible  <bruno@clisp.org>
36321
36322         Update to Unicode 5.0.
36323         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36324         code transform. Extend the name index field of unicode_name_to_code and
36325         unicode_code_to_name from 16 to 24 bits.
36326         * lib/uniname/uniname.c (unicode_character_name,
36327         unicode_name_character): Add the range 0x12xxx to the code transform.
36328         * lib/uniname/uninames.h: Regenerated.
36329         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36330
36331 2007-07-07  Bruno Haible  <bruno@clisp.org>
36332
36333         * modules/wcwidth-tests: New file.
36334         * tests/test-wcwidth.c: New file.
36335
36336         Work around MacOS X wcwidth() bug.
36337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36338         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36339         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36340         original wcwidth in non-UTF-8 locales.
36341         * modules/wcwidth (Depends-on): Add localcharset, streq,
36342         uniwidth/width.
36343         * doc/functions/wcwidth.texi: Update.
36344
36345 2007-07-07  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36348         (wcwidth): New declaration.
36349         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36350         macros.
36351         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36352         here. Prepare for creating <wchar.h> unconditionally.
36353         * modules/wchar (Depends-on): Add link-warning.
36354         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36355         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36356         * lib/wcwidth.h: Remove file.
36357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36358         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36359         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36360         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36361         (Include): Replace wcwidth.h with <wchar.h>.
36362         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36363         * lib/mbchar.h: Don't include wcwidth.h.
36364         * lib/mbswidth.c: Likewise.
36365         * NEWS: Mention the change.
36366
36367 2007-07-07  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36370         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36371         definition with an external declaration.
36372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36373         defined as a function. Remove AC_C_INLINE requirement.
36374         * modules/wcwidth (Files): Add lib/wcwidth.c.
36375         (Makefile.am): Remove redundant statement.
36376
36377 2007-07-07  Bruno Haible  <bruno@clisp.org>
36378
36379         * MODULES.html.sh (Unicode string functions): Add the new modules.
36380
36381         * tests/uniwidth/test-u32-strwidth.c: New file.
36382         * modules/uniwidth/u32-strwidth-tests: New file.
36383
36384         * lib/uniwidth/u32-strwidth.c: New file.
36385         * modules/uniwidth/u32-strwidth: New file.
36386
36387         * tests/uniwidth/test-u16-strwidth.c: New file.
36388         * modules/uniwidth/u16-strwidth-tests: New file.
36389
36390         * lib/uniwidth/u16-strwidth.c: New file.
36391         * modules/uniwidth/u16-strwidth: New file.
36392
36393         * tests/uniwidth/test-u8-strwidth.c: New file.
36394         * modules/uniwidth/u8-strwidth-tests: New file.
36395
36396         * lib/uniwidth/u8-strwidth.c: New file.
36397         * modules/uniwidth/u8-strwidth: New file.
36398
36399         * tests/uniwidth/test-u32-width.c: New file.
36400         * modules/uniwidth/u32-width-tests: New file.
36401
36402         * lib/uniwidth/u32-width.c: New file.
36403         * modules/uniwidth/u32-width: New file.
36404
36405         * tests/uniwidth/test-u16-width.c: New file.
36406         * modules/uniwidth/u16-width-tests: New file.
36407
36408         * lib/uniwidth/u16-width.c: New file.
36409         * modules/uniwidth/u16-width: New file.
36410
36411         * tests/uniwidth/test-u8-width.c: New file.
36412         * modules/uniwidth/u8-width-tests: New file.
36413
36414         * lib/uniwidth/u8-width.c: New file.
36415         * modules/uniwidth/u8-width: New file.
36416
36417         * tests/uniwidth/test-uc_width.c: New file.
36418         * modules/uniwidth/width-tests: New file.
36419
36420         * lib/uniwidth/width.c: New file, from GNU libiconv.
36421         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36422         * modules/uniwidth/width: New file.
36423
36424         * lib/uniwidth.h: New file, from GNU libiconv.
36425         * modules/uniwidth/base: New file.
36426
36427 2007-07-07  Bruno Haible  <bruno@clisp.org>
36428
36429         * lib/uniname.h: New file, from GNU gettext.
36430         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36431         * lib/uniname/uninames.h: New file, from GNU gettext.
36432         * lib/uniname/uniname.c: New file, from GNU gettext.
36433         * tests/uniname/test-uninames.sh: New file.
36434         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36435         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36436         * modules/uniname/base: New file.
36437         * modules/uniname/uniname: New file.
36438         * modules/uniname/uniname-tests: New file.
36439         * MODULES.html.sh (Unicode string functions): Add the new modules.
36440
36441 2007-07-06  Bruno Haible  <bruno@clisp.org>
36442
36443         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36444
36445 2007-07-06  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36448         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36449         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36450         include <sys/time.h>.
36451         Reported by Eric Blake.
36452
36453 2007-07-06  Eric Blake  <ebb9@byu.net>
36454
36455         Fix testing canonicalize on cygwin.
36456         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36457         Revert patch from 2007-06-19.
36458         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36459         canonicalize module is also in use.
36460         * tests/test-canonicalize.c: New file.
36461         * tests/test-canonicalize.sh: Likewise.
36462         * modules/canonicalize-tests: Likewise.
36463
36464 2007-07-06  Jim Meyering  <jim@meyering.net>
36465
36466         * lib/getugroups.c (getugroups): Detect getgrent failure.
36467         Adjust comment to reflect reality: this function may return -1.
36468
36469 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36470
36471         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36472         the new TP address.
36473         (usage): Fix typo
36474         (gnulib_mk): New variable.
36475
36476 2007-07-05  Jim Meyering  <jim@meyering.net>
36477
36478         Don't let endgrent clobber errno, no matter how improbable.
36479         * lib/getugroups.c (getugroups): Save and restore errno around
36480         endgrent call.
36481
36482         Close the group DB even when failing with 2^31 or more members.
36483         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36484
36485 2007-07-04  Jim Meyering  <jim@meyering.net>
36486
36487         * lib/getugroups.h: New file.
36488         * lib/getugroups.c: Include "getugroups.h".
36489         Remove uses of "register" keyword.
36490         Move local variable, "cp", down into scope where used.
36491         Give "username" parameter the "const" attribute.
36492         * modules/getugroups (Files): Add lib/getugroups.h
36493
36494 2007-07-04  Karl Berry  <karl@gnu.org>
36495
36496         * MODULES.html.sh (func_all_modules): Complete rename of
36497         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36498
36499 2007-07-02  Bruno Haible  <bruno@clisp.org>
36500
36501         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36502         mode, when inttypes.h comes from gnulib.
36503         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36504
36505 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36506
36507         * NEWS: Mention lgpl module name change.
36508
36509         * modules/lgpl-2.1: Renamed from lgpl.
36510
36511         * NEWS: Mention gpl module name change.
36512
36513         * modules/gpl-3.0: New file, based on gpl-2.0.
36514
36515         * modules/gpl-2.0: Renamed from gpl.
36516
36517         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36518         doc/gpl-2.0.texi.
36519
36520 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36521
36522         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36523         #define __STDC_LIMIT_MACROS temporarily while including
36524         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36525         Problem reported by Joel E. Denny in
36526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36527
36528 2007-07-01  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/unistdio.h: New file.
36531         * lib/unistdio/u-asnprintf.h: New file.
36532         * lib/unistdio/u-asprintf.h: New file.
36533         * lib/unistdio/u-printf-args.c: New file.
36534         * lib/unistdio/u-printf-args.h: New file.
36535         * lib/unistdio/u-printf-parse.h: New file.
36536         * lib/unistdio/u-snprintf.h: New file.
36537         * lib/unistdio/u-sprintf.h: New file.
36538         * lib/unistdio/u-vasprintf.h: New file.
36539         * lib/unistdio/u-vsnprintf.h: New file.
36540         * lib/unistdio/u-vsprintf.h: New file.
36541         * lib/unistdio/ulc-asnprintf.c: New file.
36542         * lib/unistdio/ulc-asprintf.c: New file.
36543         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36544         * lib/unistdio/ulc-printf-parse.c: New file.
36545         * lib/unistdio/ulc-snprintf.c: New file.
36546         * lib/unistdio/ulc-sprintf.c: New file.
36547         * lib/unistdio/ulc-vasnprintf.c: New file.
36548         * lib/unistdio/ulc-vasprintf.c: New file.
36549         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36550         * lib/unistdio/ulc-vsnprintf.c: New file.
36551         * lib/unistdio/ulc-vsprintf.c: New file.
36552         * lib/unistdio/u8-asnprintf.c: New file.
36553         * lib/unistdio/u8-asprintf.c: New file.
36554         * lib/unistdio/u8-printf-parse.c: New file.
36555         * lib/unistdio/u8-snprintf.c: New file.
36556         * lib/unistdio/u8-sprintf.c: New file.
36557         * lib/unistdio/u8-vasnprintf.c: New file.
36558         * lib/unistdio/u8-vasprintf.c: New file.
36559         * lib/unistdio/u8-vsnprintf.c: New file.
36560         * lib/unistdio/u8-vsprintf.c: New file.
36561         * lib/unistdio/u8-u8-asnprintf.c: New file.
36562         * lib/unistdio/u8-u8-asprintf.c: New file.
36563         * lib/unistdio/u8-u8-snprintf.c: New file.
36564         * lib/unistdio/u8-u8-sprintf.c: New file.
36565         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36566         * lib/unistdio/u8-u8-vasprintf.c: New file.
36567         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36568         * lib/unistdio/u8-u8-vsprintf.c: New file.
36569         * lib/unistdio/u16-asnprintf.c: New file.
36570         * lib/unistdio/u16-asprintf.c: New file.
36571         * lib/unistdio/u16-printf-parse.c: New file.
36572         * lib/unistdio/u16-snprintf.c: New file.
36573         * lib/unistdio/u16-sprintf.c: New file.
36574         * lib/unistdio/u16-vasnprintf.c: New file.
36575         * lib/unistdio/u16-vasprintf.c: New file.
36576         * lib/unistdio/u16-vsnprintf.c: New file.
36577         * lib/unistdio/u16-vsprintf.c: New file.
36578         * lib/unistdio/u16-u16-asnprintf.c: New file.
36579         * lib/unistdio/u16-u16-asprintf.c: New file.
36580         * lib/unistdio/u16-u16-snprintf.c: New file.
36581         * lib/unistdio/u16-u16-sprintf.c: New file.
36582         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36583         * lib/unistdio/u16-u16-vasprintf.c: New file.
36584         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36585         * lib/unistdio/u16-u16-vsprintf.c: New file.
36586         * lib/unistdio/u32-asnprintf.c: New file.
36587         * lib/unistdio/u32-asprintf.c: New file.
36588         * lib/unistdio/u32-printf-parse.c: New file.
36589         * lib/unistdio/u32-snprintf.c: New file.
36590         * lib/unistdio/u32-sprintf.c: New file.
36591         * lib/unistdio/u32-vasnprintf.c: New file.
36592         * lib/unistdio/u32-vasprintf.c: New file.
36593         * lib/unistdio/u32-vsnprintf.c: New file.
36594         * lib/unistdio/u32-vsprintf.c: New file.
36595         * lib/unistdio/u32-u32-asnprintf.c: New file.
36596         * lib/unistdio/u32-u32-asprintf.c: New file.
36597         * lib/unistdio/u32-u32-snprintf.c: New file.
36598         * lib/unistdio/u32-u32-sprintf.c: New file.
36599         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36600         * lib/unistdio/u32-u32-vasprintf.c: New file.
36601         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36602         * lib/unistdio/u32-u32-vsprintf.c: New file.
36603         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36604         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36605         * tests/unistdio/test-ulc-printf1.h: New file.
36606         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36607         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36608         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36609         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36610         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36611         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36612         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36613         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36614         * tests/unistdio/test-u8-asnprintf1.c: New file.
36615         * tests/unistdio/test-u8-asnprintf1.h: New file.
36616         * tests/unistdio/test-u8-printf1.h: New file.
36617         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36618         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36619         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36620         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36621         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36622         * tests/unistdio/test-u8-vasprintf1.c: New file.
36623         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36624         * tests/unistdio/test-u8-vsprintf1.c: New file.
36625         * tests/unistdio/test-u16-asnprintf1.c: New file.
36626         * tests/unistdio/test-u16-asnprintf1.h: New file.
36627         * tests/unistdio/test-u16-printf1.h: New file.
36628         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36629         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36630         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36631         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36632         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36633         * tests/unistdio/test-u16-vasprintf1.c: New file.
36634         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36635         * tests/unistdio/test-u16-vsprintf1.c: New file.
36636         * tests/unistdio/test-u32-asnprintf1.c: New file.
36637         * tests/unistdio/test-u32-asnprintf1.h: New file.
36638         * tests/unistdio/test-u32-printf1.h: New file.
36639         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36640         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36641         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36642         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36643         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36644         * tests/unistdio/test-u32-vasprintf1.c: New file.
36645         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36646         * tests/unistdio/test-u32-vsprintf1.c: New file.
36647         * modules/unistdio/base: New file.
36648         * modules/unistdio/u-printf-args: New file.
36649         * modules/unistdio/ulc-asnprintf: New file.
36650         * modules/unistdio/ulc-asprintf: New file.
36651         * modules/unistdio/ulc-fprintf: New file.
36652         * modules/unistdio/ulc-printf-parse: New file.
36653         * modules/unistdio/ulc-snprintf: New file.
36654         * modules/unistdio/ulc-sprintf: New file.
36655         * modules/unistdio/ulc-vasnprintf: New file.
36656         * modules/unistdio/ulc-vasprintf: New file.
36657         * modules/unistdio/ulc-vfprintf: New file.
36658         * modules/unistdio/ulc-vsnprintf: New file.
36659         * modules/unistdio/ulc-vsprintf: New file.
36660         * modules/unistdio/u8-asnprintf: New file.
36661         * modules/unistdio/u8-asprintf: New file.
36662         * modules/unistdio/u8-printf-parse: New file.
36663         * modules/unistdio/u8-snprintf: New file.
36664         * modules/unistdio/u8-sprintf: New file.
36665         * modules/unistdio/u8-vasnprintf: New file.
36666         * modules/unistdio/u8-vasprintf: New file.
36667         * modules/unistdio/u8-vsnprintf: New file.
36668         * modules/unistdio/u8-vsprintf: New file.
36669         * modules/unistdio/u8-u8-asnprintf: New file.
36670         * modules/unistdio/u8-u8-asprintf: New file.
36671         * modules/unistdio/u8-u8-snprintf: New file.
36672         * modules/unistdio/u8-u8-sprintf: New file.
36673         * modules/unistdio/u8-u8-vasnprintf: New file.
36674         * modules/unistdio/u8-u8-vasprintf: New file.
36675         * modules/unistdio/u8-u8-vsnprintf: New file.
36676         * modules/unistdio/u8-u8-vsprintf: New file.
36677         * modules/unistdio/u16-asnprintf: New file.
36678         * modules/unistdio/u16-asprintf: New file.
36679         * modules/unistdio/u16-printf-parse: New file.
36680         * modules/unistdio/u16-snprintf: New file.
36681         * modules/unistdio/u16-sprintf: New file.
36682         * modules/unistdio/u16-vasnprintf: New file.
36683         * modules/unistdio/u16-vasprintf: New file.
36684         * modules/unistdio/u16-vsnprintf: New file.
36685         * modules/unistdio/u16-vsprintf: New file.
36686         * modules/unistdio/u16-u16-asnprintf: New file.
36687         * modules/unistdio/u16-u16-asprintf: New file.
36688         * modules/unistdio/u16-u16-snprintf: New file.
36689         * modules/unistdio/u16-u16-sprintf: New file.
36690         * modules/unistdio/u16-u16-vasnprintf: New file.
36691         * modules/unistdio/u16-u16-vasprintf: New file.
36692         * modules/unistdio/u16-u16-vsnprintf: New file.
36693         * modules/unistdio/u16-u16-vsprintf: New file.
36694         * modules/unistdio/u32-asnprintf: New file.
36695         * modules/unistdio/u32-asprintf: New file.
36696         * modules/unistdio/u32-printf-parse: New file.
36697         * modules/unistdio/u32-snprintf: New file.
36698         * modules/unistdio/u32-sprintf: New file.
36699         * modules/unistdio/u32-vasnprintf: New file.
36700         * modules/unistdio/u32-vasprintf: New file.
36701         * modules/unistdio/u32-vsnprintf: New file.
36702         * modules/unistdio/u32-vsprintf: New file.
36703         * modules/unistdio/u32-u32-asnprintf: New file.
36704         * modules/unistdio/u32-u32-asprintf: New file.
36705         * modules/unistdio/u32-u32-snprintf: New file.
36706         * modules/unistdio/u32-u32-sprintf: New file.
36707         * modules/unistdio/u32-u32-vasnprintf: New file.
36708         * modules/unistdio/u32-u32-vasprintf: New file.
36709         * modules/unistdio/u32-u32-vsnprintf: New file.
36710         * modules/unistdio/u32-u32-vsprintf: New file.
36711         * modules/unistdio/ulc-asnprintf-tests: New file.
36712         * modules/unistdio/ulc-vasnprintf-tests: New file.
36713         * modules/unistdio/ulc-vasprintf-tests: New file.
36714         * modules/unistdio/ulc-vsnprintf-tests: New file.
36715         * modules/unistdio/ulc-vsprintf-tests: New file.
36716         * modules/unistdio/u8-asnprintf-tests: New file.
36717         * modules/unistdio/u8-vasnprintf-tests: New file.
36718         * modules/unistdio/u8-vasprintf-tests: New file.
36719         * modules/unistdio/u8-vsnprintf-tests: New file.
36720         * modules/unistdio/u8-vsprintf-tests: New file.
36721         * modules/unistdio/u16-asnprintf-tests: New file.
36722         * modules/unistdio/u16-vasnprintf-tests: New file.
36723         * modules/unistdio/u16-vasprintf-tests: New file.
36724         * modules/unistdio/u16-vsnprintf-tests: New file.
36725         * modules/unistdio/u16-vsprintf-tests: New file.
36726         * modules/unistdio/u32-asnprintf-tests: New file.
36727         * modules/unistdio/u32-vasnprintf-tests: New file.
36728         * modules/unistdio/u32-vasprintf-tests: New file.
36729         * modules/unistdio/u32-vsnprintf-tests: New file.
36730         * modules/unistdio/u32-vsprintf-tests: New file.
36731         * MODULES.html.sh (Unicode string functions): Add the new modules.
36732
36733 2007-07-01  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/sprintf.c (sprintf): Limit the available length estimation,
36736         to avoid address wraparound.
36737         * lib/vsprintf.c (vsprintf): Likewise.
36738         * modules/sprintf-posix (Dependencies): Add stdint.
36739         * modules/vsprintf-posix (Dependencies): Likewise.
36740
36741 2007-07-01  Bruno Haible  <bruno@clisp.org>
36742
36743         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36744         Windows PATH as well. Conservative double-quoting. Comments.
36745
36746 2007-07-01  Bruno Haible  <bruno@clisp.org>
36747             Eric Blake  <ebb9@byu.net>
36748             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36749
36750         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36751         empty components in $PATH, denoting '.'.
36752
36753 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36754
36755         * gnulib-tool: Fix indentation.
36756         (func_create_megatestdir): Likewise.
36757         Report by Bruno Haible.
36758
36759 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36760
36761         Sync from Automake.
36762         * build-aux/gnupload: Fix shell portability issues with for loops.
36763         Report by Karl Berry.
36764
36765 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36766
36767         * build-aux/maint.mk (POURL): Use translationproject.org.
36768
36769 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36770             Bruno Haible  <bruno@clisp.org>
36771
36772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36773         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36774         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36775         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36776         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36777
36778 2007-06-27  Bruno Haible  <bruno@clisp.org>
36779
36780         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36781         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36782
36783 2007-06-26  Karl Berry  <karl@gnu.org>
36784
36785         * MODULES.html.sh: remove xreadlink-with-size.
36786
36787 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36788
36789         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36790         method that I hope also handles the double-include problem noted
36791         by Bruno Haible in
36792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36793
36794 2007-06-23  Bruno Haible  <bruno@clisp.org>
36795
36796         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36797         Don't let the 'mostlyclean' target fail if the last subdirectory could
36798         not be removed.
36799         Reported by Karl Berry.
36800
36801 2007-06-23  Bruno Haible  <bruno@clisp.org>
36802
36803         * gnulib-tool (echo): Add a speedier workaround for ksh.
36804         * tests/test-echo.sh: Likewise.
36805
36806 2007-06-23  Bruno Haible  <bruno@clisp.org>
36807
36808         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36809         * tests/test-echo.sh: Likewise.
36810
36811 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36812
36813         * gnulib-tool (IFS): Initialize early, so we don't set it to
36814         empty later.
36815         (self_abspathname): Rewrite algorithm to set it, reindent.
36816         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36817         (func_create_megatestdir): Merge some sed scripts.
36818
36819 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36820
36821         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36822         exposed by Sun Studio 11 cc on Solaris 8.
36823
36824 2007-06-22  Bruno Haible  <bruno@clisp.org>
36825
36826         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36827         backslashes.
36828         * tests/test-echo.sh: New file.
36829
36830 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36831
36832         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36833         simplify `sed_replace_build_aux' scripts, they are portable but
36834         echoing them with `echo' is not.
36835         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36836
36837 2007-06-21  Karl Berry  <karl@gnu.org>
36838
36839         * config/srclist.txt: guess we can't handle the licenses via
36840         srclist at the moment.
36841
36842 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36843
36844         * MODULES.html.sh: Add include_next.
36845         * modules/include_next: New file.
36846
36847 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36848
36849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36850         INCLUDE_NEXT.
36851         (gl_CHECK_NEXT_HEADERS): New macro.
36852         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36853         the obsolescent gl_ABSOLUTE_HEADER.
36854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36855         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36856         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36857         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36858         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36859         * m4/math_h.m4 (gl_MATH_H): Likewise.
36860         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36861         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36862         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36863         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36864         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36865         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36866         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36868         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36870         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36871         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36872         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36873         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36874         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36875         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36876         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36877         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
36878         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
36879         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
36880         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
36881         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
36882         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
36883         * lib/float_.h: Likewise.
36884         * lib/inttypes_.h: Likewise.
36885         * lib/math_.h: Likewise.
36886         * lib/search_.h: Likewise.
36887         * lib/signal_.h: Likewise.
36888         * lib/stdint_.h: Likewise.
36889         * lib/stdio_.h: Likewise.
36890         * lib/stdlib_.h: Likewise.
36891         * lib/string_.h: Likewise.
36892         * lib/sys_stat_.h: Likewise.
36893         * lib/sys_time_.h: Likewise.
36894         * lib/time_.h: Likewise.
36895         * lib/unistd_.h: Likewise.
36896         * lib/wchar_.h: Likewise.
36897         * lib/wctype_.h: Likewise.
36898         * lib/dirent_.h: Likewise.
36899         * lib/iconv_.h: Likewise.
36900         * lib/locale_.h: Likewise.
36901         * lib/netinet_in_.h: Likewise.
36902         * lib/sys_select_.h: Likewise.
36903         * lib/sys_socket_.h: Likewise.
36904         * lib/sysexits_.h: Likewise.
36905         * modules/fcntl (Depends-on): Depend on include_next, not
36906         absolute_header.
36907         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
36908         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
36909         * modules/fchdir: Likewise.
36910         * modules/float: Likewise.
36911         * modules/iconv_open: Likewise.
36912         * modules/inttypes: Likewise.
36913         * modules/locale: Likewise.
36914         * modules/math: Likewise.
36915         * modules/netinet_in: Likewise.
36916         * modules/search: Likewise.
36917         * modules/signal: Likewise.
36918         * modules/stdint: Likewise.
36919         * modules/stdio: Likewise.
36920         * modules/stdlib: Likewise.
36921         * modules/string: Likewise.
36922         * modules/sys_select: Likewise.
36923         * modules/sys_socket: Likewise.
36924         * modules/sys_stat: Likewise.
36925         * modules/sys_time: Likewise.
36926         * modules/sysexits: Likewise.
36927         * modules/time: Likewise.
36928         * modules/unistd: Likewise.
36929         * modules/wchar: Likewise.
36930         * modules/wctype: Likewise.
36931         * modules/sys_stat: Change maintainer to "all".
36932         * modules/unistd: Likewise.
36933
36934 2007-06-20  Karl Berry  <karl@gnu.org>
36935
36936         * config/srclist.txt: track www changes in license files.
36937
36938 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
36939
36940         * build-aux/bootstrap: Remove stray dot.
36941         Make sure build_aux settings are honored when linking
36942         gnulib_extra_files.
36943
36944 2007-06-19  Eric Blake  <ebb9@byu.net>
36945
36946         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36947         Allow compilation on cygwin.
36948
36949 2007-06-19  Jim Meyering  <jim@meyering.net>
36950
36951         xreadlink-with-size: Remove module.  No longer used.
36952         Ex-callers now use xreadlink or mreadlink-with-size.
36953         * modules/xreadlink-with-size: Remove module.
36954         * lib/xreadlink-with-size.c: Remove file.
36955         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
36956         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
36957         just before the function definition *is* accurate.
36958
36959         Eliminate one way canonicalize_filename_mode could exit.
36960         * lib/canonicalize.c (canonicalize_filename_mode):
36961         Use mreadlink_with_size, not xreadlink_with_size.
36962
36963 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
36964
36965         Detect porting problems to FreeBSD/arm, which has time_t wider than
36966         long int.  Original problem reported for GNU diff by Xin Li in
36967         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
36968         * modules/getdate (Depends-on): Add intprops, verify.
36969         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
36970         is an integer type no wider than long int.
36971
36972 2007-06-18  Jim Meyering  <jim@meyering.net>
36973
36974         New module: mreadlink-with-size.
36975         * MODULES.html.sh: Add mreadlink-with-size.
36976         * modules/mreadlink-with-size: New module
36977         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
36978         not xreadlink-with-size.
36979         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
36980
36981 2007-06-16  Bruno Haible  <bruno@clisp.org>
36982
36983         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
36984         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
36985         Reported by Gary V. Vaughan <gary@gnu.org>.
36986
36987 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36988
36989         Revamp lchown so that it lives in unistd.h where it belongs.
36990         * lib/lchown.h: Remove.
36991         * lib/dirchownmod.c: Don't include lib/lchown.h.
36992         * lib/fchownat.c: Likewise.
36993         * lib/openat.c: Likewise.
36994         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
36995         does not follow symlinks.
36996         (EOPNOTSUPP): Define if not defined.
36997         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
36998         is defined to 0.
36999         (lchown): New decl.
37000         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37001         Do not check for lchown decl.
37002         Set REPLACE_LCHOWN.
37003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37004         REPLACE_LCHOWN.
37005         * modules/chown: Make it clear it follows symlinks.
37006         * modules/lchown: Make it clear it doesn't follow symlinks.
37007         (Files): Remove lib/lchown.h
37008         (Depends-on): Add unistd.
37009         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37010         (Include): Include <unistd.h>, not "lchown.h".
37011         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37012         REPLACE_LCHOWN.
37013
37014 2007-06-15  Jim Meyering  <jim@meyering.net>
37015
37016         Change license (GPL to LGPL) of fsusage and dependents.
37017         * modules/fsusage (License): Change to LGPL.
37018         * modules/full-read (License): Likewise.
37019         * modules/full-write (License): Likewise.
37020         * modules/safe-read (License): Likewise.
37021         * modules/safe-write (License): Likewise.
37022
37023 2007-06-14  Ben Pfaff  <blp@gnu.org>
37024
37025         Missing part of allocsa -> malloca transition.
37026         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37027         gl_MALLOCA.
37028
37029 2007-06-12  Bruno Haible  <bruno@clisp.org>
37030
37031         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37032         to ia64, x86_64, i386.
37033         Reported by Eric Blake.
37034
37035 2007-06-12  Bruno Haible  <bruno@clisp.org>
37036
37037         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37038         cross-compiling to x86_64.
37039
37040 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37041
37042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37043         glitch reported by Ralf Wildenhues in
37044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37045
37046         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37047         Vin Shelton.
37048
37049 2007-06-11  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37052         replacement string.
37053         Reported by Eric Blake.
37054
37055 2007-06-10  Bruno Haible  <bruno@clisp.org>
37056
37057         Prepare vasnprintf code for use with Unicode strings.
37058         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37059         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37060         TYPE_U32_STRING.
37061         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37062         a_u32_string variants.
37063         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37064         * lib/printf-args.c: Don't include config.h and the specification
37065         header if PRINTF_FETCHARGS is already defined.
37066         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37067         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37068         TYPE_U16_STRING, TYPE_U32_STRING.
37069         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37070         u16_directive, u16_directives, u32_directive, u32_directives): New
37071         types.
37072         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37073         New declarations.
37074         * lib/printf-parse.c: Don't include config.h and the specification
37075         header if PRINTF_PARSE is already defined. Eliminate the set of
37076         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37077         them now. Include c-ctype.h.
37078         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37079         directive and CHAR_T_ONLY_ASCII.
37080         * lib/vasnprintf.c: Don't include config.h and the specification header
37081         if VASNPRINTF is already defined.
37082         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37083         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37084         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37085         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37086         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37087         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37088         code accordingly.
37089         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37090         pad_ourselves also in this case, with the 'c' and 's' directives, and
37091         with a different notion of "width".
37092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37093
37094 2007-06-10  Bruno Haible  <bruno@clisp.org>
37095
37096         * modules/unistr/u32-mbsnlen: New file.
37097         * lib/unistr/u32-mbsnlen.c: New file.
37098
37099         * modules/unistr/u16-mbsnlen: New file.
37100         * lib/unistr/u16-mbsnlen.c: New file.
37101
37102         * modules/unistr/u8-mbsnlen: New file.
37103         * lib/unistr/u8-mbsnlen.c: New file.
37104
37105         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37106         declarations.
37107
37108 2007-06-10  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/string_.h (mbsnlen): New declaration.
37111         * lib/mbsnlen.c: New file.
37112         * m4/mbsnlen.m4: New file.
37113         * modules/mbsnlen: New file.
37114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37115         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37116         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37117
37118 2007-06-10  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37121
37122 2007-06-10  Bruno Haible  <bruno@clisp.org>
37123
37124         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37125         * lib/mbuiter.h: Likewise.
37126
37127 2007-06-10  Bruno Haible  <bruno@clisp.org>
37128
37129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37130         declaration.
37131
37132 2007-06-10  Karl Berry  <karl@gnu.org>
37133
37134         * config/srclist.txt: remove gettext entries, Bruno prefers
37135         to update individually.
37136
37137 2007-06-10  Bruno Haible  <bruno@clisp.org>
37138
37139         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37140         'maxlen'. Ensure only length + width bytes are allocated, not
37141         length + 1 + width.
37142
37143 2007-06-09  Bruno Haible  <bruno@clisp.org>
37144
37145         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37146         (CHAR_T): Remove macro.
37147         (VASNPRINTF): Update.
37148
37149 2007-06-09  Bruno Haible  <bruno@clisp.org>
37150
37151         * MODULES.html.sh (Unicode string functions): Add the new modules.
37152
37153         * modules/uniconv/u32-conv-to-enc: New file.
37154         * lib/uniconv/u32-conv-to-enc.c: New file.
37155         * modules/uniconv/u32-conv-to-enc-tests: New file.
37156         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37157
37158         * modules/uniconv/u16-conv-to-enc: New file.
37159         * lib/uniconv/u16-conv-to-enc.c: New file.
37160         * lib/uniconv/u-conv-to-enc.h: New file.
37161         * modules/uniconv/u16-conv-to-enc-tests: New file.
37162         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37163
37164         * modules/uniconv/u8-conv-to-enc: New file.
37165         * lib/uniconv/u8-conv-to-enc.c: New file.
37166         * modules/uniconv/u8-conv-to-enc-tests: New file.
37167         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37168
37169         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37170         u32_conv_to_encoding): New declarations.
37171
37172 2007-06-09  Bruno Haible  <bruno@clisp.org>
37173
37174         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37175
37176 2007-06-09  Bruno Haible  <bruno@clisp.org>
37177
37178         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37179         * modules/malloca: Renamed from modules/allocsa, updated.
37180         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37181         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37182         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37183         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37184         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37185         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37186         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37187         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37188         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37189         * modules/c-strcasestr (Depends-on): Update.
37190         * lib/c-strcasestr.c: Update.
37191         * modules/c-strstr (Depends-on): Update.
37192         * lib/c-strstr.c: Update.
37193         * modules/canonicalize-lgpl (Depends-on): Update.
37194         * lib/canonicalize-lgpl.c: Update.
37195         * modules/clean-temp (Depends-on): Update.
37196         * lib/clean-temp.c: Update.
37197         * modules/csharpcomp (Depends-on): Update.
37198         * lib/csharpcomp.c: Update.
37199         * modules/csharpexec (Depends-on): Update.
37200         * lib/csharpexec.c: Update.
37201         * modules/javacomp (Depends-on): Update.
37202         * lib/javacomp.c: Update.
37203         * modules/javaexec (Depends-on): Update.
37204         * lib/javaexec.c: Update.
37205         * modules/mbscasestr (Depends-on): Update.
37206         * lib/mbscasestr.c: Update.
37207         * modules/mbsstr (Depends-on): Update.
37208         * lib/mbsstr.c: Update.
37209         * modules/setenv (Depends-on): Update.
37210         * lib/setenv.c: Update.
37211         * modules/strcasestr (Depends-on): Update.
37212         * lib/strcasestr.c: Update.
37213         * modules/striconveha (Depends-on): Update.
37214         * lib/striconveha.c: Update.
37215         * modules/relocatable-prog-wrapper (Files): Update.
37216         * lib/relocwrapper.c: Update.
37217         * build-aux/install-reloc: Update.
37218         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37219
37220 2007-06-08  Bruno Haible  <bruno@clisp.org>
37221
37222         Port to uClibc.
37223         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37224         * lib/fpurge.c (fpurge): Likewise.
37225         * lib/freading.c (freading): Likewise.
37226         * lib/fseeko.c (rpl_fseeko): Likewise.
37227         * lib/fseterr.c (fseterr): Likewise.
37228         * lib/fwriting.c (fwriting): Likewise.
37229         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37230
37231 2007-06-08  Bruno Haible  <bruno@clisp.org>
37232
37233         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37234         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37235         * modules/gettext (Files): Add m4/intlmacosx.m4.
37236
37237 2007-06-07  Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/localename-tests: New file.
37240         * tests/test-localename.c: New file.
37241
37242         New module 'localename'.
37243         * lib/localename.h: New file.
37244         * lib/localename.c: New file, from GNU gettext.
37245         * m4/localename.m4: New file.
37246         * modules/localename: New file.
37247
37248 2007-06-07  Bruno Haible  <bruno@clisp.org>
37249
37250         Work around the lack of <wchar.h> on some builds of uClibc.
37251         * doc/headers/wchar.texi: Update.
37252         * lib/wchar_.h: Include <wchar.h> only if it exists.
37253         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37254         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37255         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37256         doesn't exist.
37257         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37258         * modules/mbfile (Depends-on): Add wchar.
37259         * modules/mbiter (Depends-on): Likewise.
37260         * modules/mbuiter (Depends-on): Likewise.
37261         Reported by Simon Josefsson.
37262
37263 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37264
37265         Work around problem reported by Steven M. Schweda in
37266         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37267         Tru64 5.1B with the Compaq compiler environment installed declares
37268         an 'isblank' function but does not define it in the C library.
37269         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37270         * lib/regex_internal.h (isblank): Likewise.
37271         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37272         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37273
37274 2007-06-05  Bruno Haible  <bruno@clisp.org>
37275
37276         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37277         ia64.
37278         * modules/printf-safe: New file.
37279         * modules/fprintf-posix (Depends-on): Add printf-safe.
37280         * modules/printf-posix (Depends-on): Likewise.
37281         * modules/snprintf-posix (Depends-on): Likewise.
37282         * modules/sprintf-posix (Depends-on): Likewise.
37283         * modules/vasnprintf-posix (Depends-on): Likewise.
37284         * modules/vasprintf-posix (Depends-on): Likewise.
37285         * modules/vfprintf-posix (Depends-on): Likewise.
37286         * modules/vprintf-posix (Depends-on): Likewise.
37287         * modules/vsnprintf-posix (Depends-on): Likewise.
37288         * modules/vsprintf-posix (Depends-on): Likewise.
37289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37290         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37291         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37292         "no" on i386, x86_64, ia64.
37293         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37294         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37295         on i386, x86_64, ia64.
37296         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37297         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37298         on i386, x86_64, ia64.
37299         * tests/test-vasnprintf-posix.c: Include float.h.
37300         (LDBL80_WORDS): New macro.
37301         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37302         on i386, x86_64, ia64.
37303         * tests/test-vasprintf-posix.c: Include float.h.
37304         (LDBL80_WORDS): New macro.
37305         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37306         on i386, x86_64, ia64.
37307         * tests/test-snprintf-posix.c: Include float.h.
37308         * tests/test-sprintf-posix.c: Likewise.
37309         * tests/test-vsnprintf-posix.c: Likewise.
37310         * tests/test-vsprintf-posix.c: Likewise.
37311
37312 2007-06-05  Bruno Haible  <bruno@clisp.org>
37313
37314         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37315         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37316         non-IEEE numbers on i386, x86_64, ia64.
37317         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37318         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37319         * tests/test-isnanl.h: Include float.h.
37320         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37321
37322 2007-06-05  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37325         also the %a / %A. Handle the %a / %A code before this extra handling.
37326
37327 2007-06-05  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37330         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37331
37332 2007-06-05  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37335         typo in variable name.
37336
37337 2007-06-05  Eric Blake  <ebb9@byu.net>
37338
37339         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37340         Reported by Simon Josefsson.
37341
37342 2007-06-04  Bruno Haible  <bruno@clisp.org>
37343
37344         Avoid test failures on some PowerPC platforms.
37345         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37346         Define differently for PowerPC.
37347         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37348         Reported by Gary V. Vaughan <gary@gnu.org>.
37349
37350 2007-06-02  Bruno Haible  <bruno@clisp.org>
37351
37352         Fix test-stdint failure on FreeBSD/ia64.
37353         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37354         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37355         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37356         * doc/headers/stdint.texi: Update.
37357
37358 2007-06-01  Bruno Haible  <bruno@clisp.org>
37359
37360         * tests/test-binary-io.c (main): Pass a third argument to open().
37361         Reported by Gary V. Vaughan <gary@gnu.org>.
37362
37363 2007-06-01  Bruno Haible  <bruno@clisp.org>
37364
37365         * doc/functions/frexpl.texi: Update for mingw.
37366
37367 2007-06-01  Bruno Haible  <bruno@clisp.org>
37368
37369         * tests/test-lseek.c (main): Disable test of errno for invalid third
37370         argument.
37371         * doc/functions/lseek.texi: Update.
37372         Reported by Gary V. Vaughan <gary@gnu.org>.
37373
37374 2007-05-28  Bruno Haible  <bruno@clisp.org>
37375
37376         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37377
37378 2007-05-31  Eric Blake  <ebb9@byu.net>
37379
37380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37381         cross compiling.
37382
37383 2007-05-30  Eric Blake  <ebb9@byu.net>
37384         and Bruno Haible  <bruno@clisp.org>
37385
37386         Work around mingw test failures exposed by m4-1.4.9b.
37387         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37388         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37389         moment.
37390
37391 2007-05-30  Bruno Haible  <bruno@clisp.org>
37392
37393         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37394         assuming that they are closed. Needed on HP-UX 11.
37395
37396 2007-05-29  Bruno Haible  <bruno@clisp.org>
37397
37398         Fix a problem with #include_next.
37399         * lib/dirent_.h: Split the double-inclusion guard.
37400         * lib/fcntl_.h: Likewise.
37401         * lib/float_.h: Likewise.
37402         * lib/iconv_.h: Likewise.
37403         * lib/inttypes_.h: Likewise.
37404         * lib/locale_.h: Likewise.
37405         * lib/math_.h: Likewise.
37406         * lib/netinet_in_.h: Likewise.
37407         * lib/search_.h: Likewise.
37408         * lib/signal_.h: Likewise.
37409         * lib/stdint_.h: Likewise.
37410         * lib/stdio_.h: Likewise.
37411         * lib/stdlib_.h: Likewise.
37412         * lib/string_.h: Likewise.
37413         * lib/sys_select_.h: Likewise.
37414         * lib/sys_socket_.h: Likewise.
37415         * lib/sys_stat_.h: Likewise.
37416         * lib/sys_time_.h: Likewise.
37417         * lib/sysexits_.h: Likewise.
37418         * lib/time_.h: Likewise.
37419         * lib/unistd_.h: Likewise.
37420         * lib/wchar_.h: Likewise.
37421         * lib/wctype_.h: Likewise.
37422
37423 2007-05-29  Bruno Haible  <bruno@clisp.org>
37424
37425         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37426         for the moment.
37427
37428 2007-05-29  Bruno Haible  <bruno@clisp.org>
37429
37430         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37431         invocation.
37432         Reported by Eric Blake.
37433
37434 2007-05-29  Bruno Haible  <bruno@clisp.org>
37435
37436         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37437         compiling case.
37438
37439 2007-05-29  Eric Blake  <ebb9@byu.net>
37440             Bruno Haible  <bruno@clisp.org>
37441
37442         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37443         cross compiles.
37444
37445 2007-05-28  Eric Blake  <ebb9@byu.net>
37446
37447         * modules/closein-tests (test_closein_LDADD): Support test on
37448         cygwin with libtool.
37449
37450 2007-05-28  Bruno Haible  <bruno@clisp.org>
37451
37452         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37453         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37454         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37455         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37456         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37457         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37458         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37459         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37460         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37461
37462 2007-05-28  Eric Blake  <ebb9@byu.net>
37463
37464         Unconditionally include <config.h> in unit tests.
37465         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37466         * tests/test-allocsa.c, tests/test-arcfour.c,
37467         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37468         tests/test-array_list.c, tests/test-array_oset.c,
37469         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37470         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37471         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37472         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37473         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37474         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37475         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37476         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37477         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37478         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37479         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37480         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37481         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37482         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37483         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37484         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37485         test-md5.c, test-memmem.c, test-printf-posix.c,
37486         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37487         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37488         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37489         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37490         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37491         test-vasnprintf-posix2.c, test-vasnprintf.c,
37492         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37493         test-vfprintf-posix.c, test-vprintf-posix.c,
37494         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37495         test-xvasprintf.c: Likewise.
37496
37497 2007-05-28  Bruno Haible  <bruno@clisp.org>
37498
37499         * gnulib-tool (func_import): Remember the --with-tests command-line
37500         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37501         Reported by Eric Blake.
37502
37503 2007-05-28  Bruno Haible  <bruno@clisp.org>
37504
37505         * modules/ftell-tests: New file.
37506         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37507         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37508
37509         * lib/ftell.c: New file.
37510         * modules/ftell: New file.
37511         * m4/ftell.m4: New file.
37512         * doc/functions/ftell.texi: Update.
37513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37514         REPLACE_FTELL.
37515         * lib/stdio_.h (rpl_ftell): New declaration.
37516         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37517         REPLACE_FTELL.
37518
37519 2007-05-28  Eric Blake  <ebb9@byu.net>
37520
37521         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37522
37523 2007-05-28  Bruno Haible  <bruno@clisp.org>
37524
37525         * modules/fseek-tests: New file.
37526         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37527         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37528
37529         * lib/fseek.c: New file.
37530         * modules/fseek: New file.
37531         * m4/fseek.m4: New file.
37532         * doc/functions/fseek.texi: Update.
37533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37534         REPLACE_FSEEK.
37535         * lib/stdio_.h (rpl_fseek): New declaration.
37536         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37537         REPLACE_FSEEK.
37538
37539 2007-05-28  Bruno Haible  <bruno@clisp.org>
37540
37541         * lib/stdio_.h (fflush): More comments.
37542
37543 2007-05-28  Bruno Haible  <bruno@clisp.org>
37544
37545         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37546         runtime test.
37547
37548 2007-05-28  Eric Blake  <ebb9@byu.net>
37549
37550         Improve lseek module.
37551         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37552         * lib/unistd_.h (lseek): Scale back link warning message.
37553         * tests/test-lseek.c: Beef up test.
37554         * tests/test-lseek.sh: Exercise more facets of lseek.
37555         Reported by Bruno Haible.
37556
37557 2007-05-28  Bruno Haible  <bruno@clisp.org>
37558
37559         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37560         to define.
37561
37562 2007-05-27  Bruno Haible  <bruno@clisp.org>
37563
37564         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37565
37566 2007-05-27  Bruno Haible  <bruno@clisp.org>
37567
37568         * modules/openmp: New file.
37569         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37570         Noah Misch.
37571
37572 2007-05-26  Bruno Haible  <bruno@clisp.org>
37573
37574         * modules/chdir-long (Depends-on): Add fchdir.
37575         * modules/chdir-safer (Depends-on): Likewise.
37576         * modules/fts (Depends-on): Likewise.
37577         * modules/fts-lgpl (Depends-on): Likewise.
37578         * modules/openat (Depends-on): Likewise.
37579         * modules/savewd (Depends-on): Likewise.
37580
37581 2007-05-24  Eric Blake  <ebb9@byu.net>
37582
37583         Fix lseek on mingw.
37584         * modules/lseek: New module.
37585         * m4/lseek.m4: New file.
37586         * lib/lseek.c: New file.
37587         * modules/lseek-tests: New file.
37588         * tests/test-lseek.c: New file.
37589         * tests/test-lseek.sh: New file.
37590         * MODULES.html.sh: Document lseek module.
37591         * modules/fflush (Depends-on): Add lseek, fseeko.
37592         * modules/fseeko (Depends-on): Likewise.
37593         * modules/ftello (Depends-on): Likewise.
37594         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37595         broken.
37596         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37597         broken.
37598         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37599         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37600         * lib/ftello.c (rpl_ftello): Likewise.
37601         * tests/test-fseeko.c (main): Test this.
37602         * tests/test-fseeko.sh: Likewise.
37603         * tests/test-ftello.c (main): Likewise.
37604         * tests/test-ftello.sh: Likewise.
37605         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37606         implies replacing fseek.
37607         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37608         HAVE_FTELLO.
37609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37610         * modules/unistd (Makefile.am): Likewise.
37611         * lib/unistd_.h (lseek): Declare a replacement.
37612         * doc/functions/lseek.texi (lseek): Document this fix.
37613         * doc/functions/fseek.texi (fseek): Likewise.
37614         * doc/functions/ftell.texi (ftell): Likewise.
37615
37616 2007-05-24  Bruno Haible  <bruno@clisp.org>
37617
37618         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37619         in the printed representation of a NaN.
37620         * tests/test-vasprintf-posix.c (test_function): Likewise.
37621         * tests/test-snprintf-posix.h (test_function): Likewise.
37622         * tests/test-sprintf-posix.h (test_function): Likewise.
37623         Reported by Eric Blake.
37624
37625 2007-05-23  Eric Blake  <ebb9@byu.net>
37626
37627         Fix fseeko/ftello on cygwin 1.5.24.
37628         * doc/functions/fseeko.texi (fseeko): Document the fix.
37629         * doc/functions/ftello.texi (ftello): Document the fix.
37630         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37631         * doc/functions/stdout.text (stdout): New file.
37632         * doc/functions/stderr.text (stderr): New file.
37633         * doc/gnulib.texi (Function Substitutes): Use new files.
37634         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37635         prior to 1.7.0.
37636         * tests/test-ftello.c (main): Likewise for ftello.
37637         * tests/test-fseeko.sh: New file.
37638         * tests/test-ftello.sh: New file.
37639         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37640         with seekable stdin.
37641         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37642         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37643         (gl_REPLACE_FSEEKO): New macro.
37644         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37645         * modules/fseeko (Files): Distribute fseeko.c.
37646         * modules/ftello (Files): Distribute ftello.c.
37647         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37648         mode.
37649         * lib/ftello.c (rpl_ftello): New file.
37650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37651         fseeko, ftello.
37652         (gl_STDIN_LARGE_OFFSET): New macro.
37653         * modules/stdio (Makefile.am): Perform the replacement.
37654         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37655
37656 2007-05-23  Bruno Haible  <bruno@clisp.org>
37657
37658         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37659         GNULIB_POSIXCHECK is defined.
37660
37661 2007-05-21  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37664         Check also the output for NaN arguments. When cross-compiling, guess
37665         no on IRIX.
37666         * lib/vasnprintf.c: Update comments.
37667         * tests/test-vasnprintf-posix.c (strisnan): New function.
37668         (test_function): Use it.
37669         * tests/test-vasprintf-posix.c (strisnan): New function.
37670         (test_function): Use it.
37671         * tests/test-snprintf-posix.h (strisnan): New function.
37672         (test_function): Use it.
37673         * tests/test-sprintf-posix.h (strisnan): New function.
37674         (test_function): Use it.
37675         Reported by Eric Blake.
37676
37677 2007-05-20  Bruno Haible  <bruno@clisp.org>
37678
37679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37680         numbers that fails on BeOS.
37681         * doc/functions/frexpl.texi: Update.
37682
37683 2007-05-20  Jim Meyering  <jim@meyering.net>
37684
37685         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37686         forced upon us by glibc-2.6.
37687
37688 2007-05-20  Bruno Haible  <bruno@clisp.org>
37689
37690         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37691         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37692         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37693         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37694         NEED_PRINTF_INFINITE.
37695         (is_infinitel): New function.
37696         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37698         gl_PREREQ_VASNPRINTF_INFINITE.
37699         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37700         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37701         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37702         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37703         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37704         gl_PREREQ_VASNPRINTF_INFINITE.
37705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37712         * doc/functions/fprintf.texi: Update.
37713         * doc/functions/printf.texi: Update.
37714         * doc/functions/snprintf.texi: Update.
37715         * doc/functions/sprintf.texi: Update.
37716         * doc/functions/vfprintf.texi: Update.
37717         * doc/functions/vprintf.texi: Update.
37718         * doc/functions/vsnprintf.texi: Update.
37719         * doc/functions/vsprintf.texi: Update.
37720
37721 2007-05-20  Bruno Haible  <bruno@clisp.org>
37722
37723         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37724         was not found in libc.
37725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37726
37727 2007-05-20  Bruno Haible  <bruno@clisp.org>
37728
37729         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37730         printed as "-nan" instead of "nan".
37731         * tests/test-vasprintf-posix.c (test_function): Likewise.
37732         * tests/test-snprintf-posix.h (test_function): Likewise.
37733         * tests/test-sprintf-posix.h (test_function): Likewise.
37734         Needed for HP-UX 11.
37735
37736 2007-05-20  Jim Meyering  <jim@meyering.net>
37737
37738         Fix buggy test for the fchownat-deref bug.
37739         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37740         symlink required for the run-test.  Without it, this test would
37741         always declare that fchownat doesn't work, and client code would
37742         unnecessarily use the replacement function with fixed libc.
37743         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37744         Reported by Greg Schafer.
37745
37746 2007-05-19  Bruno Haible  <bruno@clisp.org>
37747
37748         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37749         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37750         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37751         Needed for IRIX 6.5 and Solaris 2.5.1.
37752
37753 2007-05-19  Bruno Haible  <bruno@clisp.org>
37754
37755         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37756         (test_function): Skip tests involving -0.0 on platforms where
37757         -0.0 = 0.0.
37758         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37759         (test_function): Skip tests involving -0.0 on platforms where
37760         -0.0 = 0.0.
37761         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37762         (test_function): Skip tests involving -0.0 on platforms where
37763         -0.0 = 0.0.
37764         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37765         (test_function): Skip tests involving -0.0 on platforms where
37766         -0.0 = 0.0.
37767         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37768         tests.
37769         * tests/test-printf-posix.h (test_function): Likewise.
37770         * tests/test-printf-posix.output: Remove all -0.0 related results.
37771         Needed for IRIX 6.5.
37772
37773 2007-05-19  Bruno Haible  <bruno@clisp.org>
37774
37775         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37776         printed as "nan0x7fffffff" instead of "nan".
37777         * tests/test-vasprintf-posix.c (test_function): Likewise.
37778         * tests/test-snprintf-posix.h (test_function): Likewise.
37779         * tests/test-sprintf-posix.h (test_function): Likewise.
37780         * tests/test-fprintf-posix.h (NaN): Remove macro.
37781         (test_function): Remove all NaN related tests.
37782         * tests/test-printf-posix.h (NaN): Remove macro.
37783         (test_function): Remove all NaN related tests.
37784         * tests/test-printf-posix.output: Remove all NaN related results.
37785         Needed for IRIX 6.5.
37786
37787 2007-05-19  Bruno Haible  <bruno@clisp.org>
37788
37789         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37791
37792 2007-05-19  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/float_.h: New file.
37795         * m4/float_h.m4: New file.
37796         * modules/float: New file.
37797         * modules/isnanl (Dependencies): Add float.
37798         * modules/isnanl-nolibm (Dependencies): Likewise.
37799         * modules/mathl (Dependencies): Likewise.
37800         * modules/printf-frexpl (Dependencies): Likewise.
37801         * modules/signbit (Dependencies): Likewise.
37802         * modules/vasnprintf (Dependencies): Likewise.
37803         * doc/headers/float.texi: Update.
37804
37805 2007-05-19  Jim Meyering  <jim@meyering.net>
37806
37807         * lib/utimens.c (gl_futimens): Rename from futimens,
37808         now that glibc-2.6 declares futimens.
37809         * lib/utimens.h: Likewise.
37810
37811 2007-05-19  Bruno Haible  <bruno@clisp.org>
37812
37813         Avoid test failures on mingw.
37814         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37815         * tests/test-printf-posix.sh: Likewise.
37816         * tests/test-vfprintf-posix.sh: Likewise.
37817         * tests/test-vprintf-posix.sh: Likewise.
37818
37819 2007-05-19  Bruno Haible  <bruno@clisp.org>
37820
37821         Fix *printf result for NaN, Inf, -0.0 on mingw.
37822         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37823         * lib/vasnprintf.c: Include math.h and isnan.h.
37824         (is_infinite_or_zero): New function.
37825         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37826         values in the %f, %F, %e, %E, %g, %G directives.
37827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37829         gl_PRINTF_INFINITE and test its result. Invoke
37830         gl_PREREQ_VASNPRINTF_INFINITE.
37831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37838         * doc/functions/fprintf.texi: Update.
37839         * doc/functions/printf.texi: Update.
37840         * doc/functions/snprintf.texi: Update.
37841         * doc/functions/sprintf.texi: Update.
37842         * doc/functions/vfprintf.texi: Update.
37843         * doc/functions/vprintf.texi: Update.
37844         * doc/functions/vsnprintf.texi: Update.
37845         * doc/functions/vsprintf.texi: Update.
37846
37847 2007-05-19  Bruno Haible  <bruno@clisp.org>
37848
37849         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37850         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37851         Instead of multiplying with 10^k, set extra_zeroes to k.
37852         (scale10_round_long_double): Remove function.
37853
37854 2007-05-18  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37857         introduced on 2007-05-06.
37858
37859 2007-05-18  Bruno Haible  <bruno@clisp.org>
37860
37861         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37862         %g directives.
37863         * tests/test-vasprintf-posix.c (test_function): Likewise.
37864         * tests/test-snprintf-posix.h (test_function): Likewise.
37865         * tests/test-sprintf-posix.h (test_function): Likewise.
37866
37867 2007-05-18  Bruno Haible  <bruno@clisp.org>
37868
37869         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37870         (strmatch): New function.
37871         (test_function): Test the %f directive on numbers of various exponents.
37872         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37873         (strmatch): New function.
37874         (test_function): Test the %f directive on numbers of various exponents.
37875         * tests/test-snprintf-posix.h (strmatch): New function.
37876         (test_function): Test the %f directive on numbers of various exponents.
37877         * tests/test-sprintf-posix.h (strmatch): New function.
37878         (test_function): Test the %f directive on numbers of various exponents.
37879         * tests/test-snprintf-posix.c (SIZEOF): New macro.
37880         * tests/test-sprintf-posix.c (SIZEOF): New macro.
37881         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
37882         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
37883
37884 2007-05-18  Bruno Haible  <bruno@clisp.org>
37885
37886         Add support for 'long double' number output.
37887         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
37888         * lib/vasnprintf.c: Include math.h and float+.h.
37889         (mp_limb_t): New type.
37890         (GMP_LIMB_BITS): New macro.
37891         (mp_twolimb_t): New type.
37892         (GMP_TWOLIMB_BITS): New macro.
37893         (mpn_t): New type.
37894         (multiply, divide, convert_to_decimal, decode_long_double,
37895         scale10_round_long_double, scale10_round_decimal_long_double,
37896         floorlog10l): New functions.
37897         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
37898         for the %f, %F, %e, %E, %g, %G directives.
37899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
37900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37901         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
37902         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
37903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37910         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
37911         * modules/snprintf-posix (Depends-on): Likewise.
37912         * modules/sprintf-posix (Depends-on): Likewise.
37913         * modules/vasnprintf-posix (Depends-on): Likewise.
37914         * modules/vasprintf-posix (Depends-on): Likewise.
37915         * modules/vfprintf-posix (Depends-on): Likewise.
37916         * modules/vsnprintf-posix (Depends-on): Likewise.
37917         * modules/vsprintf-posix (Depends-on): Likewise.
37918         * modules/vasnprintf (Files): Add lib/float+.h.
37919         * doc/functions/fprintf.texi: Update.
37920         * doc/functions/printf.texi: Update.
37921         * doc/functions/snprintf.texi: Update.
37922         * doc/functions/sprintf.texi: Update.
37923         * doc/functions/vfprintf.texi: Update.
37924         * doc/functions/vprintf.texi: Update.
37925         * doc/functions/vsnprintf.texi: Update.
37926         * doc/functions/vsprintf.texi: Update.
37927
37928 2007-05-18  Bruno Haible  <bruno@clisp.org>
37929
37930         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
37931
37932 2007-05-18  Bruno Haible  <bruno@clisp.org>
37933
37934         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
37935         for printing 64-bit integers. Needed for mingw.
37936
37937 2007-05-18  Bruno Haible  <bruno@clisp.org>
37938
37939         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37940         gl_FUNC_FREXPL_WORKS.
37941         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
37942
37943 2007-05-18  Bruno Haible  <bruno@clisp.org>
37944
37945         * modules/frexpl-nolibm-tests: New file.
37946
37947         * modules/frexpl-nolibm: New file.
37948         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
37949
37950 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37951
37952         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
37953         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37954         GCC 4.2, which otherwise issues a lot of warnings.
37955         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
37956         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
37957         Likewise.
37958         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
37959         * modules/iconv_open (iconv.h): Likewise.
37960         * modules/locale (locale.h): Likewise.
37961         * modules/netinet_in (netinet/in.h): Likewise.
37962         * modules/sys_select (sys_select.h): Likewise.
37963         * modules/sys_socket (sys/socket.h): Likewise.
37964         * modules/sys_stat (sys/stat.h): Likewise.
37965         * modules/sysexits (sysexits.h): Likewise.
37966         * modules/unistd (unistd.h): Likewise.
37967
37968 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37969
37970         * modules/closein-tests (Makefile.am): Distribute
37971         `test-closein.sh'.
37972
37973 2007-05-17  Bruno Haible  <bruno@clisp.org>
37974
37975         * tests/test-printf-posix.output: Renamed from
37976         tests/test-fprintf-posix.out.
37977         * modules/fprintf-posix-tests: Update.
37978         * modules/printf-posix-tests: Update.
37979         * modules/vfprintf-posix-tests: Update.
37980         * modules/vprintf-posix-tests: Update.
37981         * tests/test-fprintf-posix.sh: Update.
37982         * tests/test-printf-posix.sh: Update.
37983         * tests/test-vfprintf-posix.sh: Update.
37984         * tests/test-vprintf-posix.sh: Update.
37985         Reported by Ralf Wildenhues.
37986
37987 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37988
37989         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
37990         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37991         GCC 4.2, which otherwise issues a lot of warnings.
37992         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
37993         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
37994         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
37995         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
37996         it should no longer be needed.
37997         * lib/string_.h: Likewise.
37998         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
37999         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38000         * modules/inttypes (inttypes.h): Likewise.
38001         * modules/math (math.h): Likewise.
38002         * modules/search (search.h): Likewise.
38003         * modules/signal (signal.h): Likewise.
38004         * modules/stdint (stdint.h): Likewise.
38005         * modules/stdio (stdio.h): Likewise.
38006         * modules/stdlib (stdlib.h): Likewise.
38007         * modules/string (string.h): Likewise.
38008         * modules/sys_time (sys/time.h): Likewise.
38009         * modules/time (time.h): Likewise.
38010         * modules/wchar (wchar.h): Likewise.
38011         * modules/wctype (wtype.h): Likewise.
38012
38013 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38014
38015         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38016
38017 2007-05-13  Bruno Haible  <bruno@clisp.org>
38018
38019         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38020         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38021         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38022         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38023         (gl_PREREQ_STRTOK_R): Don't require it here.
38024
38025 2007-05-13  Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38028         when used in C++ mode.
38029
38030 2007-05-12  Bruno Haible  <bruno@clisp.org>
38031
38032         * lib/linebuffer.h: Tweak doc.
38033         * lib/linebuffer.c: Likewise.
38034
38035 2007-05-12  James Youngman  <jay@gnu.org>
38036
38037         * lib/linebuffer.c (readlinebuffer_delim): New function,
38038         like readlinebuffer, but use a caller-specified delimiter.
38039         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38040         as the delimiter.
38041         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38042
38043 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38044
38045         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38046         * modules/openat (Files): Remove openat-die.c.
38047         (Depends-on): Add openat-die.
38048         * modules/openat-die: New module.
38049
38050 2007-05-06  Bruno Haible  <bruno@clisp.org>
38051
38052         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38053         Update with info about Cygwin.
38054         * doc/functions/fprintf.texi: Update.
38055         * doc/functions/printf.texi: Update.
38056         * doc/functions/snprintf.texi: Update.
38057         * doc/functions/sprintf.texi: Update.
38058         * doc/functions/vfprintf.texi: Update.
38059         * doc/functions/vprintf.texi: Update.
38060         * doc/functions/vsnprintf.texi: Update.
38061         * doc/functions/vsprintf.texi: Update.
38062         Reported by Eric Blake.
38063
38064 2007-05-06  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38067         padding ourselves for the floating-point directives.
38068         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38071         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38072         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38073         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38074         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38075         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38076         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38080         * tests/test-snprintf-posix.h (test_function): Also check the width
38081         and some flags in the %f directive.
38082         * tests/test-sprintf-posix.h (test_function): Likewise.
38083         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38084         * tests/test-vasprintf-posix.c (test_function): Likewise.
38085         * doc/functions/fprintf.texi: Update.
38086         * doc/functions/printf.texi: Update.
38087         * doc/functions/snprintf.texi: Update.
38088         * doc/functions/sprintf.texi: Update.
38089         * doc/functions/vfprintf.texi: Update.
38090         * doc/functions/vprintf.texi: Update.
38091         * doc/functions/vsnprintf.texi: Update.
38092         * doc/functions/vsprintf.texi: Update.
38093
38094 2007-05-06  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38097         pass the ' flag character to sprintf or snprintf.
38098         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38101         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38102         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38107         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38108         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38110         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38111         flag.
38112         * tests/test-sprintf-posix.h (test_function): Likewise.
38113         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38114         * tests/test-vasprintf-posix.c (test_function): Likewise.
38115         * doc/functions/fprintf.texi: Update.
38116         * doc/functions/printf.texi: Update.
38117         * doc/functions/snprintf.texi: Update.
38118         * doc/functions/sprintf.texi: Update.
38119         * doc/functions/vfprintf.texi: Update.
38120         * doc/functions/vprintf.texi: Update.
38121         * doc/functions/vsnprintf.texi: Update.
38122         * doc/functions/vsprintf.texi: Update.
38123
38124 2007-05-01  Bruno Haible  <bruno@clisp.org>
38125
38126         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38127
38128 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38129
38130         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38131         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38132
38133 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38134
38135         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38136         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38138
38139 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38140
38141         * lib/argp-help.c (struct hol_entry): New member `ord'.
38142         (HOL_ENTRY_PTRCMP): Use ord for comparison
38143         (hol_sort): Initialize ord.
38144
38145 2007-05-01  Bruno Haible  <bruno@clisp.org>
38146
38147         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38148         Reported by Eric Blake.
38149         * doc/gnulib.texi (Function Substitutes): Update.
38150
38151 2007-05-01  Bruno Haible  <bruno@clisp.org>
38152
38153         * doc/functions.texi: Remove file, now redundant through
38154         doc/functions/*.texi.
38155
38156 2007-05-01  Bruno Haible  <bruno@clisp.org>
38157
38158         * modules/argp (Depends-on): Add sleep.
38159
38160 2007-05-01  Bruno Haible  <bruno@clisp.org>
38161
38162         * modules/sleep-tests: New file.
38163         * tests/test-sleep.c: New file.
38164
38165         * modules/sleep: New file.
38166         * lib/sleep.c: New file.
38167         * m4/sleep.m4: New file.
38168         * lib/unistd_.h (sleep): New declaration.
38169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38170         HAVE_SLEEP.
38171         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38172         * doc/functions/sleep.texi: Document the sleep module.
38173
38174 2007-05-01  Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/sigprocmask.h: Remove file.
38177         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38178         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38179         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38180         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38181         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38182         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38183         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38184         HAVE_SIGSET_T as a shell variable.
38185         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38186         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38187         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38188         (Depends-on): Add signal. Remove verify.
38189         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38190         (Include): Mention <signal.h> instead of sigprocmask.h.
38191         * NEWS: Mention the change.
38192         * lib/fatal-signal.c: Don't include sigprocmask.h.
38193
38194 2007-05-01  Bruno Haible  <bruno@clisp.org>
38195
38196         * modules/signal: New file.
38197         * lib/signal_.h: New file.
38198         * m4/signal_h.m4: New file.
38199
38200 2007-05-01  Bruno Haible  <bruno@clisp.org>
38201
38202         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38203         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38204         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38205         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38206
38207 2007-05-01  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38210         configure time.
38211         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38212         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38213         * modules/sys_stat (Makefile.am): Substitute their values into
38214         sys/stat.h.
38215
38216 2007-05-01  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38219         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38220         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38221
38222 2007-05-01  Bruno Haible  <bruno@clisp.org>
38223
38224         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38225         'assert' module here.
38226
38227 2007-05-01  Bruno Haible  <bruno@clisp.org>
38228
38229         * doc/functions/*.texi: New files.
38230         * doc/functions/google-ranking.txt: New file.
38231         * doc/gnulib.texi (Function Substitutes): New chapter.
38232         (ctime, inet_ntoa): Remove sections.
38233         * doc/ctime.texi: Remove file.
38234         * doc/inet_ntoa.texi: Remove file.
38235         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38236         dependencies.
38237         (%.info): New rule, specifying a --reference-limit.
38238
38239 2007-05-01  Bruno Haible  <bruno@clisp.org>
38240
38241         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38242
38243 2007-05-01  Bruno Haible  <bruno@clisp.org>
38244
38245         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38246         the portability of 'mkdir' to mingw systems.
38247
38248 2007-05-01  Bruno Haible  <bruno@clisp.org>
38249
38250         * doc/headers/google-ranking.txt: New file.
38251
38252 2007-04-30  Eric Blake  <ebb9@byu.net>
38253
38254         Prefer fseeko to fseek.
38255         * modules/getpass (Depends-on): Add fseeko.
38256         * lib/getpass.c (getpass): Use fseeko, not fseek.
38257
38258 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38259
38260         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38261         assumes the sorting is stable, while most qsort implementations
38262         are not.  Use argument addresses to ensure they never compare as
38263         equal.
38264
38265         * tests/test-argp-2.sh (usage-indent test): Fix output
38266         (func_compare): Restore diff options
38267         * tests/test-argp.c: Restore #include "progname.h"
38268
38269 2007-04-29  Bruno Haible  <bruno@clisp.org>
38270
38271         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38272         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38273         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38274         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38275         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38276         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38277         (TESTS, check_PROGRAMS): Add test-snprintf.
38278         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38279         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38280         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38281         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38282         assertions that fail on HP-UX, OSF/1, or IRIX.
38283         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38284
38285 2007-04-29  Bruno Haible  <bruno@clisp.org>
38286
38287         * MODULES.html.sh (posix_functions): Remove 'contents'.
38288
38289 2007-04-29  Karl Berry  <karl@gnu.org>
38290
38291         * config/srclist.txt (gendocs_template_min): new entry.
38292
38293 2007-04-29  Bruno Haible  <bruno@clisp.org>
38294
38295         Work around fpurge bug on BSD systems.
38296         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38297         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38298         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38299         fpurge to rpl_fpurge if the system already has this function.
38300         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38301         the case where the system already has this function. Correct invariants
38302         on BSD systems.
38303         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38304         BSD systems.
38305
38306 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38307
38308         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38309         proposed by Sven Verdoolaege.
38310
38311         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38312         options.
38313         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38314         (usage and help tests): Update
38315
38316 2007-04-29  Bruno Haible  <bruno@clisp.org>
38317
38318         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38319         Print more information in case of failure. Disable a test on BeOS.
38320
38321 2007-04-29  Bruno Haible  <bruno@clisp.org>
38322
38323         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38324         This helps debugging on systems on which no gdb is available.
38325
38326 2007-04-29  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/freading.h: Improve comments.
38329         * lib/fwriting.h: Likewise.
38330         * tests/test-freading.c (main): Don't check freading immediately after
38331         repositioning. Needed for glibc.
38332
38333 2007-04-29  Bruno Haible  <bruno@clisp.org>
38334
38335         * lib/freading.c (freading): Trivial simplification.
38336
38337 2007-04-28  Bruno Haible  <bruno@clisp.org>
38338
38339         * tests/test-fwriting.c (main): Also test the interaction between
38340         fflush and fwriting.
38341         * modules/fwriting-tests (Depends-on): Add fflush.
38342
38343         * tests/test-freading.c (main): Also test the interaction between
38344         fflush and freading.
38345         * modules/freading-tests (Depends-on): Add fflush.
38346
38347 2007-04-28  Bruno Haible  <bruno@clisp.org>
38348
38349         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38350         fseeko and ftello.
38351         Suggested by Eric Blake.
38352
38353 2007-04-28  Jim Meyering  <jim@meyering.net>
38354
38355         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38356         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38357         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38358
38359 2007-04-27  Eric Blake  <ebb9@byu.net>
38360
38361         * doc/headers/assert.texi (assert.h): Document assert module use.
38362
38363 2007-04-27  Bruno Haible  <bruno@clisp.org>
38364
38365         * doc/headers/*.texi: New files.
38366         * doc/gnulib.texi (Header File Substitutes): New chapter.
38367         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38368         dependencies.
38369         (standards.info ,standards.html, standards.dvi): Update dependencies.
38370         (mostlyclean, clean): New targets.
38371
38372 2007-04-27  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38375         * modules/sysexits (Files, Makefile.am): Update.
38376
38377         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38378         * modules/sys_socket (Files, Makefile.am): Update.
38379
38380         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38381         * modules/sys_stat (Files, Makefile.am): Update.
38382
38383 2007-04-27  Eric Blake  <ebb9@byu.net>
38384
38385         * lib/freading.h: Improve comments.
38386         * lib/fwriting.h: Likewise.
38387         * lib/fflush.c: Likewise.
38388
38389         Fix closein for mingw.
38390         * modules/closein-tests: Add tests for closein.
38391         * tests/test-closein.c: New file.
38392         * tests/test-closein.sh: Likewise.
38393         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38394         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38395
38396 2007-04-27  Bruno Haible  <bruno@clisp.org>
38397
38398         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38399         version is < 6.
38400         * lib/math_.h [__DECC]: Likewise.
38401         * lib/stdio_.h [__DECC]: Likewise.
38402         * lib/stdlib_.h [__DECC]: Likewise.
38403         * lib/string_.h [__DECC]: Likewise.
38404         * lib/time_.h [__DECC]: Likewise.
38405         * lib/wchar_.h [__DECC]: Likewise.
38406         * lib/wctype_.h [__DECC]: Likewise.
38407
38408 2007-04-27  Bruno Haible  <bruno@clisp.org>
38409
38410         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38411
38412 2007-04-27  Bruno Haible  <bruno@clisp.org>
38413
38414         * lib/fflush.c: Add comments.
38415         * modules/fpurge-tests (Depends-on): Add fflush.
38416         * modules/freadable-tests (Depends-on): Likewise.
38417         * modules/fwritable-tests (Depends-on): Likewise.
38418
38419 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38420
38421         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38422         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38423         Report by Bruno Haible <bruno@clisp.org>.
38424
38425 2007-04-26  Eric Blake  <ebb9@byu.net>
38426
38427         Fix fflush on mingw.
38428         * modules/fflush (Depends-on): Add freading.
38429         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38430         but unread data.
38431
38432 2007-04-26  Eric Blake  <ebb9@byu.net>
38433         and Bruno Haible  <bruno@clisp.org>
38434
38435         Implement freading and fwriting.
38436         * lib/freading.c: New file.
38437         * lib/freading.h: Likewise.
38438         * m4/freading.m4: Likewise.
38439         * modules/freading: Likewise.
38440         * modules/freading-tests: Likewise.
38441         * tests/test-freading.c: Likewise.
38442         * lib/fwriting.c: New file.
38443         * lib/fwriting.h: Likewise.
38444         * m4/fwriting.m4: Likewise.
38445         * modules/fwriting: Likewise.
38446         * modules/fwriting-tests: Likewise.
38447         * tests/test-fwriting.c: Likewise.
38448         * MODULES.html.sh (File stream based Input/Output): Mention them.
38449
38450 2007-04-26  Bruno Haible  <bruno@clisp.org>
38451
38452         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38453         'long' when we assume it.
38454         Suggested by Eric Blake.
38455
38456 2007-04-26  Bruno Haible  <bruno@clisp.org>
38457
38458         Ensure fseeko, ftello are declared on glibc systems.
38459         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38460         * modules/fseeko (configure.ac-early): Likewise.
38461         * modules/ftello (configure.ac-early): Likewise.
38462         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38463         AC_FUNC_FSEEKO for this.
38464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38465         (gl_CHECK_FSEEKO): Remove macro.
38466
38467 2007-04-26  Bruno Haible  <bruno@clisp.org>
38468
38469         * tests/test-fflush.c (main): Also check the ftell result after
38470         fflush and fseek/fseeko.
38471         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38472         file descriptor position cache in the stream.
38473         * lib/fseeko.c (rpl_fseeko): Likewise.
38474
38475 2007-04-26  Bruno Haible  <bruno@clisp.org>
38476
38477         * modules/fflush-tests (Depends-on): Add fseeko.
38478
38479 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38480             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38481
38482         * lib/argz_.h: ensure error_t definition is obtained in same
38483         mechanism system argz.h would have.
38484         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38485         argz facilities are known bad.  Err on the side of caution if
38486         cross-compiling.
38487
38488 2007-04-25  Eric Blake  <ebb9@byu.net>
38489
38490         * lib/fpurge.c (includes): Use stdlib.h for free.
38491         * tests/test-fflush.c (main): Also test fflush-fseeko.
38492
38493 2007-04-25  Bruno Haible  <bruno@clisp.org>
38494
38495         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38496         * lib/fseeko.c: New file.
38497         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38498         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38499         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38500         gl_FUNC_FSEEKO.
38501         (gl_FUNC_FSEEKO): Invoke it.
38502         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38503         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38504         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38505
38506 2007-04-25  Bruno Haible  <bruno@clisp.org>
38507
38508         * modules/fflush (Depends-on): Add ftello.
38509
38510 2007-04-25  Bruno Haible  <bruno@clisp.org>
38511
38512         * modules/ftello-tests: New file.
38513         * tests/test-ftello.c: New file.
38514
38515         * modules/ftello: New file.
38516         * m4/ftello.m4: New file.
38517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38518         HAVE_FTELLO.
38519         * lib/stdio_.h (ftello): New declaration.
38520         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38521         HAVE_FTELLO.
38522
38523 2007-04-25  Bruno Haible  <bruno@clisp.org>
38524
38525         * modules/fseeko-tests: New file.
38526         * tests/test-fseeko.c: New file.
38527
38528         * modules/fseeko: New file.
38529         * m4/fseeko.m4: New file.
38530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38531         HAVE_FSEEKO.
38532         * lib/stdio_.h (fseeko): New declaration.
38533         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38534         HAVE_FSEEKO.
38535
38536 2007-04-25  Bruno Haible  <bruno@clisp.org>
38537
38538         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38539
38540 2007-04-25  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38543         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38544         * tests/test-unistd.c: Likewise.
38545         * tests/test-fcntl.c: Likewise.
38546
38547 2007-04-23  Eric Blake  <ebb9@byu.net>
38548
38549         * lib/fflush.c: Fix missing include.
38550         Reported by Bruno Haible.
38551
38552 2007-04-23  Bruno Haible  <bruno@clisp.org>
38553
38554         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38555         Reported by Eric Blake.
38556
38557 2007-04-23  Bruno Haible  <bruno@clisp.org>
38558
38559         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38560
38561 2007-04-23  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38564
38565 2007-04-23  Bruno Haible  <bruno@clisp.org>
38566
38567         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38568         Needed on HP-UX 11.
38569
38570 2007-04-16  Eric Blake  <ebb9@byu.net>
38571
38572         Make fflush rely on fpurge.
38573         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38574         open coding all variants.
38575         * modules/fflush (Depends-on): Add fpurge and unistd.
38576         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38577         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38578
38579         Fix --with-tests compilation on cygwin.
38580         * modules/argmatch-tests (Makefile.am): List gnulib library first
38581         in LDADD.
38582         * modules/argp-tests (Makefile.am): Likewise.
38583         * modules/array-list-tests (Makefile.am): Likewise.
38584         * modules/array-oset-tests (Makefile.am): Likewise.
38585         * modules/avltree-list-tests (Makefile.am): Likewise.
38586         * modules/avltree-oset-tests (Makefile.am): Likewise.
38587         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38588         * modules/carray-list-tests (Makefile.am): Likewise.
38589         * modules/dirname-tests (Makefile.am): Likewise.
38590         * modules/frexp-tests (Makefile.am): Likewise.
38591         * modules/isnanl-tests (Makefile.am): Likewise.
38592         * modules/linked-list-tests (Makefile.am): Likewise.
38593         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38594         * modules/lock-tests (Makefile.am): Likewise.
38595         * modules/rbtree-list-tests (Makefile.am): Likewise.
38596         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38597         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38598         * modules/tls-tests (Makefile.am): Likewise.
38599         * modules/tsearch-tests (Makefile.am): Likewise.
38600         * modules/xvasprintf-tests (Makefile.am): Likewise.
38601
38602         Fix fpurge for cygwin.
38603         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38604         value.
38605         * modules/fpurge-tests (Depends-on): Clean up trash.
38606
38607 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38608
38609         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38610
38611         * m4/autobuild.m4: Re-indent.
38612
38613 2007-04-13  Bruno Haible  <bruno@clisp.org>
38614
38615         * modules/fpurge-tests: New file.
38616         * tests/test-fpurge.c: New file.
38617
38618         * modules/fpurge: New file.
38619         * lib/fpurge.h: New file.
38620         * lib/fpurge.c: New file.
38621         * m4/fpurge.m4: New file.
38622
38623 2007-04-13  Bruno Haible  <bruno@clisp.org>
38624
38625         * modules/fbufmode-tests: New file.
38626         * tests/test-fbufmode.c: New file.
38627
38628         * modules/fbufmode: New file.
38629         * lib/fbufmode.h: New file.
38630         * lib/fbufmode.c: New file.
38631         * m4/fbufmode.m4: New file.
38632
38633 2007-04-13  Bruno Haible  <bruno@clisp.org>
38634
38635         * modules/fwritable-tests: New file.
38636         * tests/test-fwritable.c: New file.
38637
38638         * modules/fwritable: New file.
38639         * lib/fwritable.h: New file.
38640         * lib/fwritable.c: New file.
38641         * m4/fwritable.m4: New file.
38642
38643 2007-04-13  Bruno Haible  <bruno@clisp.org>
38644
38645         * modules/freadable-tests: New file.
38646         * tests/test-freadable.c: New file.
38647
38648         * modules/freadable: New file.
38649         * lib/freadable.h: New file.
38650         * lib/freadable.c: New file.
38651         * m4/freadable.m4: New file.
38652
38653 2007-04-13  Bruno Haible  <bruno@clisp.org>
38654
38655         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38656         MOSTLYCLEANFILES.
38657
38658 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38659
38660         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38661         gzip bootstrap.conf to avoid dragging in i18n machinery.
38662         (gnulib_tool_option): Use it.
38663
38664 2007-04-13  Bruno Haible  <bruno@clisp.org>
38665
38666         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38667         %F directives.
38668         * tests/test-vasprintf-posix.c (test_function): Likewise.
38669         * tests/test-snprintf-posix.h (test_function): Likewise.
38670         * tests/test-sprintf-posix.h (test_function): Likewise.
38671         * tests/test-fprintf-posix.h (test_function): Likewise.
38672         * tests/test-printf-posix.h (test_function): Likewise.
38673         * tests/test-fprintf-posix.out: Likewise.
38674
38675 2007-04-13  Bruno Haible  <bruno@clisp.org>
38676
38677         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38678         * modules/tls-tests (configure.ac): Likewise.
38679         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38680
38681 2007-04-13  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/tls.c (glthread_tls_get): Fix return type.
38684         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38685
38686 2007-04-12  Eric Blake  <ebb9@byu.net>
38687
38688         * modules/gettime (Depends-on): Remove gettime.
38689         Reported by Dmitry V. Levin.
38690
38691 2007-04-12  Bruno Haible  <bruno@clisp.org>
38692
38693         * modules/fflush (Include): Mention <stdio.h>.
38694         * modules/strtoimax (Include): Mention <inttypes.h>.
38695         * modules/strtoumax (Include): Likewise.
38696
38697 2007-04-12  Eric Blake  <ebb9@byu.net>
38698
38699         * .cvsignore: New file.
38700         * .gitignore: Likewise.
38701
38702 2007-04-12  Bruno Haible  <bruno@clisp.org>
38703
38704         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38705         not before, since $(LDADD) often contains libgnu.a.
38706         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38707         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38708         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38709         Needed on Cygwin.
38710
38711 2007-04-12  Eric Blake  <ebb9@byu.net>
38712
38713         Work around glibc's failure to flush stdin on fclose.
38714         * lib/closein.c (close_stdin): Flush stdin before closing.
38715
38716         Work around glibc's failure to reset seekable stdin on exit.
38717         * modules/closein: New module.
38718         * lib/closein.c: New file.
38719         * lib/closein.h: Likewise.
38720         * m4/closein.m4: Likewise.
38721         * MODULES.html.sh (File stream based Input/Output): Document it.
38722
38723 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38724
38725         * gnulib-tool: Rename generated 'autobuild' script to
38726         'do-autobuild' in --create-megatestdir output.
38727
38728         * doc/gnulib.texi (Build robot for gnulib): Fix.
38729
38730 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38731
38732         * modules/sysexits (Depends-on): Add absolute-header.
38733
38734 2007-04-12  Eric Blake  <ebb9@byu.net>
38735
38736         No need to preserve errno on success.
38737         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38738         Reported by Bruno Haible.
38739
38740 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38741
38742         * MODULES.html.sh (Support for maintaining and releasing
38743         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38744
38745 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38746
38747         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38748
38749 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38750
38751         * modules/autobuild: New module.
38752
38753         * m4/autobuild.m4: New file.
38754
38755 2007-04-11  Bruno Haible  <bruno@clisp.org>
38756
38757         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38758         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38761         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38762         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38763         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38774         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38775         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38785         Reported by Eric Blake.
38786
38787 2007-04-11  Bruno Haible  <bruno@clisp.org>
38788
38789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38790
38791 2007-04-10  Bruno Haible  <bruno@clisp.org>
38792
38793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38794         for NaN and Infinity. Needed on FreeBSD 6.1.
38795         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38796         regarding results for "%010a" of Infinity and NaN.
38797         * tests/test-vasprintf-posix.c (test_function): Likewise.
38798         * tests/test-snprintf-posix.h (test_function): Likewise.
38799         * tests/test-sprintf-posix.h (test_function): Likewise.
38800         * tests/test-fprintf-posix.h (test_function): Likewise.
38801         * tests/test-printf-posix.h (test_function): Likewise.
38802         * tests/test-fprintf-posix.out: Likewise.
38803
38804 2007-04-10  Bruno Haible  <bruno@clisp.org>
38805
38806         * modules/locale-tests: New file.
38807         * tests/test-locale.c: New file.
38808
38809         * modules/locale: New file.
38810         * lib/locale_.h: New file.
38811         * m4/locale_h.m4: New file.
38812
38813 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38814             Bruno Haible  <bruno@clisp.org>
38815
38816         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38817         be determined, test for availability of the copysignf, copysign,
38818         copysignl functions.
38819         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38820         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38821         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38822
38823 2007-04-09  Eric Blake  <ebb9@byu.net>
38824
38825         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38826         * modules/stdio (Makefile.am): Support fflush.
38827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38828         * modules/fflush: New file.
38829         * lib/fflush.c: Likewise.
38830         * m4/fflush.m4: Likewise.
38831         * modules/fflush-tests: New test.
38832         * tests/test-fflush.c: Likewise.
38833         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38834
38835 2007-04-06  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38838         (VASNPRINTF): Use signbit for faster determination whether to print a
38839         minus sign.
38840         * modules/vasnprintf (Files): Remove lib/float+.h.
38841         * modules/fprintf-posix (Depends-on): Add signbit.
38842         * modules/snprintf-posix (Depends-on): Likewise.
38843         * modules/sprintf-posix (Depends-on): Likewise.
38844         * modules/vasnprintf-posix (Depends-on): Likewise.
38845         * modules/vasprintf-posix (Depends-on): Likewise.
38846         * modules/vfprintf-posix (Depends-on): Likewise.
38847         * modules/vsnprintf-posix (Depends-on): Likewise.
38848         * modules/vsprintf-posix (Depends-on): Likewise.
38849
38850 2007-04-06  Bruno Haible  <bruno@clisp.org>
38851
38852         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38853         * tests/test-frexpl.c (main): Likewise.
38854         * tests/test-ldexpl.c (main): Likewise.
38855         * modules/frexp-tests (Depends-on): Add signbit.
38856         * modules/frexpl-tests (Depdends-on): Likewise.
38857         * modules/ldexpl-tests (Depdends-on): Likewise.
38858
38859 2007-04-06  Bruno Haible  <bruno@clisp.org>
38860
38861         * modules/signbit-tests: New file.
38862         * tests/test-signbit.c: New file.
38863
38864         * modules/signbit: New file.
38865         * lib/signbitf.c: New file.
38866         * lib/signbitd.c: New file.
38867         * lib/signbitl.c: New file.
38868         * m4/signbit.m4: New file.
38869         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38870         (signbit): New macro.
38871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38872         REPLACE_SIGNBIT.
38873         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38874         REPLACE_FREXPL into math.h.
38875
38876 2007-04-06  Bruno Haible  <bruno@clisp.org>
38877
38878         * modules/isnanf-nolibm-tests: New file.
38879         * tests/test-isnanf.c: New file.
38880
38881         * modules/isnanf-nolibm: New file.
38882         * lib/isnanf.h: New file.
38883         * lib/isnanf.c: New file.
38884         * lib/isnan.c: Consider the USE_FLOAT macro.
38885         * m4/isnanf.m4: New file.
38886
38887 2007-04-06  Bruno Haible  <bruno@clisp.org>
38888
38889         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
38890         (Link): New section.
38891
38892         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
38893
38894 2007-04-06  Bruno Haible  <bruno@clisp.org>
38895
38896         Assume the 'long double' type.
38897         * m4/longdouble.m4: Remove file.
38898         * config/srclist.txt: Don't mention longdouble.m4.
38899         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
38900         * lib/float+.h: Likewise.
38901         * lib/frexp.c: Likewise.
38902         * lib/printf-args.h: Likewise.
38903         * lib/printf-args.c: Likewise.
38904         * lib/printf-frexp.c: Likewise.
38905         * lib/printf-parse.c: Likewise.
38906         * lib/vasnprintf.c: Likewise.
38907         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
38908         * m4/intl.m4: Likewise.
38909         * m4/isnanl.m4: Likewise.
38910         * m4/printf.m4: Likewise.
38911         * m4/printf-frexpl.m4: Likewise.
38912         * m4/vasnprintf.m4: Likewise.
38913         * modules/allocsa (Files): Remove m4/longdouble.m4.
38914         * modules/gettext (Files): Likewise.
38915         * modules/relocatable-prog-wrapper (Files): Likewise.
38916         * modules/vasnprintf (Files): Likewise.
38917         * modules/isnanl (Files): Likewise.
38918         (Include): Simplify.
38919         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
38920         (Include): Simplify.
38921         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
38922         (Include): Simplify.
38923         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
38924         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38925         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
38926         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38927         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38929         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
38930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38931         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38933         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
38934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38935         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
38936         * tests/test-isnanl.c: Likewise.
38937         * tests/test-snprintf-posix.h: Likewise.
38938         * tests/test-sprintf-posix.h: Likewise.
38939         * tests/test-vasnprintf-posix.c: Likewise.
38940         * tests/test-vasnprintf-posix2.c: Likewise.
38941         * tests/test-vasprintf-posix.c: Likewise.
38942
38943 2007-04-06  Bruno Haible  <bruno@clisp.org>
38944
38945         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
38946         * lib/math_.h [__DECC]: Include the overridden include file through
38947         #include_next, outside the double-inclusion guard.
38948         * lib/stdio_.h [__DECC]: Likewise.
38949         * lib/stdlib_.h [__DECC]: Likewise.
38950         * lib/string_.h [__DECC]: Likewise.
38951         * lib/time_.h [__DECC]: Likewise.
38952         * lib/wchar_.h [__DECC]: Likewise.
38953         * lib/wctype_.h [__DECC]: Likewise.
38954         * lib/inttypes_.h [__DECC]: Likewise.
38955         Reported by Albert Chin <china@thewrittenword.com> in
38956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
38957
38958 2007-04-04  Eric Blake  <ebb9@byu.net>
38959
38960         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
38961         1.5.x.
38962
38963 2007-04-04  Bruno Haible  <bruno@clisp.org>
38964
38965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
38966         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
38967
38968 2007-04-04  Bruno Haible  <bruno@clisp.org>
38969
38970         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
38971         results for "%010a" of Infinity and NaN.
38972         * tests/test-vasprintf-posix.c (test_function): Likewise.
38973         * tests/test-snprintf-posix.h (test_function): Likewise.
38974         * tests/test-sprintf-posix.h (test_function): Likewise.
38975         * tests/test-fprintf-posix.h (test_function): Remove these tests.
38976         * tests/test-printf-posix.h (test_function): Likewise.
38977         * tests/test-fprintf-posix.out: Update.
38978         Needed for FreeBSD 6.1.
38979
38980 2007-04-04  Bruno Haible  <bruno@clisp.org>
38981
38982         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
38983         directly used by the gnulib modules nor by gnulib-tool.
38984
38985 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         * DEPENDENCIES: Give overall description of version dependency
38988         desirability.  Use more-typical names for apps.
38989         Add shell, coreutils, diffutils, grep, tar, gzip.
38990
38991 2007-04-04  Simon Josefsson  <simon@josefsson.org>
38992
38993         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
38994
38995 2007-04-04  Karl Berry  <karl@gnu.org>
38996
38997         * MODULES.html.sh (func_module): missing '.
38998
38999 2007-04-03  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/argmatch-tests (Makefile.am): New variable
39002         test_argmatch_LDADD.
39003         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39004         * modules/array-list-tests (Makefile.am): New variable
39005         test_array_list_LDADD.
39006         * modules/array-oset-tests (Makefile.am): New variable
39007         test_array_oset_LDADD.
39008         * modules/avltree-list-tests (Makefile.am): New variable
39009         test_avltree_list_LDADD.
39010         * modules/avltree-oset-tests (Makefile.am): New variable
39011         test_avltree_oset_LDADD.
39012         * modules/avltreehash-list-tests (Makefile.am): New variable
39013         test_avltreehash_list_LDADD.
39014         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39015         test_canonicalize_lgpl_LDADD.
39016         * modules/carray-list-tests (Makefile.am): New variable
39017         test_carray_list_LDADD.
39018         * modules/dirname-tests (Makefile.am): New variable
39019         test_dirname_LDADD.
39020         * modules/linked-list-tests (Makefile.am): New variable
39021         test_linked_list_LDADD.
39022         * modules/linkedhash-list-tests (Makefile.am): New variable
39023         test_linkedhash_list_LDADD.
39024         * modules/rbtree-list-tests (Makefile.am): New variable
39025         test_rbtree_list_LDADD.
39026         * modules/rbtree-oset-tests (Makefile.am): New variable
39027         test_rbtree_oset_LDADD.
39028         * modules/rbtreehash-list-tests (Makefile.am): New variable
39029         test_rbtreehash_list_LDADD.
39030         * modules/xvasprintf-tests (Makefile.am): New variable
39031         test_xvasprintf_LDADD.
39032         Reported by Eric Blake.
39033
39034 2007-04-03  Eric Blake  <ebb9@byu.net>
39035
39036         * DEPENDENCIES: Weaken m4 requirements.
39037
39038 2007-04-03  Bruno Haible  <bruno@clisp.org>
39039
39040         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39041         * modules/isnanl-tests (configure.ac): Likewise.
39042
39043 2007-04-03  Ben Pfaff  <blp@gnu.org>
39044
39045         * modules/iconv_open: Add $(srcdir)/ to source directory
39046         references in Makefile fragments that call gperf, to fix VPATH
39047         builds.
39048
39049 2007-04-03  Bruno Haible  <bruno@clisp.org>
39050
39051         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39052         * lib/ldexpl.c: Undo last change.
39053
39054 2007-04-03  Bruno Haible  <bruno@clisp.org>
39055
39056         * modules/printf-frexpl (Depends-on): Undo last change.
39057         (Files): Add m4/ldexpl.m4.
39058
39059 2007-04-03  Bruno Haible  <bruno@clisp.org>
39060
39061         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39062         * modules/isnanl (Link): New section.
39063
39064         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39065         * modules/frexp (Link): New section.
39066
39067         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39068         * modules/frexpl (Link): New section.
39069
39070         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39071         * modules/ldexpl (Link): New section.
39072
39073 2007-04-03  Bruno Haible  <bruno@clisp.org>
39074
39075         * modules/TEMPLATE-EXTENDED: New file.
39076         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39077
39078 2007-04-03  Bruno Haible  <bruno@clisp.org>
39079
39080         * DEPENDENCIES: New file.
39081         Suggested by Simon Josefsson.
39082
39083 2007-04-03  Bruno Haible  <bruno@clisp.org>
39084
39085         * doc/gnulib.texi: Escape @.
39086
39087 2007-04-03  James Youngman  <jay@gnu.org>
39088         and Paul Eggert  <eggert@cs.ucla.edu>
39089
39090         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39091         birthtime on all systems that have birthtime, not just those which
39092         use st_birthtimensec rather than st_birthtim.  Putting zero in
39093         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39094         that the birth time is not available for files on an NFS mount.
39095
39096 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39097
39098         * modules/memxor: Move back from crypto/, suggested by Bruno.
39099         * modules/crypto/hmac-sha1: Fix memxor dependency.
39100
39101         * modules/crypto/gc: Moved from ../.
39102
39103 2007-04-02  Eric Blake  <ebb9@byu.net>
39104
39105         * lib/ldexpl.c (includes): Avoid libm.
39106
39107         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39108
39109 2007-04-02  Bruno Haible  <bruno@clisp.org>
39110
39111         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39112         on IRIX.
39113
39114 2007-04-02  Bruno Haible  <bruno@clisp.org>
39115
39116         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39117         x86 or x86_64 platforms running MacOS X.
39118         Reported by Ryan Schmidt <@ryandesign.com>.
39119
39120 2007-04-02  Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39123         i386.
39124
39125 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39126
39127         * modules/crypto/arcfour: Moved from ../.
39128         * modules/crypto/arcfour-tests: Moved from ../.
39129         * modules/crypto/arctwo: Moved from ../.
39130         * modules/crypto/arctwo-tests: Moved from ../.
39131         * modules/crypto/des: Moved from ../.
39132         * modules/crypto/des-tests: Moved from ../.
39133         * modules/crypto/gc-arcfour: Moved from ../.
39134         * modules/crypto/gc-arcfour-tests: Moved from ../.
39135         * modules/crypto/gc-arctwo: Moved from ../.
39136         * modules/crypto/gc-arctwo-tests: Moved from ../.
39137         * modules/crypto/gc-des: Moved from ../.
39138         * modules/crypto/gc-des-tests: Moved from ../.
39139         * modules/crypto/gc-hmac-md5: Moved from ../.
39140         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39141         * modules/crypto/gc-hmac-sha1: Moved from ../.
39142         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39143         * modules/crypto/gc-md2: Moved from ../.
39144         * modules/crypto/gc-md2-tests: Moved from ../.
39145         * modules/crypto/gc-md4: Moved from ../.
39146         * modules/crypto/gc-md4-tests: Moved from ../.
39147         * modules/crypto/gc-md5: Moved from ../.
39148         * modules/crypto/gc-md5-tests: Moved from ../.
39149         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39150         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39151         * modules/crypto/gc-random: Moved from ../.
39152         * modules/crypto/gc-rijndael: Moved from ../.
39153         * modules/crypto/gc-rijndael-tests: Moved from ../.
39154         * modules/crypto/gc-sha1: Moved from ../.
39155         * modules/crypto/gc-sha1-tests: Moved from ../.
39156         * modules/crypto/gc-tests: Moved from ../.
39157         * modules/crypto/hmac-md5: Moved from ../.
39158         * modules/crypto/hmac-md5-tests: Moved from ../.
39159         * modules/crypto/hmac-sha1: Moved from ../.
39160         * modules/crypto/hmac-sha1-tests: Moved from ../.
39161         * modules/crypto/md2: Moved from ../.
39162         * modules/crypto/md2-tests: Moved from ../.
39163         * modules/crypto/md4: Moved from ../.
39164         * modules/crypto/md4-tests: Moved from ../.
39165         * modules/crypto/md5: Moved from ../.
39166         * modules/crypto/md5-tests: Moved from ../.
39167         * modules/crypto/memxor: Moved from ../.
39168         * modules/crypto/rijndael: Moved from ../.
39169         * modules/crypto/rijndael-tests: Moved from ../.
39170         * modules/crypto/sha1: Moved from ../.
39171
39172 2007-03-30  James Youngman  <jay@gnu.org>
39173
39174         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39175         rename() to change the ctime of a file (because ctime is unaffected
39176         by rename on jfs2 on AIX 5.1).
39177         (main): Start by doing cleanup, in case a previous run failed leaving
39178         test files behind.
39179
39180 2007-03-31  Bruno Haible  <bruno@clisp.org>
39181
39182         Support old proprietary implementations of iconv.
39183         * modules/iconv_open: New file.
39184         * lib/iconv_.h: New file.
39185         * m4/iconv_h.m4: New file.
39186         * lib/iconv_open.c: New file.
39187         * lib/iconv_open-aix.gperf: New file.
39188         * lib/iconv_open-hpux.gperf: New file.
39189         * lib/iconv_open-irix.gperf: New file.
39190         * lib/iconv_open-osf.gperf: New file.
39191         * m4/iconv_open.m4: New file.
39192         * modules/linebreak (Depends-on): Add iconv_open.
39193         * modules/striconv (Depends-on): Likewise.
39194         * modules/striconveh (Depends-on): Likewise.
39195         * modules/unicodeio (Depends-on): Likewise.
39196         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39197         (iconv_t)(-1).
39198         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39199         conversion if cd is (iconv_t)(-1).
39200         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39201         is not possible.
39202
39203 2007-03-31  Bruno Haible  <bruno@clisp.org>
39204
39205         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39206         work on Solaris either. Protect also second use of "autodetect_jp".
39207
39208 2007-03-31  Bruno Haible  <bruno@clisp.org>
39209
39210         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39211         the function is not present.
39212
39213 2007-03-31  Bruno Haible  <bruno@clisp.org>
39214
39215         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39216         the function is not present.
39217
39218 2007-03-31  Bruno Haible  <bruno@clisp.org>
39219
39220         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39221         a bug in HP-UX iconv_open().
39222
39223 2007-03-31  Bruno Haible  <bruno@clisp.org>
39224
39225         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39226         (Mathematics <math.h>): New section, add fpieee.
39227         (Input/output <stdio.h>): Add fseterr.
39228         (Mathematics <math.h>): New section, add printf-frexp.
39229         (Container data structures): Add sublist.
39230         (Core language properties): Add fpucw, inline.
39231         (Functions for greatest-width integer types <inttypes.h>): Add
39232         imaxabs, imaxdiv, inttypes.
39233         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39234         isnanl-nolibm, ldexp.
39235         (Mathematics <math.h>): New section, add printf-frexpl.
39236         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39237         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39238         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39239         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39240         (Unicode string functions): Add unistr/u*-mbtoucr.
39241         (Java): Add javacomp-script, javaexec-script.
39242         (C#): Add csharpcomp-script, csharpexec-script.
39243         (Support for building libraries and executables): Add havelib,
39244         relocatable-*.
39245         (Support for maintaining and releasing projects): Renamed from
39246         'Support for maintaining and release projects'. Add announce-gen.
39247
39248 2007-03-31  Bruno Haible  <bruno@clisp.org>
39249
39250         * README: Talk primarily about git.
39251         (git and CVS): Renamed from CVS.
39252         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39253         gnulib is available through git.
39254         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39255
39256 2007-03-30  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39259         * lib/poll_.h: Likewise.
39260         * lib/stat_.h: Likewise.
39261         * lib/sys_time_.h: Likewise.
39262         * lib/sysexit_.h: Likewise.
39263         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39264         * lib/stdbool_.h: Likewise.
39265         * lib/byteswap_.h: Add double-inclusion guard.
39266
39267 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39268
39269         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39270
39271 2007-03-30  Karl Berry  <karl@gnu.org>
39272
39273         * config/srclist-update: double space after USA in the license
39274         substitution, since that's how it's usually (?) written.
39275
39276 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39277
39278         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39279         reported by Bruno Haible.
39280
39281 2007-03-29  Bruno Haible  <bruno@clisp.org>
39282
39283         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39284         a bug in AIX iconv().
39285
39286 2007-03-29  Bruno Haible  <bruno@clisp.org>
39287
39288         * modules/ldexpl-tests: New file.
39289         * tests/test-ldexpl.c: New file.
39290
39291 2007-03-29  Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/ldexpl.c: Include fpucw.h.
39294         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39295         multiplication.
39296         * modules/ldexpl (Depends-on): Add fpucw.
39297
39298 2007-03-29  Bruno Haible  <bruno@clisp.org>
39299
39300         * modules/ldexpl: New file.
39301         * m4/ldexpl.m4: New file.
39302         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39303         set.
39304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39305         REPLACE_LDEXPL.
39306         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39307         REPLACE_LDEXPL.
39308         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39309         gl_FUNC_LDEXPL_WORKS.
39310         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39311         * modules/mathl (Files): Remove lib/ldexpl.c.
39312         (Depends-on): Add ldexpl.
39313
39314 2007-03-29  Bruno Haible  <bruno@clisp.org>
39315
39316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39317
39318 2007-03-29  Bruno Haible  <bruno@clisp.org>
39319
39320         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39321         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39322         and possibly also HP-UX.
39323         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39324         work on AIX, IRIX, HP-UX, OSF/1.
39325         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39326         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39327         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39328         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39329         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39330         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39331
39332 2007-03-29  Bruno Haible  <bruno@clisp.org>
39333
39334         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39335
39336 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39337
39338         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39339         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39340
39341 2007-03-29  Eric Blake  <ebb9@byu.net>
39342
39343         * lib/acl-internal.h: Remove redundant include.
39344         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39345         Cygwin when a file is locked.
39346
39347 2007-03-29  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39350         file.
39351         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39352
39353 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39354
39355         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39356         try to remove a parent directory if the child couldn't be removed
39357         (except for the first rmdir, which could fail because the child
39358         doesn't exist).  Problem reported by Jeff Blaine in
39359         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39360
39361 2007-03-28  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/striconveh.c (utf8conv_carefully): New function.
39364         (mem_cd_iconveh_internal): Invoke it.
39365
39366 2007-03-28  Bruno Haible  <bruno@clisp.org>
39367
39368         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39369         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39370         input.
39371         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39372         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39373         unistr/u8-uctomb.
39374
39375 2007-03-28  Bruno Haible  <bruno@clisp.org>
39376
39377         * modules/unistr/u8-mbtoucr: New file.
39378         * lib/unistr/u8-mbtoucr.c: New file.
39379         * modules/unistr/u16-mbtoucr: New file.
39380         * lib/unistr/u16-mbtoucr.c: New file.
39381         * modules/unistr/u16-mbtoucr: New file.
39382         * lib/unistr/u16-mbtoucr.c: New file.
39383         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39384
39385 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39386             Bruno Haible  <bruno@clisp.org>
39387
39388         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39389         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39390         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39391
39392         * m4/stdio_h.m4: Add stubs for vasprintf too.
39393
39394         * modules/stdio: Support vasprintf in sed command.
39395
39396         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39397         vasprintf.h.  Add stdio module indicator.
39398
39399         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39400         vasprintf.h.
39401
39402         * lib/vasprintf.h: File removed.
39403
39404         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39405         * lib/vasprintf.c: Ditto.
39406         * lib/xvasprintf.c: Ditto.
39407         * tests/test-vasprintf-posix.c: Ditto.
39408         * tests/test-vasprintf.c: Ditto.
39409
39410 2007-03-27  Bruno Haible  <bruno@clisp.org>
39411
39412         Make vasnprintf multithread-safe.
39413         * lib/vasnprintf.c (decimal_point_char): New function.
39414         (VASNPRINTF): Use it.
39415         Suggested by Simon Josefsson.
39416
39417 2007-03-27  Eric Blake  <ebb9@byu.net>
39418
39419         Support sub-second birthtime on cygwin.
39420         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39421         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39422         (get_stat_birthtime): Also work with st_birthtim.
39423
39424 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39425
39426         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39427         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39428         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39429         (get_stat_birthtime_ns): Simplify compile-time tests.
39430         (get_stat_birthtime): Change the API to look like
39431         get_stat_mtime etc., except return a negative tv_nsec on error.
39432         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39433         Don't check for "spare" fields.
39434         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39435         or for struct stat.st_birthtime, as these tests aren't used.
39436         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39437
39438 2007-03-27  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/stat-time.h: Include <sys/stat.h>.
39441
39442 2007-03-27  James Youngman  <jay@gnu.org>
39443
39444         * lib/stat-time.h (get_stat_birthtime): New function for
39445           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39446         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39447           and its variants.
39448         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39449         * modules/stat-time-test: New file.
39450         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39451
39452 2007-03-26  Bruno Haible  <bruno@clisp.org>
39453
39454         Better support of signalling NaNs.
39455         * lib/atanl.c: Include isnanl.h.
39456         (atanl): Perform test for NaN at the beginning of the function and
39457         through a call to isnanl.
39458         * lib/cosl.c: Include isnanl.h.
39459         (cosl): Perform test for NaN at the beginning of the function and
39460         through a call to isnanl.
39461         * lib/ldexpl.c: Include isnanl.h.
39462         (ldexpl): Perform test for NaN through a call to isnanl.
39463         * lib/logl.c: Include isnanl.h.
39464         (logl): Perform test for NaN at the beginning of the function and
39465         through a call to isnanl.
39466         * lib/sinl.c: Include isnanl.h.
39467         (sinl): Perform test for NaN at the beginning of the function and
39468         through a call to isnanl.
39469         * lib/sqrtl.c: Include isnanl.h.
39470         (sqrtl): Perform test for NaN at the beginning of the function and
39471         through a call to isnanl.
39472         * lib/tanl.c: Include isnanl.h.
39473         (tanl): Perform test for NaN at the beginning of the function and
39474         through a call to isnanl.
39475         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39476         * modules/mathl (Depends-on): Add isnanl.
39477
39478 2007-03-26  Eric Blake  <ebb9@byu.net>
39479
39480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39481         regression in logic sense of previous patch.
39482
39483 2007-03-26  Bruno Haible  <bruno@clisp.org>
39484
39485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39486         unportable shell command "if ! ...".
39487         Reported by Ralf Wildenhues.
39488
39489 2007-03-25  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39492         <sysexits.h> file, and only add EX_CONFIG.
39493         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39494         absolute file name and whether it is sufficient. Substitute also
39495         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39496         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39497         ABSOLUTE_SYSEXITS_H into sysexits.h.
39498
39499 2007-03-25  Bruno Haible  <bruno@clisp.org>
39500
39501         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39502         hints is NULL.
39503
39504 2007-03-25  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39507         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39508
39509 2007-03-25  Bruno Haible  <bruno@clisp.org>
39510
39511         * lib/vasnprintf.c: Include langinfo.h.
39512         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39513         multithread-safe.
39514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39520         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39521         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39523         Reported by Simon Josefsson.
39524
39525 2007-03-25  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39528         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39529         * modules/vasnprintf (Depends-on): Add stdint.
39530
39531 2007-03-25  Bruno Haible  <bruno@clisp.org>
39532
39533         * modules/fpieee: New file.
39534         * m4/fpieee.m4: New file.
39535         * modules/isnan-nolibm (Depends-on): Add fpieee.
39536         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39537         * modules/isnanl (Depends-on): Add fpieee.
39538
39539 2007-03-25  Bruno Haible  <bruno@clisp.org>
39540
39541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39542
39543 2007-03-25  Bruno Haible  <bruno@clisp.org>
39544
39545         Avoid test failures on IRIX 6.5.
39546         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39547         (main): Use it.
39548         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39549         macros.
39550         (main): Use them.
39551
39552 2007-03-25  Bruno Haible  <bruno@clisp.org>
39553
39554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39555         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39556         exists but doesn't work.
39557         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39558         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39560         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39561
39562 2007-03-25  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39565         returns inf. Needed on IRIX 6.5.
39566
39567 2007-03-25  Bruno Haible  <bruno@clisp.org>
39568
39569         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39570         (main): Use isnanl instead of x != x idiom.
39571         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39572
39573         * tests/test-frexp.c: Include isnan.h.
39574         (main): Use isnan instead of x != x idiom.
39575         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39576
39577 2007-03-25  Bruno Haible  <bruno@clisp.org>
39578
39579         * tests/test-frexp.c (NaN): New function/macro.
39580         (main): Use it instead of 0.0 / 0.0.
39581         * tests/test-isnan.c (NaN): New function/macro.
39582         (main): Use it instead of 0.0 / 0.0.
39583         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39584         (test_function): Use it instead of 0.0 / 0.0.
39585         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39586         (test_function): Use it instead of 0.0 / 0.0.
39587         * tests/test-snprintf-posix.h (NaN): New function/macro.
39588         (test_function): Use it instead of 0.0 / 0.0.
39589         * tests/test-sprintf-posix.h (NaN): New function/macro.
39590         (test_function): Use it instead of 0.0 / 0.0.
39591         * tests/test-fprintf-posix.h (NaN): New function/macro.
39592         (test_function): Use it instead of 0.0 / 0.0.
39593         * tests/test-printf-posix.h (NaN): New function/macro.
39594         (test_function): Use it instead of 0.0 / 0.0.
39595
39596         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39597
39598 2007-03-25  Bruno Haible  <bruno@clisp.org>
39599
39600         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39601
39602 2007-03-25  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/regexec.c (merge_state_with_log): Make static.
39605
39606 2007-03-25  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/trigl.c (kernel_rem_pio2): Make static.
39609
39610 2007-03-25  Bruno Haible  <bruno@clisp.org>
39611
39612         * lib/sincosl.c (sincosl_table): Make static.
39613
39614 2007-03-25  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39617         if the compiler does not support C99.
39618
39619 2007-03-25  Bruno Haible  <bruno@clisp.org>
39620
39621         * modules/time (Makefile.am): Ensure all rule action lines start with a
39622         tab.
39623
39624 2007-03-24  Bruno Haible  <bruno@clisp.org>
39625
39626         * modules/tsearch-tests: New file.
39627         * tests/test-tsearch.sh: New file.
39628         * tests/test-tsearch.c: New file, mostly copied from glibc.
39629
39630         * modules/search-tests: New file.
39631         * tests/test-search.c: New file.
39632
39633         * modules/search: New file.
39634         * lib/search_.h: New file, incorporating lib/tsearch.h.
39635         * m4/search_h.m4: New file.
39636         * lib/tsearch.h: Remove file.
39637         * lib/tsearch.c: Include search.h instead of tsearch.h.
39638         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39639         HAVE_TSEARCH.
39640         * modules/tsearch (Files): Remove lib/tsearch.h.
39641         (Depends-on): Add search.
39642         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39643         (Include): Change tsearch.h into search.h.
39644
39645 2007-03-24  Bruno Haible  <bruno@clisp.org>
39646
39647         * modules/fpucw: New file.
39648         * lib/fpucw.h: New file.
39649         * lib/frexp.c: Include fpucw.h.
39650         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39651         (FUNC): Use them.
39652         * lib/printf-frexp.c: Include fpucw.h.
39653         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39654         (FUNC): Use them.
39655         * lib/vasnprintf.c: Include fpucw.h.
39656         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39657         'long double' calculations.
39658         * tests/test-frexpl.c: Include fpucw.h.
39659         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39660         * tests/test-printf-frexpl.c: Include fpucw.h.
39661         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39662         * modules/frexpl (Depends-on): Add fpucw.
39663         * modules/printf-frexpl (Depends-on): Likewise.
39664         * modules/fprintf-posix (Depends-on): Likewise.
39665         * modules/snprintf-posix (Depends-on): Likewise.
39666         * modules/sprintf-posix (Depends-on): Likewise.
39667         * modules/vasnprintf-posix (Depends-on): Likewise.
39668         * modules/vasprintf-posix (Depends-on): Likewise.
39669         * modules/vfprintf-posix (Depends-on): Likewise.
39670         * modules/vsnprintf-posix (Depends-on): Likewise.
39671         * modules/vsprintf-posix (Depends-on): Likewise.
39672         * modules/frexpl-tests (Depends-on): Likewise.
39673         * modules/printf-frexpl-tests (Depends-on): Likewise.
39674
39675 2007-03-24  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/float+.h: New file.
39678         * lib/isnan.c: Include float+.h.
39679         (SIZE): New macro.
39680         (FUNC): Compare only SIZE bytes of the value.
39681         * lib/vasnprintf.c: Include float+.h.
39682         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39683         SIZEOF_LDBL or SIZEOF_DBL bytes.
39684         * modules/isnan-nolibm (Files): Add lib/float+.h.
39685         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39686         * modules/isnanl (Files): Add lib/float+.h.
39687         * modules/vasnprintf (Files): Add lib/float+.h.
39688
39689 2007-03-24  Bruno Haible  <bruno@clisp.org>
39690
39691         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39692         include isnanl-nolibm.h.
39693
39694 2007-03-24  Bruno Haible  <bruno@clisp.org>
39695
39696         * tests/test-read-file.c (main): Don't produce spurious output for
39697         expected situations. Make the test fail if it encountered unexpected
39698         results.
39699
39700 2007-03-24  Bruno Haible  <bruno@clisp.org>
39701
39702         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39703         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39704
39705 2007-03-24  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39708
39709 2007-03-24  Bruno Haible  <bruno@clisp.org>
39710
39711         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39712         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39713
39714         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39715         * modules/utf8-ucs4: Turn into a symbolic link to module
39716         unistr/u8-mbtouc.
39717
39718         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39719         utf8-ucs4-unsafe.
39720         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39721         unistr/u8-mbtouc-unsafe.
39722
39723         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39724         * modules/utf16-ucs4: Turn into a symbolic link to module
39725         unistr/u16-mbtouc.
39726
39727         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39728         utf16-ucs4-unsafe.
39729         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39730         unistr/u16-mbtouc-unsafe.
39731
39732         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39733         * modules/ucs4-utf8: Turn into a symbolic link to module
39734         unistr/u8-ubtomb.
39735
39736         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39737         * modules/ucs4-utf16: Turn into a symbolic link to module
39738         unistr/u16-ubtomb.
39739
39740 2007-03-24  Bruno Haible  <bruno@clisp.org>
39741
39742         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39743         Enable the function only if HAVE_INLINE.
39744         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39745         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39746         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39747         Enable the function only if HAVE_INLINE.
39748         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39749         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39750         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39751         Enable the function only if HAVE_INLINE.
39752         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39753         Enable the function only if HAVE_INLINE.
39754         * modules/utf8-ucs4: Update.
39755         * modules/utf8-ucs4-unsafe: Update.
39756         * modules/utf16-ucs4: Update.
39757         * modules/utf16-ucs4-unsafe: Update.
39758         * modules/ucs4-utf8: Update.
39759         * modules/ucs4-utf16: Update.
39760
39761 2007-03-24  Bruno Haible  <bruno@clisp.org>
39762
39763         * lib/utf8-ucs4.h: Remove file.
39764         * lib/utf8-ucs4-unsafe.h: Remove file.
39765         * lib/utf16-ucs4.h: Remove file.
39766         * lib/utf16-ucs4-unsafe.h: Remove file.
39767         * lib/ucs4-utf8.h: Remove file.
39768         * lib/ucs4-utf16.h: Remove file.
39769         * lib/unistr.h: Include their previous contents.
39770         * m4/utf-ucs4.m4: Remove file.
39771         * m4/ucs4-utf.m4: Remove file.
39772         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39773         (Depends-on): Add unistr/base.
39774         (configure.ac): Remove gl_UTF_UCS4.
39775         (Makefile.am): Update.
39776         (Include): Change to unistr.h.
39777         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39778         (Depends-on): Add unistr/base.
39779         (configure.ac): Remove gl_UTF_UCS4.
39780         (Makefile.am): Update.
39781         (Include): Change to unistr.h.
39782         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39783         (Depends-on): Add unistr/base.
39784         (configure.ac): Remove gl_UTF_UCS4.
39785         (Makefile.am): Update.
39786         (Include): Change to unistr.h.
39787         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39788         (Depends-on): Add unistr/base.
39789         (configure.ac): Remove gl_UTF_UCS4.
39790         (Makefile.am): Update.
39791         (Include): Change to unistr.h.
39792         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39793         (Depends-on): Add unistr/base.
39794         (configure.ac): Remove gl_UCS4_UTF.
39795         (Makefile.am): Update.
39796         (Include): Change to unistr.h.
39797         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39798         (Depends-on): Add unistr/base.
39799         (configure.ac): Remove gl_UCS4_UTF.
39800         (Makefile.am): Update.
39801         (Include): Change to unistr.h.
39802         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39803         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39804         utf8-ucs4-unsafe.h.
39805         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39806         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39807         utf16-ucs4-unsafe.h.
39808         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39809         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39810         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39811         * lib/unistr/u8-strchr.c: Likewise.
39812         * lib/unistr/u8-strrchr.c: Likewise.
39813         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39814         * lib/unistr/u16-strchr.c: Likewise.
39815         * lib/unistr/u16-strrchr.c: Likewise.
39816         * lib/striconveh.c: Update.
39817         * lib/linebreak.c: Update.
39818
39819 2007-03-24  Bruno Haible  <bruno@clisp.org>
39820
39821         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39822         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39823
39824 2007-03-22  Bruno Haible  <bruno@clisp.org>
39825
39826         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39827
39828 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39829
39830         * MODULES.html.sh (File system functions): New module write-any-file.
39831         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39832         * m4/write-any-file.m4: New files.
39833
39834 2007-03-23  Eric Blake  <ebb9@byu.net>
39835
39836         * gnulib-tool: Rearrange space-tab sequences, since some editors
39837         like to eat them.
39838
39839 2007-03-23  Eric Blake  <ebb9@byu.net>
39840
39841         * lib/version-etc.c (version_etc_va): Update license wording to
39842         be more concise.  Recommended by Richard Stallman.
39843
39844 2007-03-22  Bruno Haible  <bruno@clisp.org>
39845
39846         * lib/poll.c (MSG_PEEK): New fallback definition.
39847
39848 2007-03-22  Bruno Haible  <bruno@clisp.org>
39849
39850         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39851         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39852         (main): Update.
39853         Fixes a compilation error on BeOS.
39854
39855 2007-03-22  Bruno Haible  <bruno@clisp.org>
39856
39857         * modules/frexpl-tests: New file.
39858         * tests/test-frexpl.c: New file.
39859
39860         * modules/frexpl: New file.
39861         * m4/frexpl.m4: New file.
39862         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39863         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39865         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39866         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39867         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39868
39869 2007-03-22  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/frexpl.c: Share code with lib/frexp.c.
39872         * modules/mathl (Files): Add lib/frexp.c.
39873         (Depends-on): Add isnanl-nolibm.
39874
39875 2007-03-22  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/printf-frexp (Files): Add m4/frexp.m4.
39878         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
39879         only if the found frexp function actually works.
39880
39881 2007-03-22  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/frexp.c: Remove older implementation that uses divisions.
39884
39885 2007-03-21  Bruno Haible  <bruno@clisp.org>
39886
39887         * modules/frexp-tests: New file.
39888         * tests/test-frexp.c: New file.
39889
39890         * modules/frexp: New file.
39891         * lib/frexp.c: New file.
39892         * m4/frexp.m4: New file.
39893         * lib/math_.h (frexp): New declaration.
39894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
39895         REPLACE_FREXP.
39896         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
39897
39898 2007-03-21  Bruno Haible  <bruno@clisp.org>
39899
39900         * modules/isnanl-tests: New file.
39901         * tests/test-isnanl.c: New file.
39902
39903         * modules/isnanl: New file.
39904         * lib/isnanl.h: New file.
39905         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
39906         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
39907         gl_FUNC_ISNANL_WORKS.
39908         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
39909         New macros.
39910
39911 2007-03-21  Bruno Haible  <bruno@clisp.org>
39912
39913         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
39914         lib/isnanl.h.
39915         (Include): Update.
39916         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
39917         * lib/vasnprintf.c: Update.
39918         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
39919         tests/test-isnanl.h, remove tests/test-isnanl.c.
39920         (Makefile.am): Update.
39921         * tests/test-isnanl-nolibm.c: New file.
39922         * tests/test-isnanl.h: New file.
39923         * tests/test-isnanl.c: Remove file.
39924
39925 2007-03-21  Jim Meyering  <jim@meyering.net>
39926
39927         When trying to open ".", treat ESTALE like EACCES.
39928         * lib/savewd.c (savewd_save): Resort to forking not just upon
39929         failure with EACCES, but also when errno is ESTALE.
39930
39931 2007-03-20  Bruno Haible  <bruno@clisp.org>
39932
39933         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
39934         Needed on AIX 5.1. Reported by Matthew Woehlke.
39935
39936 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         Suggestions by Bruno Haible:
39939         * lib/acl-internal.h: Include "gettext.h" rather than rolling
39940         our own.
39941         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
39942         * modules/acl (Depends-on): Add gettext.
39943
39944 2007-03-19  Bruno Haible  <bruno@clisp.org>
39945
39946         * modules/iconvme: Remove file.
39947         * lib/iconvme.h: Remove file.
39948         * lib/iconvme.c: Remove file.
39949         * m4/iconvme.m4: Remove file.
39950
39951 2007-03-19  Bruno Haible  <bruno@clisp.org>
39952
39953         * doc/relocatable-maint.texi: Break long shell script line.
39954         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39955
39956 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39957
39958         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
39959         handle file_has_acl.
39960         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
39961         * lib/acl.c: Move header inclusions and related macro defns into
39962         lib/acl-internal.h.
39963         (S_ISLNK): Remove defn, since that's now done for us.
39964         (file_has_acl): Move to lib/file-has-acl.c.
39965         Call acl_trivial if available.  This is the crucial part of the fix.
39966         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
39967         shared within the library.  Rewrite a bit, partly to make it compatible
39968         with the GNU coding style.
39969         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
39970         Remove unnecessary double-quotes.
39971         Don't test for acl_to_text; the build will catch that.
39972         Replace acl_entries if it doesn't exist and it is needed.
39973         Check for -lsec and acl_trivial (as used on Solaris 10).
39974         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
39975         lib/file-has-acl.c.
39976         (Depends-on): Add sys_stat, for S_ISLNK.
39977
39978 2007-03-19  Ben Pfaff  <blp@gnu.org>
39979
39980         * doc/gnulib.texi: Fix typos.
39981         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39982
39983 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39984
39985         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
39986         If size is zero here, buf must be zero.
39987
39988 2007-03-19  Simon Josefsson  <simon@josefsson.org>
39989
39990         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
39991         <bruno@clisp.org>.
39992
39993 2007-03-18  Bruno Haible  <bruno@clisp.org>
39994
39995         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
39996         Suggested by Eric Blake.
39997
39998 2007-03-18  Ben Pfaff  <blp@gnu.org>
39999
40000         * doc/relocatable.texi: Recommend using as prefix a directory
40001         that does not exist and will never be created.  Based on
40002         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40003         and others.
40004
40005 2007-03-17  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/fchownat.c: Include lchown.h.
40008
40009 2007-03-17  Bruno Haible  <bruno@clisp.org>
40010
40011         Fix endless loop when the given allocated size was > INT_MAX.
40012         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40013         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40014         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40015         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40016         * lib/sprintf.c (sprintf): Likewise.
40017
40018 2007-03-17  Bruno Haible  <bruno@clisp.org>
40019
40020         * tests/test-argp-2.sh (func_compare): Output a context diff.
40021
40022 2007-03-17  Bruno Haible  <bruno@clisp.org>
40023
40024         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40025         locale's decimal-point character.
40026
40027 2007-03-17  Bruno Haible  <bruno@clisp.org>
40028
40029         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40030         before comparing it. Needed because on some platforms (e.g. x86) a
40031         'long double' occupies less bytes than sizeof (long double).
40032
40033 2007-03-17  Bruno Haible  <bruno@clisp.org>
40034
40035         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40036         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40037         * tests/test-getaddrinfo.c (simple): Likewise.
40038         * tests/test-read-file.c (main): Likewise.
40039
40040 2007-03-17  Bruno Haible  <bruno@clisp.org>
40041
40042         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40043
40044 2007-03-17  Bruno Haible  <bruno@clisp.org>
40045
40046         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40047         unused variable.
40048
40049 2007-03-17  Bruno Haible  <bruno@clisp.org>
40050
40051         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40052         * tests/test-c-strncasecmp.c: Likewise.
40053
40054 2007-03-17  Bruno Haible  <bruno@clisp.org>
40055
40056         * modules/stdlib (Depends-on): Add unistd.
40057         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40058         Needed for MacOS X 10.3.
40059
40060 2007-03-17  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40063
40064 2007-03-17  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40067
40068 2007-03-17  Bruno Haible  <bruno@clisp.org>
40069
40070         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40071         to reflect files copied from gnulib (with or without modifications).
40072         Suggested by Jim Meyering.
40073
40074 2007-03-17  Eric Blake  <ebb9@byu.net>
40075
40076         * NEWS: Document stdlib change from 2007-02-18.
40077
40078 2007-03-17  Jim Meyering  <jim@meyering.net>
40079
40080         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40081         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40082         someone uses a name containing shell meta-characters.
40083         Reported by Alfred M. Szmidt.
40084
40085         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40086
40087 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40088
40089         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40090         and copy gettext configuration files only if configure.ac contains
40091         a use of AM_GNU_GETTEXT_VERSION.
40092
40093 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40094
40095         * build-aux/bootstrap (gnulib_name): New variable.
40096         (gnulib_tool_options): Use it.
40097
40098 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40099
40100         * tests/test-des.c: Use new namespace.
40101
40102 2007-03-15  Bruno Haible  <bruno@clisp.org>
40103
40104         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40105         Reported by James Youngman <jay@gnu.org>.
40106
40107 2007-03-15  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40110         declared prototype. Needed with cc on OSF/1 5.1.
40111
40112 2007-03-15  Bruno Haible  <bruno@clisp.org>
40113
40114         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40115         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40116         (struct gl_list_implementation): Add dispose_fn argument to the
40117         'create_empty', 'create' methods.
40118         (struct gl_list_impl_base): Add field 'dispose_fn'.
40119         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40120         argument.
40121         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40122         dispose_fn argument.
40123         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40124         dispose_fn on the dropped values.
40125         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40126         dispose_fn argument.
40127         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40128         dropped values.
40129         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40130         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40131         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40132         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40133         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40134         argument.
40135         (gl_tree_list_free): Call dispose_fn on the dropped values.
40136         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40137         the dropped values.
40138         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40139         Add dispose_fn argument.
40140         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40141         Call dispose_fn on the dropped values.
40142         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40143         Add dispose_fn argument.
40144         (gl_sublist_create): Initialize the 'dispose_fn' field.
40145         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40146         * tests/test-array_list.c (main): Update.
40147         * tests/test-carray_list.c (main): Update.
40148         * tests/test-avltree_list.c (main): Update.
40149         * tests/test-rbtree_list.c (main): Update.
40150         * tests/test-avltreehash_list.c (main): Update.
40151         * tests/test-rbtreehash_list.c (main): Update.
40152         * tests/test-linked_list.c (main): Update.
40153         * tests/test-linkedhash_list.c (main): Update.
40154         * tests/test-array_oset.c (main): Update.
40155
40156 2007-03-15  Bruno Haible  <bruno@clisp.org>
40157
40158         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40159         (gl_oset_create_empty): Add dispose_fn argument.
40160         (struct gl_oset_implementation): Add dispose_fn argument to
40161         'create_empty' method.
40162         (struct gl_oset_impl_base): Add dispose_fn field.
40163         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40164         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40165         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40166         values.
40167         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40168         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40169         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40170         dropped value.
40171         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40172         dropped value.
40173         * tests/test-array_oset.c (main): Update.
40174         * tests/test-avltree_oset.c (main): Update.
40175         * tests/test-rbtree_oset.c (main): Update.
40176         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40177
40178 2007-03-13  Bruno Haible  <bruno@clisp.org>
40179
40180         * tests/test-stdbool.c (i): Update after last patch.
40181
40182 2007-03-12  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40185         the iswprint macro. Needed on Solaris 2.5.1.
40186
40187 2007-03-12  Bruno Haible  <bruno@clisp.org>
40188
40189         * tests/test-printf-frexp.c (main): Declare x as volatile.
40190
40191 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40192
40193         * doc/gnulib.texi (Build robot for gnulib): New section.
40194
40195 2007-03-12  Jim Meyering  <jim@meyering.net>
40196
40197         * build-aux/bootstrap: New file.
40198         * build-aux/bootstrap.conf: New file, from coreutils.
40199
40200 2007-03-11  Bruno Haible  <bruno@clisp.org>
40201
40202         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40203
40204 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40205
40206         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40207         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40208         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40209
40210 2007-03-11  Bruno Haible  <bruno@clisp.org>
40211
40212         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40213         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40214
40215 2007-03-11  Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40218         formula. Needed for SunPRO C 5.0.
40219
40220 2007-03-11  Bruno Haible  <bruno@clisp.org>
40221
40222         * modules/long-options (Depends-on): Add getopt.
40223
40224 2007-03-11  Bruno Haible  <bruno@clisp.org>
40225
40226         * modules/modechange (Depends-on): Add stdbool.
40227
40228 2007-03-11  Bruno Haible  <bruno@clisp.org>
40229
40230         * modules/i-ring (Depends-on): Add stdbool.
40231
40232 2007-03-11  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/gc-des (Depends-on): Add stdbool.
40235
40236 2007-03-11  Bruno Haible  <bruno@clisp.org>
40237
40238         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40239
40240 2007-03-11  Bruno Haible  <bruno@clisp.org>
40241
40242         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40243
40244 2007-03-11  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40247
40248 2007-03-11  Bruno Haible  <bruno@clisp.org>
40249
40250         * lib/vasnprintf.c (sprintf): Undefine.
40251
40252 2007-03-11  Bruno Haible  <bruno@clisp.org>
40253
40254         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40255         initializers in SunPRO C and Compaq C compilers.
40256
40257 2007-03-11  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40260         decrementing code ANSI C compliant.
40261
40262 2007-03-11  Bruno Haible  <bruno@clisp.org>
40263
40264         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40265         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40266
40267 2007-03-11  Bruno Haible  <bruno@clisp.org>
40268
40269         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40270         <stdbool.h> substitute doesn't pass.
40271
40272 2007-03-11  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40275
40276 2007-03-11  Bruno Haible  <bruno@clisp.org>
40277
40278         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40279         script, for submission to autobuild.josefsson.org.
40280
40281 2007-03-10  Bruno Haible  <bruno@clisp.org>
40282
40283         * modules/canonicalize-lgpl-tests: New file.
40284         * tests/test-canonicalize-lgpl.sh: New file.
40285         * tests/test-canonicalize-lgpl.c: New file.
40286
40287         * modules/c-strcase-tests: New file.
40288         * tests/test-c-strcase.sh: New file.
40289         * tests/test-c-strcasecmp.c: New file.
40290         * tests/test-c-strncasecmp.c: New file.
40291
40292         * modules/atexit-tests: New file.
40293         * tests/test-atexit.sh: New file.
40294         * tests/test-atexit.c: New file.
40295
40296 2007-03-10  Bruno Haible  <bruno@clisp.org>
40297
40298         * tests/test-binary-io.sh: Use temporary filenames that are not so
40299         likely to clash with those of other tests (in a parallel make).
40300         * tests/test-binary-io.c: Likewise.
40301
40302 2007-03-10  Bruno Haible  <bruno@clisp.org>
40303
40304         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40305         fallback; use #error instead.
40306         Suggested by Simon Josefsson.
40307
40308 2007-03-10  Bruno Haible  <bruno@clisp.org>
40309
40310         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40311         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40312         first and the last.
40313
40314 2007-03-10  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40317
40318 2007-03-10  Bruno Haible  <bruno@clisp.org>
40319
40320         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40321         "make distcheck".
40322         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40323         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40324         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40325
40326 2007-03-10  Bruno Haible  <bruno@clisp.org>
40327
40328         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40329         variable.
40330         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40331         variable.
40332
40333 2007-03-09  Eric Blake  <ebb9@byu.net>
40334         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40335
40336         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40337         types are not being provided by gnulib.
40338         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40339         types are supported.
40340
40341 2007-03-10  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/stdio_.h (__attribute__): New macro.
40344         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40345         vsprintf): Specify __attribute__ __format__ for GCC.
40346         Suggested by Eric Blake.
40347
40348 2007-03-09  Bruno Haible  <bruno@clisp.org>
40349
40350         * modules/printf-posix-tests: New file.
40351         * tests/test-printf-posix.sh: New file.
40352         * tests/test-printf-posix.c: New file.
40353
40354         * modules/printf-posix: New file.
40355         * lib/printf.c: New file.
40356         * m4/printf-posix-rpl.m4: New file.
40357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40358         REPLACE_PRINTF.
40359         * lib/stdio_.h (printf): New declaration.
40360         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40361         ____strfmon____): New macros.
40362         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40363         REPLACE_PRINTF.
40364
40365 2007-03-09  Bruno Haible  <bruno@clisp.org>
40366
40367         * tests/test-vasnprintf-posix2.sh: New file.
40368         * tests/test-vasnprintf-posix2.c: New file.
40369         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40370         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40371         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40372
40373         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40374         a locale dependent decimal point, rather than always '.'.
40375
40376 2007-03-09  Eric Blake  <ebb9@byu.net>
40377
40378         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40379         spite of platforms like Tandem/NSK that define it to -1.
40380
40381 2007-03-08  Bruno Haible  <bruno@clisp.org>
40382
40383         * modules/vprintf-posix-tests: New file.
40384         * tests/test-vprintf-posix.sh: New file.
40385         * tests/test-vprintf-posix.c: New file.
40386         * tests/test-printf-posix.h: New file.
40387
40388         * modules/vprintf-posix: New file.
40389         * lib/vprintf.c: New file.
40390         * m4/vprintf-posix.m4: New file.
40391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40392         REPLACE_VPRINTF.
40393         * lib/stdio_.h (vprintf): New declaration.
40394         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40395         REPLACE_VPRINTF.
40396
40397 2007-03-08  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/fprintf-posix-tests: New file.
40400         * tests/test-fprintf-posix.sh: New file.
40401         * tests/test-fprintf-posix.c: New file.
40402
40403         * modules/fprintf-posix: New file.
40404         * lib/fprintf.c: New file.
40405         * m4/fprintf-posix.m4: New file.
40406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40407         REPLACE_FPRINTF.
40408         * lib/stdio_.h (fprintf): New declaration.
40409         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40410         REPLACE_FPRINTF.
40411
40412 2007-03-08  Bruno Haible  <bruno@clisp.org>
40413
40414         * modules/vfprintf-posix-tests: New file.
40415         * tests/test-vfprintf-posix.sh: New file.
40416         * tests/test-vfprintf-posix.c: New file.
40417         * tests/test-fprintf-posix.h: New file.
40418         * tests/test-fprintf-posix.out: New file.
40419
40420         * modules/vfprintf-posix: New file.
40421         * lib/vfprintf.c: New file.
40422         * m4/vfprintf-posix.m4: New file.
40423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40424         REPLACE_VFPRINTF.
40425         * lib/stdio_.h (vfprintf): New declaration.
40426         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40427         REPLACE_VFPRINTF.
40428
40429 2007-03-08  Bruno Haible  <bruno@clisp.org>
40430
40431         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40432
40433 2007-03-08  Bruno Haible  <bruno@clisp.org>
40434
40435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40436         instead of 'expr' invocations.
40437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40442         Suggested by Paul Eggert.
40443
40444 2007-03-08  Bruno Haible  <bruno@clisp.org>
40445
40446         * modules/fseterr-tests: New file.
40447         * tests/test-fseterr.c: New file.
40448
40449         * modules/fseterr: New file.
40450         * lib/fseterr.h: New file.
40451         * lib/fseterr.c: New file.
40452
40453 2007-03-08  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40456         * lib/getopt_.h: Likewise.
40457         * lib/mbswidth.h: Likewise.
40458         * lib/setenv.h: Likewise.
40459         * lib/vasnprintf.h: Likewise.
40460         * lib/vasprintf.h: Likewise.
40461         * lib/verror.h: Likewise.
40462         * lib/xsetenv.h: Likewise.
40463         * lib/xvasprintf.h: Likewise.
40464
40465 2007-03-08  Jim Meyering  <jim@meyering.net>
40466
40467         * users.txt: Add parted.
40468
40469         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40470
40471 2007-03-07  Bruno Haible  <bruno@clisp.org>
40472
40473         * m4/printf.m4: Make the shell script snippets copy&pastable.
40474
40475 2007-03-02  Bruno Haible  <bruno@clisp.org>
40476
40477         * lib/netinet_in_.h: New file.
40478         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40479         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40480         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40481         (Depends-on): Add absolute-header.
40482         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40483         into netinet/in.h.
40484
40485 2007-03-03  Bruno Haible  <bruno@clisp.org>
40486
40487         * lib/sys_select_.h: New file.
40488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40489         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40490         * modules/sys_select (Files): Add lib/sys_select_.h.
40491         (Depends-on): Add absolute-header.
40492         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40493         into sys/select.h.
40494
40495 2007-03-02  Bruno Haible  <bruno@clisp.org>
40496
40497         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40498         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40499         values.
40500         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40501         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40502         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40503         * modules/sys_socket (Depends-on): Add absolute-header.
40504         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40505         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40506         (Include): Remove requirement of inclusion of <sys/types.h>.
40507
40508 2007-03-02  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/byteswap_.h (bswap_32): Fix formula.
40511
40512 2007-03-06  Bruno Haible  <bruno@clisp.org>
40513
40514         * modules/sprintf-posix-tests: New file.
40515         * tests/test-sprintf-posix.c: New file.
40516
40517         * modules/sprintf-posix: New file.
40518         * lib/sprintf.c: New file.
40519         * m4/sprintf-posix.m4: New file.
40520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40521         REPLACE_SPRINTF.
40522         * lib/stdio_.h (sprintf): New declaration.
40523         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40524         REPLACE_SPRINTF.
40525
40526 2007-03-06  Bruno Haible  <bruno@clisp.org>
40527
40528         * modules/vsprintf-posix-tests: New file.
40529         * tests/test-vsprintf-posix.c: New file.
40530         * tests/test-sprintf-posix.h: New file.
40531
40532         * modules/vsprintf-posix: New file.
40533         * lib/vsprintf.c: New file.
40534         * m4/vsprintf-posix.m4: New file.
40535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40536         REPLACE_VSPRINTF.
40537         * lib/stdio_.h (vsprintf): New declaration.
40538         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40539         REPLACE_VSPRINTF.
40540
40541 2007-03-06  Bruno Haible  <bruno@clisp.org>
40542
40543         * modules/vsnprintf (Depend-on): Remove minmax.
40544
40545 2007-03-06  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/snprintf-posix-tests: New file.
40548         * tests/test-snprintf-posix.c: New file.
40549
40550         * modules/snprintf-posix: New file.
40551         * m4/snprintf-posix.m4: New file.
40552         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40553         gl_FUNC_SNPRINTF.
40554         (gl_FUNC_SNPRINTF): Invoke it.
40555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40556         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40557         is set.
40558         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40559
40560 2007-03-06  Bruno Haible  <bruno@clisp.org>
40561
40562         * modules/vsnprintf-posix-tests: New file.
40563         * tests/test-vsnprintf-posix.c: New file.
40564         * tests/test-snprintf-posix.h: New file.
40565
40566         * modules/vsnprintf-posix: New file.
40567         * m4/vsnprintf-posix.m4: New file.
40568         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40569         gl_FUNC_VSNPRINTF.
40570         (gl_FUNC_VSNPRINTF): Invoke it.
40571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40572         * lib/stdio_.h (vsnprintf): Define as a replacement if
40573         REPLACE_VSNPRINTF is set.
40574         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40575
40576 2007-03-06  Bruno Haible  <bruno@clisp.org>
40577
40578         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40580
40581 2007-03-06  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40584         (asinl): Declare also if HAVE_DECL_ASINL is set.
40585         (atanl): Declare also if HAVE_DECL_ATANL is set.
40586         (ceill): Declare also if HAVE_DECL_CEILL is set.
40587         (cosl): Declare also if HAVE_DECL_COSL is set.
40588         (expl): Declare also if HAVE_DECL_EXPL is set.
40589         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40590         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40591         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40592         (logl): Declare also if HAVE_DECL_LOGL is set.
40593         (sinl): Declare also if HAVE_DECL_SINL is set.
40594         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40595         (tanl): Declare also if HAVE_DECL_TANL is set.
40596         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40598         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40599         declaration of frexpl, ldexpl.
40600         * modules/printf-frexpl (Depends-on): Add math.
40601         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40602
40603 2007-03-05  Bruno Haible  <bruno@clisp.org>
40604
40605         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40606         frexpl and ldexpl are declared.
40607         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40608
40609 2007-03-05  Bruno Haible  <bruno@clisp.org>
40610
40611         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40612         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40613
40614 2007-03-05  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/stdio_.h: Include <stddef.h>.
40617
40618 2007-03-05  Bruno Haible  <bruno@clisp.org>
40619
40620         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40621
40622 2007-03-05  Bruno Haible  <bruno@clisp.org>
40623
40624         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40625         NetBSD 4, from Ralf Wildenhues.
40626
40627 2007-03-04  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/vasprintf.h: Update #if logic for the case when the functions
40630         exist but are overridden.
40631
40632 2007-03-04  Bruno Haible  <bruno@clisp.org>
40633
40634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40635         implementations: glibc-2.4 and MacOS X 10.3.
40636         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40637         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40638         * tests/test-vasprintf-posix.c (test_function): Likewise.
40639
40640 2007-03-04  Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/vasprintf-posix-tests: New file.
40643         * tests/test-vasprintf-posix.c: New file.
40644
40645         * modules/vasprintf-posix: New file.
40646         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40647         defined.
40648         * m4/vasprintf-posix.m4: New file.
40649         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40650         gl_FUNC_VASPRINTF.
40651         (gl_FUNC_VASPRINTF): Invoke it.
40652         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40653         here.
40654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40655
40656 2007-03-04  Bruno Haible  <bruno@clisp.org>
40657
40658         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40659         REPLACE_GETTIMEOFDAY.
40660         * modules/sys_time (Makefile.am): Likewise.
40661         * m4/sys_time_h.m4: Likewise.
40662         * m4/gettimeofday.m4: Likewise.
40663
40664 2007-03-04  Bruno Haible  <bruno@clisp.org>
40665
40666         * modules/vasnprintf-posix-tests: New file.
40667         * tests/test-vasnprintf-posix.c: New file.
40668
40669         * modules/vasnprintf-posix: New file.
40670         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40671         printf-frexpl.h.
40672         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40673         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40674         REPLACE_VASNPRINTF is defined.
40675         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40676         gl_FUNC_VASNPRINTF.
40677         (gl_FUNC_VASNPRINTF): Invoke it.
40678         * m4/vasnprintf-posix.m4: New file.
40679         * m4/printf.m4: New file.
40680
40681 2007-03-04  Bruno Haible  <bruno@clisp.org>
40682
40683         Compile progreloc.c only if --enable-relocatable is specified.
40684         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40685         if --enable-relocatable was specified.
40686         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40687         lib_SOURCES.
40688
40689 2007-03-04  Jim Meyering  <jim@meyering.net>
40690
40691         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40692         Use it consistently, rather than enumerating errno constants.
40693
40694 2007-03-04  Bruno Haible  <bruno@clisp.org>
40695
40696         * modules/xvasprintf-tests: New file.
40697         * tests/test-xvasprintf.c: New file.
40698
40699         * modules/vasprintf-tests: New file.
40700         * tests/test-vasprintf.c: New file.
40701
40702         * modules/vasnprintf-tests: New file.
40703         * tests/test-vasnprintf.c: New file.
40704
40705         * modules/vsnprintf-tests: New file.
40706         * tests/test-vsnprintf.c: New file.
40707
40708         * modules/snprintf-tests: New file.
40709         * tests/test-snprintf.c: New file.
40710
40711 2007-03-04  Bruno Haible  <bruno@clisp.org>
40712
40713         Compile relocatable.c only if --enable-relocatable is specified.
40714         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40715         gl_RELOCATABLE_LIBRARY.
40716         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40717         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40718         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40719         gl_RELOCATABLE_LIBRARY.
40720         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40721         (Makefile.am): Remove lib_SOURCES.
40722         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40723         gl_RELOCATABLE_LIBRARY.
40724         (Makefile.am): Remove lib_SOURCES.
40725         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40726         always.
40727         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40728         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40729
40730 2007-03-04  Bruno Haible  <bruno@clisp.org>
40731
40732         * modules/argmatch-tests: New file.
40733         * tests/test-argmatch.c: New file.
40734
40735         * tests/test-allocsa.c (main): Halve the number of loop runs.
40736
40737         * modules/alloca-opt-tests: New file.
40738         * tests/test-alloca-opt.c: New file.
40739
40740 2007-03-04  Jim Meyering  <jim@meyering.net>
40741
40742         Work around difference between Linux ACLs and Solaris 10 ZFS.
40743         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40744         for EINVAL.
40745
40746 2007-03-03  Bruno Haible  <bruno@clisp.org>
40747
40748         * modules/relocatable-prog (Depends-on): Add back progreloc's
40749         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40750
40751 2007-03-03  Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40754         * modules/relocatable-lib: New file.
40755
40756 2007-03-03  Bruno Haible  <bruno@clisp.org>
40757
40758         * modules/relocatable-prog: Renamed from modules/relocatable.
40759         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40760
40761 2007-03-03  Bruno Haible  <bruno@clisp.org>
40762
40763         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40764         m4/relocatable-lib.m4.
40765         (Depends-on): Remove 'relocatable'.
40766         (configure.ac): Add gl_RELOCATABLE_NOP.
40767
40768 2007-03-03  Bruno Haible  <bruno@clisp.org>
40769
40770         * modules/relocatable-prog-wrapper: New file.
40771         * modules/relocatable (Depends-on): Add it. Remove all other
40772         dependencies except progname.
40773         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40774
40775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40776         (gl_FUNC_STRERROR): Nop.
40777         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40778
40779         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40780         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40781
40782         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40783         (gl_FUNC_READLINK): Update.
40784
40785         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40786
40787 2007-03-03  Bruno Haible  <bruno@clisp.org>
40788
40789         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40790         * modules/xreadlink (Depends-on): Add unistd.
40791         * modules/xreadlink-with-size (Depends-on): Likewise.
40792
40793 2007-03-03  Bruno Haible  <bruno@clisp.org>
40794
40795         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40796         extracted from gt_FUNC_SETENV.
40797         (gt_FUNC_SETENV): Remove macro.
40798         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40799         remove gt_FUNC_SETENV.
40800
40801 2007-03-03  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40804         ENABLE_RELOCATABLE here.
40805         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40806
40807 2007-03-03  Bruno Haible  <bruno@clisp.org>
40808
40809         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40810         * tests/test-rbtreehash_list.c: Include progname.h.
40811         (main): Call set_program_name.
40812
40813         * modules/rbtree-oset-tests (Depends-on): Add progname.
40814         * tests/test-rbtree_oset.c: Include progname.h.
40815         (main): Call set_program_name.
40816
40817         * modules/rbtree-list-tests (Depends-on): Add progname.
40818         * tests/test-rbtree_list.c: Include progname.h.
40819         (main): Call set_program_name.
40820
40821         * modules/linked-list-tests (Depends-on): Add progname.
40822         * tests/test-linked_list.c: Include progname.h.
40823         (main): Call set_program_name.
40824
40825 2007-03-03  Bruno Haible  <bruno@clisp.org>
40826
40827         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40828         All uses of __restrict changed to _Restrict_.
40829         * lib/glob_.h (__restrict): Remove macro.
40830
40831 2007-03-02  Bruno Haible  <bruno@clisp.org>
40832
40833         * modules/gettext (configure.ac): Require gettext infrastructure
40834         from version 0.16.1.
40835
40836 2007-03-02  Bruno Haible  <bruno@clisp.org>
40837
40838         * modules/linkedhash-list-tests (Depends-on): Add progname.
40839         * tests/test-linkedhash_list.c: Include progname.h.
40840         (main): Call set_program_name.
40841
40842         * modules/carray-list-tests (Depends-on): Add progname.
40843         * tests/test-carray_list.c: Include progname.h.
40844         (main): Call set_program_name.
40845
40846         * modules/avltreehash-list-tests (Depends-on): Add progname.
40847         * tests/test-avltreehash_list.c: Include progname.h.
40848         (main): Call set_program_name.
40849
40850         * modules/avltree-oset-tests (Depends-on): Add progname.
40851         * tests/test-avltree_oset.c: Include progname.h.
40852         (main): Call set_program_name.
40853
40854         * modules/avltree-list-tests (Depends-on): Add progname.
40855         * tests/test-avltree_list.c: Include progname.h.
40856         (main): Call set_program_name.
40857
40858         * modules/array-oset-tests (Depends-on): Add progname.
40859         * tests/test-array_oset.c: Include progname.h.
40860         (main): Call set_program_name.
40861
40862         * modules/array-list-tests (Depends-on): Add progname.
40863         * tests/test-array_list.c: Include progname.h.
40864         (main): Call set_program_name.
40865
40866         * modules/argp-tests (Depends-on): Add progname.
40867         * tests/test-argp.c: Include argp.h first. Include progname.h.
40868         (main): Call set_program_name.
40869
40870 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40871
40872         * doc/gnulib-tool.texi (Initial import): Reword description of
40873         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40874         limited effect even if defined after the first system include.
40875
40876 2007-03-01  Bruno Haible  <bruno@clisp.org>
40877
40878         * build-aux/config.libpath: Update to libtool-1.5.22.
40879         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40880
40881 2007-03-01  Bruno Haible  <bruno@clisp.org>
40882
40883         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
40884         foo_CFLAGS.
40885         Reported by Ralf Wildenhues.
40886
40887 2007-03-01  Bruno Haible  <bruno@clisp.org>
40888
40889         * build-aux/install-reloc: Remove object files left over by some
40890         compilers.
40891         Reported by Ralf Wildenhues.
40892
40893 2007-03-01  Bruno Haible  <bruno@clisp.org>
40894
40895         * build-aux/install-reloc: Break long lines.
40896
40897 2007-03-01  Bruno Haible  <bruno@clisp.org>
40898
40899         * doc/relocatable.texi: Document that it may not work on OpenBSD.
40900         Reported by Ralf Wildenhues.
40901
40902 2007-03-01  Bruno Haible  <bruno@clisp.org>
40903
40904         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
40905         include ordering constraints.
40906
40907 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40908
40909         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
40910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
40911         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
40912         as another example.
40913         * lib/time_.h: Fix misspelling.
40914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40915         Require gl_HEADER_TIME_H_DEFAULTS.
40916         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
40917         * m4/time_r.m4 (gl_TIME_R): Likewise.
40918         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
40919
40920 2007-03-01  Bruno Haible  <bruno@clisp.org>
40921
40922         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
40923         * m4/utimens.m4 (gl_UTIMENS): Likewise.
40924
40925 2007-03-01  Jim Meyering  <jim@meyering.net>
40926
40927         * modules/xreadlink (Maintainer): Add my name.
40928         * modules/xreadlink-with-size (Depends-on): Alphabetize.
40929
40930 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
40931             Bruno Haible  <bruno@clisp.org>
40932
40933         * build-aux/install-reloc: Compile also c-ctype.c.
40934         * build-aux/relocatable.sh.in: New file.
40935         * doc/relocatable.texi: New file.
40936         * doc/relocatable-maint.texi: New file.
40937         * doc/gnulib.texi: Include relocatable-maint.texi.
40938         * lib/progreloc.c: Include unistd.h unconditionally.
40939         * lib/relocwrapper.c: Include unistd.h unconditionally.
40940         Include c-ctype.h.
40941         (add_dotbin): Use c_tolower.
40942         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
40943         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
40944         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
40945         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
40946         to m4/relocatable-lib.m4.
40947         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
40948         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
40949         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
40950         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
40951         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
40952         * modules/relocatable: New file.
40953         * modules/relocatable-lib: New file.
40954         * modules/relocatable-script: New file.
40955
40956 2007-02-28  Bruno Haible  <bruno@clisp.org>
40957
40958         Import --enable-relocatable infrastructure.
40959         * build-aux/config.libpath: New file, from GNU gettext.
40960         * build-aux/install-reloc: New file, from GNU gettext.
40961         * build-aux/reloc-ldflags: New file, from GNU gettext.
40962         * lib/relocatable.h: New file, from GNU gettext.
40963         * lib/relocatable.c: New file, from GNU gettext.
40964         * lib/relocwrapper.c: New file, from GNU gettext.
40965         * m4/relocatable.m4: New file, from GNU gettext.
40966
40967 2007-02-28  Bruno Haible  <bruno@clisp.org>
40968
40969         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
40970
40971         * modules/xreadlink: New file, from GNU gettext with modifications.
40972         * lib/xreadlink.c: New file, from GNU gettext.
40973         * lib/xreadlink.h: Add comments.
40974         (xreadlink): New declaration.
40975
40976         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
40977         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
40978         lib/xreadlink-with-size.c.
40979         (configure.ac): Remove gl_XREADLINK invocation.
40980         (Makefile.am): Augment lib_SOURCES.
40981         * m4/xreadlink.m4: Remove file.
40982         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
40983         (xreadlink_with_size): Renamed from xreadink.
40984         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
40985         * modules/canonicalize (Depends-on): Replace xreadlink with
40986         xreadlink-with-size.
40987         * lib/canonicalize.c (canonicalize_filename_mode): Update.
40988
40989 2007-02-25  Jim Meyering  <jim@meyering.net>
40990
40991         * build-aux/announce-gen: When complaining about excess arguments,
40992         list them.
40993
40994 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40995
40996         * README: Document signed integer overflow situation more
40997         accurately.
40998
40999 2007-02-25  Bruno Haible  <bruno@clisp.org>
41000
41001         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41002         'a' or 'A' conversion.
41003
41004 2007-02-25  Bruno Haible  <bruno@clisp.org>
41005
41006         * modules/filename: Renamed from modules/pathname.
41007         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41008         lib/concatpath.c with lib/concat-filename.c.
41009         (Makefile.am): Update.
41010         (Include): Replace pathname.h with filename.h.
41011         * lib/filename.h: Renamed from lib/pathname.h.
41012         (concatenated_filename): Renamed from concatenated_pathname.
41013         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41014         (concatenated_filename): Renamed from concatenated_pathname.
41015         * lib/findprog.c: Include filename.h instead of pathname.h.
41016         (find_in_path): Update.
41017         * lib/javacomp.c: Include filename.h instead of pathname.h.
41018         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41019         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41020         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41021         is_oldgcj_14_13_usable, is_javac_usable): Update.
41022         * lib/javaexec.c: Include filename.h instead of pathname.h.
41023         (execute_java_class): Update.
41024         * modules/findprog: Update.
41025         * modules/javacomp: Update.
41026         * modules/javaexec: Update.
41027         * MODULES.html.sh (File system functions): Add 'filename', remove
41028         'pathname'.
41029
41030 2007-02-25  Bruno Haible  <bruno@clisp.org>
41031
41032         * modules/printf-frexpl-tests: New file.
41033         * tests/test-printf-frexpl.c: New file.
41034
41035         * modules/printf-frexpl: New file.
41036         * lib/printf-frexpl.h: New file.
41037         * lib/printf-frexpl.c: New file.
41038         * m4/printf-frexpl.m4: New file.
41039
41040 2007-02-25  Bruno Haible  <bruno@clisp.org>
41041
41042         * modules/printf-frexp-tests: New file.
41043         * tests/test-printf-frexp.c: New file.
41044
41045         * modules/printf-frexp: New file.
41046         * lib/printf-frexp.h: New file.
41047         * lib/printf-frexp.c: New file.
41048         * m4/printf-frexp.m4: New file.
41049
41050 2007-02-25  Bruno Haible  <bruno@clisp.org>
41051
41052         Assume automake >= 1.10 for the tests.
41053         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41054         * modules/arctwo-tests: Likewise.
41055         * modules/argp-tests: Likewise.
41056         * modules/avltree-list-tests: Likewise.
41057         * modules/avltree-oset-tests: Likewise.
41058         * modules/avltreehash-list-tests: Likewise.
41059         * modules/carray-list-tests: Likewise.
41060         * modules/crc-tests: Likewise.
41061         * modules/des-tests: Likewise.
41062         * modules/gc-arcfour-tests: Likewise.
41063         * modules/gc-arctwo-tests: Likewise.
41064         * modules/gc-des-tests: Likewise.
41065         * modules/gc-hmac-md5-tests: Likewise.
41066         * modules/gc-hmac-sha1-tests: Likewise.
41067         * modules/gc-md2-tests: Likewise.
41068         * modules/gc-md4-tests: Likewise.
41069         * modules/gc-md5-tests: Likewise.
41070         * modules/gc-pbkdf2-sha1-tests: Likewise.
41071         * modules/gc-rijndael-tests: Likewise.
41072         * modules/gc-sha1-tests: Likewise.
41073         * modules/gc-tests: Likewise.
41074         * modules/getaddrinfo-tests: Likewise.
41075         * modules/hmac-md5-tests: Likewise.
41076         * modules/hmac-sha1-tests: Likewise.
41077         * modules/linked-list-tests: Likewise.
41078         * modules/linkedhash-list-tests: Likewise.
41079         * modules/lock-tests: Likewise.
41080         * modules/md2-tests: Likewise.
41081         * modules/md4-tests: Likewise.
41082         * modules/md5-tests: Likewise.
41083         * modules/rbtree-list-tests: Likewise.
41084         * modules/rbtree-oset-tests: Likewise.
41085         * modules/rbtreehash-list-tests: Likewise.
41086         * modules/read-file-tests: Likewise.
41087         * modules/rijndael-tests: Likewise.
41088         * modules/stdint-tests: Likewise.
41089         * modules/tls-tests: Likewise.
41090
41091 2007-02-24  Bruno Haible  <bruno@clisp.org>
41092
41093         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41094         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41095         function; instead check whether isnan with a double argument links.
41096         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41097         function; instead check whether isnan with a 'long double' argument
41098         links.
41099         Reported by Eric Blake <ebb9@byu.net>.
41100
41101 2007-02-24  Bruno Haible  <bruno@clisp.org>
41102
41103         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41104         defined.
41105         * lib/isnanl.c: Remove all code. Just include isnan.c.
41106         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41107
41108 2007-02-25  Jim Meyering  <jim@meyering.net>
41109
41110         Avoid conflicting types for 'unsetenv' on FreeBSD.
41111         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41112         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41113         in stdlib.h.
41114
41115 2007-02-24  Bruno Haible  <bruno@clisp.org>
41116
41117         * modules/isnanl-nolibm-tests: New file.
41118         * tests/test-isnanl.c: New file.
41119
41120         * modules/isnanl-nolibm: New file.
41121         * lib/isnanl.h: New file.
41122         * lib/isnanl.c: New file.
41123         * m4/isnanl.m4: New file.
41124
41125 2007-02-24  Bruno Haible  <bruno@clisp.org>
41126
41127         * modules/isnan-nolibm-tests: New file.
41128         * tests/test-isnan.c: New file.
41129
41130         * modules/isnan-nolibm: New file.
41131         * lib/isnan.h: New file.
41132         * lib/isnan.c: New file.
41133         * m4/isnan.m4: New file.
41134
41135 2007-02-24  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41138         assume that an exponent fits in 20 bits.
41139
41140 2007-02-24  Jim Meyering  <jim@meyering.net>
41141
41142         * m4/regex.m4: Update the description of the configure-time option,
41143         --without-included-regex, to state accurately what the defaults are,
41144         and perhaps to give people an idea why using this option is risky.
41145
41146 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41147
41148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41149         loops on small arguments.  This attempts to avoid the problem
41150         Bruno Haible reported for AIX 4.3.2 in
41151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41152
41153 2007-02-23  Bruno Haible  <bruno@clisp.org>
41154
41155         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41156         Needed for help2man.
41157
41158 2007-02-23  Karl Berry  <karl@gnu.org>
41159
41160         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41161         exists, foo.h should be cvs-ignored, not committed.
41162
41163 2007-02-23  Eric Blake  <ebb9@byu.net>
41164
41165         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41166         * lib/stat-time.h (includes): Likewise.
41167         * lib/utimecmp.c (includes): Likewise.
41168         * lib/utimens.h (includes): Likewise.
41169         * lib/getdate.y (includes): Also include "timespec.h" for use
41170         internal to the module.
41171         * modules/utimens (Depends-on): Revert yesterday's patch.
41172         * modules/nanosleep (Depends-on): Add missing dependency.
41173
41174 2007-02-22  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/glob.c: Don't include getlogin_r.h.
41177
41178 2007-02-22  Jim Meyering  <jim@meyering.net>
41179
41180         * modules/utimens (Depends-on): Add timespec, required for
41181         utimens.h's inclusion of timespec.h.
41182
41183 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41184
41185         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41186         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41187         Schwab in
41188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41189         I'll try to think of a better way to fix the Solaris problem.
41190
41191         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41192         like glibc; on Solaris 10, it fails with errno == EINVAL.
41193         POSIX says the behavior is unspecified if the first argument is NULL,
41194         so play it safe and never pass NULL to the system getcwd.
41195
41196 2007-02-21  Jim Meyering  <jim@meyering.net>
41197
41198         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41199         of gettimeofday.  It would conflict with the one now always
41200         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41201         an IRIX 6.5 build failure.
41202
41203 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41204
41205         Minor fixups to port to Solaris 10 with Sun C 5.8.
41206         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41207         * modules/getcwd (Depends-on): Add dirfd.
41208         * lib/putenv.c (putenv): #undef it.
41209         (rpl_putenv): New decl.
41210         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41211
41212 2007-02-20  Bruno Haible  <bruno@clisp.org>
41213
41214         * modules/stdio-tests: New file.
41215         * tests/test-stdio.c: New file.
41216
41217         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41218         (Depends-on): Add stdio.
41219         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41220         (Include): Use <stdio.h> instead of vsnprintf.h.
41221         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41222         HAVE_DECL_VSNPRINTF.
41223         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41224
41225         * modules/snprintf (Files): Remove lib/snprintf.h.
41226         (Depends-on): Add stdio.
41227         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41228         (Include): Use <stdio.h> instead of snprintf.h.
41229         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41230         HAVE_DECL_SNPRINTF.
41231         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41232         * lib/getaddrinfo.c: Likewise.
41233
41234         * modules/stdio: New file.
41235         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41236         * lib/snprintf.h: Remove file.
41237         * lib/vsnprintf.h: Remove file.
41238         * lib/.cppi-disable: Remove snprintf.h.
41239         * m4/stdio_h.m4: New file.
41240         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41241
41242 2007-02-20  Jim Meyering  <jim@meyering.net>
41243
41244         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41245         used by e.g., mingw.  From Bruno Haible.
41246
41247 2007-02-19  Bruno Haible  <bruno@clisp.org>
41248
41249         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41250         warnings.
41251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41252
41253 2007-02-19  Bruno Haible  <bruno@clisp.org>
41254
41255         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41256         from mingw users.
41257
41258 2007-02-19  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41261         warnings.
41262         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41263
41264 2007-02-19  Jim Meyering  <jim@meyering.net>
41265
41266         Don't use FD after a successful "fdopendir (fd)".
41267         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41268         Reset it by calling dirfd on the just-obtained DIR*.
41269
41270         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41271         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41272
41273 2007-02-18  Bruno Haible  <bruno@clisp.org>
41274
41275         * lib/readlink.c: Include <unistd.h>.
41276         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41277         HAVE_READLINK.
41278         * modules/readlink (Depends-on): Add unistd.
41279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41280         (Include): Add <unistd.h>.
41281
41282         * lib/getlogin_r.h: Remove file.
41283         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41284         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41285         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41286         HAVE_DECL_GETLOGIN_R.
41287         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41288         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41289         (Include): Use <unistd.h> instead of getlogin_r.h.
41290
41291         * lib/getcwd.h: Remove file.
41292         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41293         * lib/xgetcwd.c: Likewise.
41294         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41295         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41296         * modules/getcwd (Files): Remove lib/getcwd.h.
41297         (Depends-on): Add unistd.
41298         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41299         (Include): Use <unistd.h> instad of getcwd.h.
41300
41301         * lib/ftruncate.c: Include <unistd.h> first.
41302         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41303         Set HAVE_FTRUNCATE.
41304         * modules/ftruncate (Depends-on): Add unistd.
41305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41306
41307         * lib/fchdir.c: Include <unistd.h> first.
41308         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41309         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41310         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41311         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41312         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41313
41314         * lib/dup2.c: Include <unistd.h> first.
41315         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41316         HAVE_DUP2.
41317         * modules/dup2 (Depends-on): Add unistd.
41318         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41319
41320         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41321         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41322         REPLACE_CHOWN. Don't define chown as a macro here.
41323         * modules/chown (Depends-on): Add unistd.
41324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41325
41326         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41327         Add definition for GL_LINK_WARNING.
41328         (chown, dup2): New declarations.
41329         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41330         link warning.
41331         (ftruncate): New declaration.
41332         (getcwd): New declaration, taken from old getcwd.h.
41333         (getlogin_r): New declaration, taken from old getlogin_r.h.
41334         (readlink): New declaration.
41335         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41336         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41337         (gl_PREREQ_UNISTD): Remove macro.
41338         (gl_UNISTD_MODULE_INDICATOR): New macro.
41339         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41340         many new variables. Don't set UNISTD_H.
41341         * modules/unistd (Description): Change.
41342         (Depends-on): Add link-warning.
41343         (configure.ac): Update.
41344         (Makefile.am): Create unistd.h always. Substitute many new variables
41345         into it.
41346
41347 2007-02-18  Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41350         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41351         HAVE_GETSUBOPT.
41352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41353         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41354         * lib/getsubopt.h: Remove file.
41355         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41356         (Depends-on): Add stdlib.
41357         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41358         (Includes): Use <stdlib.h> instead of getsubopt.h.
41359         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41360         Set HAVE_GETSUBOPT.
41361         * lib/getsubopt.c: Don't include getsubopt.h.
41362
41363 2007-02-18  Bruno Haible  <bruno@clisp.org>
41364
41365         * modules/fchdir (Depends-on): Add dup2.
41366
41367 2007-02-18  Bruno Haible  <bruno@clisp.org>
41368
41369         * lib/stdlib_.h: Handle glibc's special invocation convention
41370         specially.
41371
41372 2007-02-18  Bruno Haible  <bruno@clisp.org>
41373
41374         * modules/stdlib-tests: New file.
41375         * tests/test-stdlib.c: New file.
41376
41377         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41378         (Depends-on): Add stdlib.
41379         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41380         (Includes): Use <stdlib.h> instead of mkstemp.h.
41381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41382         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41383         * lib/mkstemp.c: Don't include mkstemp.h.
41384         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41385         * lib/stdlib--.h: Don't include mkstemp.h.
41386
41387         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41388         (Depends-on): Add stdlib.
41389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41390         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41391         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41392         HAVE_MKDTEMP.
41393         * lib/mkdtemp.c: Don't include mkdtemp.h.
41394         * lib/clean-temp.c: Don't include mkdtemp.h.
41395
41396         * modules/exit (Files): Remove lib/exit.h.
41397         (Depends-on): Add stdlib.
41398         (Makefile.am): Remove lib_SOURCES.
41399         (Include): Use <stdlib.h> instead of exit.h.
41400         * lib/argmatch.c: Don't include exit.h.
41401         * lib/execute.c: Likewise.
41402         * lib/pagealign_alloc.c: Likewise.
41403         * lib/pipe.c: Likewise.
41404         * lib/wait-process.c: Likewise.
41405         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41406         * lib/exitfail.c: Likewise.
41407         * lib/savewd.c: Likewise.
41408         * lib/xsetenv.c: Likewise.
41409
41410         * modules/stdlib: New file.
41411         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41412         and extra comments about mkstemp().
41413         * lib/exit.h: Remove file.
41414         * lib/mkdtemp.h: Remove file.
41415         * lib/mkstemp.h: Remove file.
41416         * m4/stdlib_h.m4: New file.
41417         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41418
41419 2007-02-18  Bruno Haible  <bruno@clisp.org>
41420
41421         * modules/math-tests: New file.
41422         * tests/test-math.c: New file.
41423
41424         * modules/math: New file.
41425         * modules/mathl (Files): Remove lib/mathl.h.
41426         (Depends-on): Add math.
41427         (Makefile.am): Don't mention mathl.h.
41428         (Include): Use <math.h> instead of mathl.h.
41429         * lib/math_.h: New file.
41430         * lib/mathl.h: Remove file.
41431         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41432         mathl.h.
41433         * lib/asinl.c: Likewise.
41434         * lib/atanl.c: Likewise.
41435         * lib/ceill.c: Likewise.
41436         * lib/cosl.c: Likewise.
41437         * lib/expl.c: Likewise.
41438         * lib/floorl.c: Likewise.
41439         * lib/frexpl.c: Likewise.
41440         * lib/ldexpl.c: Likewise.
41441         * lib/logl.c: Likewise.
41442         * lib/sincosl.c: Likewise.
41443         * lib/sinl.c: Likewise.
41444         * lib/sqrtl.c: Likewise.
41445         * lib/tanl.c: Likewise.
41446         * lib/trigl.c: Likewise.
41447         * m4/math_h.m4: New file.
41448         * MODULES.html.sh (Mathematics): Add math.
41449
41450 2007-02-17  Bruno Haible  <bruno@clisp.org>
41451
41452         * modules/wctype-tests: New file.
41453         * tests/test-wctype.c: New file.
41454
41455         * modules/wchar-tests: New file.
41456         * tests/test-wchar.c: New file.
41457
41458         * modules/unistd-tests: New file.
41459         * tests/test-unistd.c: New file.
41460
41461         * modules/time-tests: New file.
41462         * tests/test-time.c: New file.
41463
41464         * modules/sysexits-tests: New file.
41465         * tests/test-sysexits.c: New file.
41466
41467         * modules/sys_time-tests: New file.
41468         * tests/test-sys_time.c: New file.
41469
41470         * modules/sys_stat-tests: New file.
41471         * tests/test-sys_stat.c: New file.
41472
41473         * modules/sys_socket-tests: New file.
41474         * tests/test-sys_socket.c: New file.
41475
41476         * modules/sys_select-tests: New file.
41477         * tests/test-sys_select.c: New file.
41478
41479         * modules/string-tests: New file.
41480         * tests/test-string.c: New file.
41481
41482         * modules/stdbool-tests: New file.
41483         * tests/test-stdbool.c: New file.
41484
41485         * modules/netinet_in-tests: New file.
41486         * tests/test-netinet_in.c: New file.
41487
41488         * modules/inttypes-tests: New file.
41489         * tests/test-inttypes.c: New file.
41490
41491         * modules/fcntl-tests: New file.
41492         * tests/test-fcntl.c: New file.
41493
41494         * modules/byteswap-tests: New file.
41495         * tests/test-byteswap.c: New file.
41496
41497         * modules/arpa_inet-tests: New file.
41498         * tests/test-arpa_inet.c: New file.
41499
41500 2007-02-17  Bruno Haible  <bruno@clisp.org>
41501
41502         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41503         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41504         if the corresponding module is not enabled. Emit link warnings if
41505         the function is used nevertheless.
41506         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41507         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41508         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41509         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41510         * modules/inttypes (Depends-on): Add link-warning.
41511         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41512         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41513         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41514         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41515         * modules/imaxdiv (configure.ac): Likewise.
41516         * modules/strtoimax (configure.ac): Likewise.
41517         * modules/strtoumax (configure.ac): Likewise.
41518
41519 2007-02-17  Bruno Haible  <bruno@clisp.org>
41520
41521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41522         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41523         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41524         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41525
41526 2007-02-17  Bruno Haible  <bruno@clisp.org>
41527
41528         * modules/link-warning: New file.
41529         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41530         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41531         * modules/string (Depends-on): Add link-warning.
41532         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41533         string.h.
41534         * MODULES.html.sh (Support for building libraries and executables): Add
41535         link-warning.
41536
41537 2007-02-17  Bruno Haible  <bruno@clisp.org>
41538
41539         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41540         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41541         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41542         long lines.
41543
41544 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41545             Bruno Haible  <bruno@clisp.org>
41546
41547         * modules/tmpfile: New file.
41548         * lib/tmpfile.c: New file.
41549         * m4/tmpfile.m4: New file.
41550         * MODULES.html.sh (func_all_modules): New section "Input/output".
41551
41552 2007-02-15  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41555         (supports_delete_on_close): New function.
41556         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41557
41558 2007-02-14  Bruno Haible  <bruno@clisp.org>
41559
41560         * modules/mbspcasecmp-tests: New file.
41561         * tests/test-mbspcasecmp.sh: New file.
41562         * tests/test-mbspcasecmp.c: New file.
41563
41564         New module mbspcasecmp.
41565         * modules/mbspcasecmp: New file.
41566         * lib/mbspcasecmp.c: New file.
41567         * lib/string_.h (strncasecmp): Change warning message.
41568         (mbspcasecmp): New declaration.
41569         * m4/mbspcasecmp.m4: New file.
41570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41571         GNULIB_MBSPCASECMP.
41572         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41573         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41574
41575 2007-02-14  Bruno Haible  <bruno@clisp.org>
41576
41577         * modules/mbsncasecmp-tests: New file.
41578         * tests/test-mbsncasecmp.sh: New file.
41579         * tests/test-mbsncasecmp.c: New file.
41580
41581         New module mbsncasecmp.
41582         * modules/mbsncasecmp: New file.
41583         * lib/mbsncasecmp.c: New file.
41584         * lib/string_.h (mbsncasecmp): New declaration.
41585         * m4/mbsncasecmp.m4: New file.
41586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41587         GNULIB_MBSNCASECMP.
41588         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41589         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41590
41591 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41592
41593         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41594         Verify that it doesn't overlap with our flags.
41595         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41596         do not have the desired effect in multibyte locales; instead, use
41597         mbscasecmp.
41598         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41599         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41600         we don't require GNU fnmatch ourselves (if our users require it, they
41601         should do so explicitly).
41602
41603         Fix regex code so it doesn't rely on strcasecmp.
41604         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41605         Otherwise, include gnulib's langinfo.h.
41606         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41607         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41608         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41609         * modules/regex (FILES): Remove m4/codeset.m4.
41610         (Depends-on): Add localcharset.  Remove strcase.
41611
41612 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41613
41614         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41615         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41616
41617 2007-02-13  Bruno Haible  <bruno@clisp.org>
41618
41619         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41621
41622 2007-02-12  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41625         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41626         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41627         time warning rather than a link error.
41628
41629 2007-02-12  Bruno Haible  <bruno@clisp.org>
41630
41631         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41634
41635 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41636
41637         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41638         args, not 2.
41639
41640 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41641
41642         New module 'time', so that apps can include <time.h> as per
41643         POSIX and GNU instead of separate include files like time_r.h
41644         and timegm.h.  This implementation tries out a simpler approach
41645         for replacing decls in standard include files (as compared to
41646         the string module), somewhat as an experiment.
41647
41648         * config/srclist.txt: Comment out mktime.c for now.
41649         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41650         since it doesn't apply any more.  Use generic wording instead.
41651         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41652         'time'.
41653         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41654         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41655         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41656         Don't include <sys/types.h>; no longer needed since we assume C89.
41657         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41658         * lib/strftime.c: Likewise.
41659         * lib/time_r.c: Likewise.
41660         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41661         * lib/nanosleep.c: Include <time.h> first, to check interface.
41662         * lib/strptime.c: Likewise.
41663         * lib/time_r.c: Likewise.
41664         * lib/timegm.c: Likewise.
41665         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41666         needed.
41667         * lib/timegm.c: Don't include timegm.h; no longer needed.
41668         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41669         time.h now handles any problems in that area.
41670         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41671         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41672         that time.h defines struct timespec.
41673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41674         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41675         handles that.
41676         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41677         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41678         needed.  Set REPLACE_LOCALTIME.
41679         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41680         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41681         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41682         nanosleep; time_h.m4 now does that.  Don't require
41683         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41684         module handles this now.
41685         * modules/getdate (Depends-on): Remove timespec.  Add time.
41686         * modules/nanosleep (Depends-on): Likewise.
41687         * modules/stat-time (Depends-on): Likewise.
41688         * modules/nanosleep (Include): Include time.h, not timespec.h.
41689         * modules/strptime (Files): Remove lib/strptime.h.
41690         (Depends-on): Add extensions, time.
41691         (Include): Include time.h, not strptime.h.
41692         * modules/time_r (Files): Remove lib/time_r.h.
41693         (Depends-on): Add time.
41694         (Include): Include time.h, not time_r.h.
41695         * modules/timegm: Likewise.
41696         * modules/timespec (Description): Now does timespec-related decls
41697         of our own, instead of struct timespec itself.
41698         (Depends-on): Add time; remove extensions.
41699         (Maintainer): Add self.
41700         * modules/utimecmp (Depends-on): Add time; remove timespec.
41701         * modules/utimens (Depends-on): Likewise.
41702         * modules/xnanosleep (Depends-on): Likewise.
41703
41704 2007-02-11  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/c-strstr.c: Include allocsa.h.
41707         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41708         * lib/c-strcasestr.c: Include allocsa.h.
41709         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41710         * lib/strcasestr.c: Include allocsa.h.
41711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41712         * lib/mbsstr.c: Include allocsa.h.
41713         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41714         allocsa/freesa instead of malloc/free.
41715         * lib/mbscasestr.c: Include allocsa.h.
41716         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41717         allocsa/freesa instead of malloc/free.
41718         * modules/c-strstr (Depends-on): Add allocsa.
41719         * modules/c-strcasestr (Depends-on): Likewise.
41720         * modules/strcasestr (Depends-on): Likewise.
41721         * modules/mbsstr (Depends-on): Likewise.
41722         * modules/mbscasestr (Depends-on): Likewise.
41723
41724 2007-02-11  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41727
41728         * modules/mbsspn-tests: New file.
41729         * tests/test-mbsspn.sh: New file.
41730         * tests/test-mbsspn.c: New file.
41731
41732 2007-02-11  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41735
41736         * modules/mbspbrk-tests: New file.
41737         * tests/test-mbspbrk.sh: New file.
41738         * tests/test-mbspbrk.c: New file.
41739
41740 2007-02-11  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41743         unneeded cast.
41744
41745         * modules/mbscspn-tests: New file.
41746         * tests/test-mbscspn.sh: New file.
41747         * tests/test-mbscspn.c: New file.
41748
41749 2007-02-11  Bruno Haible  <bruno@clisp.org>
41750
41751         * modules/mbscasecmp-tests: New file.
41752         * tests/test-mbscasecmp.sh: New file.
41753         * tests/test-mbscasecmp.c: New file.
41754
41755 2007-02-11  Bruno Haible  <bruno@clisp.org>
41756
41757         Ensure O(n) worst-case complexity of mbscasestr.
41758         * lib/mbscasestr.c: Include stdbool.h.
41759         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41760         functions.
41761         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41762         the bookkeeping indicates that it's worth it.
41763         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41764
41765         * modules/mbscasestr-tests: New file.
41766         * tests/test-mbscasestr1.c: New file.
41767         * tests/test-mbscasestr2.sh: New file.
41768         * tests/test-mbscasestr2.c: New file.
41769         * tests/test-mbscasestr3.sh: New file.
41770         * tests/test-mbscasestr3.c: New file.
41771         * tests/test-mbscasestr4.sh: New file.
41772         * tests/test-mbscasestr4.c: New file.
41773         * m4/locale-tr.m4: New file.
41774
41775 2007-02-11  Bruno Haible  <bruno@clisp.org>
41776
41777         Ensure O(n) worst-case complexity of mbsstr.
41778         * lib/mbsstr.c: Include stdbool.h.
41779         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41780         functions.
41781         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41782         bookkeeping indicates that it's worth it.
41783         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41784
41785         * modules/mbsstr-tests: New file.
41786         * tests/test-mbsstr1.c: New file.
41787         * tests/test-mbsstr2.sh: New file.
41788         * tests/test-mbsstr2.c: New file.
41789         * tests/test-mbsstr3.sh: New file.
41790         * tests/test-mbsstr3.c: New file.
41791         * m4/locale-fr.m4: New file.
41792
41793 2007-02-11  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/mbsrchr.c (mbsrchr): Fix bug.
41796
41797         * modules/mbsrchr-tests: New file.
41798         * tests/test-mbsrchr.sh: New file.
41799         * tests/test-mbsrchr.c: New file.
41800
41801 2007-02-11  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/mbschr.c (mbschr): Fix bug.
41804
41805         * modules/mbschr-tests: New file.
41806         * tests/test-mbschr.sh: New file.
41807         * tests/test-mbschr.c: New file.
41808         * m4/locale-zh.m4: New file.
41809
41810 2007-02-11  Bruno Haible  <bruno@clisp.org>
41811
41812         Support for copying multibyte string iterators.
41813         * lib/mbiter.h: Include <string.h>.
41814         (mbiter_multi_copy): New function.
41815         (mbi_copy): New macro.
41816         * lib/mbuiter.h: Include <string.h>.
41817         (mbuiter_multi_copy): New function.
41818         (mbui_copy): New macro.
41819
41820 2007-02-11  Bruno Haible  <bruno@clisp.org>
41821
41822         New module mbslen.
41823         * modules/mbslen: New file.
41824         * lib/mbslen.c: New file.
41825         * lib/string_.h (mbslen): New declaration.
41826         * m4/mbslen.m4: New file.
41827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41828         GNULIB_MBSLEN.
41829         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41830         * MODULES.html.sh (Internationalization functions): Add mbslen.
41831
41832 2007-02-11  Bruno Haible  <bruno@clisp.org>
41833
41834         Ensure O(n) worst-case complexity of strcasestr substitute.
41835         * lib/strcasestr.c: Include stdbool.h.
41836         (knuth_morris_pratt): New function.
41837         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41838         bookkeeping indicates that it's worth it.
41839         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41840
41841         * modules/strcasestr-tests: New file.
41842         * tests/test-strcasestr.c: New file.
41843
41844 2007-02-11  Bruno Haible  <bruno@clisp.org>
41845
41846         Ensure O(n) worst-case complexity of c_strcasestr.
41847         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41848         (knuth_morris_pratt): New function.
41849         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41850         the bookkeeping indicates that it's worth it.
41851         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41852
41853         * modules/c-strcasestr-tests: New file.
41854         * tests/test-c-strcasestr.c: New file.
41855
41856 2007-02-11  Bruno Haible  <bruno@clisp.org>
41857
41858         Ensure O(n) worst-case complexity of c_strstr.
41859         * lib/c-strstr.c: Include stdbool.h, string.h.
41860         (knuth_morris_pratt): New function.
41861         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41862         bookkeeping indicates that it's worth it.
41863         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41864
41865         * lib/c-strstr.c: Complete rewrite for maintainability.
41866
41867         * modules/c-strstr-tests: New file.
41868         * tests/test-c-strstr.c: New file.
41869
41870 2007-02-11  Bruno Haible  <bruno@clisp.org>
41871
41872         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41873         5.2.1 and earlier, whereby \055 was treated just like the range
41874         delimiter '-'.
41875         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41876
41877 2007-02-08  Bruno Haible  <bruno@clisp.org>
41878
41879         * modules/regex (Depends-on): Add stdbool.
41880         Reported by Dalibor Topic <robilad@kaffe.org>.
41881
41882 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41883
41884         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
41885         Prefer returning from main to exiting from it.
41886         Remove unnecessary parens after sizeof.
41887
41888 2007-02-05  Bruno Haible  <bruno@clisp.org>
41889
41890         New module mbssep.
41891         * modules/mbssep: New file.
41892         * lib/mbssep.c: New file.
41893         * lib/string_.h (strsep): Add a conditional link warning.
41894         (mbssep): New declaration.
41895         * m4/mbssep.m4: New file.
41896         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41897         GNULIB_MBSSEP.
41898         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
41899         * MODULES.html.sh (Internationalization functions): Add mbssep.
41900
41901 2007-02-05  Bruno Haible  <bruno@clisp.org>
41902
41903         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
41904         Optimize search in case of 1 delimiter.
41905
41906 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41907
41908         * lib/acl.h: Include sys/types.h before sys/acl.h.
41909
41910 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41911
41912         Merge upstream fix for glibc bugzilla #3957:
41913
41914         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
41915
41916         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41917         bit for RE_HAT_LISTS_NOT_NEWLINE.
41918         (build_charclass_op): Remove bogus comment.
41919
41920 2007-02-05  Simon Josefsson  <simon@josefsson.org>
41921
41922         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
41923
41924 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41925
41926         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
41927         * lib/memmem.c [!defined _LIBC]: Include config.h.
41928
41929 2007-02-04  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
41932         warning message.
41933
41934 2007-02-04  Bruno Haible  <bruno@clisp.org>
41935
41936         New module mbstok_r.
41937         * modules/mbstok_r: New file.
41938         * lib/mbstok_r.c: New file.
41939         * lib/string_.h (strtok_r): Change argument names to match the
41940         comments. Add a conditional link warning.
41941         (mbstok_r): New declaration.
41942         * m4/mbstok_r.m4: New file.
41943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41944         GNULIB_MBSTOK_R.
41945         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
41946         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
41947
41948 2007-02-04  Bruno Haible  <bruno@clisp.org>
41949
41950         New module mbsspn.
41951         * modules/mbsspn: New file.
41952         * lib/mbsspn.c: New file.
41953         * lib/string_.h (strspn): Add a conditional link warning.
41954         (mbsspn): New declaration.
41955         * m4/mbsspn.m4: New file.
41956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41957         GNULIB_MBSSPN.
41958         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
41959         * MODULES.html.sh (Internationalization functions): Add mbsspn.
41960
41961 2007-02-04  Bruno Haible  <bruno@clisp.org>
41962
41963         New module mbspbrk.
41964         * modules/mbspbrk: New file.
41965         * lib/mbspbrk.c: New file.
41966         * lib/string_.h (strpbrk): Add a conditional link warning.
41967         (mbspbrk): New declaration.
41968         * m4/mbspbrk.m4: New file.
41969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41970         GNULIB_MBSPBRK.
41971         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
41972         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
41973
41974 2007-02-04  Bruno Haible  <bruno@clisp.org>
41975
41976         New module mbscspn.
41977         * modules/mbscspn: New file.
41978         * lib/mbscspn.c: New file.
41979         * lib/string_.h (strcspn): Add a conditional link warning.
41980         (mbscspn): New declaration.
41981         * m4/mbscspn.m4: New file.
41982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41983         GNULIB_MBSCSPN.
41984         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
41985         * MODULES.html.sh (Internationalization functions): Add mbscspn.
41986
41987 2007-02-04  Bruno Haible  <bruno@clisp.org>
41988
41989         New module mbscasestr, reduced goal of strcasestr.
41990         * modules/mbscasestr: New file.
41991         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
41992         (mbscasestr): Renamed from strcasestr.
41993         * lib/strcasestr.c: Don't include mbuiter.h.
41994         (strcasestr): Remove support for multibyte locales.
41995         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
41996         Change the conditional link warning.
41997         (mbscasestr): New declaration.
41998         * m4/mbscasestr.m4: New file.
41999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42000         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42001         REPLACE_STRCASESTR.
42002         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42004         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42006         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42007         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42008         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42009         (Depends-on): Remove mbuiter.
42010         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42011
42012 2007-02-04  Bruno Haible  <bruno@clisp.org>
42013
42014         Simplify handling of strncasecmp.
42015         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42016         the conditional link warning.
42017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42018         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42019         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42020         * modules/strcase (configure.ac): Don't invoke
42021         gl_STRING_MODULE_INDICATOR.
42022         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42023
42024 2007-02-04  Bruno Haible  <bruno@clisp.org>
42025
42026         New module mbscasecmp, reduced goal of strcasecmp.
42027         * modules/mbscasecmp: New file.
42028         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42029         (mbscasecmp): Renamed from strcasecmp.
42030         * lib/strcasecmp.c: Don't include mbuiter.h.
42031         (strcasecmp): Remove support for multibyte locales.
42032         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42033         Change the conditional link warning.
42034         (mbscasecmp): New declaration.
42035         * m4/mbscasecmp.m4: New file.
42036         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42037         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42038         REPLACE_STRCASECMP.
42039         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42041         GNULIB_MBSCASECMP.
42042         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42043         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42044         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42045         (Depends-on): Remove mbuiter.
42046         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42047
42048 2007-02-04  Bruno Haible  <bruno@clisp.org>
42049
42050         New module mbsstr. Remove module strstr.
42051         * modules/mbsstr: New file.
42052         * modules/strstr: Remove file.
42053         * lib/mbsstr.c: Renamed from lib/strstr.c.
42054         (mbsstr): Renamed from strstr.
42055         * lib/string_.h (strstr): Remove declaration. Change the conditional
42056         link warning.
42057         (mbsstr): New declaration.
42058         * m4/mbsstr.m4: New file.
42059         * m4/strstr.m4: Remove file.
42060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42061         REPLACE_STRSTR.
42062         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42063         Don't initialize GNULIB_STRSTR.
42064         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42065         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42066         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42067         (Support for systems lacking ANSI C 89): Remove strstr.
42068
42069 2007-02-04  Bruno Haible  <bruno@clisp.org>
42070
42071         New module mbsrchr.
42072         * modules/mbsrchr: New file.
42073         * lib/mbsrchr.c: New file.
42074         * lib/string_.h (strrchr): Add a conditional link warning.
42075         (mbsrchr): New declaration.
42076         * m4/mbsrchr.m4: New file.
42077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42078         GNULIB_MBSRCHR.
42079         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42080         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42081
42082 2007-02-04  Bruno Haible  <bruno@clisp.org>
42083
42084         New module mbschr.
42085         * modules/mbschr: New file.
42086         * lib/mbschr.c: New file.
42087         * lib/string_.h (strchr): Add a conditional link warning.
42088         (mbschr): New declaration.
42089         * m4/mbschr.m4: New file.
42090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42091         GNULIB_MBSCHR.
42092         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42093         * MODULES.html.sh (Internationalization functions): Add mbschr.
42094
42095 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42096
42097         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42098
42099         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42100
42101 2007-02-04  Bruno Haible  <bruno@clisp.org>
42102
42103         New module description section 'configure.ac-early'.
42104         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42105         (func_get_autoconf_early_snippet): New function.
42106         (func_import, func_create_testdir): Use it. Remove special cases for
42107         modules 'extensions' and 'lock'.
42108         * modules/extensions (configure.ac-early): Require
42109         gl_USE_SYSTEM_EXTENSIONS.
42110         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42111
42112 2007-02-04  Bruno Haible  <bruno@clisp.org>
42113
42114         Make use of gcj-4.3's -fsource and -ftarget option.
42115         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42116         and if so try the options -fsource and -ftarget.
42117         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42118         source_version, ftarget_option, target_version arguments.
42119         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42120         (is_envjavac_oldgcj_14_14_usable): Renamed from
42121         is_envjavac_gcj_14_14_usable.
42122         (is_envjavac_oldgcj_14_13_usable): Renamed from
42123         is_envjavac_gcj_14_13_usable.
42124         (is_gcj_present): Update.
42125         (is_gcj_43, is_gcj43_usable): New functions.
42126         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42127         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42128         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42129         try the options -fsource and -ftarget.
42130
42131 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42134         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42135         larger value.
42136
42137 2007-02-03  Jim Meyering  <jim@meyering.net>
42138
42139         Give tools a better chance to allocate space for very large buffers.
42140         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42141
42142         Make pwd and readlink work also when run with an unreadable parent dir
42143         on systems with openat support.
42144         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42145         provided getcwd function, even when we have openat support.
42146         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42147
42148 2007-02-02  Bruno Haible  <bruno@clisp.org>
42149
42150         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42151         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42152         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42153         portability problems if one of these functions is only used on specific
42154         platforms.
42155         Reported by Paul Eggert.
42156
42157 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42158
42159         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42160         is causing more trouble than it's curing.
42161         * lib/regex_internal.h (__mempcpy): Remove.
42162         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42163         (and make the code a tad smaller to boot).
42164         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42165
42166 2007-02-02  Jim Meyering  <jim@meyering.net>
42167
42168         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42169         section, not in the Makefile.am: one.
42170
42171 2007-02-02  Eric Blake  <ebb9@byu.net>
42172
42173         * lib/strchrnul.c: Always include config.h first.
42174
42175         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42176         gnulib strstr is not necessary here.
42177
42178 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42179
42180         * m4/socklen.m4: Fix typo.
42181
42182 2007-02-02  Eric Blake  <ebb9@byu.net>
42183
42184         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42185         * modules/netinet_in (Makefile.am): Likewise.
42186
42187 2007-02-01  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/string_.h (GL_LINK_WARNING): New macro.
42190         (strcasecmp, strstr, strcasestr): If provided by the system,
42191         conditionally define as a macro that leads to a warning instead of to
42192         an error.
42193         (strncasecmp): Conditionally define as a macro that leads to a warning.
42194
42195 2007-02-01  Karl Berry  <karl@gnu.org>
42196
42197         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42198
42199 2007-02-01  Bruno Haible  <bruno@clisp.org>
42200
42201         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42202         renamings.
42203
42204 2007-02-01  Eric Blake  <ebb9@byu.net>
42205
42206         * modules/regex (Depends-on): Revert dependence on mempcpy.
42207         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42208         module's definition of mempcpy.
42209         Reported by Paul Eggert.
42210
42211 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42212
42213         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42214         the symbol XYZ before redefining it.  This fixes a problem with
42215         programs that don't use XYZ, when compiled on systems that define
42216         XYZ to something else.
42217
42218 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42221         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42222         writeable to group or other and (2) is intended to have a special
42223         mode bit that is set or cleared.  In such a case, the directory
42224         should be neither group- nor other-writeable until the special
42225         mode bits are right.
42226
42227 2007-01-31  Eric Blake  <ebb9@byu.net>
42228
42229         * modules/mountlist (Depends-on): Add strstr.
42230
42231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42232         bug.
42233         * modules/string (Makefile.am): Remove redundant replacement.
42234         * modules/regex (Depends-on): Add mempcpy.
42235
42236 2007-01-31  Bruno Haible  <bruno@clisp.org>
42237
42238         New module description field 'Link'.
42239         * gnulib-tool (func_usage): Document --extract-link-directive.
42240         (sed_extract_prog): Recognize 'Link' directive.
42241         (func_get_link_directive): New function.
42242         (func_import): Show summary of link directives.
42243         Handle --extract-link-directive option.
42244         * modules/acl (Link): New section.
42245         * modules/clock-time (Link): New section.
42246         * modules/euidaccess (Link): New section.
42247         * modules/gettext (Link): New section.
42248         * modules/iconv (Link): New section.
42249         * modules/lock (Link): New section.
42250         * modules/nanosleep (Link): New section.
42251         * modules/readline (Link): New section.
42252
42253 2007-01-27  Bruno Haible  <bruno@clisp.org>
42254
42255         Enforce the use of gnulib modules for unportable <string.h> functions.
42256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42257         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42258         (gl_HEADER_STRING_H_BODY): Require it.
42259         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42260         the symbol XYZ to one that gives a link error.
42261         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42262         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42263         * modules/mempcpy (configure.ac): Likewise.
42264         * modules/memrchr (configure.ac): Likewise.
42265         * modules/stpcpy (configure.ac): Likewise.
42266         * modules/stpncpy (configure.ac): Likewise.
42267         * modules/strcase (configure.ac): Likewise.
42268         * modules/strcasestr (configure.ac): Likewise.
42269         * modules/strchrnul (configure.ac): Likewise.
42270         * modules/strdup (configure.ac): Likewise.
42271         * modules/strndup (configure.ac): Likewise.
42272         * modules/strnlen (configure.ac): Likewise.
42273         * modules/strpbrk (configure.ac): Likewise.
42274         * modules/strsep (configure.ac): Likewise.
42275         * modules/strstr (configure.ac): Likewise.
42276         * modules/strtok_r (configure.ac): Likewise.
42277
42278 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42279
42280         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42281
42282 2007-01-30  Jim Meyering  <jim@meyering.net>
42283
42284         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42285
42286 2007-01-29  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42289         * lib/execute.c: Likewise.
42290         * lib/pipe.c: Likewise.
42291         * lib/printf-args.h: Likewise.
42292         * lib/printf-args.c: Likewise.
42293         * lib/printf-parse.c: Likewise.
42294         * lib/vasnprintf.c: Likewise.
42295
42296 2007-01-29  Eric Blake  <ebb9@byu.net>
42297
42298         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42299         declaration.
42300
42301 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42302
42303         * lib/strptime.h (strptime): Use 'restrict' for args where
42304         POSIX requires this.
42305         * lib/strptime.c (strptime): Likewise.
42306         Change license notice from LGPL to GPL, since gnulib-tool will
42307         change this as needed.
42308         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42309         defined.
42310         Include "strptime.h" first, to check interface.
42311         Do not #undef _LIBC and _NL_CURRENT.
42312         Do not include <stdlib.h>; no longer needed.
42313         Include "time_r.h" and declare ptime_locale_status
42314         only if _LIBC is not defined.
42315         (__P): Remove unused macro.
42316         (match_string): Bring back glibc version, but use it only if _LIBC
42317         is defined.
42318         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42319         Remove unnecessary assertion and abort() call.
42320         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42321         * m4/strptime.m4: Fix serial number comment.
42322         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42323         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42324         (Depends-on): Add time_r.
42325
42326 2007-01-29  Bruno Haible  <bruno@clisp.org>
42327
42328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42329         strptime.
42330         * modules/strptime (Depends-on): Add stdbool.
42331         * lib/strptime.h: Include <time.h> always. Add comments.
42332
42333 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42334
42335         * modules/strptime: New file.
42336         * lib/strptime.h: New file.
42337         * lib/strptime.c: New file.
42338         * m4/strptime.m4: New file.
42339
42340 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42341
42342         * MODULES.html.sh: New module mpsort.
42343         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42344
42345         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42346         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42348         All uses changed.
42349         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42350         All uses changed.
42351         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42352         to _Restrict_.
42353         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42354         the parameter matches the prototype.
42355
42356 2007-01-28  Jim Meyering  <jim@meyering.net>
42357
42358         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42359         sys/time.h here, reverting that part of the previous patch:
42360         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42361
42362 2007-01-28  Bruno Haible  <bruno@clisp.org>
42363
42364         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42365         value of $(SYS_TIME_H).
42366         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42367         remove it conditionally, too. [added by Jim Meyering]
42368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42370         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42371         GETTIMEOFDAY_REPLACEMENT to 1.
42372
42373 2007-01-28  Bruno Haible  <bruno@clisp.org>
42374
42375         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42376         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42378         Set UNISTD_H instead of UNISTD_H2.
42379         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42380
42381 2007-01-28  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42384         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42385
42386 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42387
42388         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42389         (func_create_testdir): Ensure C locale for `grep' and `tr'
42390         character ranges.
42391         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42392         ACLOCAL_AMFLAGS parsing state machine.
42393
42394 2007-01-27  Bruno Haible  <bruno@clisp.org>
42395
42396         * modules/unistr/base: Update.
42397
42398 2007-01-27  Bruno Haible  <bruno@clisp.org>
42399
42400         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42401         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42402         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42403         modules/unistr/u32-mbtouc.
42404         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42405         * lib/unistr.h: Update.
42406         * lib/linebreak.c: Update.
42407         * modules/unistr/u32-mbtouc: Renamed from
42408         modules/unistr/u32-mbtouc-safe.
42409         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42410         * lib/unistr.h: Update.
42411         * lib/unistr/u32-to-u8.c: Update.
42412         * lib/unistr/u32-to-u16.c: Update.
42413
42414 2007-01-27  Bruno Haible  <bruno@clisp.org>
42415
42416         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42417         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42418         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42419         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42420         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42421         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42422         modules/unistr/u16-mbtouc.
42423         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42424         * lib/unistr.h: Update.
42425         * lib/linebreak.c: Update.
42426         * modules/linebreak: Update.
42427         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42428         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42429         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42430         * modules/unistr/u16-mbtouc: Renamed from
42431         modules/unistr/u16-mbtouc-safe.
42432         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42433         * lib/unistr.h: Update.
42434         * lib/unistr/u16-to-u8.c: Update.
42435         * modules/unistr/u16-to-u8: Update.
42436         * lib/unistr/u16-to-u32.c: Update.
42437         * modules/unistr/u16-to-u32: Update.
42438
42439 2007-01-27  Bruno Haible  <bruno@clisp.org>
42440
42441         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42442         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42443         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42444         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42445         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42446         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42447         modules/unistr/u8-mbtouc.
42448         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42449         * lib/unistr.h: Update.
42450         * lib/striconveh.c: Update.
42451         * modules/striconveh: Update.
42452         * lib/linebreak.c: Update.
42453         * modules/linebreak: Update.
42454         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42455         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42456         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42457         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42458         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42459         * lib/unistr.h: Update.
42460         * lib/striconveh.c: Update.
42461         * modules/striconveh: Update.
42462         * lib/unistr/u8-to-u16.c: Update.
42463         * modules/unistr/u8-to-u16: Update.
42464         * lib/unistr/u8-to-u32.c: Update.
42465         * modules/unistr/u8-to-u32: Update.
42466
42467 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42468
42469         Sync from Libtool.
42470         * lib/argz.c: Do not include strings.h nor memory.h, include
42471         string.h unconditionally.  Patch by Simon Josefsson.
42472
42473 2007-01-27  Bruno Haible  <bruno@clisp.org>
42474
42475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42476         from gl_HEADER_STRING_H_BODY.
42477         (gl_HEADER_STRING_H_BODY): Require it.
42478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42479         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42481         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42483         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42485         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42486         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42487         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42488         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42489         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42490         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42491         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42492         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42493
42494 2007-01-27  Bruno Haible  <bruno@clisp.org>
42495
42496         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42497         check_PROGRAMS into noinst_PROGRAMS.
42498         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42499         check_PROGRAMS in this case.
42500         (func_import): Set for_test to false.
42501         (func_create_testdir): Set for_test to true.
42502
42503 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42504             Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42507         (Depends-on): Add string.
42508         (Includes): Use <string.h> instead of strcasestr.h.
42509         * modules/string (Makefile.am): Also substitute the value of
42510         REPLACE_STRCASESTR.
42511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42512         assume strcasestr is declared in <string.h> not <strings.h>. Also
42513         set REPLACE_STRCASESTR.
42514         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42515         REPLACE_STRCASESTR.
42516         * lib/strcasestr.h: Remove file.
42517         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42518         * lib/string_.h (strcasestr): New declaration.
42519
42520 2007-01-27  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/string_.h: Use 'extern'.
42523
42524 2007-01-27  Jim Meyering  <jim@meyering.net>
42525
42526         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42527         of set-but-not-used local, "q".
42528
42529         * lib/mempcpy.c: Include <config.h> before <string.h>.
42530         This fixes a compilation error on HP-UX, due to the system's
42531         "restrict"-using mempcpy prototype.
42532
42533 2007-01-26  Bruno Haible  <bruno@clisp.org>
42534
42535         Small optimization.
42536         * lib/javacomp.c: Include c-strstr.h.
42537          (is_envjavac_gcj): Use c_strstr instead of strstr.
42538         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42539
42540 2007-01-26  Bruno Haible  <bruno@clisp.org>
42541
42542         * MODULES.html.sh (Unicode string functions): Add the new modules.
42543
42544         * modules/uniconv/u32-strconv-to-locale: New file.
42545         * lib/uniconv/u32-strconv-to-locale.c: New file.
42546
42547         * modules/uniconv/u16-strconv-to-locale: New file.
42548         * lib/uniconv/u16-strconv-to-locale.c: New file.
42549
42550         * modules/uniconv/u8-strconv-to-locale: New file.
42551         * lib/uniconv/u8-strconv-to-locale.c: New file.
42552
42553         * modules/uniconv/u32-strconv-from-locale: New file.
42554         * lib/uniconv/u32-strconv-from-locale.c: New file.
42555
42556         * modules/uniconv/u16-strconv-from-locale: New file.
42557         * lib/uniconv/u16-strconv-from-locale.c: New file.
42558
42559         * modules/uniconv/u8-strconv-from-locale: New file.
42560         * lib/uniconv/u8-strconv-from-locale.c: New file.
42561
42562         * modules/uniconv/u32-strconv-to-enc: New file.
42563         * lib/uniconv/u32-strconv-to-enc.c: New file.
42564         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42565         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42566
42567         * modules/uniconv/u16-strconv-to-enc: New file.
42568         * lib/uniconv/u16-strconv-to-enc.c: New file.
42569         * lib/uniconv/u-strconv-to-enc.h: New file.
42570         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42571         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42572
42573         * modules/uniconv/u8-strconv-to-enc: New file.
42574         * lib/uniconv/u8-strconv-to-enc.c: New file.
42575         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42576         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42577
42578         * modules/uniconv/u32-strconv-from-enc: New file.
42579         * lib/uniconv/u32-strconv-from-enc.c: New file.
42580         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42581         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42582
42583         * modules/uniconv/u16-strconv-from-enc: New file.
42584         * lib/uniconv/u16-strconv-from-enc.c: New file.
42585         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42586         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42587
42588         * modules/uniconv/u8-strconv-from-enc: New file.
42589         * lib/uniconv/u8-strconv-from-enc.c: New file.
42590         * lib/uniconv/u-strconv-from-enc.h: New file.
42591         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42592         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42593
42594         * modules/uniconv/u32-conv-from-enc: New file.
42595         * lib/uniconv/u32-conv-from-enc.c: New file.
42596         * modules/uniconv/u32-conv-from-enc-tests: New file.
42597         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42598
42599         * modules/uniconv/u16-conv-from-enc: New file.
42600         * lib/uniconv/u16-conv-from-enc.c: New file.
42601         * lib/uniconv/u-conv-from-enc.h: New file.
42602         * modules/uniconv/u16-conv-from-enc-tests: New file.
42603         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42604
42605         * modules/uniconv/u8-conv-from-enc: New file.
42606         * lib/uniconv/u8-conv-from-enc.c: New file.
42607         * modules/uniconv/u8-conv-from-enc-tests: New file.
42608         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42609
42610         * modules/uniconv/base: New file.
42611         * lib/uniconv.h: New file.
42612
42613 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42614
42615         * doc/gnulib-tool.texi (Initial import): Update to match current
42616         behavior with strdup module.
42617         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42618         * lib/memmem.h: Remove; all uses removed.  This is now done
42619         by <string.h>.
42620         * lib/mempcpy.h: Likewise.
42621         * lib/memrchr.h: Likewise.
42622         * lib/stpcpy.h: Likewise.
42623         * lib/stpncpy.h: Likewise.
42624         * lib/strcase.h: Likewise.
42625         * lib/strchrnul.h: Likewise.
42626         * lib/strdup.h: Likewise.
42627         * lib/strndup.h: Likewise.
42628         * lib/strnlen.h: Likewise.
42629         * lib/strpbrk.h: Likewise.
42630         * lib/strsep.h: Likewise.
42631         * lib/strstr.h: Likewise.
42632         * lib/strtok_r.h: Likewise.
42633         * lib/string_.h: New file.
42634         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42635         Rely on <string.h> instead.
42636         * lib/canon-host.c: Likewise.
42637         * lib/chdir-long.c: Likewise.
42638         * lib/concatpath.c: Likewise.
42639         * lib/exclude.c: Likewise.
42640         * lib/fchdir.c: Likewise.
42641         * lib/getaddrinfo.c: Likewise.
42642         * lib/getcwd.c: Likewise.
42643         * lib/getsubopt.c: Likewise.
42644         * lib/glob.c: Likewise.
42645         * lib/hard-locale.c: Likewise.
42646         * lib/iconvme.c: Likewise.
42647         * lib/javacomp.c: Likewise.
42648         * lib/mempcpy.c: Likewise.
42649         * lib/memrchr.c: Likewise.
42650         * lib/regex_internal.h: Likewise.
42651         * lib/stpncpy.c: Likewise.
42652         * lib/strcasecmp.c: Likewise.
42653         * lib/strchrnul.c: Likewise.
42654         * lib/strdup.c: Likewise.
42655         * lib/striconv.c: Likewise.
42656         * lib/striconveh.c: Likewise.
42657         * lib/striconveha.c: Likewise.
42658         * lib/strncasecmp.c: Likewise.
42659         * lib/strndup.c: Likewise.
42660         * lib/strnlen.c: Likewise.
42661         * lib/strsep.c: Likewise.
42662         * lib/strstr.c: Likewise.
42663         * lib/strtok_r.c: Likewise.
42664         * lib/userspec.c: Likewise.
42665         * lib/w32spawn.h: Likewise.
42666         * lib/xstrndup.c: Likewise.
42667         * lib/mountlist.c (strstr): Remove decl.
42668         * m4/string_h.m4: New file.
42669         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42670         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42671         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42672         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42673         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42674         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42675         Set REPLACE_STRCASECMP if necessary.
42676         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42677         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42678         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42679         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42680         HAVE_DECL_STRDUP if necessary.
42681         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42682         since gl_FUNC_STRNDUP does that now.
42683         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42684         Check for decl here...
42685         (gl_PREREQ_STRNLEN): ... not here.
42686         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42687         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42688         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42689         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42690         necessary.
42691         * modules/string: New file.
42692         * modules/memmem (Files): Remove special-purpose include file.
42693         (Depends-on): Add string.
42694         (Include): Include <string.h>, not the removed file.
42695         * modules/mempcpy: Likewise.
42696         * modules/memrchr: Likewise.
42697         * modules/stpcpy: Likewise.
42698         * modules/stpncpy: Likewise.
42699         * modules/strcase: Likewise.
42700         * modules/strchrnul: Likewise.
42701         * modules/strdup: Likewise.
42702         * modules/strndup: Likewise.
42703         * modules/strnlen: Likewise.
42704         * modules/strpbrk: Likewise.
42705         * modules/strsep: Likewise.
42706         * modules/strstr: Likewise.
42707         * modules/strtok_r: Likewise.
42708         * tests/test-dirname.c: Don't include "strdup.h", since
42709         <string.h> now suffices.
42710         * tests/test-memmem.c: Don't include "memmem.h", since
42711         <string.h> now suffices.
42712
42713 2007-01-25  Bruno Haible  <bruno@clisp.org>
42714
42715         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42716         *resultp is 0.
42717
42718         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42719         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42720         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42721         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42722
42723         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42724         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42725         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42726         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42727         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42728         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42729
42730 2007-01-24  Bruno Haible  <bruno@clisp.org>
42731
42732         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42733         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42734         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42735         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42736         gl_FUNC_FTS_CORE.
42737         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42738         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42739         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42740         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42741         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42742         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42743         gl_FUNC_FCHOWNAT.
42744         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42745         gl_FUNC_STRFTIME.
42746         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42747         Reported by Ralf Wildenhues.
42748
42749 2007-01-24  Bruno Haible  <bruno@clisp.org>
42750
42751         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42752         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42753         gl_GETADDRINFO.
42754         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42755         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42756         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42757
42758 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42759
42760         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42761         Don't use 'exit'; just return from 'main'.
42762         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42763
42764         * lib/fnmatch_.h: Readjust white space and comments to match
42765         glibc, to avoid spurious diffs.
42766
42767 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42768
42769         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42770         2004-12-01 change by Jakub Jelinek, since this code won't compile
42771         if !LIBC.  Problem reported by Bob Proulx.
42772
42773 2007-01-23  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/striconveh.c: Include c-strcaseeq.h.
42776         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42777         * modules/striconveh (Depends-on): Add c-strcaseeq.
42778
42779 2007-01-23  Bruno Haible  <bruno@clisp.org>
42780
42781         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42782
42783         * modules/c-strcaseeq: New file.
42784         * lib/c-strcaseeq.h: New file.
42785
42786         * modules/streq: New file.
42787         * lib/streq.h: New file.
42788
42789 2007-01-23  Bruno Haible  <bruno@clisp.org>
42790
42791         * modules/striconveha-tests: New file.
42792         * tests/test-striconveha.c: New file.
42793
42794         * lib/striconveha.h: Include <stdbool.h>.
42795         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42796         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42797         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42798         (mem_iconveha): New function.
42799         (str_iconveha_notranslit): Renamed from str_iconveha.
42800         (str_iconveha): New function.
42801         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42802         c-strcase.
42803
42804 2007-01-23  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42807         encodings without forgiving before trying any encoding with handler.
42808         (str_iconveha): Try all encodings without forgiving before trying any
42809         encoding with handler.
42810
42811 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42812
42813         Import the following changes from libc.
42814
42815         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42816
42817         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42818
42819         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42820
42821         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42822         normal_bracket label.
42823
42824         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42825
42826         [BZ #361]
42827         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42828         to normal_bracket after fetching the next character.
42829
42830 2007-01-22  Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42833         argument.
42834         * lib/striconveh.c (iconv_carefully_1): New function.
42835         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42836         argument.
42837         (str_cd_iconveh): Update.
42838         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42839         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42840         * tests/test-striconveh.c (MAGIC): New macro.
42841         (new_offsets): New function.
42842         (main): Test call with and without offsets.
42843
42844 2007-01-22  Bruno Haible  <bruno@clisp.org>
42845
42846         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42847         * modules/sys_select (Makefile.am): Likewise.
42848         * modules/sys_socket (Makefile.am): Likewise.
42849         * modules/sys_time (Makefile.am): Likewise.
42850
42851 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42852
42853         * modules/gettimeofday (License): Change from GPL to LGPL, since
42854         gettimeofday is a library function.
42855
42856 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42857
42858         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42859
42860 2007-01-21  Bruno Haible  <bruno@clisp.org>
42861
42862         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42863
42864 2007-01-21  Bruno Haible  <bruno@clisp.org>
42865
42866         * modules/striconveha: New file.
42867         * lib/striconveha.h: New file.
42868         * lib/striconveha.c: New file.
42869         * MODULES.html.sh (Internationalization functions): Add striconveha.
42870         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42871         string.
42872         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42873
42874 2007-01-21  Bruno Haible  <bruno@clisp.org>
42875
42876         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
42877         * lib/striconveh.c (str_iconveh): Likewise.
42878
42879 2007-01-21  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/striconveh.h (mem_iconveh): New declaration.
42882         * lib/striconveh.c (mem_iconveh): New function.
42883         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
42884
42885 2007-01-21  Bruno Haible  <bruno@clisp.org>
42886
42887         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
42888
42889         * lib/striconveh.h (mem_cd_iconveh): Change specification.
42890         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
42891         original result buffer.
42892         (str_cd_iconveh): Update.
42893         * tests/test-striconveh.c (main): Update.
42894
42895         * lib/striconv.h (mem_cd_iconv): Change specification.
42896         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
42897         result buffer.
42898         (str_cd_iconv): Update.
42899         * tests/test-striconv.c (main): Update.
42900
42901 2007-01-21  Bruno Haible  <bruno@clisp.org>
42902
42903         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
42904
42905 2007-01-20  Jim Meyering  <jim@meyering.net>
42906
42907         * lib/userspec.c (parse_with_separator): If a user or group string
42908         starts with "+", skip the corresponding name-to-ID look-up, since
42909         such a look-up must fail: user and group names may not include "+".
42910
42911 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42912
42913         * lib/poll.c: Include sys/time.h and time.h unconditionally,
42914         since we now assume the sys_time module.
42915         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
42916         check for sys/time.h; no longer needed.
42917         * modules/poll (Depends-on): Depend on sys_time.
42918
42919 2007-01-18  Bruno Haible  <bruno@clisp.org>
42920
42921         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
42922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42923
42924         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
42925         gettimeofday.
42926
42927         * tests/test-gettimeofday.c: Include <time.h>.
42928         (dummy): Remove variable.
42929
42930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
42931         gl_HEADER_SYS_TIME_H.
42932         (gl_HEADER_SYS_TIME_H): New macro.
42933
42934         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
42935         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42936         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42937         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
42938         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42939         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
42940         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
42941         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42942         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
42943         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
42944         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42945
42946         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
42947         last change; it caused a compilation error when cross-compiling to
42948         Cygwin.
42949
42950 2007-01-18  Jim Meyering  <jim@meyering.net>
42951
42952         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
42953         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
42954         than the race-prone "test -d sys || mkdir sys".
42955         (configure.ac): Use AC_PROG_MKDIR_P.
42956         * modules/sys_select: Likewise.
42957         * modules/sys_socket: Likewise.
42958         * modules/sys_time: Likewise.
42959
42960 2007-01-18  Eric Blake  <ebb9@byu.net>
42961
42962         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
42963         replace gettimeofday.
42964         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
42965         name, to avoid infinite recursion.
42966
42967 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
42970         module sys_time.
42971         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
42972         assume timespec.h defines struct timeval.
42973         * lib/settime.c: Likewise.
42974         * lib/utimens.c: Likewise.
42975         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
42976         since we now assume the gettimeofday module.
42977         * lib/tempname.c (__gen_tempname): Likewise.
42978         * lib/gettimeofday.h: Remove.
42979         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
42980         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
42981         Include <time.h>, for 'time()'.
42982         (localtime_buffer_addr): Also use this workaround if
42983         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
42984         to simplify the uses.  All uses changed.
42985         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
42986         that #undef is inside {}, and 'const' follows type name consistently.
42987         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
42988         (gettimeofday): Do not use the maximum possible value for
42989         tv->tv_usec, since that might break usages other than ls.c.
42990         Instead, we'll leave ls.c alone.  This undoes today's patch
42991         by Bruno.  Add a compile-time warning for 1s-clock resolution;
42992         we've never observed the problem but might as well keep the
42993         canary.
42994         * lib/nanosleep.c: Include timespec.h first, for interface check.
42995         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
42996         now assume the sys_time module.
42997         * lib/tempname.c: Likewise.
42998         * lib/timespec.h: Likewise.
42999         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43000         needed.
43001         * lib/strftime.c: Likewise.
43002         * lib/timespec.h: Likewise.
43003         * lib/posixtm.c: Include posixtm.h first, for interface check.
43004         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43005         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43006         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43007         * lib/sys_time_.h: New file.
43008         * lib/timespec.h (struct timespec): Use long int, not long.
43009         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43010         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43011         Remove obsolescent call to AC_HEADER_TIME.
43012         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43015         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43016         Likewise.
43017         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43018         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43020         into the sys_time module.  Check for gettimeofday just once.
43021         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43022         for gettimeofday signature to just check the signature.  Merely
43023         compile it, since linking doesn't test signature.  Improve test for
43024         whether gettimeofday.o is actually needed.
43025         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43026         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43027         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43028         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43029         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43030         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43031         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43032         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43033         than worrying about sys/time.h.
43034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43035         Don't bother worrying about TIME_WITH_SYS_TIME.
43036         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43037         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43038         * m4/sys_time_h.m4: New file.
43039         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43040         Don't include sys/time.h.  Return from main rather than exiting.
43041         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43042         all uses changed.
43043         * modules/gethrxtime (Depends-on): Add sys_time.
43044         * modules/gettime (Depends-on): Likewise.
43045         * modules/gettimeofday (Depends-on): Likewise.
43046         * modules/nanosleep (Depends-on): Likewise.
43047         * modules/settime (Depends-on): Likewise.
43048         * modules/tempname (Depends-on): Likewise.
43049         * modules/utimens (Depends-on): Likewise.
43050         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43051         (Include:) Change back to <sys/time.h>.
43052         (Maintainer:) Add self.
43053         * modules/sys_time: New file.
43054         * modules/tempname (Depends-on): Add gettimeofday.
43055         * tests/test-gettimeofday.c: Include <sys/time.h>
43056         rather than gettimeofday.h.
43057
43058 2007-01-17  Bruno Haible  <bruno@clisp.org>
43059
43060         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43061         the license default to GPL.
43062         (func_create_testdir): Don't complain if a module is LGPL and its
43063         tests module depends on GPLed modules.
43064
43065 2007-01-17  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/gettimeofday.c (gettimeofday): Add code for the case
43068         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43069         maximum possible value for tv->tv_usec, rather than the minimum one.
43070
43071 2005-10-08  Martin Lambers  <marlam@marlam.de>
43072 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43073 2007-01-16  Bruno Haible  <bruno@clisp.org>
43074
43075         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43076         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43077         gl_FUNC_GETTIMEOFDAY.
43078         (Include): Add gettimeofday.h.
43079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43080         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43081         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43082         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43083         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43084         * lib/gettimeofday.h: New file.
43085         * lib/gettimeofday.c: Include <sys/timeb.h>.
43086         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43087         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43088         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43089         fall back on time().
43090
43091         * tests/test-gettimeofday.c: New file.
43092         * modules/gettimeofday-tests: New file.
43093
43094 2007-01-16  Eric Blake  <ebb9@byu.net>
43095
43096         * modules/fnmatch (Depends-on): Depend on wchar.
43097         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43098         * m4/fnmatch.m4: Likewise.
43099         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43100         * m4/mbchar.m4: Likewise.
43101         * modules/mbswidth (Depends-on): Depend on wchar.
43102         * lib/mbswidth.c: Assume <wchar.h>.
43103         * m4/mbswidth.m4: Likewise.
43104         * modules/quotearg (Depends-on): Depend on wchar.
43105         * lib/quotearg.c: Assume <wchar.h>.
43106         * m4/quotearg.m4: Likewise.
43107         * modules/regex (Depends-on): Depend on wchar.
43108         * lib/regex_internal.h: Assume <wchar.h>.
43109         * m4/regex.m4: Likewise.
43110         * modules/stdint (Depends-on): Depend on wchar.
43111         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43112         * m4/stdint.m4: Likewise.
43113         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43114         * modules/strftime (Depends-on): Depend on wchar.
43115         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43116         * modules/strtol (Depends-on): Depend on wchar.
43117         * lib/strtol.c: Assume <wchar.h>.
43118         * modules/wcwidth (Depends-on): Depend on wchar.
43119         * lib/wcwidth.h: Assume <wchar.h>.
43120         * m4/wcwidth.m4: Likewise.
43121
43122 2007-01-16  Bruno Haible  <bruno@clisp.org>
43123
43124         * modules/csharpexec-script: New, created from...
43125         * modules/csharpexec: ... this.
43126
43127 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43128
43129         * modules/javaexec-script: New, created from...
43130         * modules/javaexec: ... this.
43131
43132 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43133
43134         * modules/poll (Dependencies): Add sys_select.
43135
43136 2007-01-15  Jim Meyering  <jim@meyering.net>
43137
43138         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43139         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43140         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43141         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43142
43143 2007-01-15  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/striconveh: New file.
43146         * lib/striconveh.h: New file.
43147         * lib/striconveh.c: New file.
43148         * MODULES.html.sh (Internationalization functions): Add striconveh.
43149
43150         * modules/striconveh-tests: New file.
43151         * tests/test-striconveh.c: New file.
43152
43153 2007-01-15  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43156         not from GNU libiconv or GNU libc.
43157
43158 2007-01-15  Bruno Haible  <bruno@clisp.org>
43159
43160         * doc/gnulib-intro.texi (Copyright): Explain the different license
43161         terms for module descriptions, autoconf macros, tests, documentation.
43162
43163 2007-01-14  Bruno Haible  <bruno@clisp.org>
43164
43165         * modules/striconv-tests: New file.
43166         * tests/test-striconv.c: New file.
43167
43168 2007-01-14  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/iconv-tests: New file.
43171         * tests/test-iconv.c: New file.
43172
43173 2007-01-14  Bruno Haible  <bruno@clisp.org>
43174
43175         * gnulib-tool (func_get_license): For test modules, use the license of
43176         the main module.
43177
43178 2007-01-14  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43181         if iconv is found to exist.
43182
43183 2007-01-14  Bruno Haible  <bruno@clisp.org>
43184
43185         * modules/c-ctype-tests: New file.
43186         * tests/test-c-ctype.c: New file.
43187
43188 2007-01-14  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/binary-io-tests: New file.
43191         * tests/test-binary-io.sh: New file.
43192         * tests/test-binary-io.c: New file.
43193
43194 2007-01-14  Bruno Haible  <bruno@clisp.org>
43195
43196         * modules/array-oset-tests: New file.
43197         * tests/test-array_oset.c: New file.
43198
43199 2007-01-14  Bruno Haible  <bruno@clisp.org>
43200
43201         * modules/array-list-tests: New file.
43202         * tests/test-array_list.c: New file.
43203
43204 2007-01-14  Bruno Haible  <bruno@clisp.org>
43205
43206         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43207         and make.
43208         Reported by Simon Josefsson in
43209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43210
43211 2007-01-14  Bruno Haible  <bruno@clisp.org>
43212
43213         * modules/allocsa-tests: New file.
43214         * tests/test-allocsa.c: New file.
43215
43216 2007-01-14  Bruno Haible  <bruno@clisp.org>
43217
43218         * modules/fchdir (Depends-on): Add absolute-header.
43219         * modules/unistd (Depends-on): Likewise.
43220
43221 2006-12-30  Bruno Haible  <bruno@clisp.org>
43222
43223         * modules/fchdir: New file.
43224         * modules/unistd (Files): Add lib/unistd_.h.
43225         (Makefile.am): Generate unistd.h from unistd_.h.
43226         * lib/fchdir.c: New file.
43227         * lib/dirent_.h: New file.
43228         * lib/unistd_.h: New file.
43229         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43230         * m4/fchdir.m4: New file.
43231         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43232         (gl_HEADER_UNISTD): Invoke it.
43233         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43234         function.
43235         * lib/backupfile.c (opendir, closedir): Undefine.
43236         * lib/chown.c (open, close): Undefine.
43237         * lib/clean-temp.c (open, close): Undefine.
43238         * lib/copy-file.c (open, close): Undefine.
43239         * lib/execute.c (open, close): Undefine.
43240         * lib/fsusage.c (open, close): Undefine.
43241         * lib/gc-gnulib.c (open, close): Undefine.
43242         * lib/getcwd.c (opendir, closedir): Undefine.
43243         * lib/glob.c (opendir, closedir): Undefine.
43244         * lib/javacomp.c (open, close): Undefine.
43245         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43246         * lib/openat-proc.c (open, close): Undefine.
43247         * lib/pagealign_alloc.c (open, close): Undefine.
43248         * lib/pipe.c (open, close): Undefine.
43249         * lib/progreloc.c (open, close): Undefine.
43250         * lib/savedir.c (opendir, closedir): Undefine.
43251         * lib/utime.c (open, close): Undefine.
43252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43253
43254 2007-01-10  Bruno Haible  <bruno@clisp.org>
43255
43256         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43257
43258 2007-01-12  Eric Blake  <ebb9@byu.net>
43259
43260         Provide a robust <wchar.h>.  Further simplifications are now
43261         possible in other modules, but not included here.
43262         * modules/wchar: New module.
43263         * m4/wchar.m4: New file.
43264         * lib/wchar_.h: Likewise.
43265         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43266         of the new module.
43267         * MODULES.html.sh (Extended multibyte and wide character utilities):
43268         New section.
43269
43270 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43273         to a reasonable default for memory allocation.
43274         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43275         file system that reports garbage st_size values for symlinks.
43276         Problem reported by Liyang Hu.
43277
43278 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43279
43280         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43281         Emacs .#* auto-save files).
43282
43283 2007-01-11  Bruno Haible  <bruno@clisp.org>
43284
43285         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43286         directory.
43287
43288 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43289
43290         Use @...@ consistently in lib/wctype_.h.
43291         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43292         on it being set to 1 or 0.
43293         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43294         go back to AC_SUBSTing it.
43295         * modules/wctype (Makefile.am): Undo previous change.
43296
43297 2007-01-10  Eric Blake  <ebb9@byu.net>
43298
43299         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43300         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43301         * modules/wctype (Makefile.am): Likewise.
43302         Reported by Chris McGuire.
43303
43304 2007-01-10  Jim Meyering  <jim@meyering.net>
43305
43306         fts.c: a small readability/maintainability improvement
43307         * lib/fts.c (fts_read): Make this code slightly more readable and
43308         maintainable by hoisting the "sp->fts_cur = p" assignments to
43309         immediately follow the statements that set P.  Derived from
43310         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43311
43312 2007-01-10  Eric Blake  <ebb9@byu.net>
43313
43314         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43315         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43317         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43318         Reported by Chris McGuire.
43319
43320 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43321
43322         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43323         in sed script.
43324
43325 2007-01-09  Bruno Haible  <bruno@clisp.org>
43326
43327         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43328         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43329         variables.
43330         (func_module): Use them.
43331
43332 2007-01-09  Bruno Haible  <bruno@clisp.org>
43333
43334         * modules/unistr/base: New file.
43335         * lib/unistr.h: New file.
43336
43337         * modules/unistr/u8-to-u16: New file.
43338         * lib/unistr/u8-to-u16.c: New file.
43339
43340         * modules/unistr/u8-to-u32: New file.
43341         * lib/unistr/u8-to-u32.c: New file.
43342
43343         * modules/unistr/u16-to-u8: New file.
43344         * lib/unistr/u16-to-u8.c: New file.
43345
43346         * modules/unistr/u16-to-u32: New file.
43347         * lib/unistr/u16-to-u32.c: New file.
43348
43349         * modules/unistr/u32-to-u8: New file.
43350         * lib/unistr/u32-to-u8.c: New file.
43351
43352         * modules/unistr/u32-to-u16: New file.
43353         * lib/unistr/u32-to-u16.c: New file.
43354
43355         * modules/unistr/u8-check: New file.
43356         * modules/unistr/u16-check: New file.
43357         * modules/unistr/u32-check: New file.
43358         * lib/unistr/u8-check.c: New file.
43359         * lib/unistr/u16-check.c: New file.
43360         * lib/unistr/u32-check.c: New file.
43361
43362         * modules/unistr/u8-chr: New file.
43363         * modules/unistr/u16-chr: New file.
43364         * modules/unistr/u32-chr: New file.
43365         * lib/unistr/u8-chr.c: New file.
43366         * lib/unistr/u16-chr.c: New file.
43367         * lib/unistr/u32-chr.c: New file.
43368
43369         * modules/unistr/u8-cmp: New file.
43370         * modules/unistr/u16-cmp: New file.
43371         * modules/unistr/u32-cmp: New file.
43372         * lib/unistr/u8-cmp.c: New file.
43373         * lib/unistr/u16-cmp.c: New file.
43374         * lib/unistr/u32-cmp.c: New file.
43375
43376         * modules/unistr/u8-cpy: New file.
43377         * modules/unistr/u16-cpy: New file.
43378         * modules/unistr/u32-cpy: New file.
43379         * lib/unistr/u8-cpy.c: New file.
43380         * lib/unistr/u16-cpy.c: New file.
43381         * lib/unistr/u32-cpy.c: New file.
43382         * lib/unistr/u-cpy.h: New file.
43383
43384         * modules/unistr/u8-cpy-alloc: New file.
43385         * modules/unistr/u16-cpy-alloc: New file.
43386         * modules/unistr/u32-cpy-alloc: New file.
43387         * lib/unistr/u8-cpy-alloc.c: New file.
43388         * lib/unistr/u16-cpy-alloc.c: New file.
43389         * lib/unistr/u32-cpy-alloc.c: New file.
43390         * lib/unistr/u-cpy-alloc.h: New file.
43391
43392         * modules/unistr/u8-endswith: New file.
43393         * modules/unistr/u16-endswith: New file.
43394         * modules/unistr/u32-endswith: New file.
43395         * lib/unistr/u8-endswith.c: New file.
43396         * lib/unistr/u16-endswith.c: New file.
43397         * lib/unistr/u32-endswith.c: New file.
43398         * lib/unistr/u-endswith.h: New file.
43399
43400         * modules/unistr/u8-mblen: New file.
43401         * modules/unistr/u16-mblen: New file.
43402         * modules/unistr/u32-mblen: New file.
43403         * lib/unistr/u8-mblen.c: New file.
43404         * lib/unistr/u16-mblen.c: New file.
43405         * lib/unistr/u32-mblen.c: New file.
43406
43407         * modules/unistr/u8-mbtouc: New file.
43408         * modules/unistr/u16-mbtouc: New file.
43409         * modules/unistr/u32-mbtouc: New file.
43410         * lib/unistr/u8-mbtouc.c: New file.
43411         * lib/unistr/u16-mbtouc.c: New file.
43412         * lib/unistr/u32-mbtouc.c: New file.
43413
43414         * modules/unistr/u8-mbtouc-safe: New file.
43415         * modules/unistr/u16-mbtouc-safe: New file.
43416         * modules/unistr/u32-mbtouc-safe: New file.
43417         * lib/unistr/u8-mbtouc-safe.c: New file.
43418         * lib/unistr/u16-mbtouc-safe.c: New file.
43419         * lib/unistr/u32-mbtouc-safe.c: New file.
43420
43421         * modules/unistr/u8-move: New file.
43422         * modules/unistr/u16-move: New file.
43423         * modules/unistr/u32-move: New file.
43424         * lib/unistr/u8-move.c: New file.
43425         * lib/unistr/u16-move.c: New file.
43426         * lib/unistr/u32-move.c: New file.
43427         * lib/unistr/u-move.h: New file.
43428
43429         * modules/unistr/u8-next: New file.
43430         * modules/unistr/u16-next: New file.
43431         * modules/unistr/u32-next: New file.
43432         * lib/unistr/u8-next.c: New file.
43433         * lib/unistr/u16-next.c: New file.
43434         * lib/unistr/u32-next.c: New file.
43435
43436         * modules/unistr/u8-prev: New file.
43437         * modules/unistr/u16-prev: New file.
43438         * modules/unistr/u32-prev: New file.
43439         * lib/unistr/u8-prev.c: New file.
43440         * lib/unistr/u16-prev.c: New file.
43441         * lib/unistr/u32-prev.c: New file.
43442
43443         * modules/unistr/u8-set: New file.
43444         * modules/unistr/u16-set: New file.
43445         * modules/unistr/u32-set: New file.
43446         * lib/unistr/u8-set.c: New file.
43447         * lib/unistr/u16-set.c: New file.
43448         * lib/unistr/u32-set.c: New file.
43449         * lib/unistr/u-set.h: New file.
43450
43451         * modules/unistr/u8-startswith: New file.
43452         * modules/unistr/u16-startswith: New file.
43453         * modules/unistr/u32-startswith: New file.
43454         * lib/unistr/u8-startswith.c: New file.
43455         * lib/unistr/u16-startswith.c: New file.
43456         * lib/unistr/u32-startswith.c: New file.
43457         * lib/unistr/u-startswith.h: New file.
43458
43459         * modules/unistr/u8-stpcpy: New file.
43460         * modules/unistr/u16-stpcpy: New file.
43461         * modules/unistr/u32-stpcpy: New file.
43462         * lib/unistr/u8-stpcpy.c: New file.
43463         * lib/unistr/u16-stpcpy.c: New file.
43464         * lib/unistr/u32-stpcpy.c: New file.
43465         * lib/unistr/u-stpcpy.h: New file.
43466
43467         * modules/unistr/u8-stpncpy: New file.
43468         * modules/unistr/u16-stpncpy: New file.
43469         * modules/unistr/u32-stpncpy: New file.
43470         * lib/unistr/u8-stpncpy.c: New file.
43471         * lib/unistr/u16-stpncpy.c: New file.
43472         * lib/unistr/u32-stpncpy.c: New file.
43473         * lib/unistr/u-stpncpy.h: New file.
43474
43475         * modules/unistr/u8-strcat: New file.
43476         * modules/unistr/u16-strcat: New file.
43477         * modules/unistr/u32-strcat: New file.
43478         * lib/unistr/u8-strcat.c: New file.
43479         * lib/unistr/u16-strcat.c: New file.
43480         * lib/unistr/u32-strcat.c: New file.
43481         * lib/unistr/u-strcat.h: New file.
43482
43483         * modules/unistr/u8-strchr: New file.
43484         * modules/unistr/u16-strchr: New file.
43485         * modules/unistr/u32-strchr: New file.
43486         * lib/unistr/u8-strchr.c: New file.
43487         * lib/unistr/u16-strchr.c: New file.
43488         * lib/unistr/u32-strchr.c: New file.
43489
43490         * modules/unistr/u8-strcmp: New file.
43491         * modules/unistr/u16-strcmp: New file.
43492         * modules/unistr/u32-strcmp: New file.
43493         * lib/unistr/u8-strcmp.c: New file.
43494         * lib/unistr/u16-strcmp.c: New file.
43495         * lib/unistr/u32-strcmp.c: New file.
43496
43497         * modules/unistr/u8-strcpy: New file.
43498         * modules/unistr/u16-strcpy: New file.
43499         * modules/unistr/u32-strcpy: New file.
43500         * lib/unistr/u8-strcpy.c: New file.
43501         * lib/unistr/u16-strcpy.c: New file.
43502         * lib/unistr/u32-strcpy.c: New file.
43503         * lib/unistr/u-strcpy.h: New file.
43504
43505         * modules/unistr/u8-strcspn: New file.
43506         * modules/unistr/u16-strcspn: New file.
43507         * modules/unistr/u32-strcspn: New file.
43508         * lib/unistr/u8-strcspn.c: New file.
43509         * lib/unistr/u16-strcspn.c: New file.
43510         * lib/unistr/u32-strcspn.c: New file.
43511         * lib/unistr/u-strcspn.h: New file.
43512
43513         * modules/unistr/u8-strdup: New file.
43514         * modules/unistr/u16-strdup: New file.
43515         * modules/unistr/u32-strdup: New file.
43516         * lib/unistr/u8-strdup.c: New file.
43517         * lib/unistr/u16-strdup.c: New file.
43518         * lib/unistr/u32-strdup.c: New file.
43519         * lib/unistr/u-strdup.h: New file.
43520
43521         * modules/unistr/u8-strlen: New file.
43522         * modules/unistr/u16-strlen: New file.
43523         * modules/unistr/u32-strlen: New file.
43524         * lib/unistr/u8-strlen.c: New file.
43525         * lib/unistr/u16-strlen.c: New file.
43526         * lib/unistr/u32-strlen.c: New file.
43527         * lib/unistr/u-strlen.h: New file.
43528
43529         * modules/unistr/u8-strmblen: New file.
43530         * modules/unistr/u16-strmblen: New file.
43531         * modules/unistr/u32-strmblen: New file.
43532         * lib/unistr/u8-strmblen.c: New file.
43533         * lib/unistr/u16-strmblen.c: New file.
43534         * lib/unistr/u32-strmblen.c: New file.
43535
43536         * modules/unistr/u8-strmbtouc: New file.
43537         * modules/unistr/u16-strmbtouc: New file.
43538         * modules/unistr/u32-strmbtouc: New file.
43539         * lib/unistr/u8-strmbtouc.c: New file.
43540         * lib/unistr/u16-strmbtouc.c: New file.
43541         * lib/unistr/u32-strmbtouc.c: New file.
43542
43543         * modules/unistr/u8-strncat: New file.
43544         * modules/unistr/u16-strncat: New file.
43545         * modules/unistr/u32-strncat: New file.
43546         * lib/unistr/u8-strncat.c: New file.
43547         * lib/unistr/u16-strncat.c: New file.
43548         * lib/unistr/u32-strncat.c: New file.
43549         * lib/unistr/u-strncat.h: New file.
43550
43551         * modules/unistr/u8-strncmp: New file.
43552         * modules/unistr/u16-strncmp: New file.
43553         * modules/unistr/u32-strncmp: New file.
43554         * lib/unistr/u8-strncmp.c: New file.
43555         * lib/unistr/u16-strncmp.c: New file.
43556         * lib/unistr/u32-strncmp.c: New file.
43557
43558         * modules/unistr/u8-strncpy: New file.
43559         * modules/unistr/u16-strncpy: New file.
43560         * modules/unistr/u32-strncpy: New file.
43561         * lib/unistr/u8-strncpy.c: New file.
43562         * lib/unistr/u16-strncpy.c: New file.
43563         * lib/unistr/u32-strncpy.c: New file.
43564         * lib/unistr/u-strncpy.h: New file.
43565
43566         * modules/unistr/u8-strnlen: New file.
43567         * modules/unistr/u16-strnlen: New file.
43568         * modules/unistr/u32-strnlen: New file.
43569         * lib/unistr/u8-strnlen.c: New file.
43570         * lib/unistr/u16-strnlen.c: New file.
43571         * lib/unistr/u32-strnlen.c: New file.
43572         * lib/unistr/u-strnlen.h: New file.
43573
43574         * modules/unistr/u8-strpbrk: New file.
43575         * modules/unistr/u16-strpbrk: New file.
43576         * modules/unistr/u32-strpbrk: New file.
43577         * lib/unistr/u8-strpbrk.c: New file.
43578         * lib/unistr/u16-strpbrk.c: New file.
43579         * lib/unistr/u32-strpbrk.c: New file.
43580         * lib/unistr/u-strpbrk.h: New file.
43581
43582         * modules/unistr/u8-strrchr: New file.
43583         * modules/unistr/u16-strrchr: New file.
43584         * modules/unistr/u32-strrchr: New file.
43585         * lib/unistr/u8-strrchr.c: New file.
43586         * lib/unistr/u16-strrchr.c: New file.
43587         * lib/unistr/u32-strrchr.c: New file.
43588
43589         * modules/unistr/u8-strspn: New file.
43590         * modules/unistr/u16-strspn: New file.
43591         * modules/unistr/u32-strspn: New file.
43592         * lib/unistr/u8-strspn.c: New file.
43593         * lib/unistr/u16-strspn.c: New file.
43594         * lib/unistr/u32-strspn.c: New file.
43595         * lib/unistr/u-strspn.h: New file.
43596
43597         * modules/unistr/u8-strstr: New file.
43598         * modules/unistr/u16-strstr: New file.
43599         * modules/unistr/u32-strstr: New file.
43600         * lib/unistr/u8-strstr.c: New file.
43601         * lib/unistr/u16-strstr.c: New file.
43602         * lib/unistr/u32-strstr.c: New file.
43603         * lib/unistr/u-strstr.h: New file.
43604
43605         * modules/unistr/u8-strtok: New file.
43606         * modules/unistr/u16-strtok: New file.
43607         * modules/unistr/u32-strtok: New file.
43608         * lib/unistr/u8-strtok.c: New file.
43609         * lib/unistr/u16-strtok.c: New file.
43610         * lib/unistr/u32-strtok.c: New file.
43611         * lib/unistr/u-strtok.h: New file.
43612
43613         * modules/unistr/u8-uctomb: New file.
43614         * modules/unistr/u16-uctomb: New file.
43615         * modules/unistr/u32-uctomb: New file.
43616         * lib/unistr/u8-uctomb.c: New file.
43617         * lib/unistr/u16-uctomb.c: New file.
43618         * lib/unistr/u32-uctomb.c: New file.
43619
43620         * MODULES.html.sh (Unicode string functions): Add the new modules.
43621
43622 2007-01-08  Bruno Haible  <bruno@clisp.org>
43623
43624         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43625         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43626         subdirectories.
43627
43628 2007-01-08  Karl Berry  <karl@gnu.org>
43629
43630         * doc/error.texi: mention that main() fns must set program_name
43631         when progname is used.
43632
43633 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43634
43635         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43636         WCTYPE_H is empty, for the benefit of builds from non-distclean
43637         directories.  Problem reported by Eric Blake in
43638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43639
43640 2007-01-08  Bruno Haible  <bruno@clisp.org>
43641
43642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43643         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43644         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43645         PROVIDE_CANONICALIZE_FILENAME_MODE.
43646         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43647
43648 2007-01-08  Bruno Haible  <bruno@clisp.org>
43649
43650         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43651         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43652         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43653         * lib/fts.c: Likewise.
43654         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43655
43656 2006-12-25  Bruno Haible  <bruno@clisp.org>
43657
43658         * modules/utf8-ucs4-safe: New file.
43659         * lib/utf8-ucs4-safe.h: New file.
43660         * lib/unistr/utf8-ucs4-safe.c: New file.
43661
43662         * modules/utf16-ucs4-safe: New file.
43663         * lib/utf16-ucs4-safe.h: New file.
43664         * lib/unistr/utf16-ucs4-safe.c: New file.
43665
43666         * MODULES.html.sh (Unicode string functions): Add the new modules.
43667
43668 2007-01-08  Bruno Haible  <bruno@clisp.org>
43669
43670         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43671         (Depends-on): Add unitypes.
43672         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43673         (u8_mbtouc_aux): Move out to separate file.
43674         (u8_mbtouc): Use ucs4_t, uint8_t types.
43675         * lib/unistr/utf8-ucs4.c: New file.
43676
43677         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43678         (Depends-on): Add unitypes.
43679         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43680         (u16_mbtouc_aux): Move out to separate file.
43681         (u16_mbtouc): Use ucs4_t, uint16_t types.
43682         * lib/unistr/utf16-ucs4.c: New file.
43683
43684         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43685         (Depends-on): Add unitypes.
43686         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43687         (u8_uctomb_aux): Move out to separate file.
43688         (u8_uctomb): Use ucs4_t, uint8_t types.
43689         * lib/unistr/ucs4-utf8.c: New file.
43690
43691         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43692         (Depends-on): Add unitypes.
43693         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43694         (u16_uctomb_aux): Move out to separate file.
43695         (u16_uctomb): Use ucs4_t, uint16_t types.
43696         * lib/unistr/ucs4-utf16.c: New file.
43697
43698 2006-12-25  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/unitypes: New file.
43701         * lib/unitypes.h: New file.
43702         * MODULES.html.sh (func_all_modules): New section "Unicode string
43703         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43704         this section. Add unitypes.
43705
43706 2007-01-08  Bruno Haible  <bruno@clisp.org>
43707
43708         Avoid variable names that conflict with those from libtool.
43709         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43710         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43711         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43712         library_names_spec to acl_library_names_spec, hardcode_* to
43713         acl_hardcode_*.
43714         Reported by Ralf Wildenhues.
43715
43716 2007-01-08  Bruno Haible  <bruno@clisp.org>
43717
43718         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43719         definition.
43720         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43721         definition.
43722         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43723         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43724         definition.
43725         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43726         definition.
43727         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43728         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43729         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43730         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43731         definition.
43732         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43733         definition.
43734         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43735         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43736         GC_USE_<algorithm>.
43737         * lib/gc-libgcrypt.c: Likewise.
43738         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43739         * modules/gc-arctwo (configure.ac): Likewise.
43740         * modules/gc-des (configure.ac): Likewise.
43741         * modules/gc-hmac-md5 (configure.ac): Likewise.
43742         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43743         * modules/gc-md2 (configure.ac): Likewise.
43744         * modules/gc-md4 (configure.ac): Likewise.
43745         * modules/gc-md5 (configure.ac): Likewise.
43746         * modules/gc-random (configure.ac): Likewise.
43747         * modules/gc-rijndael (configure.ac): Likewise.
43748         * modules/gc-sha1 (configure.ac): Likewise.
43749
43750 2007-01-08  Bruno Haible  <bruno@clisp.org>
43751
43752         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43753         macro definition.
43754         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43755         definition.
43756         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43757         definition.
43758         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43759         * modules/fcntl-safer (configure.ac): Likewise.
43760         * modules/fopen-safer (configure.ac): Likewise.
43761         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43762         GNULIB_FWRITEERROR macro definition.
43763
43764 2007-01-08  Bruno Haible  <bruno@clisp.org>
43765
43766         * m4/gnulib-common.m4: New file.
43767         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43768         (func_get_filelist): Add m4/gnulib-common.m4.
43769
43770 2007-01-08  Bruno Haible  <bruno@clisp.org>
43771
43772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43773         command.
43774
43775 2007-01-08  Jim Meyering  <jim@meyering.net>
43776
43777         Use a more robust test for a "can't happen" condition.
43778         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43779         narrowed the st_size value.  Presuming the "can't happen" condition
43780         is true, that narrowing could conceivably convert an invalid st_size
43781         value into a valid one.  Instead, use a change based on Matthew
43782         Woehlke's original patch.
43783
43784         Slight readability improvement: use an assert-like macro
43785         in place of literal "abort ()" uses.
43786         * lib/fts.c (fts_assert): Define.
43787         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43788         Use this macro instead of a bare 'abort'.
43789
43790 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43791
43792         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43793         simply work around them.
43794         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43795         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43796         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43797         declaring.
43798         Don't bother to define as macros, since the standard doesn't require it.
43799         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43800         longer worry about IRIX 5.3.
43801         (HAVE_WCTYPE_CTMP_BUG): Remove.
43802
43803 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43804
43805         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43806         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43807         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43808         Problems reported by Georg Schwarz for IRIX 5.3.
43809
43810         * gnulib-tool (autoconf_minversion): Take the maximum version number
43811         found, not the minimum.  Problem reported by James Youngman.
43812
43813 2007-01-03  Karl Berry  <karl@gnu.org>
43814
43815         * doc/error.texi: new file, explaining interaction with progname.
43816         * doc/gnulib.texi: include it.  Update copyright.
43817
43818 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43819
43820         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43821         AC_CANONICAL_HOST, to improve autobuild outputs.
43822
43823 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43824             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43825
43826         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43827         sockets, server sockets, and other file descriptors.  Count errors
43828         to compute the return value.  Reorder the code a bit to be easier
43829         to follow.  Don't set event bits that were not requested (except
43830         POLLERR and POLLHUP).
43831
43832 2007-01-01  Bruno Haible  <bruno@clisp.org>
43833
43834         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43835
43836 2007-01-03  Jim Meyering  <jim@meyering.net>
43837
43838         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43839
43840 2007-01-02  Bruno Haible  <bruno@clisp.org>
43841
43842         * modules/settime (Include): Require timespec.h.
43843         * modules/nanosleep (Include): Likewise.
43844
43845 2007-01-01  Bruno Haible  <bruno@clisp.org>
43846
43847         * gnulib-tool (func_emit_copyright_notice): Bump year.
43848         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43849
43850 2007-01-01  Bruno Haible  <bruno@clisp.org>
43851
43852         Improve support for OpenBSD.
43853         * build-aux/config.rpath (libname_spec): Export.
43854         (library_names_spec): New variable. Export.
43855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43856         library_names_spec from the config.rpath output. Locate shared library
43857         through the name pattern in library_names_spec.
43858
43859 2007-01-01  Eric Blake  <ebb9@byu.net>
43860
43861         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43862
43863 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43864
43865         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43866         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43867         assume the C locale, and avoid an "eval" that could cause trouble.
43868         Problem with SORT reported by Bob Proulx.
43869
43870         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43871         Define.  Trivial patch from Henning Nielsen Lund, originally
43872         sent to bug-grep@gnu.org today.
43873
43874 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43875
43876         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
43877         struct stat.  Problem reported by Henning Nielsen Lund.
43878         * lib/acl.c: Include acl.h first, to check interface.  Don't
43879         bother to include sys/types.h and sys/stat.h again.
43880
43881 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43882
43883         Import the following change from libc; problem reported by
43884         Sven Verdoolaege.
43885
43886         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
43887
43888         [BZ #1373]
43889         * lib/argp.h: Remove __NTH for __argp_usage inline function.
43890
43891 2006-12-28  Jim Meyering  <jim@meyering.net>
43892
43893         * build-aux/announce-gen: Do not assume that the package
43894         builds any of tar.gz, tar.bz2, and .xdelta files.
43895         Suggestion from Simon Josefsson.
43896
43897 2006-12-28  Simon Josefsson  <simon@josefsson.org>
43898
43899         * modules/announce-gen: New file.
43900
43901 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43902
43903         * lib/mbchar.h: Just include <wctype.h>; the wctype module
43904         handles its gotchas now.
43905         * lib/mbswidth.c: Likewise.
43906         * lib/wcwidth.h: Likewise.
43907         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
43908         and iswcntrl; the wctype module does this stuff now.
43909         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43911         * modules/mbchar (Depends-on): Add wctype.
43912         * modules/mbswidth (Depends-on): Likewise.
43913         * modules/wcwidth (Depends-on): Likewise.
43914
43915 2006-12-27  Eric Blake  <ebb9@byu.net>
43916
43917         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
43918         module uses more than what <wctype.h> is required to provide.
43919
43920 2006-12-26  Eric Blake  <ebb9@byu.net>
43921
43922         * gnulib-tool (sed_extract_prog): Avoid space-tab.
43923
43924 2006-12-26  Eric Blake  <ebb9@byu.net>
43925
43926         * modules/absolute-header: New module.
43927         * modules/fcntl (Depends-on): Depend on it.
43928         * modules/inttypes (Depends-on): Likewise.
43929         * modules/stdint (Depends-on): Likewise.
43930         * modules/sys_stat (Depends-on): Likewise.
43931         * modules/wctype (Depends-on): Likewise.
43932         * MODULES.html.sh (Support for building libraries and
43933         executables): Document it.
43934
43935 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43936
43937         * gnulib-tool (SED): Remove, undoing previous change.
43938         The problem was that it broke coreutils on Solaris, because
43939         "sed --posix" leaked into a makefile.
43940         (sed): New alias, if 'alias' and GNU sed.
43941
43942 2006-12-24  Jim Meyering  <jim@meyering.net>
43943
43944         Work around an fchownat bug in glibc-2.4:
43945         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
43946         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
43947         in spite of the -P option.
43948         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
43949         New macros.
43950         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
43951         * modules/openat (Files): Add lib/fchownat.c.
43952         * lib/openat.c (fchownat): Don't define here.  Move to...
43953         * lib/fchownat.c: ...this new file.
43954
43955 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43956
43957         Fix bug reported by Bruno Haible in
43958         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
43959         where quotearg.c didn't compile on Mac OS X 10.2 because it
43960         lacks <wchar.h> and wint_t.
43961         * lib/wctype_.h (__wctype_wint_t): New type.
43962         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
43963         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
43964         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
43965         Arg is now of type __wctype_wint_t, not wint_t.
43966         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
43967         substitute HAVE_WINT_T.
43968         * modules/wctype (Files): Add m4/wint_t.m4.
43969         (wctype.h): Substitute HAVE_WINT_T.
43970
43971 2006-12-23  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
43974
43975 2006-12-23  Bruno Haible  <bruno@clisp.org>
43976
43977         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
43978         S_ISLNK.
43979         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
43980         mingw.
43981
43982 2006-12-22  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/copy-file.c: Include acl.h.
43985         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
43986         Close the file descriptors only after being done with copy_acl.
43987         * modules/copy-file (Depends-on): Add acl.
43988
43989 2006-12-22  Bruno Haible  <bruno@clisp.org>
43990
43991         * gnulib-tool (SED): New variable.
43992         Use $SED instead of sed everywhere.
43993
43994 2006-12-22  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/no-c++: New file.
43997         * m4/no-c++.m4: New file.
43998         * MODULES.html.sh (Support for building libraries and executables):
43999         Add no-c++.
44000
44001 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44004         Include <limits.h>, and use its INT_MAX to rewrite the
44005         j loop so that it does not overflow 'int'.  Problem reported by
44006         Ralf Wildenhues in
44007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44008         Play it safe by shifting left by 1 rather than multiplying by 2,
44009         as GCC is less likely to optimize this away when the value
44010         is signed (when it assumes overflow leads to undefined behavior).
44011         Also, don't assume time_t uses two's complement.
44012
44013 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44014
44015         * MODULES.html.sh: New module wctype.
44016         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44017         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44018         <wctype.h>, since the new wctype module should fix this.
44019         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44020         the wctype module should arrange for it.
44021         * lib/regex_internal.h: Likewise.
44022         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44023         since the wctype module should handle this now.
44024         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44025         * modules/fnmatch (Depends-on): Add wctype.
44026         * modules/quotearg (Depends-on): Likewise.
44027         * modules/regex (Depends-on): Likewise.
44028
44029 2006-12-19  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44032         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44033
44034 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44035
44036         * modules/savewd (Depends-on): Fix dependency on fcntl.
44037
44038 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44039
44040         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44041         conforms to C99, rather than relying on the user's environment
44042         setting of STDINT_H.
44043
44044 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44045         and Eric Blake  <ebb9@byu.net>
44046
44047         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44048         This is more consistent with the other defines here.
44049         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44050         Port to z/OS.  Problem reported by Paul Gilmartin.
44051         Change local vars to use gl_ prefix rather than ac_.
44052         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44053         with other defines.
44054         * modules/double-slash-root: New module.
44055         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44056         (Depends-on): Add double-slash-root.
44057         * MODULES.html.sh (File system functions): Mention new module.
44058
44059 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44060
44061         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44062         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44063         This is for the benefit of gzip, which doesn't do i18n.
44064
44065 2006-12-12  Jim Meyering  <jim@meyering.net>
44066
44067         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44068         Reported by Andreas Schwab <schwab@suse.de>.
44069
44070 2006-12-12  Bruno Haible  <bruno@clisp.org>
44071
44072         Merge these changes.
44073         2006-09-05  Bruno Haible  <bruno@clisp.org>
44074         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44075         iconv_alloc succeeded.
44076         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44077         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44078         test for " && dest " at the end - dest is always != NULL there. Call
44079         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44080         with 2xNULL arguments, also to flush the state storage. Handle the
44081         IRIX iconv behaviour. Realloc the final result, to throw away unused
44082         memory.
44083
44084 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44085
44086         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44087         and fchmodat unconditionally, since glibc 2.4 has them.
44088         Problem reported by Arkadiusz Miskiewicz.
44089
44090 2006-12-10  Bruno Haible  <bruno@clisp.org>
44091
44092         * gnulib-tool (func_import): Show the include files only for those
44093         modules that are copied and specified.
44094         Reported by Karl Berry.
44095
44096 2006-12-08  Jim Meyering  <jim@meyering.net>
44097
44098         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44099         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44100
44101         * build-aux/announce-gen: Add two new options, both optional:
44102         --bootstrap-tools=TOOL_LIST
44103               a comma-separated list of tools, e.g.,
44104               autoconf,automake,bison,gnulib
44105         --gnulib-snapshot-date=DATE
44106               if gnulib is in the bootstrap tool list,
44107               then report this as the snapshot date.
44108               If not specified, use the current date/time.
44109               If you specify a date here, be sure it's UTC.
44110
44111 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44112
44113         * tests/test-argp-2.sh: Fix test to match actual output.
44114         (func_compare): Fix sed script to be portable.
44115
44116 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44117
44118         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44119         workaround for this case.  It is not autoconfigured now; offhand
44120         it's hard to see how to autoconfigure it.
44121
44122 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44123
44124         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44125         a directory that is about to be chowned.  Such a directory's
44126         initial file permissions should permit the owner only and this
44127         should not be changed until after the chown, since the group and
44128         other bits would be incorrect if they granted permission before
44129         the chown.
44130
44131         Fix porting problem for iswctype reported by Georg Schwarz in:
44132         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44133         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44134         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44135         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44136         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44137
44138 2006-12-03  Jim Meyering  <jim@meyering.net>
44139
44140         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44141         p->fts_statp may not yet be defined.
44142         (fts_read): Instead, set it in the caller, once p->fts_statp is
44143         sure to be defined, and corresponds to a top-level directory.
44144         This bug made du -x fail.  Here's the coreutils test case:
44145         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44146         Reported by Mike Frysinger.
44147
44148 2006-12-01  Jim Meyering  <jim@meyering.net>
44149
44150         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44151         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44152         Reported by Simon Josefsson.
44153
44154 2006-11-30  Jim Meyering  <jim@meyering.net>
44155
44156         * m4/warning.m4: Use the all-permissive copyright notice
44157         recommended by RMS (rather than LGPL).
44158         * m4/vararrays.m4: Likewise.
44159         * m4/flexmember.m4: Likewise.
44160
44161 2006-11-29  Bruno Haible  <bruno@clisp.org>
44162
44163         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44164         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44165         using +=.
44166         Reported by Simon Josefsson <simon@josefsson.org>.
44167
44168 2006-11-28  James Youngman <jay@gnu.org>
44169
44170         * README: Advise users that they might find the bug-gnulib@gnu.org
44171         and autotools-announce@gnu.org mailing lists useful.
44172
44173 2006-11-28  Bruno Haible  <bruno@clisp.org>
44174
44175         * m4/ptrdiff_max.m4: Remove file.
44176
44177 2006-11-21  Bruno Haible  <bruno@clisp.org>
44178
44179         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44180         _AC_COMPUTE_INT.
44181         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44182         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44183         _AC_COMPUTE_INT.
44184         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44185         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44186         _AC_COMPUTE_INT.
44187         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44188
44189 2006-11-28  Jim Meyering  <jim@meyering.net>
44190
44191         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44192         warning from "gcc -Wshadow" about shadowing the builtin.
44193
44194 2006-11-27  Bruno Haible  <bruno@clisp.org>
44195
44196         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44197         _AC_COMPUTE_INT.
44198         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44199
44200 2006-11-27  Bruno Haible  <bruno@clisp.org>
44201             Paul Eggert  <eggert@cs.ucla.edu>
44202
44203         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44204
44205 2006-11-26  Bruno Haible  <bruno@clisp.org>
44206
44207         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44208         noinst_LTLIBRARIES.
44209
44210 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44211             Bruno Haible  <bruno@clisp.org>
44212
44213         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44214         if compiling with "gcc -ansi".
44215
44216 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44217
44218         Fix some incompatibilities with gcc -ansi -pedantic.
44219         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44220         if compiling pedantically with GCC, unless it's C99 or later.
44221         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44222         it mishandles gcc -ansi -pedantic as well.
44223         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44224         if gcc -pedantic.
44225         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44226         initializers for struct if -pedantic, unless it's C99 or later.
44227
44228 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44229
44230         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44231         Don't close an fd more than once. Identical atimes indicate
44232         success, not failure.
44233
44234 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44235
44236         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44237
44238 2006-11-23  Jim Meyering  <jim@meyering.net>
44239
44240         * build-aux/announce-gen: New file.  From coreutils.
44241
44242 2006-11-22  Jim Meyering  <jim@meyering.net>
44243
44244         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44245         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44246         (fts_read): Use a temporary to narrow the overused st_size member
44247         before using it in a switch statement.  Reported by Matthew Woehlke.
44248
44249         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44250         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44251
44252 2006-11-20  Bruno Haible  <bruno@clisp.org>
44253
44254         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44255         changequote instead of pairs of brackets.
44256         Reported by Andreas Schwab <schwab@suse.de>.
44257
44258 2006-11-21  Jim Meyering  <jim@meyering.net>
44259
44260         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44261         so as to remain compatible with older compilers.
44262         Patch from Michael Deutschmann.
44263
44264 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44265
44266         * MODULES.html.sh (File system functions): Add openat.
44267
44268         * lib/openat.h (rpl_fstatat): New macro, if
44269         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44270         (fstatat): Define to rpl_fstatat under the same conditions,
44271         unless COMPILING_FSTATAT.
44272         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44273         seems to have the bug.
44274         * lib/fstatat.c: New file.
44275         * modules/openat (Files): Add it.
44276
44277 2006-11-20  Bruno Haible  <bruno@clisp.org>
44278
44279         * Makefile: New file.
44280
44281 2006-11-20  Jim Meyering  <jim@meyering.net>
44282
44283         The beginnings of syntax-related checks for gnulib.
44284         * lib/Makefile: New file.
44285         * lib/t-idcache: New script.  Ensure that the two halves of
44286         idcache.c stay in sync.
44287
44288         * lib/idcache.c: Adjust comments in user- and group- portions to
44289         be more accurate, and to be consistent with one another.
44290
44291 2006-11-20  Jim Meyering  <jim@meyering.net>
44292
44293         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44294         continue using the flexible array member (thus, this module performs
44295         half as many malloc calls), with the addition that...
44296         (getgroup, getuser): Consistently record a non-match via an empty
44297         "name" string, and map an empty string match to a NULL return value.
44298         * modules/idcache (Depends-on): Re-add flexmember.
44299
44300         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44301         (getuidbyname, getgroup, getgidbyname): Likewise.
44302
44303         Use cleaner syntax: NULL rather than 0.
44304         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44305
44306 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44307
44308         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44309         It mishandled the case where the group was missing.
44310         Problem reported by Greg Schafer.
44311         * modules/idcache: Likewise.
44312
44313 2006-11-18  Jim Meyering  <jim@meyering.net>
44314
44315         * check-module (%exempt_header): Add exception for some
44316         conditionally-included headers.
44317
44318         * modules/i-ring (Depends-on): Add verify.
44319         (License): Change to LGPL.
44320
44321 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44322
44323         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44324         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44325         and inttostr.h.  Use snprintf rather than uinttostr, so that
44326         LGPLed code doesn't depend on GPLed.
44327
44328 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44329
44330         * modules/inline (License): Change from GPL to LGPL.
44331
44332 2006-11-17  Jim Meyering  <jim@meyering.net>
44333
44334         * modules/d-type (License): Switch to LGPL.
44335
44336 2006-11-15  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44339
44340 2006-11-15  Eric Blake  <ebb9@byu.net>
44341
44342         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44343         the module dependency.
44344
44345 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44346             Bruno Haible  <bruno@clisp.org>
44347
44348         * gnulib-tool (func_create_testdir): Add license consistency check.
44349
44350 2006-11-15  Eric Blake  <ebb9@byu.net>
44351
44352         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44353         random "(cached)" in configure output.
44354
44355 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44356
44357         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44358         test for conforming inttypes.h is both announced and cached.
44359
44360         * MODULES.html.sh (seen_modules, seen_files): New variables.
44361         (func_module): Rewrite to use a few less gnulib-tool and sed
44362         invocations.  Avoid a couple of quadratic algorithms for ...
44363         (missed_modules, missed_files): ... these, with ...
44364         (func_append, func_tmpdir): ... these new functions, from
44365         gnulib-tool.  Analogously, install traps for cleanup.
44366
44367         * tests/test-gc.c (main): Remove unused variables.
44368         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44369
44370 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44371
44372         * modules/inttostr (License): Change to LGPL.
44373
44374 2006-11-14  Eric Blake  <ebb9@byu.net>
44375
44376         * modules/tempname (License): Change to LGPL.
44377
44378 2006-11-14  Eric Blake  <ebb9@byu.net>
44379
44380         * doc/functions.texi (Function Portability): *printf functions on
44381         Cygwin now understand all POSIX size specifiers.
44382
44383 2006-11-14  Bruno Haible  <bruno@clisp.org>
44384
44385         * modules/c-ctype (License): Change to LGPL.
44386
44387 2006-11-12  Bruno Haible  <bruno@clisp.org>
44388
44389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44390         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44391         for GNOME libraries, for which the include files are installed in
44392         subdirectories of $prefix/include.
44393
44394 2006-11-12  Bruno Haible  <bruno@clisp.org>
44395
44396         * m4/lib-link.m4: Require at least autoconf-2.54.
44397         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44398         name to underscores for the --with option.
44399
44400 2006-11-13  Bruno Haible  <bruno@clisp.org>
44401
44402         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44403         the tests directory.
44404         Reported by Ralf Wildenhues.
44405
44406 2006-11-13  Bruno Haible  <bruno@clisp.org>
44407
44408         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44409         (func_emit_initmacro_end): Undo the override here.
44410         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44411         Works around the famous automake error in coreutils.
44412
44413 2006-11-13  Eric Blake  <ebb9@byu.net>
44414
44415         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44416         element, not its node.
44417
44418 2006-11-12  Bruno Haible  <bruno@clisp.org>
44419
44420         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44421         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44422
44423 2006-11-12  Bruno Haible  <bruno@clisp.org>
44424
44425         * gnulib-tool: New option --local-symlink.
44426         (func_usage): Document it.
44427         (lsymbolic): New variable.
44428         (func_import, func_create_testdir): If --symlink was not specified,
44429         test whether --local-symlink was specified and the file comes from
44430         the local_gnulib_dir.
44431
44432 2006-11-12  Bruno Haible  <bruno@clisp.org>
44433
44434         * gnulib-tool (func_ln): New function.
44435         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44436
44437 2006-11-12  Bruno Haible  <bruno@clisp.org>
44438
44439         Finish support for source files in subdirectories.
44440         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44441         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44442         AUTOMAKE_OPTIONS.
44443         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44444
44445 2006-11-12  Bruno Haible  <bruno@clisp.org>
44446
44447         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44448         EXTRA_lib_SOURCES augmentation.
44449         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44450
44451 2006-11-12  Jim Meyering  <jim@meyering.net>
44452
44453         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44454         file descriptors.  This also averts a failure on systems with
44455         native openat support when a traversed directory lacks "x" access.
44456         * lib/fts_.h: Include "i-ring.h"
44457         (struct FTS) [fts_fd_ring]: New member.
44458         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44459         (FCHDIR): Add parentheses.
44460         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44461         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44462         When descending, rather than simply closing the previous
44463         fts_cwd_fd value, push that file descriptor onto the ring.
44464         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44465         (fts_open): Initialize the new fd_ring member.
44466         (fts_close): Clear the ring.
44467         (fts_safe_changedir): When possible, use our new fd_ring to skip
44468         the diropen and fstat and dev/ino comparison that would normally
44469         accompany a virtual `chdir ("..")'.
44470
44471         * modules/fts (Depends-on): Add i-ring.
44472         * modules/i-ring: New module.
44473         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44474         * m4/i-ring.m4: New file.
44475
44476 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44477
44478         * gnulib-tool (func_create_testdir): Fix replacement of
44479         `build-aux' in configure.ac.  Run autotools in gltests
44480         subdirectory.
44481         (func_create_testdir, func_create_megatestdir, test): There is
44482         no need for '--force' in most autotool invocations in a new
44483         tree.  Actually fail the whole test if any of the tools, or the
44484         configure or make stages fail.
44485
44486         Sync from Automake.
44487         * build-aux/gnupload: Revert last change.  Add pointer to upload
44488         instructions of the GNU Maintenance Instructions.
44489         Suggestion by Karl Berry.
44490
44491 2006-11-10  Jim Meyering  <jim@meyering.net>
44492
44493         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44494
44495 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44496
44497         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44498         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44499         (bind_textdomain_codeset) [! ENABLE_NLS]:
44500         Evaluate all the arguments.  That way, callers get compatible behavior
44501         if the arguments have side effects.  Also, it avoids some GCC
44502         diagnostics in some cases; Joel E. Denny reported problems when Bison
44503         was configured with --enable-gcc-warnigs.
44504
44505 2006-11-10  Jim Meyering  <jim@meyering.net>
44506
44507         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44508         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44509         account.
44510
44511 2006-11-10  Jim Meyering  <jim@meyering.net>
44512
44513         * modules/inline: New file/module.
44514         * modules/xalloc (Files): Remove m4/inline.m4.
44515         (Depends-on): Add inline, instead.
44516         * modules/oset: Likewise.
44517         * modules/list: Likewise.
44518
44519 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44522         Problem reported by Matthew Woehlke.
44523
44524 2006-11-09  Bruno Haible  <bruno@clisp.org>
44525
44526         * lib/tempname.c (gen_tempname): Remove variant that invokes
44527         __gen_tempname.
44528         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44529         __gen_tempname.
44530
44531 2006-11-08  Bruno Haible  <bruno@clisp.org>
44532
44533         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44534         to 'yes' instead of 'cross-compiling'.
44535
44536 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44537
44538         * lib/quotearg.h (quotearg_free): New decl.
44539         * lib/quotearg.c (quotearg_free): New function.
44540         (slot0, nslots, slotvec0, slotvec):
44541         Now file-scope so that quotearg_free can get at them.
44542
44543 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44544
44545         Sync from Automake.
44546         * build-aux/gnupload: Add missing 'gnu' to example URL.
44547         Report by Karl Berry.
44548
44549 2006-11-08  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44552         Suggested by Paul Eggert.
44553
44554 2006-11-08  Jim Meyering  <jim@meyering.net>
44555
44556         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44557         It's already included if !_LIBC.
44558         (fts_safe_changedir): Add a comment.
44559
44560 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44561
44562         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44563         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44564         Matthew Woehlke.
44565
44566         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44567         definitions up, to avoid colliding with change below.
44568         (static_inline) [HAVE_INLINE]: New macro.
44569         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44570         Provide extern decls when !HAVE_INLINE.  Do not define unless
44571         static_inline is defined, either by us or by xmalloc.c.  Use
44572         static_inline rather than static inline.
44573         (XCALLOC): Optimize sizeof(T) = 1 case.
44574         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44575
44576 2006-11-07  Bruno Haible  <bruno@clisp.org>
44577
44578         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44579         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44580         AC_C_INLINE.
44581         * modules/xalloc (Files): Add m4/inline.m4.
44582
44583 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44584
44585         * README: Fix typo.
44586         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44587         (Miscellanous Notes): ...from this.
44588
44589 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44592         Mention that offsetof should be used instead of sizeof.
44593         From Bruno Haible.
44594
44595 2006-11-07  Bruno Haible  <bruno@clisp.org>
44596
44597         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44598
44599 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44600
44601         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44602         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44603         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44604         (gl_tree_add_before, gl_tree_add_after):
44605         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44606         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44607         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44608         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44609         (gl_linked_add_after, gl_linked_add_at): Likewise.
44610         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44611         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44612         (gl_tree_add_before, gl_tree_add_after): Likewise.
44613         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44614         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44615         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44616
44617 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44618
44619         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44620
44621 2006-11-06  Bruno Haible  <bruno@clisp.org>
44622
44623         * m4/inline.m4: New file.
44624         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44625         * modules/list (Files): Add m4/inline.m4.
44626         * modules/oset (Files): Likewise.
44627
44628 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         * lib/idcache.c: Include <stddef.h>, for offsetof.
44631         (struct userid.name): Change from char * to a flexible array member.
44632         All uses changed.
44633         * modules/idcache (Depends-on): Add flexmember.
44634
44635         * MODULES.html.sh (Core language properties): New module flexmember.
44636         * modules/flexmember, m4/flexmember.m4: New files.
44637
44638         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44639         inline functions that are identical with the old xnmalloc_inline,
44640         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44641         that we can avoid some unnecessary integer multiplications and
44642         divisions in the common case where the element size is known at
44643         compile time.
44644         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44645         needed.
44646         (xnboundedmalloc): Remove.
44647         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44648         arguments, for consistency with rest of this header.
44649         (xcharalloc): Rewrite using XNMALLOC.
44650         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44651         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44652         versions have been moved to lib/xalloc.h and renamed to be the
44653         non-*_inline versions.
44654         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44655         and xnrealloc functions, since those functions are now inline and
44656         now call us.
44657         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44658         renaming described above.
44659         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44660         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44661         captures the dependency in AC_C_INLINE.
44662
44663         New module canonicalize-lgpl, proposed by Charles Wilson in
44664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44665         with a few small changes afterwards.
44666         * MODULES.html.sh (File system functions): New module
44667         canonicalize-lgpl.
44668         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44669         and canonicalize_file_name.
44670         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44671         * modules/canonicalize-lgpl: New files.
44672
44673 2006-11-05  Bruno Haible  <bruno@clisp.org>
44674
44675         * gnulib-tool (func_import, func_create_testdir): Create directories
44676         also for files in subdirectories of lib/.
44677
44678 2006-11-05  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44681         ANSI C compliant.
44682
44683 2006-11-03  Bruno Haible  <bruno@clisp.org>
44684
44685         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44686         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44687         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44688         (xnboundedmalloc): New inline function.
44689         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44690         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44691         xmalloc.
44692         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44693         xmalloc.
44694         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44695         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44696         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44697         xmalloc.
44698         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44699         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44700         xmalloc.
44701         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44702         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44703         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44704         xmalloc.
44705         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44706         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44707         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44708         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44709         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44710         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44711         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44712
44713 2006-11-03  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/c-ctype.h [C++]: Define functions without name mangling.
44716         * lib/fwriteerror.h [C++]: Likewise.
44717         * lib/gcd.h [C++]: Likewise.
44718         * lib/linebreak.h [C++]: Likewise.
44719
44720 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44721
44722         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44723         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44724         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44725         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44726         Check for functions and headers just once.
44727         Check for declaration of canonicalize_file_name.
44728         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44729
44730 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44731
44732         * gnulib-tool (func_import): Fix typo in actioncmd.
44733
44734 2006-11-02  Bruno Haible  <bruno@clisp.org>
44735
44736         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44737         newline sequence in the Makefile.am snippet as a space, like "make"
44738         does.
44739         Reported by Roger Persson <perrog@gmail.com>.
44740
44741 2006-11-01  Bruno Haible  <bruno@clisp.org>
44742
44743         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44744         already declared in <string.h>.
44745         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44746
44747 2006-11-01  Bruno Haible  <bruno@clisp.org>
44748
44749         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44750         * lib/strcase.h: Include <string.h>.
44751         (strcasecmp): Define to rpl_strcasecmp here.
44752
44753 2006-11-01  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44756
44757 2006-11-01  Eric Blake  <ebb9@byu.net>
44758
44759         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44760
44761         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44762
44763 2006-10-29  Bruno Haible  <bruno@clisp.org>
44764
44765         Make it compile in C++ mode.
44766         * lib/full-write.c (full_rw): Add a cast.
44767
44768 2006-11-01  Bruno Haible  <bruno@clisp.org>
44769
44770         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44771         be POSIX compliant.
44772         Reported by Roger Persson <perrog@gmail.com>.
44773
44774 2006-11-01  Eric Blake  <ebb9@byu.net>
44775
44776         * lib/getopt_.h: Fix comments.
44777
44778 2006-10-31  Eric Blake  <ebb9@byu.net>
44779
44780         * modules/tmpdir (Depends-on): Add sys_stat.
44781         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44782         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44783         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44784         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44785         tempname.
44786
44787 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44788
44789         Avoid some C++ diagnostics reported by Bruno Haible.
44790         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44791         xmalloc.
44792         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44793         (struct slotvec): Move to top level.
44794         (quotearg_n_options): Rewrite to avoid xmalloc.
44795         * lib/xalloc.h (xcharalloc): New function.
44796         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44797         [defined __cplusplus]: Add function template that provides result
44798         type propagation.  This part of the change is from Bruno Haible.
44799
44800 2006-10-29  Bruno Haible  <bruno@clisp.org>
44801
44802         Make it compile in C++ mode.
44803         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44804         * lib/strnlen1.c (strnlen1): Cast memchr result.
44805         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44806         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44807         (create_temp_dir): Rename local variable 'template'.
44808         (compile_csharp_using_sscli): Add cast.
44809         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44810         * lib/findprog.c (find_in_path): Likewise.
44811         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44812         * lib/wait-process.c (register_slave_subprocess): Likewise.
44813
44814 2006-10-22  Bruno Haible  <bruno@clisp.org>
44815
44816         * modules/tsearch: New file.
44817         * lib/tsearch.h: New file.
44818         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44819         * m4/tsearch.m4: New file.
44820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44821
44822 2006-10-29  Eric Blake  <ebb9@byu.net>
44823
44824         * lib/arcfour.c: Assume config.h.
44825         * lib/arctwo.c: Likewise.
44826         * lib/base64.c: Likewise.
44827         * lib/check-version.c: Likewise.
44828         * lib/crc.c: Likewise.
44829         * lib/des.c: Likewise.
44830         * lib/gc-gnulib.c: Likewise.
44831         * lib/gc-libgcrypt.c: Likewise.
44832         * lib/gc-pbkdf2-sha1.c: Likewise.
44833         * lib/getaddrinfo.c: Likewise.
44834         * lib/getdelim.c: Likewise.
44835         * lib/getline.c: Likewise.
44836         * lib/hmac-md5.c: Likewise.
44837         * lib/hmac-sha1.c: Likewise.
44838         * lib/iconvme.c: Likewise.
44839         * lib/md2.c: Likewise.
44840         * lib/md4.c: Likewise.
44841         * lib/memxor.c: Likewise.
44842         * lib/read-file.c: Likewise.
44843         * lib/readline.c: Likewise.
44844         * lib/rijndael-alg-fst.c: Likewise.
44845         * lib/rijndael-api-fst.c: Likewise.
44846         * lib/xgetdomainname.c: Likewise.
44847
44848 2006-10-28  Eric Blake  <ebb9@byu.net>
44849
44850         * lib/xstrndup.c: Assume config.h.
44851
44852 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44853
44854         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44855         stat-macros.h is now for our own macros, whereas stat_h is for
44856         macros in the <sys/stat.h> name space.
44857         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44858         (STAT_MACROS_H): Remove.
44859         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44860         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44861         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44862         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44863         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44864         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44865         Move these macros to ...
44866         * lib/stat_.h: here.  Don't include stat-macros.h.
44867         * lib/canonicalize.c: Don't include stat-macros.h.
44868         * lib/chown.c: Likewise.
44869         * lib/euidaccess.c: Likewise.
44870         * lib/file-type.c: Likewise.
44871         * lib/filemode.c: Likewise.
44872         * lib/glob.c: Likewise.
44873         * lib/isapipe.c: Likewise.
44874         * lib/lchown.c: Likewise.
44875         * lib/lstat.c: Likewise.
44876         * lib/mkdir-p.c: Likewise.
44877         * lib/rmdir.c: Likewise.
44878         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
44879         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
44880         unless mkdir isn't declared, to speed up 'configure'.
44881         Always create sys/stat.h, since it's unlikely any real sys/stat.h
44882         would define all the S_* symbols.
44883         * modules/canonicalize (Depends-on):
44884         Depend on sys_stat, not stat-macros.
44885         * modules/chown: Likewise.
44886         * modules/euidaccess: Likewise.
44887         * modules/filemode: Likewise.
44888         * modules/file-type: Likewise.
44889         * modules/glob: Likewise.
44890         * modules/isapipe: Likewise.
44891         * modules/lchown: Likewise.
44892         * modules/lstat: Likewise.
44893         * modules/mkancesdirs: Likewise.
44894         * modules/rmdir: Likewise.
44895         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
44896         * modules/modechange: Likewise.
44897         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
44898         (configure.ac): Remove gl_STAT_MACROS.
44899         * modules/sys_stat (Depends-on): Remove stat-macros.
44900
44901 2006-10-27  Bruno Haible  <bruno@clisp.org>
44902
44903         * m4/signed.m4: Remove file.
44904         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
44905         invocation.
44906         * modules/vasnprintf (Files): Remove m4/signed.m4.
44907
44908 2006-10-27  Bruno Haible  <bruno@clisp.org>
44909
44910         Update to GNU gettext 0.16.
44911         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
44912         m4/inttypes-h.m4, m4/signed.m4.
44913         * m4/gettext.m4: Update to GNU gettext 0.16.
44914         * m4/intl.m4: New file, from GNU gettext.
44915         * m4/intldir.m4: New file, from GNU gettext.
44916         * config/srclist.txt: Update
44917
44918 2006-10-27  Eric Blake  <ebb9@byu.net>
44919
44920         * MODULES.html.sh: Document tempname.
44921         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
44922         dependencies.
44923         (Files): Move lib/tempname.c...
44924         * modules/tempname: ...to this new module.
44925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
44926         (gl_PREREQ_TEMPNAME): Move...
44927         * m4/tempname.m4: ...to this new file.
44928         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
44929         * modules/sys_stat (Depends-on): Add stat-macros.
44930         * lib/stat_.h (includes): Pick up stat macros.
44931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
44932         if stat macros are broken.
44933         * lib/tempname.c (includes): No need to include "stat-macros.h".
44934         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
44935         (direxists, __path_search) [!_LIBC]: Don't compile these in
44936         gnulib; the tmpdir module covers that.
44937         * lib/tempname.h: New file.
44938
44939 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44940
44941         * COPYING: Explain how gnulib-tool converts licence headers.
44942         Almost all wording by Eric Blake.
44943
44944 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         * lib/mbchar.h (is_basic_table): Make read-only.
44947         * lib/mbchar.c (is_basic_table): Likewise.
44948         Reported by John Darrington.
44949
44950 2006-10-25  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/progname.h (set_program_name): Undefine before defining.
44953
44954 2006-10-25  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
44957         false for non-gcc C++ compilers.
44958         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44959
44960 2006-10-24  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
44963         iconv implementations like Irix iconv.
44964
44965 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44966
44967         * modules/vararrays: New file.
44968         * m4/vararrays.m4: New file, taken from diffutils.
44969         * MODULES.html.sh: New module vararrays.
44970
44971 2006-10-24  Karl Berry  <karl@gnu.org>
44972
44973         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
44974         Don't call GNU Unix.
44975
44976 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44977
44978         * users.txt: Add Libtool.
44979
44980         Sync from Libtool:
44981
44982         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44983
44984         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
44985         to gnulib's policy of including config.h unconditionally.
44986
44987 2006-10-24  Bruno Haible  <bruno@clisp.org>
44988
44989         * modules/wcwidth (Files): Add m4/wint_t.m4.
44990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
44991         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
44992
44993 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44994
44995         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
44996         to pacify GCC with some -W flags enabled.  Problem reported by
44997         Bruno Haible.
44998
44999 2006-10-24  Jim Meyering  <jim@meyering.net>
45000
45001         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45002         Reported by Karl Berry.
45003
45004 2006-10-23  Bruno Haible  <bruno@clisp.org>
45005
45006         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45007
45008 2006-10-24  Bruno Haible  <bruno@clisp.org>
45009
45010         * lib/gl_list.h: Use C comment style, not C++ comment style.
45011
45012 2006-10-23  Eric Blake  <ebb9@byu.net>
45013
45014         * lib/getaddrinfo.c (includes): Add missing include.
45015
45016 2006-10-23  Bruno Haible  <bruno@clisp.org>
45017             Paul Eggert  <eggert@cs.ucla.edu>
45018
45019         Ability to rename obstack_free.
45020         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45021         obstack_free.
45022         (obstack_free): Invoke the __obstack_free macro.
45023         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45024
45025 2006-10-23  Bruno Haible  <bruno@clisp.org>
45026             Paul Eggert  <eggert@cs.ucla.edu>
45027
45028         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45029         __argc, __argv from the declaration. (They are defined as macros on
45030         mingw.)
45031
45032 2006-10-22  Bruno Haible  <bruno@clisp.org>
45033
45034         * doc/gnulib-intro.texi: New file.
45035         * doc/gnulib.texi: Include it.
45036
45037 2006-10-21  Bruno Haible  <bruno@clisp.org>
45038
45039         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45040         "Introduction", "Miscellanous Notes", "Particular Modules".
45041
45042 2006-10-21  Bruno Haible  <bruno@clisp.org>
45043
45044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45045         Change mostlyclean-local rule to avoid sh syntax error from bash
45046         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45047
45048 2006-10-23  Jim Meyering  <jim@meyering.net>
45049
45050         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45051         in place of snprintf.
45052
45053         * modules/inttostr (Files): Add lib/uinttostr.c.
45054         * lib/uinttostr.c (inttostr): New file/function.
45055         * lib/inttostr.h (uinttostr): Declare.
45056         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45057         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45058         Add uinttostr.
45059         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45060
45061 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45062
45063         * lib/canonicalize.c (ELOOP): Define if not already defined.
45064         Problem reported by Bruno Haible in
45065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45066
45067 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45068
45069         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45070         Problem reported by Perry Smith and Ville Laurikari.
45071
45072         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45073         uses.
45074
45075 2006-10-19  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45078         for mingw.
45079
45080 2006-10-19  Bruno Haible  <bruno@clisp.org>
45081
45082         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45083         Needed for mingw.
45084
45085 2006-10-19  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45088
45089 2006-10-19  Bruno Haible  <bruno@clisp.org>
45090
45091         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45092         it.
45093
45094 2006-10-19  Bruno Haible  <bruno@clisp.org>
45095
45096         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45097         invocation.
45098
45099 2006-10-19  Bruno Haible  <bruno@clisp.org>
45100
45101         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45102         mountlist by default.
45103
45104 2006-10-16  Bruno Haible  <bruno@clisp.org>
45105
45106         * lib/c-strstr.c: Include c-strstr.h.
45107
45108 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45109
45110         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45111         in a slash.
45112
45113 2006-10-18  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/lock.h [C++]: Wrap definitions in extern "C".
45116
45117 2006-10-18  Bruno Haible  <bruno@clisp.org>
45118
45119         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45120         gl_LIBOBJS list.
45121
45122 2006-10-18  Bruno Haible  <bruno@clisp.org>
45123
45124         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45125
45126 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * lib/xstrtol.h: Include gettext.h.
45129         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45130         Problem reported by Eric Blake.
45131         * modules/xstrtol (Depends-on): Add gettext-h.
45132
45133 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45134
45135         * lib/strftime.c (advance): New macro.
45136         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45137         incomplete type, so you can't add 0 to it.  Problem and patch
45138         reported by Eelco Dolstra for dietlibc.
45139
45140 2006-10-18  Jim Meyering  <jim@meyering.net>
45141
45142         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45143         type for a local, and rename it: s/up/user_proc/.
45144
45145 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45146
45147         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45148         READ_UTMP_USER_PROCESS.
45149         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45150
45151 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45152
45153         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45154         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45155
45156 2006-10-17  Eric Blake  <ebb9@byu.net>
45157
45158         * lib/sigprocmask.c (sigprocmask): Fix typo.
45159
45160         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45161
45162         * modules/clean-temp (Makefile.am): Don't add to make output...
45163         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45164         config.h.
45165
45166 2006-10-17  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45169         differently if DEFAULT_TEXT_DOMAIN is set.
45170
45171 2006-10-16  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/clean-temp.c: Include fwriteerror.h.
45174
45175 2006-10-16  Bruno Haible  <bruno@clisp.org>
45176
45177         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45178
45179 2006-10-16  Bruno Haible  <bruno@clisp.org>
45180
45181         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45182         * lib/sigprocmask.h: Include <sys/types.h>.
45183         (sigset_t): Use the system's definition if present.
45184
45185 2006-10-17  Eric Blake  <ebb9@byu.net>
45186
45187         * lib/xvasprintf.c (includes): Assume config.h.
45188         * lib/xasprintf.c (includes): Likewise.
45189
45190 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45193         at least as wide as intmax_t.
45194
45195 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45196
45197         (Imported from Automake.)
45198         * build-aux/gnupload: Update to version 1.1 of directive file.
45199
45200 2006-10-16  Eric Blake  <ebb9@byu.net>
45201
45202         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45203         match Automake 1.10a.
45204
45205 2006-10-14  Bruno Haible  <bruno@clisp.org>
45206
45207         * modules/sigprocmask: New file.
45208         * lib/sigprocmask.h: New file.
45209         * lib/sigprocmask.c: New file.
45210         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45211         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45212         request sigprocmask.o.
45213         (gl_PREREQ_SIGPROCMASK): New macro.
45214         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45215         (Depends-on): Add sigprocmask.
45216         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45217         gt_SIGNALBLOCKING. Test for 'raise' only once.
45218         * lib/fatal-signal.c: Include sigprocmask.h.
45219         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45220         unblock_fatal_signals): Define always.
45221         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45222         sigprocmask.
45223
45224 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45225
45226         Sync from Automake.
45227         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45228         which incorrectly sets the mode of an existing destination
45229         directory.  In some cases the unpatched install-sh could do the
45230         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45231         system.  We hope this is rare in practice, but it's clearly worth
45232         fixing.  Problem reported by Alex Unleashed in
45233         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45234         Also, don't bother to check for -m bugs unless we're using -m;
45235         suggested by Stepan Kasal.
45236
45237 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45238
45239         Sync from Automake.
45240         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45241         `-c' flag, so they appear at the same position as in %FASTDEP%
45242         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45243         which ignores unknown options only after the first non-option.
45244         Bug report against M4 by Nelson H. F. Beebe.
45245
45246 2006-10-13  Jim Meyering  <jim@meyering.net>
45247
45248         Fix a bug in yesterday's change.
45249         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45250         p->fts_statp->st_dev would be used uninitialized.
45251         Ensures that we always call fts_stat on the very first entry.
45252         Miklos Szeredi reported that find -xdev stopped working.
45253
45254 2006-10-12  Bruno Haible  <bruno@clisp.org>
45255
45256         * gnulib-tool (func_get_automake_snippet): Append an automatically
45257         computed EXTRA_DIST augmentation.
45258         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45259         * modules/alloca-opt (Makefile.am): Likewise.
45260         * modules/allocsa (Makefile.am): Likewise.
45261         * modules/arcfour (Makefile.am): Likewise.
45262         * modules/arctwo (Makefile.am): Likewise.
45263         * modules/argmatch (Makefile.am): Likewise.
45264         * modules/argz (Makefile.am): Likewise.
45265         * modules/atexit (Makefile.am): Likewise.
45266         * modules/backupfile (Makefile.am): Likewise.
45267         * modules/byteswap (Makefile.am): Likewise.
45268         * modules/c-strtod (Makefile.am): Likewise.
45269         * modules/c-strtold (Makefile.am): Likewise.
45270         * modules/calloc (Makefile.am): Likewise.
45271         * modules/canon-host (Makefile.am): Likewise.
45272         * modules/canonicalize (Makefile.am): Likewise.
45273         * modules/chdir-long (Makefile.am): Likewise.
45274         * modules/chdir-safer (Makefile.am): Likewise.
45275         * modules/check-version (Makefile.am): Likewise.
45276         * modules/chown (Makefile.am): Likewise.
45277         * modules/cloexec (Makefile.am): Likewise.
45278         * modules/close-stream (Makefile.am): Likewise.
45279         * modules/closeout (Makefile.am): Likewise.
45280         * modules/crc (Makefile.am): Likewise.
45281         * modules/csharpexec (Makefile.am): Likewise.
45282         * modules/cycle-check (Makefile.am): Likewise.
45283         * modules/des (Makefile.am): Likewise.
45284         * modules/dev-ino (Makefile.am): Likewise.
45285         * modules/dirfd (Makefile.am): Likewise.
45286         * modules/dirname (Makefile.am): Likewise.
45287         * modules/dup2 (Makefile.am): Likewise.
45288         * modules/eealloc (Makefile.am): Likewise.
45289         * modules/error (Makefile.am): Likewise.
45290         * modules/euidaccess (Makefile.am): Likewise.
45291         * modules/exclude (Makefile.am): Likewise.
45292         * modules/exitfail (Makefile.am): Likewise.
45293         * modules/fcntl-safer (Makefile.am): Likewise.
45294         * modules/fcntl (Makefile.am): Likewise.
45295         * modules/file-type (Makefile.am): Likewise.
45296         * modules/fileblocks (Makefile.am): Likewise.
45297         * modules/filemode (Makefile.am): Likewise.
45298         * modules/filenamecat (Makefile.am): Likewise.
45299         * modules/fnmatch (Makefile.am): Likewise.
45300         * modules/fopen-safer (Makefile.am): Likewise.
45301         * modules/fpending (Makefile.am): Likewise.
45302         * modules/fprintftime (Makefile.am): Likewise.
45303         * modules/free (Makefile.am): Likewise.
45304         * modules/fsusage (Makefile.am): Likewise.
45305         * modules/ftruncate (Makefile.am): Likewise.
45306         * modules/fts (Makefile.am): Likewise.
45307         * modules/gc-arcfour (Makefile.am): Likewise.
45308         * modules/gc-des (Makefile.am): Likewise.
45309         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45310         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45311         * modules/gc-md4 (Makefile.am): Likewise.
45312         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45313         * modules/gc-sha1 (Makefile.am): Likewise.
45314         * modules/gc (Makefile.am): Likewise.
45315         * modules/getaddrinfo (Makefile.am): Likewise.
45316         * modules/getcwd (Makefile.am): Likewise.
45317         * modules/getdelim (Makefile.am): Likewise.
45318         * modules/getdomainname (Makefile.am): Likewise.
45319         * modules/getgroups (Makefile.am): Likewise.
45320         * modules/gethostname (Makefile.am): Likewise.
45321         * modules/gethrxtime (Makefile.am): Likewise.
45322         * modules/getline (Makefile.am): Likewise.
45323         * modules/getloadavg (Makefile.am): Likewise.
45324         * modules/getlogin_r (Makefile.am): Likewise.
45325         * modules/getndelim2 (Makefile.am): Likewise.
45326         * modules/getopt (Makefile.am): Likewise.
45327         * modules/getpagesize (Makefile.am): Likewise.
45328         * modules/getpass-gnu (Makefile.am): Likewise.
45329         * modules/getpass (Makefile.am): Likewise.
45330         * modules/getsubopt (Makefile.am): Likewise.
45331         * modules/gettime (Makefile.am): Likewise.
45332         * modules/gettimeofday (Makefile.am): Likewise.
45333         * modules/getugroups (Makefile.am): Likewise.
45334         * modules/getusershell (Makefile.am): Likewise.
45335         * modules/glob (Makefile.am): Likewise.
45336         * modules/group-member (Makefile.am): Likewise.
45337         * modules/hard-locale (Makefile.am): Likewise.
45338         * modules/hash (Makefile.am): Likewise.
45339         * modules/hmac-md5 (Makefile.am): Likewise.
45340         * modules/hmac-sha1 (Makefile.am): Likewise.
45341         * modules/human (Makefile.am): Likewise.
45342         * modules/idcache (Makefile.am): Likewise.
45343         * modules/imaxabs (Makefile.am): Likewise.
45344         * modules/imaxdiv (Makefile.am): Likewise.
45345         * modules/inet_ntop (Makefile.am): Likewise.
45346         * modules/inet_pton (Makefile.am): Likewise.
45347         * modules/intprops (Makefile.am): Likewise.
45348         * modules/inttostr (Makefile.am): Likewise.
45349         * modules/inttypes (Makefile.am): Likewise.
45350         * modules/isapipe (Makefile.am): Likewise.
45351         * modules/javaversion (Makefile.am): Likewise.
45352         * modules/lchmod (Makefile.am): Likewise.
45353         * modules/lchown (Makefile.am): Likewise.
45354         * modules/localcharset (Makefile.am): Likewise.
45355         * modules/long-options (Makefile.am): Likewise.
45356         * modules/lstat (Makefile.am): Likewise.
45357         * modules/malloc (Makefile.am): Likewise.
45358         * modules/mathl (Makefile.am): Likewise.
45359         * modules/mbchar (Makefile.am): Likewise.
45360         * modules/md2 (Makefile.am): Likewise.
45361         * modules/md4 (Makefile.am): Likewise.
45362         * modules/md5 (Makefile.am): Likewise.
45363         * modules/memcasecmp (Makefile.am): Likewise.
45364         * modules/memchr (Makefile.am): Likewise.
45365         * modules/memcmp (Makefile.am): Likewise.
45366         * modules/memcoll (Makefile.am): Likewise.
45367         * modules/memcpy (Makefile.am): Likewise.
45368         * modules/memmem (Makefile.am): Likewise.
45369         * modules/memmove (Makefile.am): Likewise.
45370         * modules/mempcpy (Makefile.am): Likewise.
45371         * modules/memrchr (Makefile.am): Likewise.
45372         * modules/memset (Makefile.am): Likewise.
45373         * modules/memxor (Makefile.am): Likewise.
45374         * modules/mkancesdirs (Makefile.am): Likewise.
45375         * modules/mkdir-p (Makefile.am): Likewise.
45376         * modules/mkdir (Makefile.am): Likewise.
45377         * modules/mkdtemp (Makefile.am): Likewise.
45378         * modules/mkstemp (Makefile.am): Likewise.
45379         * modules/mktime (Makefile.am): Likewise.
45380         * modules/modechange (Makefile.am): Likewise.
45381         * modules/mountlist (Makefile.am): Likewise.
45382         * modules/nanosleep (Makefile.am): Likewise.
45383         * modules/obstack (Makefile.am): Likewise.
45384         * modules/openat (Makefile.am): Likewise.
45385         * modules/pagealign_alloc (Makefile.am): Likewise.
45386         * modules/pathmax (Makefile.am): Likewise.
45387         * modules/physmem (Makefile.am): Likewise.
45388         * modules/poll (Makefile.am): Likewise.
45389         * modules/posixtm (Makefile.am): Likewise.
45390         * modules/posixver (Makefile.am): Likewise.
45391         * modules/putenv (Makefile.am): Likewise.
45392         * modules/quote (Makefile.am): Likewise.
45393         * modules/quotearg (Makefile.am): Likewise.
45394         * modules/raise (Makefile.am): Likewise.
45395         * modules/read-file (Makefile.am): Likewise.
45396         * modules/readline (Makefile.am): Likewise.
45397         * modules/readlink (Makefile.am): Likewise.
45398         * modules/readtokens (Makefile.am): Likewise.
45399         * modules/readutmp (Makefile.am): Likewise.
45400         * modules/realloc (Makefile.am): Likewise.
45401         * modules/regex (Makefile.am): Likewise.
45402         * modules/rename-dest-slash (Makefile.am): Likewise.
45403         * modules/rename (Makefile.am): Likewise.
45404         * modules/rijndael (Makefile.am): Likewise.
45405         * modules/rmdir (Makefile.am): Likewise.
45406         * modules/rpmatch (Makefile.am): Likewise.
45407         * modules/safe-read (Makefile.am): Likewise.
45408         * modules/safe-write (Makefile.am): Likewise.
45409         * modules/same-inode (Makefile.am): Likewise.
45410         * modules/same (Makefile.am): Likewise.
45411         * modules/save-cwd (Makefile.am): Likewise.
45412         * modules/savedir (Makefile.am): Likewise.
45413         * modules/setenv (Makefile.am): Likewise.
45414         * modules/settime (Makefile.am): Likewise.
45415         * modules/sha1 (Makefile.am): Likewise.
45416         * modules/sig2str (Makefile.am): Likewise.
45417         * modules/snprintf (Makefile.am): Likewise.
45418         * modules/stat-macros (Makefile.am): Likewise.
45419         * modules/stat-time (Makefile.am): Likewise.
45420         * modules/stdbool (Makefile.am): Likewise.
45421         * modules/stdint (Makefile.am): Likewise.
45422         * modules/stdlib-safer (Makefile.am): Likewise.
45423         * modules/stpcpy (Makefile.am): Likewise.
45424         * modules/stpncpy (Makefile.am): Likewise.
45425         * modules/strcase (Makefile.am): Likewise.
45426         * modules/strcasestr (Makefile.am): Likewise.
45427         * modules/strchrnul (Makefile.am): Likewise.
45428         * modules/strcspn (Makefile.am): Likewise.
45429         * modules/strdup (Makefile.am): Likewise.
45430         * modules/strerror (Makefile.am): Likewise.
45431         * modules/strftime (Makefile.am): Likewise.
45432         * modules/strndup (Makefile.am): Likewise.
45433         * modules/strnlen (Makefile.am): Likewise.
45434         * modules/strpbrk (Makefile.am): Likewise.
45435         * modules/strsep (Makefile.am): Likewise.
45436         * modules/strstr (Makefile.am): Likewise.
45437         * modules/strtod (Makefile.am): Likewise.
45438         * modules/strtoimax (Makefile.am): Likewise.
45439         * modules/strtok_r (Makefile.am): Likewise.
45440         * modules/strtol (Makefile.am): Likewise.
45441         * modules/strtoll (Makefile.am): Likewise.
45442         * modules/strtoul (Makefile.am): Likewise.
45443         * modules/strtoull (Makefile.am): Likewise.
45444         * modules/strtoumax (Makefile.am): Likewise.
45445         * modules/strverscmp (Makefile.am): Likewise.
45446         * modules/sys_socket (Makefile.am): Likewise.
45447         * modules/sys_stat (Makefile.am): Likewise.
45448         * modules/sysexits (Makefile.am): Likewise.
45449         * modules/time_r (Makefile.am): Likewise.
45450         * modules/timegm (Makefile.am): Likewise.
45451         * modules/timespec (Makefile.am): Likewise.
45452         * modules/tmpfile-safer (Makefile.am): Likewise.
45453         * modules/trim (Makefile.am): Likewise.
45454         * modules/unistd-safer (Makefile.am): Likewise.
45455         * modules/unlinkdir (Makefile.am): Likewise.
45456         * modules/unlocked-io (Makefile.am): Likewise.
45457         * modules/userspec (Makefile.am): Likewise.
45458         * modules/utime (Makefile.am): Likewise.
45459         * modules/utimecmp (Makefile.am): Likewise.
45460         * modules/utimens (Makefile.am): Likewise.
45461         * modules/vasnprintf (Makefile.am): Likewise.
45462         * modules/vasprintf (Makefile.am): Likewise.
45463         * modules/vsnprintf (Makefile.am): Likewise.
45464         * modules/xalloc (Makefile.am): Likewise.
45465         * modules/xgetcwd (Makefile.am): Likewise.
45466         * modules/xnanosleep (Makefile.am): Likewise.
45467         * modules/xreadlink (Makefile.am): Likewise.
45468         * modules/xstrtod (Makefile.am): Likewise.
45469         * modules/xstrtol (Makefile.am): Likewise.
45470         * modules/xstrtold (Makefile.am): Likewise.
45471         * modules/yesno (Makefile.am): Likewise.
45472         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45473
45474 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45475
45476         * modules/error (Makefile.am): Distribute files through
45477         EXTRA_DIST, not lib_SOURCES.
45478
45479 2006-10-12  Eric Blake  <ebb9@byu.net>
45480
45481         * modules/error (Makefile.am): Distribute files in /lib.
45482         * modules/obstack (Makefile.am): Likewise.
45483
45484 2006-10-12  Bruno Haible  <bruno@clisp.org>
45485
45486         * modules/acl (Makefile.am): Distribute all files in lib/ through
45487         EXTRA_DIST.
45488         * modules/arcfour (Makefile.am): Likewise.
45489         * modules/arctwo (Makefile.am): Likewise.
45490         * modules/argmatch (Makefile.am): Likewise.
45491         * modules/argz (Makefile.am): Likewise.
45492         * modules/atexit (Makefile.am): Likewise.
45493         * modules/backupfile (Makefile.am): Likewise.
45494         * modules/c-strtod (Makefile.am): Likewise.
45495         * modules/c-strtold (Makefile.am): Likewise.
45496         * modules/calloc (Makefile.am): Likewise.
45497         * modules/canon-host (Makefile.am): Likewise.
45498         * modules/canonicalize (Makefile.am): Likewise.
45499         * modules/chdir-long (Makefile.am): Likewise.
45500         * modules/chdir-safer (Makefile.am): Likewise.
45501         * modules/check-version (Makefile.am): Likewise.
45502         * modules/chown (Makefile.am): Likewise.
45503         * modules/cloexec (Makefile.am): Likewise.
45504         * modules/close-stream (Makefile.am): Likewise.
45505         * modules/closeout (Makefile.am): Likewise.
45506         * modules/crc (Makefile.am): Likewise.
45507         * modules/cycle-check (Makefile.am): Likewise.
45508         * modules/des (Makefile.am): Likewise.
45509         * modules/dirfd (Makefile.am): Likewise.
45510         * modules/dirname (Makefile.am): Likewise.
45511         * modules/dup2 (Makefile.am): Likewise.
45512         * modules/euidaccess (Makefile.am): Likewise.
45513         * modules/exclude (Makefile.am): Likewise.
45514         * modules/exitfail (Makefile.am): Likewise.
45515         * modules/fcntl-safer (Makefile.am): Likewise.
45516         * modules/file-type (Makefile.am): Likewise.
45517         * modules/fileblocks (Makefile.am): Likewise.
45518         * modules/filemode (Makefile.am): Likewise.
45519         * modules/filenamecat (Makefile.am): Likewise.
45520         * modules/fnmatch (Makefile.am): Likewise.
45521         * modules/fopen-safer (Makefile.am): Likewise.
45522         * modules/fpending (Makefile.am): Likewise.
45523         * modules/fprintftime (Makefile.am): Likewise.
45524         * modules/free (Makefile.am): Likewise.
45525         * modules/fsusage (Makefile.am): Likewise.
45526         * modules/ftruncate (Makefile.am): Likewise.
45527         * modules/fts (Makefile.am): Likewise.
45528         * modules/gc (Makefile.am): Likewise.
45529         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45530         * modules/getaddrinfo (Makefile.am): Likewise.
45531         * modules/getcwd (Makefile.am): Likewise.
45532         * modules/getdelim (Makefile.am): Likewise.
45533         * modules/getdomainname (Makefile.am): Likewise.
45534         * modules/getgroups (Makefile.am): Likewise.
45535         * modules/gethostname (Makefile.am): Likewise.
45536         * modules/gethrxtime (Makefile.am): Likewise.
45537         * modules/getline (Makefile.am): Likewise.
45538         * modules/getloadavg (Makefile.am): Likewise.
45539         * modules/getlogin_r (Makefile.am): Likewise.
45540         * modules/getopt (Makefile.am): Likewise.
45541         * modules/getpass (Makefile.am): Likewise.
45542         * modules/getpass-gnu (Makefile.am): Likewise.
45543         * modules/getsubopt (Makefile.am): Likewise.
45544         * modules/gettime (Makefile.am): Likewise.
45545         * modules/gettimeofday (Makefile.am): Likewise.
45546         * modules/getugroups (Makefile.am): Likewise.
45547         * modules/getusershell (Makefile.am): Likewise.
45548         * modules/glob (Makefile.am): Likewise.
45549         * modules/group-member (Makefile.am): Likewise.
45550         * modules/hard-locale (Makefile.am): Likewise.
45551         * modules/hash (Makefile.am): Likewise.
45552         * modules/hmac-md5 (Makefile.am): Likewise.
45553         * modules/hmac-sha1 (Makefile.am): Likewise.
45554         * modules/human (Makefile.am): Likewise.
45555         * modules/idcache (Makefile.am): Likewise.
45556         * modules/imaxabs (Makefile.am): Likewise.
45557         * modules/imaxdiv (Makefile.am): Likewise.
45558         * modules/inet_ntop (Makefile.am): Likewise.
45559         * modules/inet_pton (Makefile.am): Likewise.
45560         * modules/inttostr (Makefile.am): Likewise.
45561         * modules/isapipe (Makefile.am): Likewise.
45562         * modules/lchown (Makefile.am): Likewise.
45563         * modules/long-options (Makefile.am): Likewise.
45564         * modules/lstat (Makefile.am): Likewise.
45565         * modules/malloc (Makefile.am): Likewise.
45566         * modules/mathl (Makefile.am): Likewise.
45567         * modules/mbchar (Makefile.am): Likewise.
45568         * modules/md2 (Makefile.am): Likewise.
45569         * modules/md4 (Makefile.am): Likewise.
45570         * modules/md5 (Makefile.am): Likewise.
45571         * modules/memcasecmp (Makefile.am): Likewise.
45572         * modules/memchr (Makefile.am): Likewise.
45573         * modules/memcmp (Makefile.am): Likewise.
45574         * modules/memcoll (Makefile.am): Likewise.
45575         * modules/memcpy (Makefile.am): Likewise.
45576         * modules/memmem (Makefile.am): Likewise.
45577         * modules/memmove (Makefile.am): Likewise.
45578         * modules/mempcpy (Makefile.am): Likewise.
45579         * modules/memrchr (Makefile.am): Likewise.
45580         * modules/memset (Makefile.am): Likewise.
45581         * modules/memxor (Makefile.am): Likewise.
45582         * modules/mkancesdirs (Makefile.am): Likewise.
45583         * modules/mkdir (Makefile.am): Likewise.
45584         * modules/mkdir-p (Makefile.am): Likewise.
45585         * modules/mkdtemp (Makefile.am): Likewise.
45586         * modules/mkstemp (Makefile.am): Likewise.
45587         * modules/mktime (Makefile.am): Likewise.
45588         * modules/modechange (Makefile.am): Likewise.
45589         * modules/mountlist (Makefile.am): Likewise.
45590         * modules/nanosleep (Makefile.am): Likewise.
45591         * modules/openat (Makefile.am): Likewise.
45592         * modules/pagealign_alloc (Makefile.am): Likewise.
45593         * modules/physmem (Makefile.am): Likewise.
45594         * modules/poll (Makefile.am): Likewise.
45595         * modules/posixtm (Makefile.am): Likewise.
45596         * modules/posixver (Makefile.am): Likewise.
45597         * modules/putenv (Makefile.am): Likewise.
45598         * modules/quote (Makefile.am): Likewise.
45599         * modules/quotearg (Makefile.am): Likewise.
45600         * modules/raise (Makefile.am): Likewise.
45601         * modules/read-file (Makefile.am): Likewise.
45602         * modules/readline (Makefile.am): Likewise.
45603         * modules/readlink (Makefile.am): Likewise.
45604         * modules/readtokens (Makefile.am): Likewise.
45605         * modules/readutmp (Makefile.am): Likewise.
45606         * modules/realloc (Makefile.am): Likewise.
45607         * modules/regex (Makefile.am): Likewise.
45608         * modules/rename (Makefile.am): Likewise.
45609         * modules/rename-dest-slash (Makefile.am): Likewise.
45610         * modules/rijndael (Makefile.am): Likewise.
45611         * modules/rmdir (Makefile.am): Likewise.
45612         * modules/rpmatch (Makefile.am): Likewise.
45613         * modules/safe-read (Makefile.am): Likewise.
45614         * modules/safe-write (Makefile.am): Likewise.
45615         * modules/same (Makefile.am): Likewise.
45616         * modules/save-cwd (Makefile.am): Likewise.
45617         * modules/savedir (Makefile.am): Likewise.
45618         * modules/setenv (Makefile.am): Likewise.
45619         * modules/settime (Makefile.am): Likewise.
45620         * modules/sha1 (Makefile.am): Likewise.
45621         * modules/sig2str (Makefile.am): Likewise.
45622         * modules/snprintf (Makefile.am): Likewise.
45623         * modules/stdlib-safer (Makefile.am): Likewise.
45624         * modules/stpcpy (Makefile.am): Likewise.
45625         * modules/stpncpy (Makefile.am): Likewise.
45626         * modules/strcase (Makefile.am): Likewise.
45627         * modules/strcasestr (Makefile.am): Likewise.
45628         * modules/strchrnul (Makefile.am): Likewise.
45629         * modules/strcspn (Makefile.am): Likewise.
45630         * modules/strdup (Makefile.am): Likewise.
45631         * modules/strerror (Makefile.am): Likewise.
45632         * modules/strftime (Makefile.am): Likewise.
45633         * modules/strndup (Makefile.am): Likewise.
45634         * modules/strnlen (Makefile.am): Likewise.
45635         * modules/strpbrk (Makefile.am): Likewise.
45636         * modules/strsep (Makefile.am): Likewise.
45637         * modules/strstr (Makefile.am): Likewise.
45638         * modules/strtod (Makefile.am): Likewise.
45639         * modules/strtoimax (Makefile.am): Likewise.
45640         * modules/strtok_r (Makefile.am): Likewise.
45641         * modules/strtol (Makefile.am): Likewise.
45642         * modules/strtoll (Makefile.am): Likewise.
45643         * modules/strtoul (Makefile.am): Likewise.
45644         * modules/strtoull (Makefile.am): Likewise.
45645         * modules/strtoumax (Makefile.am): Likewise.
45646         * modules/strverscmp (Makefile.am): Likewise.
45647         * modules/time_r (Makefile.am): Likewise.
45648         * modules/timegm (Makefile.am): Likewise.
45649         * modules/tmpfile-safer (Makefile.am): Likewise.
45650         * modules/unistd-safer (Makefile.am): Likewise.
45651         * modules/unlinkdir (Makefile.am): Likewise.
45652         * modules/userspec (Makefile.am): Likewise.
45653         * modules/utime (Makefile.am): Likewise.
45654         * modules/utimecmp (Makefile.am): Likewise.
45655         * modules/utimens (Makefile.am): Likewise.
45656         * modules/vasnprintf (Makefile.am): Likewise.
45657         * modules/vasprintf (Makefile.am): Likewise.
45658         * modules/vsnprintf (Makefile.am): Likewise.
45659         * modules/xalloc (Makefile.am): Likewise.
45660         * modules/xgetcwd (Makefile.am): Likewise.
45661         * modules/xnanosleep (Makefile.am): Likewise.
45662         * modules/xreadlink (Makefile.am): Likewise.
45663         * modules/xstrtod (Makefile.am): Likewise.
45664         * modules/xstrtol (Makefile.am): Likewise.
45665         * modules/xstrtold (Makefile.am): Likewise.
45666         * modules/yesno (Makefile.am): Likewise.
45667
45668 2006-10-12  Jim Meyering  <jim@meyering.net>
45669
45670         * m4/getloadavg.m4: Revert the change below.
45671
45672         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45673         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45674         fail with a symlink, which is what coreutils' ./bootstrap now
45675         creates by default.
45676
45677 2006-10-12  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45680         mingw.
45681         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45682         MSVC and mingw explicitly.
45683
45684 2006-10-11  Simon Josefsson  <jas@extundo.com>
45685             Bruno Haible  <bruno@clisp.org>
45686
45687         Add support for multiple gnulib-tool invocations in the scope of a
45688         single configure.ac file.
45689         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45690         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45691         with the same contents as the _LIBADD variable.
45692         (func_emit_initmacro_start, func_emit_initmacro_end,
45693         func_emit_initmacro_done): New functions.
45694         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45695         gl_LIBOBJS and gl_LTLIBOBJS.
45696
45697 2006-10-11  Bruno Haible  <bruno@clisp.org>
45698
45699         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45700         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45701         autoreconf. Instead, invoke autopoint explicitly but move back the
45702         *.m4 files from gnulib.
45703
45704 2006-10-11  Bruno Haible  <bruno@clisp.org>
45705
45706         * gnulib-tool (func_usage): Make module names after --create-testdir
45707         optional.
45708         (func_create_testdir): If no module was specified, use nearly all
45709         modules.
45710
45711 2006-10-12  Jim Meyering  <jim@meyering.net>
45712
45713         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45714         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45715         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45716         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45717         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45718         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45719         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45720         (fts_set_stat_required): New function.
45721         (fts_open): Defer the calls to fts_stat, if possible or requested.
45722         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45723         into fts_stat itself.
45724         (fts_read): Perform any required (deferred) fts_stat call.
45725         (fts_build): Likewise, for the directory we're about to open and read.
45726         In the readdir loop, carefully decide whether each entry will require
45727         an eventual call to fts_stat, using dirent.d_type info if available.
45728         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45729         a command line argument into this function.  Update all callers.
45730         Map a return value of FTS_DOT to FTS_D for a command line argument.
45731         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45732         Thanks to Miklos Szeredi for his tenacity and for the initial
45733         bug report about "find" failing on a FUSE-based file system.
45734
45735         * lib/fts.c (fts_open): Use consistent indentation.
45736
45737 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45740         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45741         reported by Jim Meyering.  All uses of cache variables renamed
45742         to match Autoconf's.
45743         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45744         the other one.
45745
45746         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45747         Fix misspelling in diagnostic.
45748
45749 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45750
45751         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45752         defined.  Problem reported by Matthew Woehlke.
45753
45754         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45755         Add support for Tandem NonStop R series.
45756         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45757         Use new macro.
45758
45759         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45760         (has_trailing_slash): Omit size arg; all callers changed.
45761         Omit 'inline', since it doesn't help performance and we'd
45762         need to configure it.
45763         Don't count //, ///, etc. as having a trailing slash.
45764         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45765         (rpl_rename_dest_slash): On failure, use rename's errno rather
45766         than (in some cases) an incorrect or junk errno.
45767         Simplify code by removing need to compute length; this does
45768         cause it to make two passes instead of one over the file name,
45769         but it's worth it.
45770
45771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45772         change, since Autoconf's version may no longer be appropriate now
45773         that we are using CVS Autoconf's version.  Add support for Tandem.
45774
45775 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45776             Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45779         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45780         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45781         gl_AC_TYPE_LONG_LONG.
45782
45783         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45784         instead of HAVE_LONG_LONG.
45785         * lib/printf-args.c (printf_fetchargs): Likewise.
45786         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45787         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45788         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45789         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45790         gl_AC_TYPE_LONG_LONG.
45791
45792 2006-10-11  Bruno Haible  <bruno@clisp.org>
45793
45794         * m4/longlong.m4: Add comments.
45795         * m4/ulonglong.m4: Likewise.
45796
45797 2006-10-10  Bruno Haible  <bruno@clisp.org>
45798
45799         Make it possible to #define stpcpy, strdup to aliases.
45800         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45801         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45802
45803 2006-10-10  Bruno Haible  <bruno@clisp.org>
45804
45805         Make it possible to #define gcd to an alias.
45806         * lib/gcd.c: Include config.h.
45807
45808 2006-10-10  Bruno Haible  <bruno@clisp.org>
45809
45810         Make it possible to #define c_isascii to an alias.
45811         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45812         defined. Undefine the macros before defining them, to avoid gcc
45813         warnings.
45814         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45815         define NO_C_CTYPE_MACROS early.
45816
45817 2006-10-10  Bruno Haible  <bruno@clisp.org>
45818
45819         Make it possible to #define set_program_name to an alias.
45820         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45821         ENABLE_RELOCATABLE early.
45822
45823 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45826         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45827         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45828         More generally, don't assume that 64-bit signed int is available
45829         if unsigned int is, and vice versa.
45830         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45831         unsigned symbols, not on their signed counterparts.
45832         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45833         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45834         (UINT64_C, UINTMAX_C):
45835         Likewise.
45836         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45837         unsigned counterparts.
45838         (Have_long_long, Unsigned): New macros.
45839         (Int): Renamed from INT.
45840         (strtoimax): Use the new macros.
45841         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45842         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45843         * modules/inttypes (inttypes.h): Substitute
45844         HAVE_UNSIGNED_LONG_LONG_INT.
45845         * modules/stdint (stdint.h): Likewise.
45846         (Files): Add m4/ulonglong.m4.
45847
45848 2006-10-10  Bruno Haible  <bruno@clisp.org>
45849
45850         Fix a gcc -Wshadow warning.
45851         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45852         to 'bucket'.
45853         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45854         gl_linked_indexof_from_to): Likewise.
45855         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45856         Likewise.
45857         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45858         Likewise.
45859         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45860         Reported by Eric Blake.
45861
45862 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45863
45864         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45865         for NetBSD.  Problem reported by Bruno Haible.
45866
45867 2006-10-09  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45870         Patch from Bruno Haible.
45871
45872 2006-10-09  Jim Meyering  <jim@meyering.net>
45873
45874         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45875         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45876         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
45877
45878 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         Don't include <config.h> twice; this doesn't work in some cases,
45881         e.g., when config.h has "#define intmax_t long long int" and
45882         we include <config.h>, <inttypes.h>, <config.h> in that order.
45883         Problem reported by Matthew Woehlke in:
45884         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
45885         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
45886         * lib/fts-cycle.c: Don't include config.h.
45887         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
45888         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
45889         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
45890         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45891         inttypes.h.
45892         * lib/xstrtoumax.c: Likewise.
45893         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
45894         __strtol and the like, so that this module is more like its siblings.
45895         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
45896         Remove; no longer needed now that we assume gnulib inttypes.h.
45897
45898 2006-10-08  Bruno Haible  <bruno@clisp.org>
45899
45900         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
45901         option.
45902
45903 2006-10-07  Jim Meyering  <jim@meyering.net>
45904
45905         * modules/inttypes (inttypes.h): Revert what seems to have been
45906         an inadvertent part of today's change: use "|", not "/" in the
45907         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
45908
45909 2006-10-07  Bruno Haible  <bruno@clisp.org>
45910
45911         * modules/sublist: New file.
45912
45913 2006-10-07  Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
45916         * modules/argz (argz.h): Likewise.
45917         * modules/arpa_inet (arpa/inet.h): Likewise.
45918         * modules/byteswap (byteswap.h): Likewise.
45919         * modules/configmake (configmake.h): Likewise.
45920         * modules/fcntl (fcntl.h): Likewise.
45921         * modules/fnmatch (fnmatch.h): Likewise.
45922         * modules/getopt (getopt.h): Likewise.
45923         * modules/glob (glob.h): Likewise.
45924         * modules/inttypes (inttypes.h): Likewise.
45925         * modules/netinet_in (netinet/in.h): Likewise.
45926         * modules/poll (poll.h): Likewise.
45927         * modules/stdbool (stdbool.h): Likewise.
45928         * modules/stdint (stdint.h): Likewise.
45929         * modules/sys_select (sys/select.h): Likewise.
45930         * modules/sys_socket (sys/socket.h): Likewise.
45931         * modules/sys_stat (sys/stat.h): Likewise.
45932         * modules/sysexits (sysexits.h): Likewise.
45933         * modules/unistd (unistd.h): Likewise.
45934         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45935         Add a "DO NOT EDIT" comment to the generated file.
45936         (func_import): Likewise for gnulib-comp.m4.
45937
45938 2006-10-07  Bruno Haible  <bruno@clisp.org>
45939
45940         * lib/gl_sublist.h: New file.
45941         * lib/gl_sublist.c: New file.
45942
45943 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45944
45945         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
45946         name (relative to the original working directory) and the file
45947         name component (relative to the temporary working directory).  All
45948         callers changed.
45949         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
45950         * lib/mkdir-p.c (make_dir_parents): Likewise.
45951         * lib/mkdir-p.h (make_dir_parents): Likewise.
45952
45953 2006-10-06  Eric Blake  <ebb9@byu.net>
45954
45955         Define several macros for use by the clean-temp module.
45956         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
45957         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
45958         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
45959
45960         * lib/clean-temp.h (close_stream_temp): New declaration.
45961         * lib/clean-temp.c (includes): Pull in headers according to what
45962         other modules are in use.
45963         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
45964
45965 2006-10-06  Bruno Haible  <bruno@clisp.org>
45966
45967         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
45968         instead of fopen, fwriteerror.
45969
45970 2006-10-06  Bruno Haible  <bruno@clisp.org>
45971
45972         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
45973         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
45974         int.
45975         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
45976         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
45977         Return an error indicator.
45978         Suggested by Eric Blake.
45979
45980 2006-10-06  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
45983         Reported by Eric Blake.
45984
45985 2006-10-06  Bruno Haible  <bruno@clisp.org>
45986
45987         * modules/closeout (Description): Mention stderr too.
45988
45989 2006-10-06  Bruno Haible  <bruno@clisp.org>
45990         and Paul Eggert  <eggert@cs.ucla.edu>
45991
45992         * lib/closeout.c (close_stdout): Also close stderr.
45993         * lib/closeout.h: Update comment.
45994
45995 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45996
45997         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
45998         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
45999         * lib/dirchownmod.c: Include lchown.h.
46000         * lib/lchown.c: Don't include files that lchown.h now includes.
46001         Don't declare chown, since lchown.h now does that.
46002         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46003         (lchown): Define to rpl_chown if lchown is declared but
46004         does not exist.  Declare using a prototype if lchown is not
46005         declared.  Add a copyright notice.
46006         * lib/mkstemp.h: Include <unistd.h>.
46007         * lib/openat.c: Include lchown.h.
46008
46009         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46010         we now test for that separately.
46011         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46012         rather than O_NOFOLLOW, when testing whether it's possible to
46013         avoid a race condition reliably.
46014         * lib/savewd.c (savewd_chdir): Likewise.
46015
46016         Remove macros that are no longer needed now that stdint.h is
46017         reliable.
46018         * lib/fsusage.c (UINTMAX_MAX): Remove.
46019         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46020         * lib/utimecmp.c (SIZE_MAX): Remove.
46021
46022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46023
46024         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46025         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46026         O_NOATIME works.
46027
46028 2006-10-05  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/gl_list.h (gl_sortedlist_search_from_to,
46031         gl_sortedlist_indexof_from_to): New declarations.
46032         (gl_list_implementation): New fields sortedlist_search_from_to,
46033         sortedlist_indexof_from_to.
46034         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46035         inline functions.
46036         * lib/gl_list.c (gl_sortedlist_search_from_to,
46037         gl_sortedlist_indexof_from_to): New functions.
46038         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46039         function.
46040         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46041         (gl_array_sortedlist_search_from_to): New function.
46042         (gl_array_list_implementation): Update.
46043         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46044         function.
46045         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46046         (gl_carray_sortedlist_search_from_to): New function.
46047         (gl_carray_list_implementation): Update.
46048         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46049         gl_linked_sortedlist_indexof_from_to): New functions.
46050         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46051         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46052         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46053         gl_tree_sortedlist_indexof_from_to): New functions.
46054         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46055         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46056         Update.
46057         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46058         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46059         Update.
46060
46061 2006-10-05  Bruno Haible  <bruno@clisp.org>
46062
46063         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46064         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46065         (struct gl_list_implementation): Add fields search_from_to,
46066         indexof_from_to. Remove fields search, indexof.
46067         (gl_list_search): Use the search_from_to method.
46068         (gl_list_search_from, gl_list_search_from_to): New functions.
46069         (gl_list_indexof): Use the indexof_from_to method.
46070         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46071         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46072         (gl_list_search_from, gl_list_search_from_to): New functions.
46073         (gl_list_indexof): Use the indexof_from_to method.
46074         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46075         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46076         gl_array_indexof. Add start_index, end_index arguments.
46077         (gl_array_search_from_to): Renamed from gl_array_search. Add
46078         start_index, end_index arguments.
46079         (gl_array_remove, gl_array_list_implementation): Update.
46080         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46081         gl_carray_indexof. Add start_index, end_index arguments.
46082         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46083         start_index, end_index arguments.
46084         (gl_carray_remove, gl_carray_list_implementation): Update.
46085         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46086         gl_linked_search. Add start_index, end_index arguments.
46087         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46088         start_index, end_index arguments.
46089         (gl_linked_remove): Update.
46090         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46091         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46092         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46093         field to 'size_t'.
46094         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46095         gl_tree_search. Add start_index, end_index arguments.
46096         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46097         start_index, end_index arguments.
46098         (gl_tree_remove): Update.
46099         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46100         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46101         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46102         function.
46103         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46104         gl_tree_search. Add start_index, end_index arguments.
46105         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46106         start_index, end_index arguments.
46107         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46108         Update.
46109         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46110
46111 2006-10-05  Bruno Haible  <bruno@clisp.org>
46112
46113         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46114
46115         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46116         fwriteerror_temp): New declarations.
46117         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46118         (descriptors): New variable.
46119         (cleanup): First, close the descriptors.
46120         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46121         fclose_temp, fwriteerror_temp): New functions.
46122
46123 2006-10-04  Jim Meyering  <jim@meyering.net>
46124
46125         * lib/fts.c (fts_open): Tiny comment change.
46126
46127 2006-10-04  Bruno Haible  <bruno@clisp.org>
46128
46129         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46130         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46131         gl_LOCK_BODY.
46132         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46133         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46134         gl_LOCK_EARLY_BODY.
46135         (gl_LOCK): Require gl_LOCK_BODY.
46136
46137 2006-10-04  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46140         (gl_oset_search_atleast): New declaration.
46141         (struct gl_oset_implementation): Add field 'search_atleast'.
46142         (gl_oset_search_atleast): New inline function.
46143         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46144         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46145         (gl_array_oset_implementation): Update.
46146         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46147         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46148         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46149
46150 2006-10-04  Bruno Haible  <bruno@clisp.org>
46151
46152         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46153
46154 2006-10-03  Bruno Haible  <bruno@clisp.org>
46155
46156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46157         from gl_avltreehash_list_implementation.
46158
46159 2006-10-03  Bruno Haible  <bruno@clisp.org>
46160
46161         * lib/gl_oset.c (gl_oset_add): Fix return type.
46162
46163 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46164
46165         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46166
46167 2006-10-02  Eric Blake  <ebb9@byu.net>
46168
46169         * modules/strnlen (Depends-on): Add extensions.
46170
46171 2006-10-02  Eric Blake  <ebb9@byu.net>
46172
46173         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46174         definition in 2.60+.
46175
46176 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46177
46178         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46179         checks.
46180
46181 2006-10-02  Bruno Haible  <bruno@clisp.org>
46182
46183         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46184         to the AUTOMAKE_OPTIONS.
46185         Reported by Jim Meyering.
46186
46187 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46188
46189         Work around bug in Solaris 10 /proc file system:
46190         /proc/self/fd/NNN/.. isn't the parent directory of
46191         the directory whose file descriptor is NNN.  This needs to
46192         be worked around at run time, not compile time, since a
46193         program might be built on Solaris 8, where things work, and
46194         run on Solaris 10.
46195         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46196         to use the following interface instead:
46197         (OPENAT_BUFFER_SIZE): New macro.
46198         (openat_proc_name): New function.
46199         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46200         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46201         Likewise.
46202         * lib/openat-proc.c: New file.
46203         * modules/openat (Files): Add lib/openat-proc.c.
46204         (Depends-on): Add same-inode, stdbool.
46205         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46206
46207 2006-09-29  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46210         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46211         argument. Set stdout_closed before testing for ferror, not after.
46212         (fwriteerror, fwriteerror_no_ebadf): New functions.
46213
46214 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46215
46216         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46217
46218 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46219
46220         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46221         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46222
46223 2006-09-28  Jim Meyering  <jim@meyering.net>
46224
46225         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46226         Include <unistd.h>.
46227
46228 2006-09-28  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46231         * modules/linkedhash-list (Depends-on): Likewise.
46232         * modules/rbtreehash-list (Depends-on): Likewise.
46233
46234 2006-09-28  Bruno Haible  <bruno@clisp.org>
46235
46236         * lib/strndup.h: Simplify the redefinition of strndup.
46237         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46238         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46239
46240 2006-09-28  Bruno Haible  <bruno@clisp.org>
46241
46242         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46243         * lib/gl_linkedhash_list.c: Likewise.
46244         * lib/gl_rbtreehash_list.c: Likewise.
46245
46246 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46249         getaddrinfo.
46250
46251         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46252         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46253         it causes <stdio_ext.h> to cause a compile-time error.
46254         Problem reported by Nelson H. F. Beebe.
46255         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46256         of HAVE_DECL___PENDING.
46257
46258         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46260         declaration.
46261
46262 2006-09-27  Jim Meyering  <jim@meyering.net>
46263
46264         This file could end up with a definition for a function
46265         named __strndup, rather than rpl_strndup on a system with
46266         incomplete weak_alias support.
46267         * lib/strndup.c (strndup): Rename from __strndup.
46268         Remove #defines that used to map __strndup to strndup.
46269         Don't use K&R prototypes.
46270         Remove LIBC-related code, since this file is not sync'd with glibc.
46271         * lib/strndup.h: Revamp, accordingly.
46272         * m4/strndup.m4: Modernize.
46273
46274 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * modules/savewd (Depends-on): Add 'raise'.
46277         * lib/savewd.c: Include <signal.h>, for 'raise'.
46278
46279 2006-09-26  Jim Meyering  <jim@meyering.net>
46280
46281         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46282         when we detect Darwin 8.7.0's acl_get_file bug.
46283         Rearrange to perform the new (below) run-test while $LIBS
46284         contains any acl-related library.  Set USE_ACL at the end.
46285         (gl_ACL_GET_FILE): New function.
46286
46287 2006-09-26  Eric Blake  <ebb9@byu.net>
46288
46289         * lib/verror.c: Include <config.h> unconditionally.
46290
46291 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46292
46293         * modules/clock-time (Maintainer): Add self.
46294         * modules/getlogin_r (Depends-on): Add extensions.
46295
46296 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46297
46298         * modules/clock-time: New module.
46299         * modules/nanosleep (Depends-on): Add clock-time.
46300         * modules/gethrxtime (Depends-on): Likewise.
46301         * modules/gettime (Depends-on): Likewise.
46302         * modules/settime (Depends-on): Likewise.
46303
46304         * modules/fts-lgpl: Depend on openat.
46305         * modules/mkancesdirs: Depend on savewd.
46306         * modules/mkdir-p: Likewise.
46307
46308 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46309
46310         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46311
46312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46313         `gl_have_arbitrary_file_name_length_limit' to
46314         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46315         actually works between configure runs.
46316
46317 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46318             Bruno Haible  <bruno@clisp.org>
46319
46320         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46321
46322 2006-09-25  Jim Meyering  <jim@meyering.net>
46323
46324         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46325         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46326
46327 2006-09-25  Eric Blake  <ebb9@byu.net>
46328
46329         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46330         exec's in 2006-09-18 patch when shuffling fds.
46331
46332 2006-09-25  Bruno Haible  <bruno@clisp.org>
46333
46334         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46335         Reported by Jim Meyering.
46336
46337 2006-09-24  Jim Meyering  <jim@meyering.net>
46338
46339         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46340         compare a pointer against a literal "0".  That caused failures with
46341         at least HP-UX's hpcc.
46342
46343 2006-09-22  Simon Josefsson  <jas@extundo.com>
46344
46345         * modules/gc-sha1:
46346         * modules/gc-md4:
46347         * modules/gc-hmac-sha1:
46348         * modules/gc-hmac-md5:
46349         * modules/gc-des:
46350         * modules/gc-arcfour: Distribute more files.
46351
46352 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46353
46354         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46355         (gl_linked_iterator_from_to): Initialize struct completely.
46356         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46357         (gl_tree_iterator_from_to): Likewise
46358         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46359         * lib/gl_array_list.c [lint] (gl_array_iterator)
46360         (gl_array_iterator_from_to): Likewise.
46361         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46362         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46363         (gl_carray_iterator_from_to): Likewise.
46364
46365         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46366         * lib/md4.c (md4_process_block): Remove unused variable.
46367         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46368         parentheses for clarity.
46369
46370 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46371
46372         * modules/bison-i18n (Depends-on): Add gettext.
46373
46374 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46375
46376         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46377         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46378         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46379         also add missing comma that caused broken test.
46380         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46381         stdlib.h, for `abort'.
46382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46383         variables.
46384         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46385         include unistd.h if present, for `rmdir'.
46386         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46387         variables.
46388         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46389         in the process include standard headers for prototypes.
46390         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46391         gets declared on GNU/Linux.
46392         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46393         unistd.h, for `rmdir'.
46394         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46395
46396         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46397         always true.
46398         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46399
46400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46401
46402 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46403
46404         * gnulib-tool (func_version): Create output all at once.  This
46405         may help avoid triggering unnecessary SIGPIPEs, and at any
46406         rate it doesn't hurt.
46407
46408 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46409             Bruno Haible  <bruno@clisp.org>
46410
46411         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46412         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46413         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46414
46415         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46416         (gl_FUNC_VASPRINTF): Invoke it.
46417
46418 2006-09-22  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46421         getloadavg.c as first argument.
46422
46423 2006-09-22  Bruno Haible  <bruno@clisp.org>
46424
46425         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46426         at the beginning of the gl_INIT macro.
46427         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46428         gl_GETLOADAVG.
46429
46430 2006-09-22  Bruno Haible  <bruno@clisp.org>
46431
46432         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46433         module.
46434         Suggested by Ralf Wildenhues.
46435
46436 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46437
46438         Import this patch from libc:
46439
46440         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46441
46442         * lib/regex_internal.c (re_string_reconstruct): Handle
46443         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46444         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46445         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46446         re_string_context_at.
46447
46448         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46449         now requires it.
46450         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46451         gl_REGEX now does it for us.
46452         (gl_REGEX): Add test taken from
46453         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46454
46455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46456         Check that large offsets work.  Modernize Autoconf usages.
46457         Prefer "yes" to mean a good thing rather than a bad.
46458         Don't put "#define mkstemp" in config.h, as this might interfere
46459         with standard system headers that "#define mkstemp mkstemp64".
46460
46461         * modules/mkstemp (Depends-on): Add extensions, so that
46462         mkstemp is visible on some platforms.
46463         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46464         (Include): Change to "mkstemp.h" from <stdlib.h>.
46465         (Files): Add mkstemp.h.
46466
46467         * lib/mkstemp.h: New file, since some standard headers
46468         #define mkstemp.
46469         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46470         Include "mkstemp.h".
46471         Make the _LIBC code resemble glibc original more,
46472         e.g., use K&R style.
46473         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46474         (mkstemp): Remove, since mkstemp.h does this for us.
46475         * lib/stdlib--.h: Include mkstemp.h.
46476
46477         Import this patch from libc:
46478
46479         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46480
46481         * lib/tempname.c (__gen_tempname): Change attempts_min
46482         into a macro.  Use preprocessor to decide how to initialize
46483         attempts [Coverity CID 67].
46484
46485 2006-09-20  Bruno Haible  <bruno@clisp.org>
46486
46487         * lib/mkdtemp.c: Import from libc.
46488         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46489                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46490                 attempts_min into a macro.  Use preprocessor to decide how to
46491                 initialize attempts [Coverity CID 67].
46492         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46493                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46494                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46495
46496 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46497
46498         * gnulib-tool (func_exit): New function, to allow to pass the
46499         exit status portably through the trap.  Use everywhere.
46500         (--help, --version): Signal a write error.
46501         (trap): catch SIGPIPE, for write errors.
46502         Exit at the end of the trap, with the correct exit status.
46503
46504 2006-09-19  Karl Berry  <karl@gnu.org>
46505
46506         * doc/gnulib.texi: note about the license texinfo files.
46507
46508 2006-09-19  Eric Blake  <ebb9@byu.net>
46509
46510         * gnulib-tool: Avoid space-tab.
46511
46512 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46515         that prevented coreutils 6.1 from building.  Problem reported
46516         by Petter Reinholdtsen.
46517
46518 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46519
46520         * gnulib-tool (avoidlist): Fix typo that broke options like
46521         --avoid=lock that are used by coreutils bootstrap.
46522
46523 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46524
46525         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46526         more systematically.
46527
46528 2006-09-18  Jim Meyering  <jim@meyering.net>
46529
46530         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46531
46532 2006-09-18  Bruno Haible  <bruno@clisp.org>
46533
46534         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46535
46536 2006-09-18  Bruno Haible  <bruno@clisp.org>
46537
46538         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46539         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46540         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46541         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46542         * m4/gettext.m4: Require autoconf >= 2.52.
46543         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46544         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46545         of gl_cv_header_inttypes_h.
46546
46547 2006-09-18  Bruno Haible  <bruno@clisp.org>
46548
46549         * lib/javaversion.c: Include configmake.h.
46550
46551 2006-09-18  Bruno Haible  <bruno@clisp.org>
46552
46553         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46554         avoid that the while loops be executed in a subshell.
46555
46556 2006-09-18  Bruno Haible  <bruno@clisp.org>
46557
46558         * MODULES.html.sh (func_module): Break long lines.
46559         Suggested by Bruce Korb <bkorb@gnu.org>.
46560
46561 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46562
46563         Speed up by a factor of 1.12.
46564         * gnulib-tool (nl): New variable.
46565         (func_import): Rewrite include directive extraction to only read each
46566         directive once.
46567
46568 2006-09-17  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/javaversion (Makefile.am): Remove DEFS setting.
46571         (Depends-on): Add configmake, for PKGDATADIR definition.
46572
46573 2006-09-17  Bruno Haible  <bruno@clisp.org>
46574
46575         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46576
46577 2006-09-17  Bruno Haible  <bruno@clisp.org>
46578
46579         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46580         (func_modules_transitive_closure, func_modules_add_dummy,
46581         func_modules_to_filelist, func_import, func_create_testdir,
46582         func_create_megatestdir, ...): Use it wherever possible.
46583         Suggested by Ralf Wildenhues.
46584
46585 2006-09-16  Karl Berry  <karl@gnu.org>
46586
46587         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46588         to avoid sectioning errors.
46589         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46590         [ifinfo]: blank line after @center-ed titles.
46591         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46592         Spell FSF address consistently with others.
46593         (These changes approved by rms.)
46594
46595 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46596
46597         Speed up by a factor of 1.61.
46598         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46599         already checked module names again.
46600
46601 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46602
46603         Speed up by a factor of 1.13.
46604         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46605         for new_files, and the input to func_add_or_update.
46606
46607 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46608
46609         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46610         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46611
46612 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46613
46614         * modules/mkancesdirs (Depends-on): Add fcntl.
46615         * modules/savewd: New file.
46616         * MODULES.html.sh (File system functions): Add savewd.
46617
46618         * modules/configmake (Makefile.am): Add support for the
46619         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46620
46621 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46622
46623         * m4/savewd.m4: New file.
46624
46625 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46628         (dirchownmod): New arg FD.  All callers changed.
46629         Use FD rather than opening the directory ourself, as opening is
46630         now the caller's responsibility.
46631         * lib/dirchownmod.h: Likewise.
46632         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46633         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46634         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46635         (test_dir): Remove.
46636         (mkancesdirs): Return length of prefix of FILE that has already
46637         been made, or -2 if there is a child doing the work.  Redo
46638         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46639         ".", and treat ".." specially since it might stray back into
46640         already-created areas.  Use a subprocess if necessary.  New arg
46641         WD; all users changed.  MAKE_DIR function should now return 1
46642         if it creates a directory that is not readable.  Return -2 if
46643         a child process is spun off.
46644         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46645         Adjust signature to match code.
46646         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46647         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46648         all users changed.
46649         * lib/savewd.c, lib/savewd.h: New files.
46650
46651 2006-09-15  Jim Meyering  <jim@meyering.net>
46652
46653         * modules/rename-dest-slash: New module.
46654         * MODULES.html.sh (posix_compat): Add it here.
46655
46656         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46657
46658 2006-09-15  Jim Meyering  <jim@meyering.net>
46659
46660         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46661         file.
46662
46663         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46664
46665 2006-09-15  Jim Meyering  <jim@meyering.net>
46666
46667         * lib/rename-dest-slash.c (has_trailing_slash): Use
46668         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46669         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46670         test before testing whether SRC is a directory.
46671         Suggestions from Bruno Haible.
46672
46673         Avoid a warning about an unused variable.
46674         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46675         into the #ifdef block where it's used.
46676
46677         * lib/rename-dest-slash.c: New file.
46678
46679 2006-09-14  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/allocsa.c: Include <config.h> unconditionally.
46682         * lib/asnprintf.c: Likewise.
46683         * lib/asprintf.c: Likewise.
46684         * lib/c-strcasecmp.c: Likewise.
46685         * lib/c-strcasestr.c: Likewise.
46686         * lib/c-strncasecmp.c: Likewise.
46687         * lib/c-strstr.c: Likewise.
46688         * lib/classpath.c: Likewise.
46689         * lib/clean-temp.c: Likewise.
46690         * lib/concatpath.c: Likewise.
46691         * lib/copy-file.c: Likewise.
46692         * lib/csharpcomp.c: Likewise.
46693         * lib/csharpexec.c: Likewise.
46694         * lib/execute.c: Likewise.
46695         * lib/fatal-signal.c: Likewise.
46696         * lib/findprog.c: Likewise.
46697         * lib/fwriteerror.c: Likewise.
46698         * lib/gl_array_list.c: Likewise.
46699         * lib/gl_array_oset.c: Likewise.
46700         * lib/gl_avltree_list.c: Likewise.
46701         * lib/gl_avltree_oset.c: Likewise.
46702         * lib/gl_avltreehash_list.c: Likewise.
46703         * lib/gl_carray_list.c: Likewise.
46704         * lib/gl_linked_list.c: Likewise.
46705         * lib/gl_linkedhash_list.c: Likewise.
46706         * lib/gl_list.c: Likewise.
46707         * lib/gl_oset.c: Likewise.
46708         * lib/gl_rbtree_list.c: Likewise.
46709         * lib/gl_rbtree_oset.c: Likewise.
46710         * lib/gl_rbtreehash_list.c: Likewise.
46711         * lib/imaxabs.c: Likewise.
46712         * lib/imaxdiv.c: Likewise.
46713         * lib/javacomp.c: Likewise.
46714         * lib/javaexec.c: Likewise.
46715         * lib/javaversion.c: Likewise.
46716         * lib/linebreak.c: Likewise.
46717         * lib/localcharset.c: Likewise.
46718         * lib/lock.c: Likewise.
46719         * lib/mbchar.c: Likewise.
46720         * lib/mbswidth.c: Likewise.
46721         * lib/mkdtemp.c: Likewise.
46722         * lib/pipe.c: Likewise.
46723         * lib/printf-args.c: Likewise.
46724         * lib/printf-parse.c: Likewise.
46725         * lib/progname.c: Likewise.
46726         * lib/progreloc.c: Likewise.
46727         * lib/readlink.c: Likewise.
46728         * lib/sh-quote.c: Likewise.
46729         * lib/stpcpy.c: Likewise.
46730         * lib/stpncpy.c: Likewise.
46731         * lib/strcasecmp.c: Likewise.
46732         * lib/strcasestr.c: Likewise.
46733         * lib/strcspn.c: Likewise.
46734         * lib/striconv.c: Likewise.
46735         * lib/strncasecmp.c: Likewise.
46736         * lib/strnlen1.c: Likewise.
46737         * lib/strstr.c: Likewise.
46738         * lib/strtok_r.c: Likewise.
46739         * lib/tls.c: Likewise.
46740         * lib/tmpdir.c: Likewise.
46741         * lib/unicodeio.c: Likewise.
46742         * lib/unsetenv.c: Likewise.
46743         * lib/vasnprintf.c: Likewise.
46744         * lib/vasprintf.c: Likewise.
46745         * lib/wait-process.c: Likewise.
46746         * lib/xallocsa.c: Likewise.
46747         * lib/xsetenv.c: Likewise.
46748         * lib/xstriconv.c: Likewise.
46749
46750 2006-09-13  Simon Josefsson  <jas@extundo.com>
46751
46752         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46753         that internally, suggested by Ralf Wildenhues
46754         <Ralf.Wildenhues@gmx.de>.
46755
46756 2006-09-13  Simon Josefsson  <jas@extundo.com>
46757
46758         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46759         @LIBOBJS@.
46760         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46761
46762 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46763
46764         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46765         longer worry about uses that don't define HAVE_CONFIG_H.
46766         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46767         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46768         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46769         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46770         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46771         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46772         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46773         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46774         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46775         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46776         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46777         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46778         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46779         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46780         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46781         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46782         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46783         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46784         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46785         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46786         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46787         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46788         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46789         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46790         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46791         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46792         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46793         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46794         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46795         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46796         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46797         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46798         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46799         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46800         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46801         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46802         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46803         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46804         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46805         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46806         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46807         Likewise.
46808
46809 2006-09-13  Eric Blake  <ebb9@byu.net>
46810
46811         * lib/getopt.c: Fix typo in last commit.
46812
46813 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46814
46815         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46816         dgettext.
46817
46818 2006-09-12  Jim Meyering  <jim@meyering.net>
46819
46820         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46821         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46822         Reported by Nelson H. F. Beebe.
46823
46824 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46825
46826         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46827         program_invocation_name and program_invocation_short_name are
46828         initialized.
46829         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46830         and program_invocation_short_name to argp.h, so they are visible
46831         to user programs.
46832         * lib/argp.h: Likewise
46833
46834 2006-09-10  Bruno Haible  <bruno@clisp.org>
46835
46836         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46837         m4/inttypes_h.m4, m4/uintmax_t.m4.
46838
46839 2006-09-10  Bruno Haible  <bruno@clisp.org>
46840
46841         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46842         gl_AC_TYPE_UINTMAX_T.
46843
46844 2006-09-10  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46847
46848 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46849
46850         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46851         convention.  Text proposed by Bruno Haible.
46852         (struct argp_option): Document the use of N_() wrappers.
46853
46854         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46855         '\v', and translate the two parts separately, instead of feeding
46856         the whole string to gettext.  This allows to exclude
46857         '\v' from the strings visible to the translator by writing doc
46858         strings as N_("..") "\v" N_("..").
46859
46860 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46861
46862         * config/srclist.txt: Undo latest change; the bug was fixed.
46863
46864 2006-09-09  Bruno Haible  <bruno@clisp.org>
46865
46866         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46867         assignments if building a library without libtool.
46868         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46869         in func_emit_lib_Makefile_am.
46870         (func_import): When building a static library libfoo.a, arrange to
46871         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46872         (func_create_testdir): Likewise.
46873         * modules/gc (configure.ac, Makefile.am): If building statically,
46874         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46875         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46876         * modules/striconv (configure.ac, Makefile.am): Likewise.
46877         Based on a suggestion by Ralf Wildenhues.
46878
46879 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46880
46881         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46882         Check for unistd.h too, since Autoconf doesn't assume POSIX.
46883         Also:
46884
46885         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46886         Add year_2050_test to catch glibc bug 2821
46887         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46888
46889         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46890         Prefer #ifdef to #if.
46891
46892         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
46893         Return from 'main' instead of calling 'exit'.
46894
46895 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46896
46897         * lib/mktime.c (guess_time_tm): Fix bug where mktime
46898         returned the maximum time_t value rather than (time_t) -1.
46899         Problem originally reported by William Bardwell
46900         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46901
46902         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46903         Moved to here ...
46904         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46905         ... from here.
46906
46907 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46908
46909         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
46910         2821 is fixed.
46911
46912 2006-09-08  Jim Meyering  <jim@meyering.net>
46913
46914         Don't make generated files read-only.  That would bother too many
46915         people.  However, do retain the ability to work when targets are
46916         read-only: remove the destination and temporary files before writing
46917         them (when generated via sed or echo), or by using the -f option for
46918         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
46919         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46920         * modules/byteswap, modules/configmake, modules/fcntl:
46921         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46922         * modules/localcharset, modules/netinet_in, modules/poll:
46923         * modules/stdbool, modules/stdint, modules/sys_select:
46924         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46925
46926 2006-09-08  Jim Meyering  <jim@meyering.net>
46927
46928         Avoid new build failure on FreeBSD 6.0.
46929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
46930         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
46931         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
46932
46933 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46934
46935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
46936
46937 2006-09-07  Jim Meyering  <jim@meyering.net>
46938
46939         Fix global typo in last change: use chmod u-w, not chmod u-x.
46940         Spotted by Paul Eggert and Bruce Korb.
46941         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46942         * modules/byteswap, modules/configmake, modules/fcntl:
46943         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46944         * modules/localcharset, modules/netinet_in, modules/poll:
46945         * modules/stdbool, modules/stdint, modules/sys_select:
46946         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46947
46948 2006-09-06  Jim Meyering  <jim@meyering.net>
46949
46950         Make generated files be read-only.
46951         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
46952         Ensure that each generated file is now read-only.
46953         * modules/argz: Likewise.
46954         * modules/arpa_inet: Likewise.
46955         * modules/byteswap: Likewise.
46956         * modules/configmake: Likewise.
46957         * modules/fcntl: Likewise.
46958         * modules/fnmatch: Likewise.
46959         * modules/getopt: Likewise.
46960         * modules/glob: Likewise.
46961         * modules/inttypes: Likewise.
46962         * modules/netinet_in: Likewise.
46963         * modules/poll: Likewise.
46964         * modules/stdbool: Likewise.
46965         * modules/stdint: Likewise.
46966         * modules/sys_select: Likewise.
46967         * modules/sys_socket: Likewise.
46968         * modules/sys_stat: Likewise.
46969         * modules/sysexits: Likewise.
46970         * modules/localcharset: Same as above, but continue using temporary
46971         file named "t-$@" (why different?) rather than the "$@-t" used
46972         everywhere else.
46973
46974         * modules/sysexits (Makefile.am): Replace literal occurrences
46975         of "sysexit.h" more readable, and more consistent, "$@".
46976
46977 2006-09-06  Bruno Haible  <bruno@clisp.org>
46978
46979         * modules/striconv: New file.
46980         * modules/xstriconv: New file.
46981         * MODULES.html.sh (Internationalization functions): Add striconv,
46982         xstriconv.
46983
46984 2006-09-06  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
46987         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
46988         not using libtool correctly.
46989
46990 2006-09-06  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/striconv.h: New file.
46993         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
46994         iconvstring.c.
46995         * lib/xstriconv.h: New file.
46996         * lib/xstriconv.c: New file.
46997
46998 2006-09-06  Bruno Haible  <bruno@clisp.org>
46999
47000         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47001         lib_..._LDFLAGS.
47002
47003 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47004
47005         * lib/argz_.h: Sync from Libtool.
47006
47007         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47008                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47009
47010         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47011
47012 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47013
47014         * modules/trim: New file.
47015
47016 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47017
47018         * lib/trim.h: New file.
47019         * lib/trim.c: New file.
47020
47021 2006-09-05  Bruno Haible  <bruno@clisp.org>
47022
47023         * MODULES.html.sh (String handling): Add trim.
47024
47025 2006-09-04  Karl Berry  <karl@gnu.org>
47026
47027         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47028         until next release.
47029
47030 2006-09-03  Bruno Haible  <bruno@clisp.org>
47031
47032         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47033         correctly.
47034
47035 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47036
47037         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47038         not gl_GETLOADAVG.  Omit unneeded semicolons.
47039         Problems reported by Ralf Wildenhues in
47040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47041         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47042         at the end, which is the usual gnulib style.
47043
47044         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47045         of doing all the work ourselves.
47046         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47047         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47048
47049 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47050
47051         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47052         Problem reported by Ralf Wildenhues in
47053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47054
47055         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47056         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47057
47058 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47059
47060         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47061         yesterday's patch by changing test -n to test -z.
47062
47063 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47066         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47067         the former is now obsolescent.
47068
47069         * modules/chdir-long (Depends-on): Add fcntl.
47070
47071 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47072
47073         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47074         obsolescent, and programs should use gnulib instead.
47075         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47076         but with prefixes changed.
47077
47078 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47079
47080         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47081         or stdbool.h, because they might not exist while configuring.
47082
47083         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47084         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47085         does that for us.
47086         (O_DIRECTORY): Remove.
47087
47088 2006-08-31  Eric Blake  <ebb9@byu.net>
47089
47090         * gnulib-tool: Don't let emacs change spaces to TAB.
47091
47092 2006-08-31  Bruno Haible  <bruno@clisp.org>
47093
47094         * gnulib-tool: When calling func_import more than once, do it in a
47095         subshell.
47096         Reported by Eric Blake <ebb9@byu.net>.
47097
47098 2006-08-31  Bruno Haible  <bruno@clisp.org>
47099
47100         * gnulib-tool (nl): Remove variable.
47101         (sed_transform_lib_file): Use more robust test for config-h module.
47102         (func_import): Fix typo in 2006-08-25 patch.
47103
47104 2006-08-31  Bruno Haible  <bruno@clisp.org>
47105
47106         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47107         specified, augment Makefile.am variables instead of assigning them.
47108
47109 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47110
47111         Work around a bug in both the Linux and SunOS 64-bit kernels:
47112         nanosleep mishandles sleeps for longer than 2**31 seconds.
47113         Problem reported by Frank v Waveren in
47114         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47116         Check for nanosleep bug.
47117         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47118
47119 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47120
47121         Work around a bug in both the Linux and SunOS 64-bit kernels:
47122         nanosleep mishandles sleeps for longer than 2**31 seconds.
47123         Problem reported by Frank v Waveren in
47124         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47125         * lib/nanosleep.c (BILLION): New constant.
47126         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47127         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47128         implementation.
47129
47130 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47131
47132         * modules/nanosleep (Depends-on): Add gettime.
47133
47134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47135         and Simon Josefsson  <jas@extundo.com>
47136         and Oskar Liljeblad  <oskar@osk.mine.nu>
47137
47138         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47139         * gnulib-tool (func_import): New license type 'unmodifiable license
47140         text'.
47141         * modules/fdl: Use it.  Longer description.
47142         * module/gpl, module/lgpl: New files.
47143
47144 2006-08-30  Jim Meyering  <jim@meyering.net>
47145
47146         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47147         shadowing the parameter.
47148
47149 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47150
47151         Sync from Libtool:
47152
47153         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47154
47155         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47156         sharing with gnulib.  Report by Eric Blake.
47157
47158 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47159
47160         * modules/isapipe: New file.
47161         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47162
47163 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47164
47165         * modules/configmake (Makefile.am): Add a comment, and omit
47166         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47167         by Bruno Haible.
47168
47169 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47170
47171         * m4/isapipe.m4: New file.
47172
47173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/isapipe.c, lib/isapipe.h: New files.
47176
47177 2006-08-29  Jim Meyering  <jim@meyering.net>
47178
47179         * modules/configmake (Makefile.am): Make configmake.h depend on
47180         Makefile.  Otherwise, a stale configmake.h could hang around.
47181
47182 2006-08-29  Eric Blake  <ebb9@byu.net>
47183
47184         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47185         resolution of upstream bug 3044.
47186
47187 2006-08-29  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/localcharset (Depends-on): Add configmake.
47190         (Makefile.am): Remove setting of LIBDIR through DEFS.
47191
47192 2006-08-29  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47195         defined.
47196
47197 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47198
47199         * modules/fcntl: New file.
47200         * modules/chdir-safer (Depends-on): Add fcntl.
47201         * modules/fts: Likewise.
47202         * modules/mkdir-p: Likewise.
47203
47204         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47205         This undoes the most recent change, since we're now addressing the
47206         problem in a different way.
47207
47208         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47209         into output, since the output might be called Makefile.am even
47210         if $makefile_name is something different.
47211         (func_import): Use $makefile_am rather than
47212         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47213         empty.
47214
47215         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47216
47217 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47218
47219         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47220         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47221         recent change to stdint.m4, since we're now addressing the problem in a
47222         different way.
47223
47224 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47225
47226         * m4/fcntl_h.m4: New file.
47227
47228 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * lib/fcntl_.h: New file.
47231         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47232         the fcntl module.
47233         * lib/dirchownmod.c: Likewise.
47234         * lib/fts.c: Likewise.
47235
47236         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47237         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47238         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47239         just before including <inttypes.h>, to avoid circular inclusion.
47240
47241 2006-08-28  Jim Meyering  <jim@meyering.net>
47242
47243         * doc/visibility.texi: Actually read and correct the grammar of the
47244         sentence affected by yesterday's change.
47245
47246 2006-08-28  Eric Blake  <ebb9@byu.net>
47247
47248         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47249         needs wrapper.
47250
47251 2006-08-28  Eric Blake  <ebb9@byu.net>
47252
47253         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47254
47255 2006-08-28  Eric Blake  <ebb9@byu.net>
47256
47257         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47258
47259 2006-08-28  Bruno Haible  <bruno@clisp.org>
47260
47261         * modules/c-strstr: New file, from GNU gettext.
47262         * MODULES.html.sh (String handling): Add c-strstr.
47263
47264 2006-08-28  Bruno Haible  <bruno@clisp.org>
47265
47266         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47267         macros.
47268         Reported by Eric Blake.
47269
47270 2006-08-28  Bruno Haible  <bruno@clisp.org>
47271
47272         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47273         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47274         * lib/vasprintf.c: Include errno.h, limits.h.
47275         (EOVERFLOW): New fallback definition.
47276         (vasprintf): Test here whether the string length is > INT_MAX.
47277         * lib/vsnprintf.c: Include errno.h, limits.h.
47278         (EOVERFLOW): New fallback definition.
47279         (vsnprintf): Fix bug when generated string was too long for the buffer.
47280         Test here whether the string length is > INT_MAX.
47281
47282 2006-08-28  Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/inttypes_.h (SCNX*): Remove definitions.
47285         Reported by Eric Blake.
47286
47287 2006-08-28  Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/c-strstr.h: New file, from GNU gettext.
47290         * lib/c-strstr.c: New file, from GNU gettext.
47291
47292 2006-08-28  Bruno Haible  <bruno@clisp.org>
47293
47294         * gnulib-tool: Reorder some statements.
47295
47296 2006-08-28  Bruno Haible  <bruno@clisp.org>
47297
47298         * gnulib-tool: New option --makefile-name.
47299         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47300         $makefile_name.
47301         (func_import): Write $makefile_name to the cache file, and read it from
47302         there unless explicitly specified. Use $makefile_name as file name
47303         instead of Makefile.am. Adjust the recommendations accordingly.
47304
47305 2006-08-28  Bruno Haible  <bruno@clisp.org>
47306
47307         * gnulib-tool (func_verify_module): Check against misapplying patch.
47308
47309 2006-08-28  Bruno Haible  <bruno@clisp.org>
47310
47311         * gnulib-tool (func_relativize, func_relconcat): New functions.
47312         Give an error if --local-dir is given with --update.
47313         Remove trailing slashes from $local_gnulib_dir.
47314         (func_import): Store the relativized $local_gnulib_dir in
47315         gnulib-cache.m4, and read it from there if not specified explicitly.
47316
47317 2006-08-28  Bruno Haible  <bruno@clisp.org>
47318
47319         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47320         is the current directory. Respect also $local_gnulib_dir.
47321
47322 2006-08-28  Bruno Haible  <bruno@clisp.org>
47323             Simon Josefsson  <jas@extundo.com>
47324
47325         BeOS portability.
47326         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47327
47328 2006-08-27  Jim Meyering  <jim@meyering.net>
47329
47330         * doc/visibility.texi: Remove duplicate word: "pointer".
47331
47332 2006-08-26  Bruno Haible  <bruno@clisp.org>
47333
47334         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47335         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47336         (Makefile.am): Create inttypes.h from inttypes_.h.
47337         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47338
47339         * modules/imaxabs: New file.
47340
47341         * modules/imaxdiv: New file.
47342
47343 2006-08-26  Bruno Haible  <bruno@clisp.org>
47344
47345         * m4/inttypes.m4: New file.
47346         * m4/_inttypes_h.m4: Remove file.
47347         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47348         PRI_MACROS_BROKEN.
47349         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47350
47351         * m4/imaxabs.m4: New file.
47352
47353         * m4/imaxdiv.m4: New file.
47354
47355 2006-08-26  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/inttypes_.h: New file.
47358         * lib/inttypes.h: Remove file.
47359         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47360
47361         * lib/imaxabs.c: New file.
47362
47363         * lib/imaxdiv.c: New file.
47364
47365 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47366
47367         New config-h module, so that "make" output needn't be cluttered
47368         by -DHAVE_CONFIG_H.
47369         * MODULES.html.sh (Support for building libraries and executables):
47370         Add config-h.
47371         * modules/config-h: New file.
47372         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47373         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47374         the config-h module is used.
47375
47376         New configmake module, so that "make" output needn't be cluttered
47377         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47378         * MODULES.html.sh (Support for building libraries and executables):
47379         Add configmake.
47380         * modules/configmake: New file.
47381
47382 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47383
47384         * m4/config-h.m4: New file.
47385
47386 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47387
47388         * config/srclist.txt: Add elisp-comp.
47389
47390 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47391
47392         * MODULES.html.sh (Support for building libraries and executables):
47393         Add elisp-comp.
47394         * build-aux/elisp-comp: New file.
47395         * modules/elisp-comp: New file.
47396
47397 2006-08-24  Bruno Haible  <bruno@clisp.org>
47398
47399         * gnulib-tool (func_create_testdir): Use non-default values of
47400         sourcebase and m4base.
47401
47402 2006-08-24  Bruno Haible  <bruno@clisp.org>
47403
47404         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47405         HTML structure.
47406
47407 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47408
47409         * modules/openat (Depends-on): Add lchown.
47410
47411 2006-08-23  Bruno Haible  <bruno@clisp.org>
47412
47413         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47414         of gl_LOCK_EARLY instead of gl_LOCK.
47415
47416 2006-08-23  Bruno Haible  <bruno@clisp.org>
47417
47418         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47419         on OSF/1 to no.
47420         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47421
47422 2006-08-23  Bruno Haible  <bruno@clisp.org>
47423
47424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47425         as unusable.
47426
47427         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47428         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47429         (gl_LOCK): New macro.
47430
47431 2006-08-22  Simon Josefsson  <jas@extundo.com>
47432
47433         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47434         to md5 module.
47435
47436 2006-08-22  Simon Josefsson  <jas@extundo.com>
47437
47438         * MODULES.html.sh: Add "Support for maintaining and release
47439         projects".
47440
47441         * build-aux/gnupload: New file, from coreutils.
47442
47443 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47444
47445         Avoid the need for AC_LIBSOURCES in m4 macros.
47446         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47447         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47448         * modules/check-version (EXTRA_DIST): Add check-version.h.
47449         * modules/crc (EXTRA_DIST): Add crc.h.
47450         * modules/des (EXTRA_DIST): Add des.h.
47451         * modules/gc (EXTRA_DIST): Add gc.h.
47452         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47453         * modules/getline (EXTRA_DIST): Add getline.h.
47454         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47455         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47456         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47457         * modules/md2 (EXTRA_DIST): Add md2.h.
47458         * modules/md4 (EXTRA_DIST): Add md4.h.
47459         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47460         * modules/read-file (EXTRA_DIST): Add read-file.h.
47461         * modules/readline (EXTRA_DIST): Add readline.h.
47462         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47463         rijndael-api-fst.h.
47464
47465 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47466
47467         * m4/rijndael.m4 (gl_ARCFOUR):
47468         * m4/arctwo.m4 (gl_ARCTWO):
47469         * m4/check-version.m4 (gl_CHECK_VERSION):
47470         * m4/crc.m4 (gl_CRC):
47471         * m4/des.m4 (gl_DES):
47472         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47473         * m4/gc.m4 (gl_GC):
47474         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47475         * m4/getline.m4 (gl_FUNC_GETLINE):
47476         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47477         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47478         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47479         * m4/md2.m4 (gl_MD2):
47480         * m4/md4.m4 (gl_MD4):
47481         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47482         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47483         * m4/readline.m4 (gl_FUNC_READLINE):
47484         * m4/rijndael.m4 (gl_RIJNDAEL):
47485         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47486         to get the necessary .h files and whatnot.
47487
47488 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47491         gnulib rather than the other way around.
47492         * config/srclistvars.sh (COREUTILS): Remove.
47493
47494 2006-08-22  Jim Meyering  <jim@meyering.net>
47495
47496         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47497
47498         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47499
47500 2006-08-22  Eric Blake  <ebb9@byu.net>
47501
47502         * modules/regexprops-generic: New file.
47503         * MODULES.html.sh (Support for building documentation): List it.
47504
47505 2006-08-22  Eric Blake  <ebb9@byu.net>
47506
47507         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47508         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47509         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47510         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47511
47512 2006-08-22  Bruno Haible  <bruno@clisp.org>
47513
47514         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47515         and lib_LTLIBRARIES like the other lib_* variables.
47516
47517 2006-08-22  Bruno Haible  <bruno@clisp.org>
47518
47519         * build-aux/x-to-1.in: New file, from GNU gettext.
47520
47521 2006-08-22  Bruno Haible  <bruno@clisp.org>
47522
47523         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47524         <utmpx.h> exists.
47525
47526 2006-08-22  Bruno Haible  <bruno@clisp.org>
47527
47528         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47529         <utmpx.h> exists.
47530
47531 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47532
47533         BeOS portability.
47534         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47535         exist.
47536         Problem reported by Bruno Haible.
47537
47538 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         Avoid the need for AC_LIBSOURCES in m4 macros.
47541         * modules/acl (EXTRA_DIST): Add acl.h.
47542         * modules/argmatch (Files): Add m4/argmatch.m4.
47543         (configure.ac): Add gl_ARGMATCH.
47544         (EXTRA_DIST): Renamed from lib_SOURCES, for
47545         consistency with the other modules.  Remove argmatch.c.
47546         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47547         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47548         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47549         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47550         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47551         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47552         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47553         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47554         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47555         * modules/closeout (EXTRA_DIST): Add closeout.h.
47556         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47557         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47558         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47559         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47560         dirname.h; remove basename.c and stripslash.c.
47561         * modules/exclude (EXTRA_DIST): Add exclude.h.
47562         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47563         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47564         * modules/file-type (EXTRA_DIST): Add file-type.h.
47565         * modules/filemode (EXTRA_DIST): Add filemode.h.
47566         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47567         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47568         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47569         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47570         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47571         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47572         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47573         * modules/getdate (EXTRA_DIST): Add getdate.c.
47574         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47575         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47576         * modules/getpass (EXTRA_DIST): Add getpass.h.
47577         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47578         * modules/group-member (EXTRA_DIST): Add group-member.h.
47579         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47580         * modules/hash (EXTRA_DIST): Add hash.h.
47581         * modules/human (EXTRA_DIST): Add human.h.
47582         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47583         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47584         * modules/lchown (EXTRA_DIST): Add lchown.h.
47585         * modules/long-options (EXTRA_DIST): Add long-options.h.
47586         * modules/lstat (EXTRA_DIST): Add lstat.h.
47587         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47588         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47589         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47590         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47591         * modules/memxor (EXTRA_DIST): Add memxor.h.
47592         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47593         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47594         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47595         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47596         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47597         * modules/physmem (EXTRA_DIST): Add physmem.h.
47598         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47599         * modules/posixver (EXTRA_DIST): Add posixver.h.
47600         * modules/quote (EXTRA_DIST): Add quote.h.
47601         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47602         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47603         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47604         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47605         regex_internal.h regexec.c.
47606         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47607         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47608         * modules/same (EXTRA_DIST): Add same.h.
47609         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47610         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47611         * modules/savedir (EXTRA_DIST): Add savedir.h.
47612         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47613         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47614         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47615         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47616         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47617         * modules/strdup (EXTRA_DIST): Add strdup.h.
47618         * modules/strftime (EXTRA_DIST): Add strftime.h.
47619         * modules/strndup (EXTRA_DIST): Add strndup.h.
47620         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47621         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47622         * modules/time_r (EXTRA_DIST): Add time_r.h.
47623         * modules/timespec (EXTRA_DIST): Add timespec.h.
47624         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47625         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47626         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47627         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47628         * modules/userspec (EXTRA_DIST): Add userspec.h.
47629         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47630         * modules/utimens (EXTRA_DIST): Add utimens.h.
47631         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47632         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47633         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47634         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47635         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47636         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47637         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47638         * modules/yesno (EXTRA_DIST): Add yesno.h.
47639
47640 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47643
47644         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47645         * m4/dev-ino.m4, same-inode.m4: Remove.
47646
47647         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47648         * m4/acl.m4 (AC_FUNC_ACL):
47649         * m4/backupfile.m4 (gl_BACKUPFILE):
47650         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47651         * m4/canon-host.m4 (gl_CANON_HOST):
47652         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47653         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47654         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47655         * m4/cloexec.m4 (gl_CLOEXEC):
47656         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47657         * m4/closeout.m4 (gl_CLOSEOUT):
47658         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47659         * m4/dirname.m4 (gl_DIRNAME):
47660         * m4/exclude.m4 (gl_EXCLUDE):
47661         * m4/exitfail.m4 (gl_EXITFAIL):
47662         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47663         * m4/file-type.m4 (gl_FILE_TYPE):
47664         * m4/filemode.m4 (gl_FILEMODE):
47665         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47666         * m4/fpending.m4 (gl_FUNC_FPENDING):
47667         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47668         * m4/fts.m4 (gl_FUNC_FTS):
47669         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47670         * m4/getdate.m4 (gl_GETDATE):
47671         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47672         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47673         * m4/getpass.m4 (gl_FUNC_GETPASS):
47674         * m4/gettime.m4 (gl_GETTIME):
47675         * m4/getugroups.m4 (gl_GETUGROUPS):
47676         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47677         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47678         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47679         * m4/hash.m4 (gl_HASH):
47680         * m4/idcache.m4 (gl_IDCACHE):
47681         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47682         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47683         * m4/long-options.m4 (gl_LONG_OPTIONS):
47684         * m4/lstat.m4 (gl_FUNC_LSTAT):
47685         * m4/md5.m4 (gl_MD5):
47686         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47687         * m4/memcoll.m4 (gl_MEMCOLL):
47688         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47690         * m4/memxor.m4 (gl_MEMXOR):
47691         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47692         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47693         * m4/modechange.m4 (gl_MODECHANGE):
47694         * m4/mountlist.m4 (gl_MOUNTLIST):
47695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47696         * m4/openat.m4 (gl_FUNC_OPENAT):
47697         * m4/pathmax.m4 (gl_PATHMAX):
47698         * m4/physmem.m4 (gl_PHYSMEM):
47699         * m4/posixtm.m4 (gl_POSIXTM):
47700         * m4/posixver.m4 (gl_POSIXVER):
47701         * m4/quote.m4 (gl_QUOTE):
47702         * m4/quotearg.m4 (gl_QUOTEARG):
47703         * m4/readtokens.m4 (gl_READTOKENS):
47704         * m4/readutmp.m4 (gl_READUTMP):
47705         * m4/regex.m4 (gl_REGEX):
47706         * m4/safe-read.m4 (gl_SAFE_READ):
47707         * m4/safe-write.m4 (gl_SAFE_WRITE):
47708         * m4/same.m4 (gl_SAME):
47709         * m4/save-cwd.m4 (gl_SAVE_CWD):
47710         * m4/savedir.m4 (gl_SAVEDIR):
47711         * m4/settime.m4 (gl_SETTIME):
47712         * m4/sha1.m4 (gl_SHA1):
47713         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47714         * m4/stat-macros.m4 (gl_STAT_MACROS):
47715         * m4/stat-time.m4 (gl_STAT_TIME):
47716         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47717         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47718         * m4/strdup.m4 (gl_FUNC_STRDUP):
47719         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47720         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47721         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47722         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47723         * m4/time_r.m4 (gl_TIME_R):
47724         * m4/timespec.m4 (gl_TIMESPEC):
47725         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47726         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47727         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47728         * m4/userspec.m4 (gl_USERSPEC):
47729         * m4/utimecmp.m4 (gl_UTIMECMP):
47730         * m4/utimens.m4 (gl_UTIMENS):
47731         * m4/xalloc.m4 (gl_XALLOC):
47732         * m4/xgetcwd.m4 (gl_XGETCWD):
47733         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47734         * m4/xreadlink.m4 (gl_XREADLINK):
47735         * m4/xstrtod.m4 (gl_XSTRTOD):
47736         * m4/yesno.m4 (gl_YESNO):
47737         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47738         to get the necessary .h files and whatnot.
47739
47740 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47741             Bruno Haible  <bruno@clisp.org>
47742
47743         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47744         /bin/sh understanding of '!' conditional negation.
47745
47746 2006-08-21  Jim Meyering  <jim@meyering.net>
47747
47748         * modules/openat (Depends-on): Really alphabetize.
47749
47750         * modules/acl (Depends-on): Add error and quote.
47751
47752         * check-module (find_included_lib_files): Add at-func.c to the
47753         ok-to-include-more-than-once white list.
47754
47755         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47756
47757 2006-08-21  Bruno Haible  <bruno@clisp.org>
47758
47759         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47760         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47761         Reported by Martin Lambers <marlam@marlam.de>.
47762
47763 2006-08-21  Bruno Haible  <bruno@clisp.org>
47764
47765         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47766         specify an installation location, don't emit a noinst_LIBRARIES or
47767         noinst_LTLIBRARIES assignment.
47768
47769 2006-08-21  Bruno Haible  <bruno@clisp.org>
47770
47771         BeOS portability.
47772         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47773         BeOS has mbrtowc() but no <wctype.h>.
47774
47775 2006-08-21  Bruno Haible  <bruno@clisp.org>
47776
47777         BeOS portability.
47778         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47779         exist.
47780
47781 2006-08-21  Bruno Haible  <bruno@clisp.org>
47782
47783         BeOS portability.
47784         * lib/mbchar.h: Include <wctype.h> only if it exists.
47785
47786 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47787
47788         Remove files that are no longer needed by their respective modules.
47789         * m4/obstack.m4: Remove.
47790         * m4/strerror_r.m4: Remove.
47791         * m4/uint32_t.m4: Remove.
47792         * m4/uintptr_t.m4: Remove.
47793         * m4/ullong_max.m4: Remove.
47794         * m4/xstrtoimax.m4: Remove.
47795         * m4/xstrtoumax.m4: Remove.
47796
47797         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47798         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47799         dependencies now capture this.
47800
47801         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47802         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47803         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47804         * m4/human.m4 (gl_HUMAN): Likewise.
47805         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47806         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47807
47808         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47809
47810         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47811         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47812         stdint.
47813         * m4/human.m4 (gl_HUMAN): Likewise.
47814         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47815         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47816         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47817         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47818         * m4/xstrtol (gl_XSTRTOL): Likewise.
47819
47820         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47821         AC_TYPE_LONG_LONG_INT.
47822         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47823         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47824         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47825         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47826
47827         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47828         on stdbool.
47829
47830         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47831         (gl_PREREQ_XSTRTOUL): Remove.
47832
47833         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47834
47835         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47836         mode.
47837
47838 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         Add and change modules to make it easier for coreutils to use
47841         gnulib-tool.
47842         * modules/backupfile (Files): Remove m4/d-ino.m4.
47843         (Depends-on): Add d-ino.
47844         * modules/cycle-check (Depends-on): Add stdint.
47845         (lib_SOURCES): Add cycle-check.h.
47846         * modules/d-ino: New module.
47847         * modules/d-type: New module.
47848         * modules/error (Files): Remove m4/strerror_r.m4.
47849         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47850         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47851         m4/inttypes_h.m4, m4/uintmax_t.m4.
47852         (Depends-on): Add stdint.
47853         (lib_SOURCES): Add fsusage.h.
47854         * modules/getcwd (Files): Remove d-ino.m4.
47855         (Depends-on): Add d-ino.
47856         * modules/getndelim2 (Depends-on): Add stdint.
47857         * modules/glob (Files): Remove m4/d-type.m4.
47858         (Depends-on): Add d-type.
47859         * modules/host-os: New module.
47860         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47861         m4/inttypes_h.m4, m4/uintmax_t.m4.
47862         * Depends-on: Add stdint.
47863         (lib_SOURCES): Add human.h.
47864         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47865         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47866         m4/uintmax_t.m4, m4/ulonglong.m4.
47867         (Depends-on): Add stdint.
47868         (EXTRA_DIST): Add inttostr.h.
47869         * modules/lchmod: New module.
47870         * modules/link-follow: New module.
47871         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47872         (Depends-on): Add lchmod.
47873         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47874         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47875         (Depends-on): Add stdint.
47876         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
47877         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
47878         (Depends-on): Add stdint.
47879         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
47880         * modules/perl: New module.
47881         * modules/regex (Depends-on): Add stdint.
47882         * modules/rmdir-errno: New module.
47883         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47884         m4/intmax_t.m4.
47885         (Depends-on): Add stdint.
47886         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47887         m4/uintmax_t.m4.
47888         (Depends-on): Add stdint.
47889         * modules/unlink-busy: New module.
47890         * modules/utimecmp (Depends-on): Add stdint.
47891         * modules/uptime: New module.
47892         * modules/winsz-ioctl: New module.
47893         * modules/winsz-termios: New module.
47894         * modules/xnanosleep (Depends-on): Add nanosleep.
47895         * modules/ullong_max: Remove.
47896         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
47897         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
47898         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
47899         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
47900         (Depends-on): Add inttypes.
47901         (lib_SOURCES): Add xstrtol.h.
47902         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
47903         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
47904         * MODULES.html.sh: Move 'assert' into the assert section.
47905         Move 'dummy' into the linking section.
47906         Remove ullong_max.
47907         Add section for compatibility checks for POSIX:2001 functions,
47908         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
47909         winsz-ioctl, and winsz-termios into it.
47910         Add lchmod.
47911         Add top-level Misc section and put host-os, perl, and uptime
47912         into it.
47913
47914 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47915
47916         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
47917         now assume the stdint module.  Do not include inttypes.h.
47918         * lib/fsusage.h: Likewise.
47919         * lib/getndelim2.c: Likewise.
47920         * lib/human.h: Likewise.
47921         * lib/inttostr.h: Likewise.
47922         * lib/obstack.c: Likewise.
47923         * lib/regex_internal.h: Likewise.
47924         * lib/tempname.c: Likewise.
47925         * lib/utimecmp.c: Likewise.
47926         * lib/xstrtol.h: Likewise.
47927
47928         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
47929
47930         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
47931         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
47932         * lib/xtime.h: Likewise.
47933
47934 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47935
47936         * modules/openat (Files): Add lib/fchmodat.c.
47937         Fixes problem reported by Jay Youngman.
47938
47939 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47940
47941         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
47942         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
47943
47944 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47945             Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
47948         and is a script that invokes bison. Tighten the code. Add comments.
47949
47950 2006-08-18  Jim Meyering  <jim@meyering.net>
47951
47952         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
47953         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
47954         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
47955         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
47956
47957 2006-08-18  Bruno Haible  <bruno@clisp.org>
47958
47959         * modules/bison-i18n: New file.
47960         * MODULES.html.sh (Internationalization functions): Add it.
47961
47962 2006-08-18  Bruno Haible  <bruno@clisp.org>
47963
47964         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
47965         sys/statvfs.h. When getmntinfo was found, check its declaration and
47966         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
47967
47968 2006-08-18  Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/bison-i18n.m4: New file, from bison.
47971
47972 2006-08-18  Bruno Haible  <bruno@clisp.org>
47973
47974         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
47975         (ME_DUMMY): Treat "kernfs" as a dummy.
47976         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
47977
47978 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47979
47980         Update from coreutils.
47981
47982         2006-08-15  Jim Meyering  <jim@meyering.net>
47983
47984         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
47985
47986         2006-01-17  Jim Meyering  <jim@meyering.net>
47987
47988         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
47989
47990         2006-01-11  Jim Meyering  <jim@meyering.net>
47991
47992         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
47993         Check for the lchmod function.
47994
47995 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47996
47997         Update from coreutils.
47998
47999         * lib/__fpending.h: Add copyright notice.
48000         * lib/fprintftime.h: Likewise.
48001         * lib/savedir.c: Use (C) in copyright notice.
48002         * lib/savedir.h: Likewise.
48003
48004         2006-08-15  Jim Meyering  <jim@meyering.net>
48005
48006         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48007         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48008         in support of the EXPECTED_ERRNO macro.
48009         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48010         definitions.  Instead, define the appropriate symbols and include
48011         "at-func.c".
48012         * lib/mkdirat.c (mkdirat): Likewise.
48013         * lib/fchmodat.c (fchmodat): Likewise.
48014         (ENOSYS): Remove definition.
48015         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48016         it.  Don't include "unistd--.h" -- it wasn't ever used.
48017
48018         2006-01-17  Jim Meyering  <jim@meyering.net>
48019
48020         Rewrite fts.c not to change the current working directory,
48021         by using openat, fstatat, fdopendir, etc..
48022
48023         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48024         (HAVE_OPENAT_SUPPORT): Define.
48025         [_LIBC] (fchdir): Don't undef or define; no longer used.
48026         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48027         Now, this `function' always succeeds, and consumes its file descriptor
48028         parameter -- so callers must not close such FDs.  Update callers.
48029         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48030         (diropen): Add parameter, SP.  Adjust all callers.
48031         Implement using diropen_fd, rather than open.
48032         (fts_open): Initialize new member, fts_cwd_fd.
48033         Remove fts_rft-setting code.
48034         (fts_close): Close fts_cwd_fd, if necessary.
48035         (__opendir2): Define in terms of opendir or opendirat,
48036         depending on whether the FST_NOCHDIR flag is set.
48037         (fts_build): Since fts_safe_changedir consumes its FD, and since
48038         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48039         and close the dup'd file descriptor upon failure.
48040         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48041         (fts_safe_changedir): Tweak semantics to reflect that this function
48042         now calls cwd_advance_fd and hence consumes its FD argument.
48043         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48044         [struct FTS] (fts_rft): Remove now-unused member.
48045         [struct FTS] (fts_cycle.state): Improve comment.
48046
48047         * lib/openat.c (openat_needs_fchdir): New function.
48048         * lib/openat.h (openat_needs_fchdir): Declare it.
48049
48050 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48051
48052         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48053         Problem and fix reported by Pádraig Brady in
48054         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48055
48056 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48057
48058         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48059
48060 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48061
48062         * lib/memcoll.c (memcoll): Optimize for the common case where the
48063         arguments are bytewise equal.
48064
48065 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48066
48067         * doc/regexprops-generic.texi: Add a copyright notice.
48068
48069 2006-08-15  Bruno Haible  <bruno@clisp.org>
48070
48071         * modules/tmpdir (License): Change to LGPL.
48072
48073 2006-08-15  Bruno Haible  <bruno@clisp.org>
48074
48075         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48076         module.
48077
48078 2006-08-14  Simon Josefsson  <jas@extundo.com>
48079
48080         * config/srclist.txt: Add gnupload.
48081
48082 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         Change copyright notice from LGPL 2 to GPL 2, since that's the
48085         standard form used in the gnulib repository.
48086         * tests/test-lock.c: Likewise.
48087         * tests/test-stdint.c: Likewise.
48088         * tests/test-tls.c: Likewise.
48089
48090         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48091         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48092         Add copyright notice.
48093
48094         * check-module: Add copyright notice.  Output a copyright
48095         notice if "--version" is specified.
48096         * modules/COPYING: New file.
48097         * tests/test-getaddrinfo.c: Add copyright notice.
48098         * tests/test-verify.c: Likewise.
48099
48100 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         Change copyright notice from LGPL 2 to GPL 2, since that's the
48103         standard form used in the gnulib repository.
48104         * lib/lock.c: LGPL -> GPL.
48105         * lib/lock.h: Likewise.
48106         * lib/strnlen1.c: Likewise.
48107         * lib/strnlen1.h: Likewise.
48108         * lib/tls.c: Likewise.
48109         * lib/tls.h: Likewise.
48110         * lib/tmpdir.c: Likewise.
48111
48112         * lib/TODO: Remove; this belongs only in coreutils.
48113
48114 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48115
48116         Add copyright notices to long-enough files that lack them, since
48117         otherwise the files aren't clearly free.  Use the same notice that
48118         getdate.texi already uses.
48119         * doc/alloca-opt.texi: Add copyright notice.
48120         * doc/alloca.texi: Likewise.
48121         * doc/ctime.texi: Likewise.
48122         * doc/functions.texi: Likewise.
48123         * doc/gcd.texi: Likewise.
48124         * doc/gnulib-tool.texi: Likewise.
48125         * doc/inet_ntoa.texi: Likewise.
48126         * doc/visibility.texi: Likewise.
48127
48128         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48129         * doc/quote.texi: Add copyright notice.
48130
48131         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48132         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48133         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48134         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48135         is now obsolete, and give a pointer to the Sun list.
48136         Add copyright notice.
48137
48138 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48139
48140         * config/srclistvars.sh: Add copyright notice.
48141
48142 2006-08-14  Eric Blake  <ebb9@byu.net>
48143
48144         Import the following change from libc:
48145
48146         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48147
48148         Upstream bug 2997.
48149         * lib/misc/error.c: Add space between program name and message if file
48150         name is missing.
48151
48152 2006-08-12  Karl Berry  <karl@gnu.org>
48153
48154         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48155         remove, these originate in gnulib now.
48156
48157 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48158
48159         * doc/Makefile (standards.info standards.html standards.dvi):
48160         Also depend on make-stds.texi.
48161
48162 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48163
48164         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48165         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48166
48167         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48168         in wchar_t.  Problem reported by Eric Blake.
48169
48170         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48171         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48172         Also, help the compiler to keep LEN in a register.
48173
48174 2006-08-11  Eric Blake  <ebb9@byu.net>
48175
48176         * users.txt: Sort.  Add tar.
48177
48178 2006-08-11  Bruno Haible  <bruno@clisp.org>
48179
48180         * users.txt: New file.
48181
48182 2006-08-11  Bruno Haible  <bruno@clisp.org>
48183
48184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48185         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48186
48187 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48188
48189         * modules/snprintf (Depends-on): Remove minmax.
48190         (Maintainer): Add self and Bruno.
48191
48192 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48193
48194         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48195         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48196         (EOVERFLOW): Define if the system does not.
48197         Do not include "minmax.h"; it wasn't used.
48198         (snprintf): Don't assume size_t promotes to an unsigned type.
48199         Fix bug when generated string was too long for the buffer: the
48200         buffer's contents are supposed to be the initial prefix of the
48201         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48202         exceeds INT_MAX; do the check ourselves.
48203
48204         Import the following changes from libc:
48205
48206         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48207
48208         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48209         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48210         set wc to the byte which couldn't be converted.
48211         (re_string_reconstruct): Don't clear valid_raw_len before calling
48212         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48213         tip_context using re_string_context_at.
48214
48215         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48216
48217         * lib/posix/regex.h: g++ still cannot handled [restrict].
48218
48219         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48220
48221         * lib/posix/regex.h: Remove special handling for VMS.
48222
48223 2006-08-10  Jim Meyering  <jim@meyering.net>
48224
48225         * modules/same-inode: New module.
48226         * modules/dev-ino: New module.
48227         * modules/cycle-check: Depend on these modules, rather than simply
48228         including their .h files.
48229         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48230         required via m4/cycle-check.m4.
48231         * modules/same: Depend on new same-inode module, rather than
48232         including same-inode.h.
48233         * modules/chdir-safer: New file.
48234
48235         * modules/chown (Depends-on): Add stat-macros.
48236
48237 2006-08-10  Jim Meyering  <jim@meyering.net>
48238
48239         * m4/cycle-check.m4: New file.
48240         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48241         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48242
48243 2006-08-10  Eric Blake  <ebb9@byu.net>
48244
48245         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48246         in from original proposal.
48247
48248 2006-08-10  Eric Blake  <ebb9@byu.net>
48249         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48250
48251         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48252         namespace.
48253
48254 2006-08-10  Bruno Haible  <bruno@clisp.org>
48255
48256         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48257         as well.
48258
48259 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48260
48261         Sync from coreutils.
48262
48263         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48264
48265         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48266         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48267
48268 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48269
48270         * modules/restrict: Remove; no longer needed now that we assume
48271         Autoconf 2.59 or later.
48272         * MODULES.html.sh: Remove 'restrict'.
48273         * modules/argp (Depends-on): Remove 'restrict'.
48274         * modules/base64 (Depends-on): Likewise.
48275         * modules/gc (Depends-on): Likewise.
48276         * modules/getaddrinfo (Depends-on): Likewise.
48277         * modules/glob (Depends-on): Likewise.
48278         * modules/inet_ntop (Depends-on): Likewise.
48279         * modules/inet_pton (Depends-on): Likewise.
48280         * modules/memxor (Depends-on): Likewise.
48281         * modules/regex (Depends-on): Likewise.
48282         * modules/strtok_r (Depends-on): Likewise.
48283         * modules/time_r (Depends-on): Likewise.
48284
48285 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48288         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48289         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48290         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48291         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48292         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48293         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48294         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48295
48296         Merge from coreutils.
48297         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48298         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48299         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48300         * m4/time_r.m4 (gl_TIME_R): Likewise.
48301
48302 2006-08-09  Karl Berry  <karl@gnu.org>
48303
48304         * config/srclist.txt: no more gettext-tools, per Bruno.
48305
48306 2006-08-08  Eric Blake  <ebb9@byu.net>
48307
48308         * modules/verror: New module.
48309         * MODULES.html.sh: Document it.
48310
48311 2006-08-08  Eric Blake  <ebb9@byu.net>
48312
48313         * lib/verror.h, lib/verror.c: New files.
48314
48315 2006-08-08  Eric Blake  <ebb9@byu.net>
48316
48317         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48318         verror_at_line output complies with GNU Coding Standards even when
48319         file is NULL.
48320
48321 2006-08-07  Bruno Haible  <bruno@clisp.org>
48322
48323         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48324         versions of AIX.
48325         Reported by Ralf Wildenhues.
48326
48327 2006-08-07  Bruno Haible  <bruno@clisp.org>
48328
48329         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48330         in an AC_DEFUN. Needed so that the autoconf snippets can use
48331         AC_REQUIRE.
48332
48333 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48334
48335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48336         Initialize pkgdata_DATA.
48337         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48338         overriding it.
48339
48340 2006-08-06  Eric Blake  <ebb9@byu.net>
48341
48342         * lib/error.h: Fold in some upstream changes from glibc.
48343         * lib/error.c: Likewise.
48344
48345 2006-08-04  Bruno Haible  <bruno@clisp.org>
48346
48347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48348         Make the mostlyclean-local rule depend on mostlyclean-generic.
48349         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48350
48351 2006-07-31  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48354         <stdlib.h>, <string.h>.
48355
48356 2006-07-30  Bruno Haible  <bruno@clisp.org>
48357
48358         * modules/readlink (License): Change to LGPL.
48359
48360 2006-07-30  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48363         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48364         set PKGDATADIR to point to it.
48365
48366 2006-07-30  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/csharpexec (configure.ac): Comment out macro invocation.
48369         * modules/javaexec (configure.ac): Likewise.
48370         * modules/javacomp-script (configure.ac): Likewise.
48371
48372         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48373
48374 2006-07-30  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48377         linked-list.
48378
48379 2006-07-30  Bruno Haible  <bruno@clisp.org>
48380
48381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48382
48383 2006-07-30  Bruno Haible  <bruno@clisp.org>
48384
48385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48386         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48387         get removed.
48388
48389 2006-07-29  Bruno Haible  <bruno@clisp.org>
48390
48391         Make it possible for gnulib-tool to work with locally modified or
48392         augmented gnulib repositories.
48393         * gnulib-tool (func_usage): Document --local-dir option.
48394         (local_gnulib_dir): New variable.
48395         Handle --local-dir option.
48396         (func_lookup_file): New function.
48397         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48398         (func_get_description, func_get_filelist, func_get_description,
48399         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48400         func_get_automake_snippet, func_get_include_directive,
48401         func_get_license, func_get_maintainer): Use func_lookup_file.
48402         (func_import, func_create_testdir): Use func_lookup_file.
48403
48404 2006-07-29  Bruno Haible  <bruno@clisp.org>
48405
48406         * modules/setenv (Depends-on): Add unistd.
48407
48408 2006-07-29  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48411
48412 2006-07-29  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48415
48416 2006-07-29  Bruno Haible  <bruno@clisp.org>
48417
48418         * gnulib-tool (import, update): If there is no Makefile.am, look at
48419         aclocal.m4, instead of bailing out.
48420
48421 2006-07-29  Bruno Haible  <bruno@clisp.org>
48422
48423         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48424         Categorize the options by when they are useful.
48425
48426 2006-07-29  Bruno Haible  <bruno@clisp.org>
48427
48428         * gnulib-tool (func_usage): Document option --no-libtool.
48429         Handle option --no-libtool.
48430         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48431         for changed semantics of $libtool variable.
48432         (func_import): Likewise. If libtool is not used, show this through
48433         an option --no-libtool.
48434         (func_create_testdir): Update.
48435
48436 2006-07-29  Bruno Haible  <bruno@clisp.org>
48437
48438         * gnulib-tool (func_import): Extend error message about missing
48439         --doc-base.
48440
48441 2006-07-29  Bruno Haible  <bruno@clisp.org>
48442
48443         * gnulib-tool (func_import): Don't create the $docbase directory if
48444         there is no file to store there.
48445
48446 2006-07-29  Bruno Haible  <bruno@clisp.org>
48447
48448         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48449         relevant, look for configure.ac there, not in the current directory.
48450         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48451
48452 2006-07-29  Bruno Haible  <bruno@clisp.org>
48453
48454         * gnulib-tool (SORT): New variable.
48455         (func_usage): Undocument --assume-autoconf option.
48456         Remove --assume-autoconf option handling.
48457         (autoconf_minversion): Determine from the contents of configure.ac.
48458         (func_import): Remove autoconf_minversion handling.
48459         Suggested by Eric Blake.
48460
48461 2006-07-29  Bruno Haible  <bruno@clisp.org>
48462
48463         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48464
48465 2006-07-29  Bruno Haible  <bruno@clisp.org>
48466
48467         * config/srclist.txt (*setenv.[ch]): Remove rules.
48468
48469 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48470
48471         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48472
48473 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48474
48475         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48476         arpa/inet.h.
48477
48478 2006-07-28  Simon Josefsson  <jas@extundo.com>
48479
48480         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48481         * modules/inet_pton (Depends-on): Likewise.
48482
48483 2006-07-28  Simon Josefsson  <jas@extundo.com>
48484
48485         * m4/netinet_in_h.m4: New file.
48486
48487 2006-07-28  Simon Josefsson  <jas@extundo.com>
48488
48489         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48490         #include's.
48491
48492 2006-07-28  Simon Josefsson  <jas@extundo.com>
48493
48494         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48495         #include's.
48496
48497 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48498
48499         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48500         setgid on directories only if they set these bits.
48501         * lib/modechange.h: Remove obsolete comment about masks.
48502
48503 2006-07-28  Eric Blake  <ebb9@byu.net>
48504
48505         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48506         macro expansion.
48507
48508 2006-07-28  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48511
48512 2006-07-28  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48515
48516 2006-07-28  Bruno Haible  <bruno@clisp.org>
48517
48518         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48519         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48520         Define fallbacks.
48521         Avoids link error on FreeBSD 4.x.
48522         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48523
48524         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48525         encoding.
48526         * lib/mbswidth.c (iswcntrl): Likewise.
48527
48528 2006-07-27  Bruno Haible  <bruno@clisp.org>
48529
48530         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48531         test.
48532
48533 2006-07-27  Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48536         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48537         defined.
48538
48539 2006-07-26  Eric Blake  <ebb9@byu.net>
48540
48541         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48542
48543 2006-07-26  Eric Blake  <ebb9@byu.net>
48544
48545         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48546         like mingw that lack mkstemp.
48547         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48548         avoid compilation warning on mingw.
48549
48550 2006-07-26  Bruno Haible  <bruno@clisp.org>
48551
48552         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48553         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48554         INT_FAST*_MIN, INTPTR_MIN.
48555
48556 2006-07-25  Bruno Haible  <bruno@clisp.org>
48557
48558         * modules/version-etc (Depends-on): Add stdarg.
48559
48560 2006-07-25  Bruno Haible  <bruno@clisp.org>
48561
48562         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48563         complex commands.
48564
48565 2006-07-25  Bruno Haible  <bruno@clisp.org>
48566
48567         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48568         defined in <stdarg.h> or config.h.
48569
48570 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48573         (gl_STDIO_SAFER): Remove.
48574
48575 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48576
48577         * MODULES.html.sh (File stream based Input/Output):
48578         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48579         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48580         * modules/fopen-safer, modules/tmpfile-safer: New files.
48581         * modules/stdio-safer: Remove.
48582
48583 2006-07-24  Bruno Haible  <bruno@clisp.org>
48584
48585         * modules/tmpdir: New file.
48586         * MODULES.html.sh (File system functions): Add it.
48587
48588 2006-07-24  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48591         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48592
48593 2006-07-24  Bruno Haible  <bruno@clisp.org>
48594
48595         * modules/clean-temp: New file.
48596
48597 2006-07-24  Bruno Haible  <bruno@clisp.org>
48598
48599         * m4/tmpdir.m4: New file, from GNU gettext.
48600
48601 2006-07-24  Bruno Haible  <bruno@clisp.org>
48602
48603         * lib/tmpdir.h: New file, from GNU gettext.
48604         * lib/tmpdir.c: New file, from GNU gettext.
48605
48606 2006-07-24  Bruno Haible  <bruno@clisp.org>
48607
48608         * lib/clean-temp.h: New file, from GNU gettext.
48609         * lib/clean-temp.c: New file, from GNU gettext.
48610
48611 2006-07-23  Eric Blake  <ebb9@byu.net>
48612
48613         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48614         (Depends-on): Add binary-io.
48615
48616 2006-07-23  Eric Blake  <ebb9@byu.net>
48617
48618         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48619
48620 2006-07-23  Eric Blake  <ebb9@byu.net>
48621
48622         * lib/tmpfile-safer.c: New file.
48623         * lib/stdio-safer.h (fopen_safer): Add prototype.
48624         * lib/stdio--.h (tmpfile): Make safer.
48625
48626 2006-07-23  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48629         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48630         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48631         gl_linked_remove_at): Use it.
48632
48633 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48634         and Simon Josefsson <jas@extundo.com>
48635
48636         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48637
48638         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48639
48640 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         * modules/close-stream: New file.
48643         * modules/closeout (Description): Make it clear that it exits
48644         with a diagnostic on error.
48645         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48646         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48647
48648 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48649
48650         * m4/close-stream.m4: New file.
48651
48652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48653
48654         * lib/close-stream.c, lib/close-stream.h: New files.
48655
48656 2006-07-22  Bruno Haible  <bruno@clisp.org>
48657
48658         Merge from GNU gettext 0.15.
48659
48660         2006-05-01  Bruno Haible  <bruno@clisp.org>
48661
48662                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48663
48664         2006-07-22  Bruno Haible  <bruno@clisp.org>
48665
48666                 * modules/javaversion: New file.
48667                 * MODULES.html.sh (Java): Add javaversion.
48668
48669         2006-03-12  Bruno Haible  <bruno@clisp.org>
48670
48671                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48672
48673         2005-12-04  Bruno Haible  <bruno@clisp.org>
48674
48675                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48676                 (untested).
48677
48678         2006-06-21  Bruno Haible  <bruno@clisp.org>
48679
48680                 Avoid warnings from recent versions of mcs.
48681                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48682                 -o, -L, -r any more. Use options documented since mcs-1.0
48683                 instead. Similarly for -g.
48684
48685         2005-12-04  Bruno Haible  <bruno@clisp.org>
48686
48687                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48688                 .resources, not .resource.
48689
48690         2005-07-09  Bruno Haible  <bruno@clisp.org>
48691
48692                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48693                 add a .dll suffix.
48694                 Reported by Mark Junker <mjscod@gmx.de>.
48695
48696         2006-07-22  Bruno Haible  <bruno@clisp.org>
48697
48698                 * modules/gettext: Upgrade to gettext-0.15.
48699                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48700                 m4/visibility.m4.
48701                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48702
48703 2006-07-22  Bruno Haible  <bruno@clisp.org>
48704
48705         Merge from GNU gettext 0.15.
48706
48707         2006-03-25  Bruno Haible  <bruno@clisp.org>
48708
48709                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48710
48711         2006-07-21  Bruno Haible  <bruno@clisp.org>
48712
48713                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48714                 "1.1".
48715
48716         2006-05-09  Bruno Haible  <bruno@clisp.org>
48717
48718                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48719                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48720                 for the conftestver execution.
48721
48722         2006-05-01  Bruno Haible  <bruno@clisp.org>
48723
48724                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48725                 optional target-version argument. Verify that the compiler
48726                 groks source of the specified source-version, or add -source
48727                 option as necessary. Verify that the compiler produces
48728                 bytecode in the specified target-version, or add -target and
48729                 -source options as necessary. Make the result of the test
48730                 available as variable CONF_JAVAC. Also log error output in
48731                 config.log.
48732
48733         2006-03-11  Bruno Haible  <bruno@clisp.org>
48734
48735                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48736
48737         2006-05-09  Bruno Haible  <bruno@clisp.org>
48738
48739                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48740                 CLASSPATH_SEPARATOR to a semicolon.
48741
48742         2006-03-12  Bruno Haible  <bruno@clisp.org>
48743
48744                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48745                 available as variable CONF_JAVA, for subsequent autoconf
48746                 tests. Also log error output in config.log.
48747
48748         2006-07-19  Bruno Haible  <bruno@clisp.org>
48749
48750                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48751                 that getline works on glibc2 systems. Needed to avoid trouble
48752                 in relocatable.c.
48753                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48754
48755         2005-12-04  Bruno Haible  <bruno@clisp.org>
48756
48757                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48758                 launcher (untested).
48759
48760         2005-12-04  Bruno Haible  <bruno@clisp.org>
48761
48762                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48763
48764         2006-07-22  Bruno Haible  <bruno@clisp.org>
48765
48766                 * gettext.m4: Update from GNU gettext-0.15.
48767                 * nls.m4: Likewise.
48768                 * po.m4: Likewise.
48769                 * inttypes-pri.m4: Likewise.
48770                 * inttypes-h.m4: Renamed from inttypes.m4.
48771                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48772
48773 2006-07-22  Bruno Haible  <bruno@clisp.org>
48774
48775         Merge from GNU gettext 0.15.
48776
48777         2005-07-05  Bruno Haible  <bruno@clisp.org>
48778
48779                 * printf-args.c (printf_fetchargs): Work around broken
48780                 definition of wint_t on mingw.
48781
48782         2005-02-12  Bruno Haible  <bruno@clisp.org>
48783
48784                 * xallocsa.h: Add extern "C" for C++.
48785
48786         2006-05-17  Bruno Haible  <bruno@clisp.org>
48787
48788                 Cygwin portability.
48789                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48790
48791         2006-04-30  Bruno Haible  <bruno@clisp.org>
48792
48793                 * progreloc.c: Include <mach-o/dyld.h> if available.
48794                 (find_executable): Use _NSGetExecutablePath when possible.
48795
48796         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48797
48798                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48799                 function.
48800
48801         2005-12-29  Bruno Haible  <bruno@clisp.org>
48802
48803                 * progreloc.c (set_program_name_and_installdir): Fix
48804                 compilation error.
48805
48806         2005-12-04  Bruno Haible  <bruno@clisp.org>
48807
48808                 Cygwin portability.
48809                 * progreloc.c: Include <windows.h> also on Cygwin.
48810                 (find_executable): Add support for Cygwin.
48811                 (set_program_name_and_installdir): Handle also platforms with
48812                 nonempty EXEEXT.
48813
48814         2006-07-11  Bruno Haible  <bruno@clisp.org>
48815
48816                 * javacomp.c: Fix a comment.
48817                 Reported by Jim Meyering.
48818
48819         2006-04-30  Bruno Haible  <bruno@clisp.org>
48820
48821                 * javacomp.h (compile_java_class): Add source_version,
48822                 target_version arguments.
48823                 * javacomp.c: Rewritten to choose only a compiler that
48824                 respects the specified source_version and target_version.
48825
48826         2006-06-27  Bruno Haible  <bruno@clisp.org>
48827
48828                 Assume correct S_ISDIR macro.
48829                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48830
48831         2006-07-22  Bruno Haible  <bruno@clisp.org>
48832
48833                 * javaversion.h: New file, from GNU gettext.
48834                 * javaversion.c: New file, from GNU gettext.
48835                 * javaversion.java: New file, from GNU gettext.
48836                 * javaversion.class: New file, from GNU gettext.
48837
48838         2006-05-17  Bruno Haible  <bruno@clisp.org>
48839
48840                 Cygwin portability.
48841                 * javaexec.c (execute_java_class): Test for jview program
48842                 also on Cygwin.
48843
48844         2006-04-09  Bruno Haible  <bruno@clisp.org>
48845
48846                 * fatal-signal.c: Don't include string.h.
48847                 (at_fatal_signal): Use a copying loop instead of memcpy.
48848
48849         2005-12-04  Bruno Haible  <bruno@clisp.org>
48850
48851                 * csharpexec.c: Add support for 'clix' launcher (untested).
48852                 (execute_csharp_using_sscli): New function.
48853                 (execute_csharp_program): Call it.
48854
48855         2006-06-21  Bruno Haible  <bruno@clisp.org>
48856
48857                 Avoid warnings from recent versions of mcs.
48858                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48859                 -o, -L, -r any more. Use options documented since mcs-1.0
48860                 instead. Similarly for -g.
48861
48862         2005-07-09  Bruno Haible  <bruno@clisp.org>
48863
48864                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48865                 add a .dll suffix.
48866                 Reported by Mark Junker <mjscod@gmx.de>.
48867
48868         2006-06-17  Bruno Haible  <bruno@clisp.org>
48869
48870                 * config.charset: Update for NetBSD 3.0.
48871
48872         2006-05-17  Bruno Haible  <bruno@clisp.org>
48873
48874                 Cygwin portability.
48875                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48876
48877         2006-05-16  Bruno Haible  <bruno@clisp.org>
48878
48879                 * localcharset.c [CYGWIN]: Include <windows.h>.
48880                 (get_charset_aliases): For Cygwin, return the same CPxxx
48881                 aliases list as under WIN32.
48882                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
48883                 the environment variables. Fall back to GetACP().
48884
48885         2006-04-05  Bruno Haible  <bruno@clisp.org>
48886
48887                 * config.charset: Update Juan Manuel Guerrero's address.
48888
48889         2005-02-12  Bruno Haible  <bruno@clisp.org>
48890
48891                 * allocsa.h: Add extern "C" for C++.
48892
48893         2005-02-10  Bruno Haible  <bruno@clisp.org>
48894
48895                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
48896                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
48897
48898         2006-07-22  Bruno Haible  <bruno@clisp.org>
48899
48900                 * gettext.h: Update to GNU gettext-0.15.
48901
48902 2006-07-22  Bruno Haible  <bruno@clisp.org>
48903
48904         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
48905         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
48906         lib-prefix.m4, longdouble.m4, ssize_t.m4.
48907
48908 2006-07-21  Eric Blake  <ebb9@byu.net>
48909
48910         * modules/stdlib-safer: New file.
48911         * MODULES.html.sh (File stream based Input/Output): Add
48912         stdlib-safer.
48913
48914 2006-07-21  Eric Blake  <ebb9@byu.net>
48915
48916         * lib/stdlib-safer.h: New file from coreutils, required by
48917         stdlib--.h.
48918
48919 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
48922
48923 2006-07-20  Bruno Haible  <bruno@clisp.org>
48924
48925         * gnulib-tool: Recognize new option --assume-autoconf.
48926         (autoconf_minversion): New variable.
48927         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
48928
48929 2006-07-20  Bruno Haible  <bruno@clisp.org>
48930
48931         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
48932
48933 2006-07-19  Derek R. Price  <derek@ximbiot.com>
48934
48935         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
48936         Reindent and repaginate.
48937
48938 2006-07-19  Derek Price  <derek@ximbiot.com>
48939
48940         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
48941         Correct grammar.
48942
48943 2006-07-17  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/list: New file.
48946         * modules/array-list: New file.
48947         * modules/carray-list, modules/carray-list-tests: New files.
48948         * modules/linked-list, modules/linked-list-tests: New files.
48949         * modules/avltree-list, modules/avltree-list-tests: New files.
48950         * modules/rbtree-list, modules/rbtree-list-tests: New files.
48951         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
48952         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
48953         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
48954         * modules/oset: New file.
48955         * modules/array-oset: New file.
48956         * modules/avltree-oset, modules/avltree-oset-tests: New files.
48957         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
48958         * tests/test-carray_list.c: New file.
48959         * tests/test-linked_list.c: New file.
48960         * tests/test-avltree_list.c: New file.
48961         * tests/test-rbtree_list.c: New file.
48962         * tests/test-linkedhash_list.c: New file.
48963         * tests/test-avltreehash_list.c: New file.
48964         * tests/test-rbtreehash_list.c: New file.
48965         * tests/test-avltree_oset.c: New file.
48966         * tests/test-rbtree_oset.c: New file.
48967         * MODULES.html.sh (Container data structures): New section.
48968
48969 2006-07-17  Bruno Haible  <bruno@clisp.org>
48970
48971         * m4/gl_list.m4: New file.
48972
48973 2006-07-17  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/gl_list.h: New file.
48976         * lib/gl_list.c: New file.
48977         * lib/gl_array_list.h: New file.
48978         * lib/gl_array_list.c: New file.
48979         * lib/gl_carray_list.h: New file.
48980         * lib/gl_carray_list.c: New file.
48981         * lib/gl_linked_list.h: New file.
48982         * lib/gl_linked_list.c: New file.
48983         * lib/gl_anylinked_list1.h: New file.
48984         * lib/gl_anylinked_list2.h: New file.
48985         * lib/gl_avltree_list.h: New file.
48986         * lib/gl_avltree_list.c: New file.
48987         * lib/gl_anyavltree_list1.h: New file.
48988         * lib/gl_anyavltree_list2.h: New file.
48989         * lib/gl_rbtree_list.h: New file.
48990         * lib/gl_rbtree_list.c: New file.
48991         * lib/gl_anyrbtree_list1.h: New file.
48992         * lib/gl_anyrbtree_list2.h: New file.
48993         * lib/gl_anytree_list1.h: New file.
48994         * lib/gl_anytree_list2.h: New file.
48995         * lib/gl_linkedhash_list.h: New file.
48996         * lib/gl_linkedhash_list.c: New file.
48997         * lib/gl_anyhash_list1.h: New file.
48998         * lib/gl_anyhash_list2.h: New file.
48999         * lib/gl_avltreehash_list.h: New file.
49000         * lib/gl_avltreehash_list.c: New file.
49001         * lib/gl_rbtreehash_list.h: New file.
49002         * lib/gl_rbtreehash_list.c: New file.
49003         * lib/gl_anytreehash_list1.h: New file.
49004         * lib/gl_anytreehash_list2.h: New file.
49005
49006         * lib/gl_oset.h: New file.
49007         * lib/gl_oset.c: New file.
49008         * lib/gl_array_oset.h: New file.
49009         * lib/gl_array_oset.c: New file.
49010         * lib/gl_avltree_oset.h: New file.
49011         * lib/gl_avltree_oset.c: New file.
49012         * lib/gl_rbtree_oset.h: New file.
49013         * lib/gl_rbtree_oset.c: New file.
49014         * lib/gl_anytree_oset.h: New file.
49015
49016 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49017
49018         * m4/mkancesdirs.m4: New file.
49019         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49020         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49021         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49022         it.
49023
49024 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49027         * lib/mkancesdirs.h: New files.
49028         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49029         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49030         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49031         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49032         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49033         callers changed.  Revamp internals significantly, by not
49034         attempting to create directories that are temporarily more
49035         permissive than the final results.  Do not attempt to use
49036         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49037         This removes some race conditions, fixes some bugs, and simplifies
49038         things.  Use new dirchownmod function to do owner and mode changes.
49039         * lib/mkdir-p.h: Likewise.
49040         * lib/modechange.c (octal_to_mode): New function.
49041         (struct mode_change): New member mentioned.
49042         (make_node_op_equals): New arg mentioned.  All callers changed.
49043         (mode_compile): Keep track of which mode bits the user has explicitly
49044         mentioned.
49045         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49046         New arg PMODE_BITS, to keep track of which mode bits the user
49047         mentioned; it treats S_ISUID and S_ISGID speciall.
49048         All callers changed.
49049         * lib/modechange.h: Likewise.
49050
49051 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         * MODULES.html.sh: Add mkancestors.
49054         * modules/mkancesdirs: New module.
49055         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49056         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49057         The chdir-safer and afs files are now orphans; I'll remove them
49058         unless someone speaks up.
49059         Add lib/dirchownmod.c, lib/dirchownmod.h.
49060         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49061         Add lchown, mkancesdirs.
49062         (Maintainer): Add self.
49063
49064 2006-07-15  Karl Berry  <karl@gnu.org>
49065
49066         * gnulib-tool: help message wording/arrangement.
49067
49068 2006-07-14  Simon Josefsson  <jas@extundo.com>
49069
49070         * doc/gnulib.texi (Libtool and Windows): New section.
49071
49072 2006-07-12  Simon Josefsson  <jas@extundo.com>
49073
49074         * modules/gendocs (License): Fix license, approved by Karl.
49075
49076 2006-07-12  Eric Blake  <ebb9@byu.net>
49077
49078         * MODULES.html.sh: Add gendocs.
49079
49080 2006-07-11  Eric Blake  <ebb9@byu.net>
49081
49082         * modules/fdl: New module, to install doc/fdl.texi.
49083         * MODULES.html.sh: Add new section for documentation modules.
49084         * gnulib-tool: Avoid space-tab.
49085         (--doc-base): New option, to manage files from doc.
49086
49087 2006-07-11  Eric Blake  <ebb9@byu.net>
49088
49089         * m4/absolute-header.m4: Fix comments to match recent change.
49090
49091 2006-07-11  Eric Blake  <ebb9@byu.net>
49092
49093         * gnulib-tool: List --doc-base before --tests-base.
49094
49095 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49096
49097         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49098
49099 2006-07-11  Bruno Haible  <bruno@clisp.org>
49100
49101         * README: Mention where to put documentation.
49102
49103 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49104
49105         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49106
49107 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49108
49109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49110         to stdint.m4.
49111
49112 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49113
49114         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49115         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49116         "no/such/file/stdint.h" when there is no such file, so that
49117         the resulting C code can be parsed by dodgy compilers.
49118         Problems reported by Bob Proulx.
49119
49120 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49121
49122         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49123         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49124         macros into the GNU _D_EXACT_NAMLEN.
49125         * lib/savedir.c:  Likewise.
49126         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49127
49128 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49129         and Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49132         * m4/savedir.m4:
49133         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49134         macros into the GNU _D_EXACT_NAMLEN.
49135
49136 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49137
49138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49139         around the absolute name, to work around a problem with the HP-UX
49140         11.23 native C compiler, reported by Bob Proulx.
49141
49142 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         * doc/maintain.texi, make-stds.texi: Sync from
49145         <http://savannah.gnu.org/projects/gnustandards>.
49146
49147 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49148
49149         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49150
49151 2006-07-09  Jim Meyering  <jim@meyering.net>
49152
49153         * m4/glob.m4: Remove a doubled word in a comment.
49154
49155 2006-07-09  Jim Meyering  <jim@meyering.net>
49156
49157         * lib/argp-pv.c: Remove a doubled word in a comment.
49158         * lib/check-version.c (check_version): Likewise.
49159         * lib/javacomp.c (compile_java_class): Likewise.
49160
49161 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49164         for the benefit of people using Autoconf 2.60.  If you want to
49165         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49166         (or m4/onceonly.m4, if pre-2.57) manually.
49167
49168 2006-07-08  Jim Meyering  <jim@meyering.net>
49169
49170         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49171         comment.
49172         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49173         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49174         comment.
49175
49176 2006-07-08  Jim Meyering  <jim@meyering.net>
49177
49178         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49179
49180 2006-07-07  Simon Josefsson  <jas@extundo.com>
49181
49182         * tests/test-crc.c: Change expected crc value, the test vector
49183         were probably computed using the old broken crc.c?
49184
49185 2006-07-06  Simon Josefsson  <jas@extundo.com>
49186
49187         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49188         now the canonical place for the M4 file).
49189
49190         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49191         from the sys_socket dependency now.
49192
49193         * modules/inet_pton (Files): Ditto.
49194
49195         * modules/inet_ntop (Files): Ditto.
49196
49197 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49198
49199         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49200         not gl_PREREQ_GETUSERSHELL.
49201
49202 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49203
49204         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49205         with only one argument, for Autoconf 2.60.
49206         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49207         expand to nothing, so add a shell command to avoid syntax error.
49208         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49209
49210 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211
49212         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49213
49214 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49215
49216         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49217         no longer needed.  Check for isblank decl.
49218         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49219         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49220         of existence.
49221
49222 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49223
49224         * lib/getloadavg.c: Use __VMS, not VMS.
49225         * lib/getopt.c: Likewise.
49226         * lib/getpagesize.h: Likewise.
49227         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49228         and probably does not work.
49229
49230 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * lib/.cppi-disable: Add wcwidth.
49233         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49234         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49235         (ISGRAPH): Remove.  All uses changed to isgraph.
49236         (FOLD) [!defined _LIBC]: Remove special case.
49237         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49238         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49239         HAVE_ISBLANK.
49240         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49241         case.
49242
49243 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49244
49245         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49246         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49247         brackets.  Other minor changes to suppress some compiler
49248         warnings.
49249
49250 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49251         and Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49254         of invoking obsolescent AC_HEADER_DIRENT macro.
49255         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49256         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49257         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49259         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49260         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49261         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49262         * m4/readdir.m4: Remove; no longer needed.
49263
49264 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49265         and Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49268         Don't worry about this obsolete case any more.
49269         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49270         directories.
49271         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49272         worry about this obsolete case any more.
49273         * lib/fts.c: Likewise.
49274         * lib/getcwd.c: Likewise.
49275         * lib/glob.h: Likewise.
49276         * lib/savedir.c: Likewise.
49277
49278 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49281         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49282         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49283         needed.
49284         All uses removed.
49285         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49286         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49287         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49288         needed.
49289         * m4/getdate.m4 (gl_GETDATE): Likewise.
49290         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49291         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49292         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49293         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49294         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49295         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49296         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49297         needed.
49298
49299 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * lib/memcasecmp.c: Include <limits.h>.
49302         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49303         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49304         Don't assume isdigit succeeds only on '0' through '9'.
49305
49306 2006-07-05  Eric Blake  <ebb9@byu.net>
49307
49308         * modules/getaddrinfo (Depends-on): Add snprintf.
49309
49310 2006-07-05  Eric Blake  <ebb9@byu.net>
49311
49312         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49313         to avoid 'header present but could not be compiled' on cygwin.
49314
49315 2006-07-05  Eric Blake  <ebb9@byu.net>
49316
49317         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49318         missing from netdb.h.
49319         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49320
49321 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49322
49323         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49324         no longer needed.
49325         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49326         * m4/getdate.m4 (gl_GETDATE): Likewise.
49327         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49328         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49329         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49330         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49331         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49332
49333 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49334
49335         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49336         All uses of is_space replaced by isspace.
49337         * lib/exit.h: Don't talk about STDC_HEADERS.
49338         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49339         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49340         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49341         replaced by isprint etc.
49342         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49343         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49344         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49345         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49346         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49347         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49348
49349 2006-07-05  Bruno Haible  <bruno@clisp.org>
49350
49351         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49352         the function exists, before testing against AIX.
49353         Reported by Martin Lambers <marlam@marlam.de>.
49354
49355 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49356
49357         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49358         From Mark D. Baushke.
49359
49360 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49361
49362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49363         to the absolute name, not just one, to bypass Sun C 5.8's
49364         "warning: #include of /usr/include/... may be non-portable".
49365
49366 2006-07-04  Eric Blake  <ebb9@byu.net>
49367
49368         * modules/dirname-tests: New test module.
49369         * tests/test-dirname.c: New file, replacing dirname.c
49370         TEST_DIRNAME section that was recently deleted.
49371
49372 2006-07-04  Bruno Haible  <bruno@clisp.org>
49373
49374         Assume ANSI C header files and <ctype.h> functions.
49375         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49376         (mbsnwidth): Use isprint, iscntrl instead.
49377
49378 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49379
49380         Merge from coreutils.
49381         * MODULES.html.sh: Add xstrtold.
49382         * modules/xstrtold: New file.
49383         * modules/cycle-check (Files): Add lib/same-inode.h.
49384         * modules/dirname (Files): Add m4/double-slash-root.m4.
49385         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49386         * modules/mkdir-p (Files): Add lib/same-inode.h.
49387         * modules/same (Files): Add lib/same-inode.h.
49388
49389 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49390
49391         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49392         This is to keep the terminology clean; POSIX talks about
49393         "absolute pathnames", not "full pathnames", but the GNU
49394         Coding Standards say to use "path" for something else;
49395         so use "absolute" to keep both sides happy.
49396         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49397         Set gl_absolute_header, not gl_full_header_path.
49398         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49399         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49400         All uses changed.
49401
49402         Merge from coreutils.
49403
49404         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49405
49406         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49407         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49408         want to require the building of c-strtod.o.
49409         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49410         needs -lm directly.
49411         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49412
49413         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49416         --as-needed option if available.  Problem reported by Albert Chin in
49417         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49418         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49419         cc merely issues a bunch of annoying warnings for --as-needed
49420         (this problem was reported by Bob Proulx).  Also, try linking with
49421         -lm to detect a bug in binutils 2.16 (this problem was reported
49422         by Ralf Wildenhues).
49423
49424         2006-06-18  Jim Meyering  <jim@meyering.net>
49425
49426         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49427         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49428         macro.
49429         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49430         also check for glibc-2.4's abort-inducing bug.
49431
49432         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49433         Low-probability clean-up should be to use rmdir to get rid of
49434         the just-created directory, not unlink.
49435
49436         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49437         configure fail, and request a bug report to inform us about it.
49438         Add a comment that, barring reports to the contrary, in 2007 we'll
49439         assume ftruncate is universally available.
49440
49441         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49444
49445         2006-03-12  Jim Meyering  <jim@meyering.net>
49446
49447         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49448         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49449         * m4/same.m4 (gl_SAME): Likewise.
49450         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49451
49452         2006-03-11  Eric Blake  <ebb9@byu.net>
49453
49454         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49455         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49456         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49457         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49458
49459 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49462         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49463         reported by Mark D. Baushke, one in
49464         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49465
49466         Merge from coreutils.
49467
49468         * lib/.cppi-disable: Add stdint_.h.
49469         * lib/.cvsignore: Add stdint.h.
49470
49471         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49472
49473         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49474         both double and long double versions.
49475         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49476         * lib/xstrtold.c: New file.
49477         * lib/xstrtod.h (xstrtold): New decl.
49478
49479         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49480
49481         * lib/filemode.c (setst): Remove.
49482         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49483         (arguably) clearer, and the generated code is a bit smaller on my
49484         Debian GNU/Linux stable x86 host.
49485
49486         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49487
49488         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49489         Assume that filemode.h includes sys/types.h and sys/stat.h.
49490         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49491         (ftypelet): Reorder to put common cases first, for efficiency.
49492         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49493         to do 'M'.
49494         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49495         of 10, for compatibility with FreeBSD.  All callers changed.
49496         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49497         types that can't be deduced solely from st_mode.  First arg is now a
49498         const pointer.
49499         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49500         (strmode): Renamed from mode_string.
49501         (filemodestring): New decl.
49502         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49503         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49504         needed.
49505         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49506
49507         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49508
49509         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49510         fsusage.h now does that.  Include fsusage.h first, to test interface.
49511         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49512         at most one method (the old code could have generated decls that
49513         didn't conform to C89, not that this was ever exercised).
49514         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49515
49516         2006-03-19  Jim Meyering  <jim@meyering.net>
49517
49518         Work even in a chroot where d_ino values for entries in "/"
49519         don't match the stat.st_ino values for the same names.
49520         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49521         number, iterate through all entries again, using lstat instead.
49522         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49523         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49524
49525         * lib/getcwd.c (__getcwd): Clarify a comment.
49526         Use memcpy in place of a call to strcpy.
49527
49528         2006-03-12  Jim Meyering  <jim@meyering.net>
49529
49530         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49531         matches that of the current directory (which we're about to chdir ".."
49532         out of), then save the dev-ino of the parent, instead.
49533
49534         * lib/same-inode.h (SAME_INODE): New file/macro.
49535         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49536         Include "same-inode.h", instead.
49537         * lib/same.c: Likewise.
49538         * lib/cycle-check.h: Include "same-inode.h".
49539         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49540         * lib/cycle-check.c (SAME_INODE): Remove definition.
49541         * lib/root-dev-ino.h: Include "same-inode.h".
49542
49543         2006-03-11  Eric Blake  <ebb9@byu.net>
49544
49545         * lib/same.c (same_name): s/base_name/last_component/
49546         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49547         * lib/filenamecat.c (file_name_concat): Likewise.
49548
49549         2006-03-11  Eric Blake  <ebb9@byu.net>,
49550                     Paul Eggert  <eggert@cs.ucla.edu>
49551
49552         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49553         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49554         drive prefix.
49555         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49556         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49557         (last_component): New method.
49558         * lib/dirname.c (dir_len): Determine when drive letters need a
49559         subsequent slash.  Preserve // when it is special.
49560         (dir_name): Don't append dot when drive letter is absolute.
49561         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49562         * lib/basename.c (base_name): New semantics - malloc the result.
49563         Preserve // when it is special.  Preserve relative files that look
49564         like drive letters.
49565         (base_len): Preserve // when it is special.
49566         (last_component): New method, similar to old base_name semantics.
49567         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49568         base_name.  Strip redundant slashes from ///.
49569
49570 2006-07-03  Jim Meyering  <jim@meyering.net>
49571
49572         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49573         macro is used before the first cycle_check call.
49574
49575 2006-07-03  Eric Blake  <ebb9@byu.net>
49576
49577         * modules/dirname (Depends-on): Add xstrndup.
49578
49579 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49580
49581         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49582         test cases, so that config.log is a bit easier to follow.
49583
49584 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49585
49586         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49587         both are 64 bits, since this seems to be the tradition, and this
49588         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49589         we ever run into a host that prefers long long to long in this
49590         case, we'll need another configure-time test.  Problem reported by
49591         Jim Meyering.
49592
49593 2006-07-02  Eric Blake  <ebb9@byu.net>
49594
49595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49596
49597 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49598
49599         * modules/inttypes (Depends-on): No longer depends on stdint.
49600         * modules/stdint (Description): Say more about assumptions.
49601         Say that the fast types might differ.  Say macros are used.
49602         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49603         (Makefile.am): Revise list of substituted symbols to match
49604         new stdint.m4.
49605         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49606         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49607         * tests/test-stdint.c (verify_same_types)
49608         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49609         the code conforms to C99/C89.
49610         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49611         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49612
49613 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49614
49615         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49616         but fix a bug, by requiring at least 64 bits.
49617         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49618         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49619         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49620         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49621
49622         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49623         changes.  Make 2.59 a prerequisite.  Check and substitute for
49624         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49625         inttypes.h.  Do not use special include files; just use the
49626         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49627         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49628         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49629         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49630         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49631         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49632         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49633         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49634         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49635         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49636         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49637         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49638         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49639         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49640         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49641         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49642         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49643         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49644         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49645         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49646         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49647         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49648         not check for things that C99 does not require, e.g., int8_t.  If
49649         a test isn't needed unless <stdint.h> isn't working, and is
49650         unlikely to be needed for any other reason, then don't do it
49651         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49652         size_t, since we assume C89 freestanding at least.  Do not check
49653         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49654         the right thing even if the types are not defined.  Instead use:
49655         (gl_STDINT_TYPE_PROPERTIES): New macro.
49656         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49657         testing whether <sys/types.h> clashes, as Autoconf does this for
49658         us now.  All uses removed.
49659         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49660         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49661         (gl_CHECK_TYPE_SAME):
49662         Remove; no longer needed.
49663         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49664         exists, since we'll return 0 anyway in that case.
49665         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49666
49667 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49668
49669         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49670         possible collision with system files.
49671         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49672         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49673         WCHAR_MIN and WCHAR_MAX in this case.
49674         (<stddef.h>): Do not include; no longer needed.
49675         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49676         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49677         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49678         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49679         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49680         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49681         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49682         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49683         !defined(__c99))]: Include in this case too, since it's harmless
49684         now.
49685         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49686         dangerous to do so.
49687         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49688         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49689         (_STDINT_MIN, _STDINT_MAX): New macros.
49690         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49691         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49692         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49693         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49694         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49695         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49696         macros, not typedefs; this simplifies things quite a bit.
49697         Use long int for all types narrower than int64_t.
49698         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49699         Define in terms of long long int or int64_t or long int,
49700         not int64_t or int32_t.  This saves some compile-time testing.
49701         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49702         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49703         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49704         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49705         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49706         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49707         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49708         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49709         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49710         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49711         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49712         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49713         undef any previous version and define our own version, for
49714         simplicity and consistency with the new macros for types.
49715         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49716         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49717         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49718         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49719         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49720         @WINT_T_SUFFIX@ to keep things simple here.
49721         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49722         Simplify by assuming typical 8/16/32/64 host, since we're
49723         already doing that elsewhere anyway.
49724         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49725         and assume long long int is 64 bits if available.  This
49726         speeds up 'configure'.
49727
49728 2006-07-01  Eric Blake  <ebb9@byu.net>
49729
49730         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49731         Reported by Andreas Buening.
49732
49733 2006-07-01  Eric Blake  <ebb9@byu.net>
49734
49735         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49736
49737 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49738
49739         * lib/getaddrinfo.c: fixed typo
49740
49741 2006-06-29  Jim Meyering  <jim@meyering.net>
49742
49743         * modules/strftime (Maintainer): Add my name, since with the
49744         FPRINTFTIME changes strftime.c has forked from glibc.
49745
49746 2006-06-29  Eric Blake  <ebb9@byu.net>
49747
49748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49749
49750 2006-06-29  Eric Blake  <ebb9@byu.net>
49751
49752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49753
49754 2006-06-29  Eric Blake  <ebb9@byu.net>
49755
49756         * lib/stat_.h: New file.
49757
49758 2006-06-29  Eric Blake  <ebb9@byu.net>
49759
49760         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49761         unused static function.
49762
49763 2006-06-29  Eric Blake  <ebb9@byu.net>
49764
49765         * doc/functions.texi (Function Portability): Document missing lstat
49766         on mingw.
49767
49768 2006-06-29  Eric Blake  <ebb9@byu.net>
49769
49770         * MODULES.html.sh: Add sys_stat.
49771         * modules/sys_stat: New module.
49772         * modules/mkstemp (Depends-on): Add sys_stat.
49773
49774 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49775
49776         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49777
49778 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49779
49780         * m4/c-bs-a.m4: Removed.
49781
49782 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49783
49784         * lib/strftime.c: Assume strftime() exists.
49785
49786 2006-06-29  Derek Price  <derek@ximbiot.com>
49787
49788         * modules/c-bs-a: Removed - \a is C89.
49789         * MODULES.html.sh: Remove c-bs-a.
49790
49791 2006-06-29  Bruno Haible  <bruno@clisp.org>
49792
49793         * modules/wcwidth (License): Change to LGPL.
49794
49795 2006-06-28  Simon Josefsson  <jas@extundo.com>
49796
49797         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49798         on _WIN32.
49799
49800         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49801         getnameinfo.
49802
49803 2006-06-28  Simon Josefsson  <jas@extundo.com>
49804
49805         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49806
49807 2006-06-28  Simon Josefsson  <jas@extundo.com>
49808
49809         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49810         functions there.  It will succeed on Windows XP, but on Windows
49811         2000 and (presumably) earlier, it will fail, and use the internal
49812         re-implementation.
49813         (use_win32_p): New function.
49814         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49815         Support AI_NUMERICSERV to disable getservbyname.
49816         (getnameinfo): New function, only supports
49817         NI_NUMERICHOST|NI_NUMERICSERV for now.
49818
49819         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49820         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49821         getnameinfo.
49822
49823 2006-06-28  Eric Blake  <ebb9@byu.net>
49824
49825         * modules/wcwidth: New file.
49826         * modules/mbchar (Depends-on): Add wcwidth.
49827         * modules/mbswidth (Depends-on): Add wcwidth.
49828         * MODULES.html.sh: Add wcwidth.
49829
49830 2006-06-28  Eric Blake  <ebb9@byu.net>
49831
49832         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49834
49835 2006-06-28  Eric Blake  <ebb9@byu.net>
49836
49837         * lib/xvasprintf.h: Fix comments.
49838
49839 2006-06-28  Eric Blake  <ebb9@byu.net>
49840
49841         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49842         * lib/mbswidth.c (wcwidth): Move from here...
49843         * lib/wcwidth.h: ...to this new file.
49844
49845 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49846
49847         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49848
49849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49850         it's obsolete.
49851         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49852
49853 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49854
49855         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49856         Autoconf 2.60 says this stuff was obsolete.
49857
49858 2006-06-28  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49861
49862 2006-06-28  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49865         gt_TYPE_WCHAR_T.
49866
49867 2006-06-28  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49870         declaration for wcwidth.
49871         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49872
49873 2006-06-28  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49876         (mkdir): Define using _mkdir.
49877
49878 2006-06-28  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/getaddrinfo.h: Fix POSIX URL.
49881         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
49882         _WIN32.
49883         (use_win32_p): Make static.
49884         (getaddrinfo): Reject service name if it is empty or does not consist
49885         solely of decimal digits, or if its value is > 65535.
49886         (getnameinfo): Remove useless casts.
49887
49888 2006-06-27  Simon Josefsson  <jas@extundo.com>
49889
49890         * modules/sys_select: New file, suggested by Bruno Haible, Paul
49891         Eggert and Martin Lambers.
49892
49893 2006-06-27  Simon Josefsson  <jas@extundo.com>
49894
49895         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
49896         Eggert and Martin Lambers.
49897
49898 2006-06-27  Bruno Haible  <bruno@clisp.org>
49899
49900         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
49901         result to 0, not to empty.
49902         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
49903
49904 2006-06-27  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
49907
49908 2006-06-26  Simon Josefsson  <jas@extundo.com>
49909
49910         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
49911         present.
49912
49913 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
49916         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
49917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
49918
49919 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
49920
49921         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
49922
49923 2006-06-26  Bruno Haible  <bruno@clisp.org>
49924
49925         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
49926
49927 2006-06-26  Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
49930
49931 2006-06-26  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
49934         SGI C compiler in pre-C99 mode.
49935         Suggested by Mark D. Baushke and Larry Jones.
49936
49937 2006-06-26  Bruno Haible  <bruno@clisp.org>
49938
49939         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
49940         WCHAR_MAX.
49941         Reported by Mark D. Baushke and Larry Jones.
49942
49943 2006-06-26  Bruno Haible  <bruno@clisp.org>
49944
49945         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
49946         in pre-C99 mode.
49947         Suggested by Mark D. Baushke and Larry Jones.
49948
49949 2006-06-23  Simon Josefsson  <jas@extundo.com>
49950             Bruno Haible  <bruno@clisp.org>
49951
49952         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
49953         Emit mostlyclean-local rule.
49954         (func_emit_tests_Makefile_am): Likewise.
49955         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
49956
49957 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
49958
49959         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
49960
49961 2006-06-23  Bruno Haible  <bruno@clisp.org>
49962
49963         * tests/test-stdint.c: Update to match ISO C 99 Technical
49964         Corrigendum 1.
49965
49966 2006-06-23  Bruno Haible  <bruno@clisp.org>
49967
49968         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
49969
49970 2006-06-23  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/stdint_.h: Treat IRIX like OpenBSD.
49973
49974 2006-06-23  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
49977         ISO C 99 Technical Corrigendum 1.
49978
49979 2006-06-22  Simon Josefsson  <jas@extundo.com>
49980
49981         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
49982         MinGW.
49983
49984 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49985
49986         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
49987         needed.  Some compiler complained about some of them.  Problem reported
49988         by Larry Jones in
49989         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
49990
49991 2006-06-21  Simon Josefsson  <jas@extundo.com>
49992
49993         * tests/test-getaddrinfo.c: New file.
49994
49995         * modules/getaddrinfo-tests: New file.
49996
49997         * MODULES.html.sh: Add inet_pton.
49998
49999         * modules/inet_pton: New file.
50000
50001 2006-06-21  Simon Josefsson  <jas@extundo.com>
50002
50003         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50004         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50005         of using the (limited) gnulib implementation on Windows XP.
50006
50007         * m4/inet_pton.m4: New file.
50008
50009 2006-06-21  Simon Josefsson  <jas@extundo.com>
50010
50011         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50012         variable.
50013
50014         * lib/socket_.h: Don't define WINVER.
50015
50016         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50017         slightly modified to work in gnulib.
50018
50019 2006-06-21  Simon Josefsson  <jas@extundo.com>
50020
50021         * doc/gnulib.texi (Windows sockets): Add.
50022
50023 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50024
50025         * lib/read-file.c (fread_file): Start with buffer allocation of
50026         0 bytes rather than 1 byte; this simplifies the code.
50027         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50028         code to free buffer and save/restore errno.
50029         (internal_read_file): Remove unused local.
50030
50031 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50034         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50035         Problem reported by Denis Excoffier in
50036         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50037
50038 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50039
50040         * modules/sys_socket, modules/socklen: Include sys/types since
50041         FreeBSD 4.x's sys/socket.h needs it.
50042
50043 2006-06-19  Simon Josefsson  <jas@extundo.com>
50044
50045         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50046
50047 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50050
50051 2006-06-19  Bruno Haible  <bruno@clisp.org>
50052
50053         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50054         and FULL_PATH_INTTYPES_H in angle brackets.
50055         Reported by Mark D. Baushke <mdb@gnu.org>.
50056
50057 2006-06-17  Eric Blake  <ebb9@byu.net>
50058
50059         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50060         errno.
50061
50062 2006-06-17  Bruno Haible  <bruno@clisp.org>
50063
50064         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50065         <sys/inttypes.h>.
50066
50067 2006-06-17  Bruno Haible  <bruno@clisp.org>
50068
50069         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50070         whether errno is declared. Assume <errno.h> declares errno.
50071
50072 2006-06-17  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50075
50076 2006-06-17  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50079         problem on Solaris 2.5.1.
50080
50081 2006-06-16  Eric Blake  <ebb9@byu.net>
50082
50083         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50084         * lib/unicodeio.c [!defined errno]: Likewise.
50085         * lib/strtol.c [!defined errno]: Likewise.
50086         * lib/strtod.c [!defined errno]: Likewise.
50087
50088 2006-06-15  Eric Blake  <ebb9@byu.net>
50089
50090         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50091
50092 2006-06-15  Eric Blake  <ebb9@byu.net>
50093
50094         * config/srclist.txt (ssize_t.m4): Lose sync.
50095
50096 2006-06-15  Bruno Haible  <bruno@clisp.org>
50097
50098         * modules/stdint (Files): Include m4/full-header-path.m4,
50099         m4/size_max.m4, m4/wchar_t.m4.
50100         (Makefile.am): Many more substitutions.
50101         * modules/stdint-tests: New file.
50102         * tests/test-stdint.c: New file.
50103
50104 2006-06-15  Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50107         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50108         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50109         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50110         gl_CHECK_TYPE_SAME): New macros.
50111
50112 2006-06-15  Bruno Haible  <bruno@clisp.org>
50113
50114         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50115
50116 2006-06-15  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/stdint_.h: Rewritten to be fully auto-configured.
50119         Fixes bug on HP-UX/IA64.
50120
50121 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         * lib/getdate.y (__attribute__): Don't define if already defined.
50124         Problem reported by Larry Jones.
50125         * lib/utimens.c (__attribute__): Likewise.
50126
50127 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50128
50129         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50130         reported by Andreas Schwab.
50131
50132 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50133             Bruno Haible  <bruno@clisp.org>
50134
50135         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50136         check for the declaration of strnlen and a run test that exposes the
50137         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50138         rpl_strndup.
50139
50140 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50141             Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50144
50145 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50146
50147         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50148         compile test, for Tru64 4.0D.
50149
50150 2006-05-28  Karl Berry  <karl@gnu.org>
50151
50152         * config/srclist.txt (printf-args.c): lose sync.
50153
50154 2006-05-26  Martin Lambers  <marlam@marlam.de>
50155
50156         * lib/getpass.c: Updates the test for the native W32 API, and adds
50157         missing includes, thus fixing compilation warnings.
50158
50159 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50160
50161         * lib/exclude.c (exclude_fnmatch): New function.
50162         (excluded_file_name): Call exclude_fnmatch.
50163         * lib/exclude.h (excluded_file_name): New prototype
50164
50165 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50166
50167         * lib/tempname.c (small_open, large_open): New macros.
50168         (__open, __open64) [!_LIBC]: Remove.
50169         (__gen_tempname): Use small_open and large_open instead of __open
50170         and __open64.  This fixes a portability bug on HP-UX 11.11i
50171         reported by Simon Wing-Tang in
50172         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50173
50174 2006-05-24  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50177         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50178         Reported by Thorsten Maerz <torte@netztorte.de> via
50179         Aaron Stone <aaron@serendipity.cx>.
50180
50181 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50182
50183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50184         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50185         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50186         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50187         not really conditional on the cache.
50188         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50189
50190 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50191
50192         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50193         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50194         (my_usleep): Don't mishandle maximum value.
50195
50196 2006-05-19  Jim Meyering  <jim@meyering.net>
50197
50198         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50199
50200 2006-05-17  Bruno Haible  <bruno@clisp.org>
50201
50202         Cygwin portability.
50203         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50204
50205 2006-05-17  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/stdint_.h: Fix recognition of Cygwin.
50208
50209 2006-05-15  Bruno Haible  <bruno@clisp.org>
50210
50211         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50212         on libtool patch by Ralf Wildenhues.
50213
50214 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50215
50216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50217         test for C99 conformance; (bool) 0.5 is an integer constant
50218         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50219         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50220
50221 2006-05-11  Simon Josefsson  <jas@extundo.com>
50222
50223         * m4/xvasprintf.m4: Fix obvious typo.
50224
50225 2006-05-11  Jim Meyering  <jim@meyering.net>
50226
50227         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50228         James Lemley.
50229
50230 2006-05-10  Simon Josefsson  <jas@extundo.com>
50231
50232         * lib/md4.c: Typo fix, update copyright years.
50233         (K1, K2): Don't use L because it turn computations into 64-bit on
50234         64-bit platforms.
50235
50236 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50237
50238         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50239         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50240         unwanted sign propagation, e.g., on hosts with 64-bit int.
50241         There still are some problems with reeelly weird theoretical hosts
50242         (e.g., 33-bit int) but it's not worth worrying about now.
50243         * lib/sha1.c (rol): Likewise.
50244         (K1, K2, K3, K4): Remove unnecessary L suffix.
50245
50246 2006-05-10  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/des.c: Cast to avoid warnings.
50249
50250 2006-05-09  Bruno Haible  <bruno@clisp.org>
50251
50252         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50253         (Depends-on): Depend also on xsize, stdarg.
50254         (configure.ac): Add gl_XVASPRINTF.
50255
50256 2006-05-09  Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/xvasprintf.m4: New file.
50259
50260 2006-05-09  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50263         (EOVERFLOW): Define fallback value.
50264         (xstrcat): New function.
50265         (xvasprintf): Recognize the special case of a string concatenation.
50266
50267 2006-05-08  Eric Blake  <ebb9@byu.net>
50268
50269         * gnulib-tool (func_version): Base copyright year on CVS date.
50270         (func_emit_copyright_notice): New function.
50271         (func_emit_lib_Makefile_am): Use it.
50272         (func_emit_tests_Makefile_am): Likewise.
50273         (func_import): Likewise.
50274
50275 2006-05-08  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/stdarg: New file.
50278         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50279
50280 2006-05-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * m4/stdarg.m4: New file, from GNU gettext.
50283
50284 2006-05-08  Bruno Haible  <bruno@clisp.org>
50285
50286         * config/srclist.txt (build-aux/config.rpath): different from latest
50287         release.
50288
50289 2006-05-08  Bruno Haible  <bruno@clisp.org>
50290
50291         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50292
50293 2006-05-05  Jim Meyering  <jim@meyering.net>
50294
50295         * m4/warning.m4: New file, derived from bison's file by the same name.
50296
50297 2006-05-03  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/stdint_.h: Shorter URL.
50300         * lib/inttypes.h: Likewise.
50301
50302 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50305
50306 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50307
50308         * lib/verify.h: Document the internals better.  Most of this change
50309         was written by Bruno Haible.
50310
50311 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * doc/verify.texi: New file, partly based on a proposal by
50314         Bruno Haible.
50315
50316 2006-05-02  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50319         test from here...
50320         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50321
50322 2006-04-29  Bruno Haible  <bruno@clisp.org>
50323
50324         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50325         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50326
50327 2006-04-29  Bruno Haible  <bruno@clisp.org>
50328
50329         * gnulib-tool: Make --update option actually work.
50330
50331 2006-04-29  Bruno Haible  <bruno@clisp.org>
50332
50333         * doc/gcd.texi: New file.
50334         * doc/gnulib.texi: Include it.
50335
50336 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50337
50338         * lib/getdate.y (get_date): When adding relative date, start with the
50339         initial time, not with the result of the first mktime call.
50340
50341 2006-04-25  Bruno Haible  <bruno@clisp.org>
50342
50343         * gnulib-tool (func_import): Output the include directives in three
50344         blocks, sorted separately.
50345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50346
50347 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50348
50349         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50350         to define main with arguments, for C++.  Reported by Eric Blake.
50351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50352         Prefer 'int main ()' to 'int main (void)', for C++.
50353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50355         for 'main', for C99 and C++.
50356
50357 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50360         Don't assume that exit status -1 is valid.
50361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50362         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50363         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50364         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50365         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50366         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50367         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50368         functions can be used without declaring them, or that you can
50369         exit with status -1.
50370         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50371
50372 2006-04-24  Karl Berry  <karl@gnu.org>
50373
50374         * config/srclist.txt (longdouble.m4): sync lost.
50375
50376 2006-04-24  Eric Blake  <ebb9@byu.net>
50377
50378         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50379
50380 2006-04-24  Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50383         poll() implementation in AIX.
50384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50385
50386 2006-04-24  Bruno Haible  <bruno@clisp.org>
50387
50388         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50389         assigned exactly once.
50390
50391 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50392             Bruno Haible  <bruno@clisp.org>
50393
50394         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50395         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50396         for AM_CPPFLAGS.
50397
50398 2006-04-23  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/copy-file: Depend on unistd.
50401         * modules/execute: Likewise.
50402         * modules/fatal-signal: Likewise.
50403         * modules/findprog: Likewise.
50404         * modules/mkdtemp : Likewise.
50405         * modules/pipe: Likewise.
50406         * modules/wait-process: Likewise.
50407
50408 2006-04-23  Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50411         condition was already detected.
50412         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50413
50414 2006-04-23  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/copy-file.c: Include <unistd.h> unconditionally.
50417         * lib/execute.c: Likewise.
50418         * lib/fatal-signal.c: Likewise.
50419         * lib/findprog.c: Likewise.
50420         * lib/mkdtemp.c: Likewise.
50421         * lib/pipe.h: Likewise.
50422         * lib/pipe.c: Likewise.
50423         * lib/wait-process.h: Likewise.
50424
50425 2006-04-23  Bruno Haible  <bruno@clisp.org>
50426
50427         * gnulib-tool (func_usage): Fix --import description. Document
50428         --update.
50429         (func_import): Create temporary file in a temporary directory, if
50430         --dry-run is specified. Silence errors from 'grep' when there are no
50431         m4 files in $m4dir.
50432         (func_create_testdir): Silence errors from 'grep' when there are no
50433         m4 files in $m4dir.
50434         Reported by Karl Berry <karl@freefriends.org>.
50435
50436 2006-04-20  Bruno Haible  <bruno@clisp.org>
50437
50438         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50439         one argument, so that the code will be portable to Autoconf 2.60.
50440         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50441         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50442         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50443
50444 2006-04-19  Derek Price  <derek@ximbiot.com>
50445             Eric Blake  <ebb9@byu.net>
50446
50447         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50448         rather than "/full/path.h".  Update comment to match.  Shorten &
50449         generalize m4_translit call via AS_TR_CPP.
50450
50451 2006-04-19  Derek Price  <derek@ximbiot.com>
50452             Eric Blake  <ebb9@byu.net>
50453
50454         * lib/inttypes.h: Correct grammar in comment.
50455
50456 2006-04-18  Derek Price  <derek@ximbiot.com>
50457             Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         * modules/inttypes: New file.
50460         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50461
50462 2006-04-18  Derek Price  <derek@ximbiot.com>
50463             Paul Eggert  <eggert@cs.ucla.edu>
50464
50465         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50466         New files.
50467
50468 2006-04-18  Derek Price  <derek@ximbiot.com>
50469             Paul Eggert  <eggert@cs.ucla.edu>
50470
50471         * lib/inttypes.h: New file.
50472         * lib/strtoimax.c: Assume <inttypes.h>.
50473
50474 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50477         isn't mounted.  Problem reported by Kir Kolyshkin.
50478
50479 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50482         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50483         Derek R. Price.
50484         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50485         implementation.
50486
50487 2006-04-12  Eric Blake  <ebb9@byu.net>
50488
50489         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50490         is now done automatically by the corresponding Autoconf macro.
50491
50492 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50495         time_r.h.
50496
50497 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50498
50499         Merge regex changes from libc, removing some of our
50500         POSIX-conformance changes that were rejected and redoing them in a
50501         less-intrusive way.
50502
50503         * lib/regcomp.c (re_compile_internal, init_dfa):
50504         Length arg is now size_t, not Idx.  All uses changed.
50505         (peek_token): Forward decl now says internal_function.
50506         (__re_error_msgid, __re_error_msgid_idx):
50507         Now static rather than extern with attribute_hidden.
50508         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50509         For some reason libc prefers K&R style defns for external functions.
50510         (regerror) [!defined _LIBC]: Likewise.
50511         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50512         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50513         (build_range_exp, build_collating_symbol):
50514         Use K&R-style defn.
50515         (re_compile_fastmap): Use '\0' to memset, not 0.
50516         (utf8_sb_map): Make the calculations more obvious.
50517         (init_dfa, parse_bracket_exp, build_charclass_op):
50518         Call calloc and cast result, as glibc does.
50519         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50520         (build_range_exp, build_collating_symbol):
50521         Now internal functions.
50522
50523         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50524
50525         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50526         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50527         Don't depend on VMS; depend on __VMS instead, for POSIX
50528         namespace cleanness.
50529         (regoff_t): Define to ssize_t, not long int.
50530
50531         Remove the REG_ macros named below.  Instead, make the old names
50532         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50533         __USE_GNU_REGEX.
50534         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50535         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50536         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50537         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50538         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50539         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50540         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50541         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50542         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50543         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50544         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50545         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50546         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50547         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50548         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50549         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50550         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50551         (REG_NREGS):
50552         Remove.  All uses replaced by the old RE_* names.
50553         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50554         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50555         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50556         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50557         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50558         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50559         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50560         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50561         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50562         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50563         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50564         Don't bother having these macros be independent of each others'
50565         values, since they no longer exist in the POSIX name space.
50566
50567         Rename the following member names back to their old names,
50568         unless !__USE_GNU_REGEX.  All uses changed back.
50569         (buffer): Renamed from re_buffer.
50570         (allocated): Renamed from re_allocated.
50571         (used): Renamed from re_used.
50572         (syntax): Renamed from re_syntax.
50573         (fastmap): Renamed from re_fastmap.
50574         (translate): Renamed from re_translate.
50575         (can_be_null): Renamed from re_can_be_null.
50576         (regs_allocated): Renamed from re_regs_allocated.
50577         (fastmap_accurate): Renamed from re_fastmap_accurate.
50578         (no_sub): Renamed from re_no_sub.
50579         (not_bol): Renamed from re_not_bol.
50580         (not_eol): Renamed from re_not_eol.
50581         (newline_anchor): Renamed from re_newline_anchor.
50582         (num_regs): Renamed from rm_num_regs.
50583         (start): Renamed from rm_start.
50584         (end): Renamed from rm_end.
50585
50586         (free_state): Move up a bit.
50587
50588         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50589         #define to be empty.
50590         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50591         when that is what is intended.
50592         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50593         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50594         (MAX): New macro.
50595         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50596         All uses changed back to re_malloc, etc.  It's now the caller's
50597         responsibility to check for overflow; all callers changed.
50598         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50599         (re_x2nrealloc): Remove.
50600         (free_state): Remove decl.
50601
50602         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50603         (re_set_registers, re_exec):
50604         Use K&R-style defn.
50605
50606         2006-01-31  Roland McGrath  <roland@redhat.com>
50607
50608         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50609         Reported by Mike Frysinger <vapier@gentoo.org>.
50610
50611         2006-01-15  Andreas Jaeger  <aj@suse.de>
50612
50613         [BZ #1950]
50614         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50615         build_wcs_upper_buffer change.
50616         (build_wcs_upper_buffer): Change return type.
50617
50618         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50619
50620         * lib/regex_internal.h: Include <stdint.h> if available.
50621
50622         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50623
50624         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50625
50626         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50627
50628         * lib/regcomp.c: Adjust for changed secondary hash function.
50629
50630         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50631
50632         * lib/regex.h: Pretty printing.
50633         Clean up namespace a bit.
50634
50635         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50636
50637         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50638         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50639
50640         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50641                     Ulrich Drepper  <drepper@redhat.com>
50642
50643         [BZ #1302]
50644         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50645         changed.
50646         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50647
50648         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50649
50650         [BZ #281]
50651         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50652         * lib/regcomp.c: Remove unnecessary uses of
50653         unsigned RE_TRANSLATE_TYPE.
50654         * lib/regex_internal.h: Likewise.
50655         * lib/regex_internal.c: Likewise.
50656         * lib/regexec.c: Likewise.
50657         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50658
50659         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50660
50661         * lib/regexec.c (find_recover_state): Remove unnecessary
50662         initialization.
50663         (transit_state_bkref): Make DFA a const pointer.
50664         (get_subexp): Likewise.
50665         (check_arrival): Likewise.
50666         (update_cur_sifted_state): Likewise.
50667         (re_search_internal): Likewise.
50668         (prune_impossible_nodes): Likewise.
50669         (acquire_init_state_context): Likewise.
50670         (proceed_next_node): Likewise.
50671         (set_regs): Likewise.
50672         (free_fail_stack_return): Likewise.
50673         (check_arrival_expand_ecl): Mark DFA parameter as const.
50674         (check_arrival_expand_ecl_sub): Likewise.
50675         (check_subexp_limits): Likewise.
50676         (sub_epsilon_src_nodes):  Likewise.
50677         (add_epsilon_src_nodes):  Likewise.
50678         (merge_state_array): Likewise.
50679         (update_regs): Likewise.
50680         (build_trtable): Likewise.
50681         (sift_states_backward): Mark MCTX parameter as const.
50682         (build_sifted_states): Likewise.
50683         (update_cur_sifted_state): Likewise.
50684         (sift_states_mkref): Likewise.
50685         (check_arrival_expand_ecl): Mark eclosure as const.
50686         (check_dst_limits_calc_pos_1): Likewise.
50687         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50688         pointer.
50689
50690         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50691
50692         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50693         (transit_state_sb): Likewise.
50694         (transit_state_mb): Likewise.
50695         (sift_states_iter_mb): Likewise.
50696         (check_arrival_add_next_nodes): Likewise.
50697         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50698         [_LIBC] (re_search_2_stub): Use mempcpy.
50699
50700         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50701         mbrtowc for very simple UTF-8 case.
50702
50703         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50704         a pointer-to-const.
50705         (re_acquire_state_context): Likewise.
50706         * lib/regex_internal.h: Adjust prototypes.
50707
50708         * lib/regex.c: Prevent using C++ compilers.
50709
50710         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50711         (re_acquire_state_context): Likewise.
50712
50713 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * modules/regex (Depends-on): Add ssize_t.
50716
50717 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50718
50719         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50720         translation table.
50721
50722 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50725
50726 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50727             Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50730         <sys/types.h> and <inttypes.h>.
50731
50732 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50733
50734         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50735         `__error_t_defined', so argp.h will not typedef the former.
50736
50737 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50740         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50741         glibc names.  Even if glibc is changed to conform to POSIX, the
50742         traditional names will be available anyway, since regex depends on
50743         the extensions module.  Also, fix a longstanding typo in the
50744         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50745         reported by Emanuele Giaquinta.  Also, change sense of cached
50746         variable, so that the message makes sense.
50747
50748 2006-03-24  Simon Josefsson  <jas@extundo.com>
50749
50750         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50751         including some doc fixes.
50752         (base64_encode_alloc): Fix +1 bug on allocation failures.
50753
50754 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50755
50756         * lib/base64.c (base64_encode): Do not read past end of array with
50757         unsanitized input on systems with CHAR_BIT > 8.
50758
50759 2006-03-24  Eric Blake  <ebb9@byu.net>
50760
50761         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50762
50763 2006-03-22  Karl Berry  <karl@gnu.org>
50764
50765         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50766         * config/srclistvars.sh (COREUTILS): new var.
50767
50768 2006-03-17  Jim Meyering  <jim@meyering.net>
50769
50770         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50771         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50772
50773 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50776         no longer needs it.  Instead, check that regoff_t is as least
50777         as wide as ptrdiff_t.
50778
50779         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50780         so that our regex.h stays compatible with the installed regex.
50781         This is helpful for installers who configure --without-included-regex.
50782         Problem reported by Emanuele Giaquinta.
50783
50784 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50787         Typedef to long int, not to off_, as POSIX will likely change
50788         in that direction.
50789
50790 2006-03-15  Eric Blake  <ebb9@byu.net>
50791
50792         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50793
50794 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50795
50796         * lib/argp-help.c (validate_uparams): Fix typo
50797         * lib/argp-parse.c (argp_default_options): Consistently begin help
50798         messages with a lowercase letter.
50799
50800 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50803         overrun buffers and shouldn't be used (much as gets shouldn't be
50804         used).
50805         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50806
50807 2006-03-08  Simon Josefsson  <jas@extundo.com>
50808
50809         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50810         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50811
50812 2006-03-08  Simon Josefsson  <jas@extundo.com>
50813
50814         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50815         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50816
50817 2006-03-08  Simon Josefsson  <jas@extundo.com>
50818
50819         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50820         signal that configure disabled the device.
50821
50822 2006-03-08  Simon Josefsson  <jas@extundo.com>
50823
50824         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50825         languages.
50826
50827 2006-03-07  Simon Josefsson  <jas@extundo.com>
50828
50829         * modules/getopt (Depends-on): Add unistd.
50830
50831         * modules/unistd: New file.
50832
50833 2006-03-07  Simon Josefsson  <jas@extundo.com>
50834
50835         * modules/gc-random: New file.
50836
50837 2006-03-07  Simon Josefsson  <jas@extundo.com>
50838
50839         * m4/unistd_h.m4: New file.
50840
50841 2006-03-07  Simon Josefsson  <jas@extundo.com>
50842
50843         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50844         test to be side-effect free by storing the result in the cache
50845         variable gl_cv_lib_readline, and moving the assignment of
50846         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50847         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50848
50849 2006-03-07  Simon Josefsson  <jas@extundo.com>
50850
50851         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50852         error on missing devices (the functions will return an error).
50853
50854         * m4/gc.m4: Move random stuff to gc-random.m4
50855
50856 2006-03-07  Simon Josefsson  <jas@extundo.com>
50857
50858         * lib/unistd_.h: New file.
50859
50860 2006-03-07  Simon Josefsson  <jas@extundo.com>
50861
50862         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50863
50864 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50865
50866         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50867         Problem reported by Juan Manuel Guerrero.
50868
50869 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50870
50871         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50872         the unistd module.
50873         * lib/getlogin_r.c: Likewise.
50874         * lib/getlogin_r.h: Likewise.
50875         * lib/glob.c: Likewise.
50876         * lib/pagealign_alloc.c: Likewise.
50877         * lib/unistd_.h: Remove; no longer needed.
50878
50879 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50880
50881         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50882         Add unistd.
50883         * modules/c-stack (Depends-on): Add unistd.
50884         * modules/getlogin_r: Likewise.
50885         * modules/glob: Likewise.
50886         * modules/pagealign_alloc: Likewise.
50887         * modules/unistd (Files): Remove lib/unistd_.h.
50888         (EXTRA_DIST): Remove.
50889         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
50890         need unistd_.h.
50891         (MOSTLYCLEANFILES): Remove unistd.h-t.
50892
50893 2006-03-03  Simon Josefsson  <jas@extundo.com>
50894
50895         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
50896
50897 2006-03-03  Simon Josefsson  <jas@extundo.com>
50898
50899         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
50900         libidn and bison.
50901
50902 2006-03-03  Simon Josefsson  <jas@extundo.com>
50903
50904         * build-aux/maint.mk: Add indent target.
50905
50906 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
50907
50908         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
50909         our replacement poll.h in any case, to avoid a differing
50910         declaration from a system header.  Seen on AIX.
50911
50912 2006-03-01  Simon Josefsson  <jas@extundo.com>
50913
50914         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
50915         <kasal@ucw.cz>.
50916
50917 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50918
50919         * modules/gettime (Depends-on): Add extensions module.
50920         * modules/nanosleep (Depends-on): Likewise.
50921         * modules/settime (Depends-on): Likewise.
50922
50923 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
50926         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
50927         pedantically.
50928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50929         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
50930
50931         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
50932         not "==".  Reported by Ralf Wildenhues.
50933
50934 2006-03-01  Karl Berry  <karl@gnu.org>
50935
50936         * doc/Copyright/request-*: new files, synced from gnuorg.
50937
50938 2006-03-01  Karl Berry  <karl@gnu.org>
50939
50940         * config/srclist.txt (Copyright/*): new entries.
50941
50942 2006-02-28  Simon Josefsson  <jas@extundo.com>
50943
50944         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
50945
50946 2006-02-27  Simon Josefsson  <jas@extundo.com>
50947
50948         * lib/base64.h: Indent #define's.  From Jim Meyering
50949         <jim@meyering.net>.
50950
50951 2006-02-27  Jim Meyering  <jim@meyering.net>
50952
50953         Revert the change of 2006-02-24, so these files can continue
50954         to be sync'd from gettext.
50955         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
50956         of `config.h'.
50957
50958 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50959
50960         * modules/intprops: New file.
50961         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50962         Add intprops.
50963         * modules/getloadavg (Files): Remove lib/intprops.h.
50964         (Depends-on): Add intprops.
50965         * modules/human: Likewise.
50966         * modules/inttostr: Likewise.
50967         * modules/openat: Likewise.
50968         * modules/sig2str: Likewise.
50969         * modules/userspec: Likewise.
50970         * modules/utimecmp: Likewise.
50971         * modules/xnanosleep: Likewise.
50972         * modules/xstrtol: Likewise.
50973
50974 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
50975
50976         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
50977         * modules/lock-tests (TESTS): Use $(EXEEXT).
50978         * modules/tls-tests: Likewise.
50979         * modules/argp-tests: Likewise.
50980         (check_PROGRAMS): New var, replacing...
50981         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
50982
50983 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50984
50985         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
50986         `config.h'.
50987
50988 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
50991
50992 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50993
50994         Sync from coreutils.
50995         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
50996         gl_CHDIR_SAFER.
50997
50998 2006-02-22  Jim Meyering  <jim@meyering.net>
50999
51000         Sync from coreutils.
51001         * m4/chdir-safer.m4: New file.
51002
51003 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51004
51005         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51006         AT_FDCWD exceeds INT_MAX.
51007         * lib/openat.h (AT_FDCWD): Likewise.
51008
51009 2006-02-17  Eric Blake  <address@hidden>
51010
51011         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51012
51013 2006-02-16  Simon Josefsson  <jas@extundo.com>
51014
51015         * modules/getaddrinfo (Depends-on): Add sys_socket.
51016
51017 2006-02-15  Simon Josefsson  <jas@extundo.com>
51018
51019         * build-aux/maint.mk: Add dsyntax-check rule.
51020
51021 2006-02-15  Eric Blake  <ebb9@byu.net>
51022
51023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51024         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51025         'present but cannot compile' warnings on cygwin.
51026         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51027         use ws2tcpip.h if sys/socket.h works.
51028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51029         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51030
51031 2006-02-14  Simon Josefsson  <jas@extundo.com>
51032
51033         * modules/maintainer-makefile (Files): Rename.
51034
51035         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51036         and (the local) Makefile.cfg to maint-cfg.mk.
51037
51038         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51039         to the latter.
51040
51041         * modules/maintainer-makefile: New module.
51042
51043         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51044         severaly stripped to make it possible to build it up from scratch
51045         with reliable tests.
51046
51047         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51048         fixes to permit overriding the default actions when configure and
51049         makefile are not available.
51050
51051 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51052
51053         Sync from coreutils.
51054         * modules/lstat (Depends-on): Don't depend on xalloc.
51055         (License): Change from GPL to LGPL, since this is now simply a
51056         replacement for a libc function.
51057
51058 2006-02-14  Jim Meyering  <jim@meyering.net>
51059
51060         Sync from coreutils.
51061
51062         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51063         failure on deficient systems, and simplify gnulib lgpl dependencies.
51064         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51065         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51066
51067         * lib/xalloc-die.c: Remove unused definition of N_.
51068
51069 2006-02-14  Jim Meyering  <jim@meyering.net>
51070
51071         Sync from coreutils.
51072         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51073         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51074         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51075         double-quote uses of that variable, to accommodate the rare case in
51076         which getmntent is available in none of the libraries checked.  This
51077         happens at least on FreeBSD 5.0.
51078
51079 2006-02-13  Simon Josefsson  <jas@extundo.com>
51080
51081         * gnulib-tool (Usage): Fix --import, from
51082         karl@freefriends.org (Karl Berry).
51083
51084 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51085
51086         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51087
51088 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51089
51090         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51091         "autoupdate" on 2005-12-12.
51092
51093 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51094
51095         * modules/closeout (Depends-on): Remove atexit.
51096
51097 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51098
51099         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51100         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51101
51102 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51103
51104         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51105         __EXTENSIONS__ if this causes compilation to fail.  Problem
51106         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51107         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51108
51109 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51110
51111         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51112         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51114         All uses changed.
51115
51116 2006-01-26  Simon Josefsson  <jas@extundo.com>
51117
51118         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51119         prototype is visible on mingw32.
51120
51121         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51122         for mingw32.
51123
51124         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51125         mingw32).
51126
51127 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51130         attempt to open for write; this always fails, at least on POSIX
51131         hosts.  This reinstates the 2006-01-09 change, which was
51132         inadvertently removed.
51133
51134 2006-01-26  Bruno Haible  <bruno@clisp.org>
51135
51136         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51137         Reported by Paul Eggert.
51138
51139 2006-01-26  Bruno Haible  <bruno@clisp.org>
51140             Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         * lib/stdbool_.h (_Bool)
51143         [(! (defined __cplusplus || defined __BEOS__)
51144           && !defined __GNUC__
51145           && !(defined __HP_cc || defined __xlc__
51146                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51147                || defined __sgi))]:
51148         #define to signed char in these cases too; this simplifies
51149         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51150         etc., separately) and makes it more conservative.
51151
51152 2006-01-25  Simon Josefsson  <jas@extundo.com>
51153
51154         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51155         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51156         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51157
51158 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51159
51160         * lib/argp-namefrob.h: Bugfix. Remove stray #
51161
51162 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51165         so that we test the test.
51166         Check for yet another HP-UX cc bug involving *bool |= bool.
51167
51168 2006-01-25  Karl Berry  <karl@gnu.org>
51169
51170         * config/srclist.txt (vasnprintf.c): sync lost.
51171
51172 2006-01-25  Jim Meyering  <jim@meyering.net>
51173
51174         Sync from the stable (b5) branch of coreutils:
51175
51176         * lib/fts.c (fts_children): Don't let close() clobber errno from
51177         failed fchdir().
51178
51179         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51180         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51181         a dangling symlink.  That can also happen at least for ELOOP.
51182         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51183         FYI, this bug predates the inclusion of fts.c in coreutils.
51184
51185         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51186         in their own block, so pre-c99 compilers don't object.
51187
51188         Avoid the double-free (first in fts_read, second in fts_close) that
51189         would occur when an `active' directory is made inaccessible (e.g.,
51190         via chmod a-x) during a traversal.
51191         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51192         before returning.  Reproduce this failure by
51193         mkdir -p a/b; cd a; chmod a-x . b
51194         Reported by Stavros Passas.
51195
51196 2006-01-25  Jim Meyering  <jim@meyering.net>
51197
51198         * lib/fileblocks.c: Remove more useless parentheses.
51199         * lib/readutmp.h: Likewise.
51200
51201 2006-01-25  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51204         warnings.
51205         Reported by Paul Eggert.
51206
51207 2006-01-25  Bruno Haible  <bruno@clisp.org>
51208
51209         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51210         rid of a trap command. For Solaris sh.
51211         Reported by Mark D. Baushke <mdb@gnu.org>.
51212
51213 2006-01-24  Simon Josefsson  <jas@extundo.com>
51214
51215         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51216         Bruno.
51217
51218 2006-01-24  Karl Berry  <karl@gnu.org>
51219
51220         * config/srclist.txt (argp-namefrob.h): sync lost.
51221
51222 2006-01-24  Jim Meyering  <jim@meyering.net>
51223
51224         * modules/openat (Files): Add lib/intprops.h.
51225         From Mark D. Baushke.
51226
51227 2006-01-24  Jim Meyering  <jim@meyering.net>
51228
51229         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51230         Reported by Mark D. Baushke.
51231
51232 2006-01-24  Jim Meyering  <jim@meyering.net>
51233
51234         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51235
51236 2006-01-24  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/strnlen (Maintainer): Change from glibc to all.
51239
51240 2006-01-24  Bruno Haible  <bruno@clisp.org>
51241
51242         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51243         Patch by Paul Eggert.
51244
51245 2006-01-24  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51248         already has it.
51249         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51250         2005-11-26.
51251
51252         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51253         'signed char' to avoid problems with the built-in _Bool type.
51254         Reported by Paul Eggert on 2005-11-26.
51255
51256 2006-01-24  Bruno Haible  <bruno@clisp.org>
51257
51258         * gnulib-tool (func_import): Avoid constructing complicated sed
51259         expressions inside backquote.
51260         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51261
51262 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51263
51264         These changes imported from libc.
51265         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51266         test and two separate function calls.
51267         * lib/strndup.c (__strndup): Add libc_hidden_def.
51268
51269 2006-01-23  Simon Josefsson  <jas@extundo.com>
51270
51271         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51272         Remove the test_*_SOURCES variable: automake infers it by default.
51273         * modules/tls-tests: Likewise.
51274
51275 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         Work around porting bugs reported by Dieter in
51278         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51279         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51280         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51281         Include "getopt.h" first, to check interface.
51282         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51283         !HAVE_DECL_GETENV.
51284         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51285         (__strndup): Revert to K&R-style function dfns, the glibc style.
51286         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51287         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51288         Include strnlen.h first, to get prototype properly.
51289         (strnlen): Renamed from __strnlen.
51290         Remove weak alias.
51291
51292 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51293
51294         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51295
51296 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51297
51298         * config/srclist.txt: Adjust to reflect glibc reorganization.
51299         This affects only comments.
51300
51301 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51302
51303          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51304          Reported by Bruce Korb <bkorb@gnu.org>.
51305
51306 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51309         to pacify gcc -Wswitch-default.
51310
51311 2006-01-22  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51314         temporary buffer for sprintf, take into account the precision also
51315         for 'd', 'i', 'u', 'o', 'x', 'X'.
51316
51317 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51318
51319         * modules/argp-tests: New module
51320         * tests/test-argp.c: New file
51321         * tests/test-argp-2.sh: New file
51322
51323 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51324
51325         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51326         (__argp_base_name): Removed
51327         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51328         typo.
51329         (__argp_base_name): Provide macro definition or extern declaration
51330         depending on the configuration
51331
51332 2006-01-20  Simon Josefsson  <jas@extundo.com>
51333
51334         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51335
51336 2006-01-20  Simon Josefsson  <jas@extundo.com>
51337
51338         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51339
51340 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51343         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51344         Suggested by Bruno Haible.
51345
51346 2006-01-20  Karl Berry  <karl@gnu.org>
51347
51348         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51349         until changes propagate, I guess.
51350
51351 2006-01-19  Simon Josefsson  <jas@extundo.com>
51352
51353         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51354
51355 2006-01-19  Simon Josefsson  <jas@extundo.com>
51356
51357         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51358
51359 2006-01-19  Simon Josefsson  <jas@extundo.com>
51360
51361         * gnulib-tool: Set check_PROGRAMS.
51362
51363         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51364         modules/des-tests, modules/gc-arcfour-tests,
51365         modules/gc-arctwo-tests, modules/gc-des-tests,
51366         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51367         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51368         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51369         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51370         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51371         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51372         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51373         test_*_SOURCES.
51374
51375 2006-01-18  Simon Josefsson  <jas@extundo.com>
51376
51377         * modules/socklen (Depends-on): Depend on sys_socket.
51378
51379 2006-01-18  Simon Josefsson  <jas@extundo.com>
51380
51381         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51382         modules/des-tests, modules/gc-arcfour-tests,
51383         modules/gc-arctwo-tests, modules/gc-des-tests,
51384         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51385         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51386         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51387         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51388         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51389         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51390         $(EXEEXT) to automake TESTS variable, for mingw32.
51391
51392 2006-01-17  Simon Josefsson  <jas@extundo.com>
51393
51394         * modules/socklen (Include): Need sys/socket.h.
51395
51396 2006-01-17  Bruno Haible  <bruno@clisp.org>
51397
51398         * modules/ssize_t (Include): Add <sys/types.h>.
51399
51400 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51401
51402         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51403         it's not portable and it doesn't work with cross-compiles.
51404         Problem reported by Bruno Haible.  Fix missing-$ typo in
51405         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51406         -zignore from being used with Sun's C compiler.
51407
51408 2006-01-12  Simon Josefsson  <jas@extundo.com>
51409
51410         * lib/base64.c: Fix warning, reported by Bruno Haible
51411         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51412
51413 2006-01-12  Bruno Haible  <bruno@clisp.org>
51414
51415         * modules/ldd: New file.
51416         * build-aux/ldd.sh.in: New file.
51417         * MODULES.html.sh (Support for building libraries and executables): Add
51418         ldd.
51419
51420 2006-01-12  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/ldd.m4: New file.
51423
51424 2006-01-12  Bruno Haible  <bruno@clisp.org>
51425
51426         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51427         endless loop while replacing $auxdir with build-aux.
51428
51429 2006-01-11  Simon Josefsson  <jas@extundo.com>
51430
51431         * lib/stdint_.h (SIZE_MAX): Add missing (.
51432
51433 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         Sync from coreutils.
51436         * lib/md5.c: Fix commentary typos.
51437         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51438         * lib/md5.h (__attribute__): Remove; unused.
51439         * lib/sha1.c: Fix commentary to match md5 better.
51440         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51441         so that we don't need to worry about alignment.  All uses changed.
51442         This merges the 2005-10-28 md5 change into sha1.
51443
51444 2006-01-11  Jim Meyering  <jim@meyering.net>
51445
51446         Sync from coreutils.
51447         * lib/md5.c (OP): Fix spacing.
51448
51449 2006-01-11  Bruno Haible  <bruno@clisp.org>
51450
51451         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51452         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51453         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51454
51455 2006-01-11  Bruno Haible  <bruno@clisp.org>
51456
51457         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51458         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51459         the "early" section as well.
51460
51461 2006-01-11  Bruno Haible  <bruno@clisp.org>
51462
51463         Avoid "ar: no archive members specified" error on MacOS X.
51464         * gnulib-tool (func_modules_add_dummy): New function.
51465         (func_import, func_create_testdir): Invoke it.
51466
51467 2006-01-11  Bruno Haible  <bruno@clisp.org>
51468
51469         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51470         with $auxdir in AC_CONFIG_FILES statements.
51471
51472 2006-01-11  Bruno Haible  <bruno@clisp.org>
51473
51474         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51475         Initialize also noinst_HEADERS to empty.
51476
51477 2006-01-11  Bruno Haible  <bruno@clisp.org>
51478
51479         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51480         variables.
51481         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51482         autoreconf.
51483
51484 2006-01-11  Bruno Haible  <bruno@clisp.org>
51485
51486         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51487         overridable by the user.
51488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51489
51490 2006-01-10  Simon Josefsson  <jas@extundo.com>
51491
51492         * modules/sys_socket: New file.
51493
51494 2006-01-10  Simon Josefsson  <jas@extundo.com>
51495
51496         * m4/sys_socket_h.m4: New file.
51497
51498 2006-01-10  Simon Josefsson  <jas@extundo.com>
51499
51500         * lib/socket_.h: New file.
51501
51502 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * modules/readutmp (Maintainer): Add myself.
51505
51506 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51509         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51510         People who are still concerned with buggy memcmp implementations
51511         can invoke gl_FUNC_MEMCMP themselves.
51512
51513 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         * lib/regex_internal.h (BITSET_WORD_BITS):
51516         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51517         preprocessor mishandles large unsigned values as if they were signed.
51518         Problem reported by Claudio Fontana in
51519         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51520
51521 2006-01-10  Jim Meyering  <jim@meyering.net>
51522
51523         Avoid the double-free (first in fts_read, second in fts_close) that
51524         would occur when an `active' directory is made inaccessible (e.g.,
51525         via chmod a-x) during a traversal.
51526         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51527         before returning.  Reproduce this failure by
51528         mkdir -p a/b; cd a; chmod a-x . b
51529         Reported by Stavros Passas.
51530
51531         Sync from coreutils.
51532         * lib/sha1.c: Tweak grammar in a comment.
51533
51534 2006-01-10  Jim Meyering  <jim@meyering.net>
51535
51536         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51537         Patch by Joerg Sonnenberger.
51538
51539 2006-01-10  Bruno Haible  <bruno@clisp.org>
51540
51541         * modules/readutmp: Depend on module free.
51542         * modules/strtok_r: Depend on module restrict.
51543
51544 2006-01-10  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/gettext (configure.ac): Add an invocation of
51547         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51548
51549 2006-01-10  Bruno Haible  <bruno@clisp.org>
51550
51551         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51552         Reported by Werner Lemberg <wl@gnu.org>.
51553
51554 2006-01-10  Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/localcharset.c: Update from GNU gettext.
51557
51558 2006-01-10  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/argp.h (__const): Remove macro. Use const instead.
51561         * lib/argp-fmtstream.h (__const): Likewise.
51562         * lib/glob_.h (__const): Remove macro.
51563         * lib/glob-libc.h: Use const instead of __const.
51564
51565 2006-01-10  Bruno Haible  <bruno@clisp.org>
51566
51567         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51568         variable.
51569         Needed to avoid an automake error regarding the 'gettext' module.
51570
51571 2006-01-09  Simon Josefsson  <jas@extundo.com>
51572
51573         * modules/inet_ntop (Depends-on): Add restrict.
51574
51575 2006-01-09  Simon Josefsson  <jas@extundo.com>
51576
51577         * modules/gc-rijndael-tests (License): Put under LGPL.
51578
51579         * modules/gc-des-tests (License): Likewise.
51580
51581         * modules/gc-arcfour-tests (License): Likewise.
51582
51583         * modules/gc-arctwo-tests (License): Likewise.
51584
51585         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51586
51587         * modules/gc-hmac-sha1-tests (Files): Likewise.
51588
51589         * modules/gc-hmac-md5-tests (License): Likewise.
51590
51591         * modules/gc-sha1-tests (License): Likewise.
51592
51593         * modules/gc-md5-tests (License): Likewise.
51594
51595         * modules/gc-md4-tests (License): Likewise.
51596
51597         * modules/gc-md2-tests (License): Likewise.
51598
51599         * modules/gc-tests (License): Likewise.
51600
51601         * modules/des-tests (License): Likewise.
51602
51603         * modules/md4-tests (License): Likewise.
51604
51605         * modules/md2-tests (License): Likewise.
51606
51607 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         Sync from coreutils:
51610
51611         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51612         * modules/lib-ignore: New file.
51613         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51614         chdir-safer.m4, lchmod.m4.
51615         * modules/openat: Add mkdirat.c, openat-priv.h.
51616
51617 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         Sync from coreutils.
51620         * m4/lib-ignore.m4: New file.
51621         * m4/lchmod.m4: New file.
51622
51623 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         Sync from coreutils.
51626         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51627         for write access: POSIX says that must fail.
51628         * lib/fts.c (diropen): Likewise.
51629         * lib/save-cwd.c (save_cwd): Likewise.
51630         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51631         well, for minor improvements on hosts that lack O_DIRECTORY.
51632         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51633         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51634         Fall back on chown if open failed with EACCES.
51635
51636         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51637         Report an error at compile-time if only a 1-second nominal clock
51638         resolution is found.
51639
51640         * lib/lchmod.h: New file.
51641         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51642         (make_dir_parents): Use lchown rather than chown, and
51643         lchmod rather than chmod.
51644
51645         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51646         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51647         "proc" reported by n0dalus.
51648
51649         * lib/mountlist.c: Include <limits.h>.
51650         (dev_from_mount_options)
51651         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51652         New function.  It no longer assumes "dev=" has the System V meaning
51653         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51654         (read_file_system_list)
51655         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51656         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51657         dev= in that case.
51658
51659         * lib/posixtm.h (PDS_PRE_2000): New macro.
51660         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51661         allow_century.  All usages changed.  Reject dates outside the range
51662         1969-1999 if PDS_PRE_2000 is used.
51663
51664 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51665
51666         Sync from coreutils.
51667         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51668         (Time of day items): Mention the possibility of leap seconds.
51669         Problem reported by Dr. David Alan Gilbert.
51670
51671 2006-01-09  Jim Meyering  <jim@meyering.net>
51672
51673         Sync from coreutils.
51674
51675         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51676
51677         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51678
51679         * lib/modechange.c (mode_compile): Reject an invalid mode string
51680         that starts with an octal digit.  From Andreas Gruenbacher.
51681
51682         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51683         and dup to open_safer and dup_safer, respectively.
51684         (openat_permissive): Fix typo in comment.
51685
51686         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51687         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51688         (_): Remove; no longer needed.
51689         (openat): Renamed from rpl_openat; no need for rpl_openat
51690         since openat.h renames openat for us.
51691         Replace most of the body with a call to openat_permissive,
51692         to avoid duplicate code.
51693         Port to (probably hypothetical) environments were mode_t is
51694         wider than int.
51695         (openat_permissive): Require mode arg, so that we can check
51696         types better.  Put it just after flags.  Change cwd failure
51697         indicator from pointer-to-bool to pointer-to-errno-value.
51698         All callers changed.
51699         Invoke openat_save_fail and/or openat_restore_fail if
51700         cwd_errno is null, so that openat can call us.
51701         (openat_permissive, fdopendir, fstatat, unlinkat):
51702         Simplify errno handling to avoid some duplicate code,
51703         as it's OK to set errno on success.
51704         * lib/openat.h: Revamp code so that function macros depend on
51705         __OPENAT_PREFIX only, not also on AT_FDCWD.
51706         (openat_ro): Remove.  Caller changed to use openat_permissive.
51707         (openat_permissive): Now a macro, if not a function.
51708         (openat_restore_fail, openat_save_fail): Now always functions,
51709         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51710
51711         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51712         and openat.c.
51713         * lib/mkdirat.c: Include openat-priv.h.
51714         Remove definitions of macros defined therein.
51715         * lib/openat.c: Likewise.
51716
51717         * lib/mkdirat.c (mkdirat): New file and function.
51718         * lib/openat.h (mkdirat): Declare.
51719
51720         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51721
51722         * lib/openat.h (openat_permissive): Declare.
51723         (openat_ro): Define.
51724
51725         * lib/openat.c (EXPECTED_ERRNO): New macro.
51726         (openat_permissive): New function -- used in remove.c rewrite.
51727         (all functions): Set errno just before returning, only if there
51728         was an actual failure.
51729         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51730
51731         Emulate openat-family functions using Linux's procfs, if possible.
51732         Idea and some code based on Ulrich Drepper's glibc changes.
51733
51734         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51735         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51736         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51737         before falling back on save_cwd and restore_cwd.
51738         (fdopendir, fstatat, unlinkat): Likewise.
51739
51740         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51741         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51742
51743         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51744         as second argument to va_arg.  Otherwise, some versions of gcc
51745         warn that `if this code is reached, the program will abort'.
51746
51747 2006-01-09  Jim Meyering  <jim@meyering.net>
51748
51749         Sync from coreutils.
51750         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51751         Require openat-priv.h.
51752
51753 2006-01-09  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/strnlen (Include): Use strnlen.h.
51756
51757 2006-01-09  Bruno Haible  <bruno@clisp.org>
51758
51759         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51760
51761 2006-01-09  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/sysexit_.h (EX_OK): New macro.
51764         Suggested by Martin Lambers <marlam@marlam.de>.
51765
51766 2006-01-09  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51769         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51770
51771 2006-01-09  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51774         numbers.
51775
51776 2006-01-09  Bruno Haible  <bruno@clisp.org>
51777
51778         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51779         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51780         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51781         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51782
51783 2006-01-09  Bruno Haible  <bruno@clisp.org>
51784
51785         * build-aux/javacomp.sh.in: New file, moved from lib/.
51786         * modules/javacomp-script (Files): Update.
51787         (configure.ac): Add AC_CONFIG_FILES invocation.
51788         (EXTRA_DIST): Remove variable.
51789
51790         * build-aux/javaexec.sh.in: New file, moved from lib/.
51791         * modules/javaexec (Files): Update.
51792         (configure.ac): Add AC_CONFIG_FILES invocation.
51793         (EXTRA_DIST): Remove javaexec.sh.in.
51794
51795         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51796         * modules/csharpcomp-script (Files): Update.
51797         (configure.ac): Add AC_CONFIG_FILES invocation.
51798         (EXTRA_DIST): Remove variable.
51799
51800         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51801         * modules/csharpexec (Files): Update.
51802         (configure.ac): Add AC_CONFIG_FILES invocation.
51803         (EXTRA_DIST): Remove csharpexec.sh.in.
51804
51805 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51806
51807         Sync from coreutils.
51808
51809         Add POSIX ACL support
51810         * lib/acl.h (copy_acl, set_acl): Add declarations.
51811         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51812         systems other than Linux.
51813         (chmod_or_fchmod): New function: use fchmod when possible,
51814         and chmod otherwise.
51815         (file_has_acl): Add a POSIX ACL implementation, with a
51816         Linux-specific subcase.
51817         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51818         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51819         acls are unsupported.
51820         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51821         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51822         are unsupported.
51823
51824 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51825
51826         Sync from coreutils.
51827         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51828
51829 2006-01-07  Bruno Haible  <bruno@clisp.org>
51830
51831         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51832         gl_EARLY.
51833
51834 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51837         Problem reported for Mingw by Mark Junker.
51838
51839 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * README: Gnulib normally doesn't generate a tarball.
51842
51843 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51844
51845         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51846         long int, not int, for nanosecond counts, so that people who are
51847         used to POSIX struct timespec won't be surprised.  Reported by Jim
51848         Meyering.
51849
51850 2005-12-28  Bruno Haible  <bruno@clisp.org>
51851
51852         * build-aux/config.rpath: Update from GNU gettext.
51853
51854 2005-12-16  Jim Meyering  <jim@meyering.net>
51855
51856         * modules/fprintftime: New module.
51857         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51858
51859 2005-12-16  Jim Meyering  <jim@meyering.net>
51860
51861         * m4/fprintftime.m4: New file.
51862
51863 2005-12-16  Jim Meyering  <jim@meyering.net>
51864
51865         * lib/fprintftime.c, lib/fprintftime.h: New files.
51866
51867 2005-12-15  Simon Josefsson  <jas@extundo.com>
51868
51869         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51870         new m4/socklen.m4.
51871
51872 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51873
51874         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51875         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51876
51877 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51878
51879         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
51880         * lib/argp-help.c (fill_in_uparams): Check if the constructed
51881         struct uparams is valid. Fall back to the default values if it is
51882         not.
51883
51884 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51885
51886         * modules/argp (Files): Add argp-pin.c
51887         (Depends-on): dirname
51888         (lib_SOURCES): Add argp-pin.c
51889
51890 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51891
51892         * m4/argp.m4:  Check if program_invocation_name and
51893         program_invocation_short_name are declared and define appropriate
51894         macros if they are not.
51895
51896 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51897
51898         * lib/argp-help.c (__argp_base_name): New function
51899         (__argp_short_program_name): Rewrite using __argp_base_name
51900         * lib/argp-namefrob.h: Define program_invocation_name and
51901         program_invocation_short_name if requested
51902         (__argp_base_name): Add prototype
51903         * lib/argp-parse.c (argp_def): Use gettext wrappers
51904         (argp_default_parser): Use __argp_base_name
51905         * lib/argp-pin.c: New file. Defines program_invocation_name and
51906         program_invocation_short_name on systems that lack them.
51907
51908 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51909
51910         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
51911         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51912         porting problem reported by Georg Schwarz in
51913         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51914
51915 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51916
51917         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
51918         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51919         porting problem reported by Georg Schwarz in
51920         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51921
51922 2005-12-05  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
51925         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
51926         Reported by Mark Junker <mjscod@gmx.de>.
51927
51928 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
51929
51930         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
51931         Use implementation from Albert Chin, with some
51932         comments/corrections by Stepan Kasal and myself.
51933
51934 2005-12-02  Bruno Haible  <bruno@clisp.org>
51935
51936         * gnulib-tool (func_import): Accept GPLed build tool modules when
51937         --lgpl is given.
51938         * modules/csharpcomp-script: New file.
51939         * modules/csharpcomp: Depend on it.
51940         * modules/javacomp-script: New file.
51941         * modules/javacomp: Depend on it.
51942         Suggested by Simon Josefsson.
51943
51944 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
51945
51946         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
51947         statement, to work around an HP-UX 10.20 compiler bug reported by
51948         Peter O'Gorman.
51949
51950 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51951
51952         * modules/savedir (Depends-on): Add openat.
51953
51954 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51955
51956         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
51957         (uintmax_t) [defined uintmax_t]: Do not declare.
51958         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
51959         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
51960         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
51961         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
51962         sake of portability to weird hosts that C allows (though we don't
51963         know of any practical examples).
51964
51965         * lib/savedir.h (fdsavedir): New decl.
51966         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
51967         contains most of the former guts of savedir.
51968         (savedir): Use savedirstream.
51969         Include "openat.h".
51970
51971 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * modules/obstack (Files): Add m4/ulonglong.m4.
51974         Problem reported by Davide Angelocola.
51975
51976 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51977
51978         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
51979         coreutils no longer futzes with rounding modes.
51980
51981 2005-11-14  Jim Meyering  <jim@meyering.net>
51982
51983         * lib/mkstemp-safer.c: Include <config.h>, required for possible
51984         replacement of mkstemp.
51985
51986 2005-11-10  Simon Josefsson  <jas@extundo.com>
51987
51988         * lib/readline.c: Remove EOL.
51989
51990 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         * modules/gethrxtime (Depends-on): Add gettime.
51993
51994 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
51997         or gettimeofday; no longer needed.
51998
51999 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52000
52001         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52002         time business.
52003         (gethrxtime) [! (HAVE_NANOUPTIME
52004         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52005         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52006         our own approximation.
52007
52008 2005-11-08  Eric Blake  <ebb9@byu.net>
52009
52010         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52011
52012 2005-11-08  Eric Blake  <ebb9@byu.net>
52013
52014         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52015
52016 2005-11-04  Bruno Haible  <bruno@clisp.org>
52017
52018         * gnulib-tool: Implement --update mode.
52019
52020 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         Fix porting problem reported by Theodoros V. Kalamatianos.
52023         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52024         Don't assume that futimes failing means we must fail.
52025
52026 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52029         variables to suggest the intended function of the PATH_MAX check.
52030
52031 2005-10-30  Kean Johnston  <jkj@sco.com>
52032
52033         Trivial changes to support SCO systems.
52034         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52035         as PATH_MAX.
52036         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52037         where __ptr is null when no I/O is pending.
52038
52039 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52040
52041         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52042         leave errno alone.  Problem reported by Dmitry V. Levin.
52043
52044 2005-10-28  Simon Josefsson  <jas@extundo.com>
52045
52046         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52047         Test more.
52048
52049         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52050
52051         * modules/md2, modules/md2-tests: New files.
52052
52053 2005-10-28  Simon Josefsson  <jas@extundo.com>
52054
52055         * m4/inet_ntop.m4: More tests.
52056
52057         * m4/gc-md2.m4, md2.m4: New file.
52058
52059 2005-10-28  Simon Josefsson  <jas@extundo.com>
52060
52061         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52062         "restrict" keywords, as per POSIX.  Protect the function
52063         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52064         Don't use K&R prototypes.  Check the sprintf return values.
52065         Re-define EAFNOSUPPORT if not present.  Indent.
52066
52067         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52068         suggested by Bruno Haible <bruno@clisp.org>.
52069
52070         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52071
52072         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52073
52074         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52075         libgcrypt).
52076
52077         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52078
52079         * lib/md2.h, lib/md2.c: New files.
52080
52081 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52084         errno alone.  Problem reported by Frederic Jolliton.
52085
52086 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         * modules/verify (License): Change from GPL to LGPL.  This is a
52089         tiny module and there are apparently near-equivalents that are
52090         under the BSD license.
52091
52092 2005-10-24  Simon Josefsson  <jas@extundo.com>
52093
52094         * modules/sha1: Relicense to LGPL.
52095
52096 2005-10-24  Simon Josefsson  <jas@extundo.com>
52097
52098         * lib/md4.h: Shrink buffer size, now that we changed the type.
52099
52100 2005-10-23  Simon Josefsson  <jas@extundo.com>
52101
52102         * gnulib-tool (func_import): Fix --tests-base.
52103
52104 2005-10-22  Simon Josefsson  <jas@extundo.com>
52105
52106         * modules/arcfour (Depends-on): Need stdint.
52107
52108 2005-10-22  Simon Josefsson  <jas@extundo.com>
52109
52110         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52111         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52112
52113 2005-10-22  Simon Josefsson  <jas@extundo.com>
52114
52115         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52116         suggested by Bruno Haible <bruno@clisp.org>.
52117
52118 2005-10-22  Simon Josefsson  <jas@extundo.com>
52119
52120         * lib/crc.h: Include stddef.h, for size_t.
52121
52122 2005-10-22  Simon Josefsson  <jas@extundo.com>
52123
52124         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52125         arcfour_context struct (simplify test vector testing in GNU
52126         Shishi).
52127
52128 2005-10-21  Simon Josefsson  <jas@extundo.com>
52129
52130         * modules/des, modules/des-tests: New files.
52131
52132         * modules/gc-des, modules/gc-des-tests: New files.
52133
52134         * tests/test-des.c, tests/test-gc-des.c: New file.
52135
52136 2005-10-21  Simon Josefsson  <jas@extundo.com>
52137
52138         * modules/arctwo, modules/arctwo-tests: New files.
52139
52140         * tests/test-arctwo.c: New file.
52141
52142         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52143
52144         * tests/test-gc-arctwo.c: New file.
52145
52146 2005-10-21  Simon Josefsson  <jas@extundo.com>
52147
52148         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52149         Bruno Haible <bruno@clisp.org>.
52150
52151         * m4/gc-des.m4: New file.
52152
52153 2005-10-21  Simon Josefsson  <jas@extundo.com>
52154
52155         * m4/arctwo.m4: New file.
52156
52157         * m4/gc-arctwo.m4: New file.
52158
52159 2005-10-21  Simon Josefsson  <jas@extundo.com>
52160
52161         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52162         block.
52163
52164 2005-10-21  Simon Josefsson  <jas@extundo.com>
52165
52166         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52167         <bruno@clisp.org>.
52168
52169         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52170
52171         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52172         Bruno Haible <bruno@clisp.org>.
52173
52174         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52175         <bruno@clisp.org>.
52176
52177 2005-10-21  Simon Josefsson  <jas@extundo.com>
52178
52179         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52180
52181 2005-10-21  Simon Josefsson  <jas@extundo.com>
52182
52183         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52184
52185 2005-10-21  Simon Josefsson  <jas@extundo.com>
52186
52187         * lib/des.h, lib/des.c: New files.
52188
52189         * lib/gc-gnulib.c: Support DES.c
52190
52191 2005-10-21  Simon Josefsson  <jas@extundo.com>
52192
52193         * lib/arctwo.h, lib/arctwo.c: New files.
52194
52195         * lib/gc-gnulib.c: Support ARCTWO.
52196
52197 2005-10-21  Simon Josefsson  <jas@extundo.com>
52198
52199         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52200         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52201
52202 2005-10-21  Simon Josefsson  <jas@extundo.com>
52203
52204         * gnulib-tool (func_import, func_create_testdir): Define automake
52205         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52206         Makefile.am snippet),
52207         suggested by Bruno Haible <bruno@clisp.org>.
52208
52209         * modules/gc (Makefile.am): Use it.
52210
52211 2005-10-21  Bruno Haible  <bruno@clisp.org>
52212
52213         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52214         patch.
52215
52216 2005-10-19  Simon Josefsson  <jas@extundo.com>
52217
52218         * tests/test-gc-rijndael.c: New file.
52219
52220         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52221
52222 2005-10-19  Simon Josefsson  <jas@extundo.com>
52223
52224         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52225         interface too.
52226
52227 2005-10-19  Simon Josefsson  <jas@extundo.com>
52228
52229         * tests/test-gc-arcfour.c: New file.
52230
52231         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52232
52233 2005-10-19  Simon Josefsson  <jas@extundo.com>
52234
52235         * modules/gc-md4, modules/gc-md4-tests: New file.
52236
52237         * tests/test-gc-md4.c: New file.
52238
52239 2005-10-19  Simon Josefsson  <jas@extundo.com>
52240
52241         * m4/gc-md4.m4: New file.
52242
52243 2005-10-19  Simon Josefsson  <jas@extundo.com>
52244
52245         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52246         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52247         <kasal@ucw.cz>.
52248
52249 2005-10-19  Simon Josefsson  <jas@extundo.com>
52250
52251         * m4/gc-arcfour.m4: New file.
52252
52253         * m4/gc-rijndael.m4: New file.
52254
52255 2005-10-19  Simon Josefsson  <jas@extundo.com>
52256
52257         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52258
52259 2005-10-19  Simon Josefsson  <jas@extundo.com>
52260
52261         * lib/gc-gnulib.c: Support ARCFOUR.
52262
52263 2005-10-19  Simon Josefsson  <jas@extundo.com>
52264
52265         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52266         support.
52267
52268         * lib/gc.h: Add ECB enum type.
52269
52270         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52271
52272 2005-10-18  Simon Josefsson  <jas@extundo.com>
52273
52274         * tests/test-md5.c: New file.
52275
52276         * modules/md5-tests: New file.
52277
52278 2005-10-18  Simon Josefsson  <jas@extundo.com>
52279
52280         * tests/test-md4.c: New file.
52281
52282         * modules/md4, modules/md4-tests: New files.
52283
52284 2005-10-18  Simon Josefsson  <jas@extundo.com>
52285
52286         * m4/md4.m4: New file.
52287
52288 2005-10-18  Simon Josefsson  <jas@extundo.com>
52289
52290         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52291
52292 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52293
52294         * gnulib-tool (func_create_testdir): Omit the second check whether
52295         BUILT_SOURCES in nonempty.
52296
52297 2005-10-17  Simon Josefsson  <jas@extundo.com>
52298
52299         * tests/test-rijndael.c: New file.
52300
52301 2005-10-17  Simon Josefsson  <jas@extundo.com>
52302
52303         * modules/sha1: Depend on stdint instead of md5.
52304
52305         * modules/md5: Depend on stdint, remove uint32_t.
52306
52307 2005-10-17  Simon Josefsson  <jas@extundo.com>
52308
52309         * modules/gc-sha1-tests: New file.
52310
52311         * tests/test-gc-sha1.c: New file.
52312
52313 2005-10-17  Simon Josefsson  <jas@extundo.com>
52314
52315         * m4/md5.m4: Remove call to uint32_t.m4.
52316
52317 2005-10-17  Simon Josefsson  <jas@extundo.com>
52318
52319         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52320
52321         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52322         md5.h.
52323
52324         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52325
52326         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52327
52328 2005-10-17  Simon Josefsson  <jas@extundo.com>
52329
52330         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52331
52332 2005-10-17  Simon Josefsson  <jas@extundo.com>
52333
52334         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52335
52336 2005-10-17  Simon Josefsson  <jas@extundo.com>
52337
52338         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52339
52340         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52341
52342 2005-10-17  Bruno Haible  <bruno@clisp.org>
52343
52344         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52345         that it can also be used in a test.
52346
52347 2005-10-16  Bruno Haible  <bruno@clisp.org>
52348
52349         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52350         TESTS_ENVIRONMENT, so that individual tests can augment it.
52351
52352         * gnulib-tool (func_create_testdir): Use an intermediate target for
52353         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52354         macros, like $(ALLOCA_H), which cannot be passed through the command
52355         line.
52356
52357 2005-10-15  Simon Josefsson  <jas@extundo.com>
52358
52359         * modules/rijndael-tests: New file.
52360
52361         * modules/rijndael: New file.
52362
52363 2005-10-15  Simon Josefsson  <jas@extundo.com>
52364
52365         * m4/rijndael.m4: New file.
52366
52367 2005-10-15  Simon Josefsson  <jas@extundo.com>
52368
52369         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52370
52371         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52372
52373 2005-10-14  Simon Josefsson  <jas@extundo.com>
52374
52375         * tests/test-arcfour.c: New file.
52376
52377         * modules/arcfour, modules/arcfour-tests: New files.
52378
52379 2005-10-14  Simon Josefsson  <jas@extundo.com>
52380
52381         * m4/arcfour.m4: New file.
52382
52383 2005-10-14  Simon Josefsson  <jas@extundo.com>
52384
52385         * lib/arcfour.h, lib/arcfour.c: New files.
52386
52387 2005-10-14  Roland McGrath  <roland@redhat.com>
52388
52389         Import from libc.  [BZ #1331]
52390         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52391         macro argument.
52392         Reported by Matej Vela <vela@debian.org>.
52393
52394 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52397         include <wchar.h>; no longer needed.
52398
52399 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52402
52403 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52404         and  Ulrich Drepper  <drepper@redhat.com>
52405
52406         Import from libc.
52407         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52408         instead of inline stream orientation test and two separate
52409         function calls.  Pay no attention to USE_IN_LIBIO.
52410
52411 2005-10-13  Simon Josefsson  <jas@extundo.com>
52412
52413         * modules/gc-hmac-md5-tests: New file.
52414
52415         * tests/test-gc-hmac-sha1.c: New file.
52416
52417         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52418
52419         * modules/gc-hmac-md5-tests: New file.
52420
52421         * tests/test-gc-md5.c: New file.
52422
52423         * modules/gc-md5-tests: New file.
52424
52425 2005-10-13  Simon Josefsson  <jas@extundo.com>
52426
52427         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52428         Move memory allocation outside of loop.
52429
52430 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52431
52432         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52433         intermediate directory is in a read-only file system.  Problem
52434         reported by Eric Blake.
52435
52436 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52437
52438         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52439
52440 2005-10-12  Simon Josefsson  <jas@extundo.com>
52441
52442         * tests/test-hmac-sha1.c: New file.
52443
52444         * modules/hmac-sha1-tests: New file.
52445
52446         * modules/hmac-sha1: New file.
52447
52448 2005-10-12  Simon Josefsson  <jas@extundo.com>
52449
52450         * modules/gc-sha1: New file.
52451
52452 2005-10-12  Simon Josefsson  <jas@extundo.com>
52453
52454         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52455
52456         * tests/test-gc-pbkdf2-sha1.c: New file.
52457
52458 2005-10-12  Simon Josefsson  <jas@extundo.com>
52459
52460         * modules/gc-md5, modules/gc-hmac-md5: New files.
52461
52462         * modules/gc (Files): Remove md5, memxor and hmac files.
52463
52464 2005-10-12  Simon Josefsson  <jas@extundo.com>
52465
52466         * m4/gc-pbkdf2-sha1.m4: New file.
52467
52468         * m4/gc-hmac-sha1.m4: New file.
52469
52470         * m4/gc-sha1: New file.
52471
52472         * m4/hmac-sha1.m4: New file.
52473
52474 2005-10-12  Simon Josefsson  <jas@extundo.com>
52475
52476         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52477
52478         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52479
52480 2005-10-12  Simon Josefsson  <jas@extundo.com>
52481
52482         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52483         suggested by Bruno Haible <bruno@clisp.org>.
52484
52485 2005-10-12  Simon Josefsson  <jas@extundo.com>
52486
52487         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52488
52489 2005-10-12  Simon Josefsson  <jas@extundo.com>
52490
52491         * lib/gc-pbkdf2-sha1.c: New file.
52492
52493         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52494
52495 2005-10-12  Simon Josefsson  <jas@extundo.com>
52496
52497         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52498
52499         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52500
52501 2005-10-12  Simon Josefsson  <jas@extundo.com>
52502
52503         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52504         GC_USE_HMAC_MD5, respectively.
52505
52506         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52507         (gc_md5): Fix typo.
52508
52509         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52510
52511         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52512
52513         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52514
52515 2005-10-12  Bruno Haible  <bruno@clisp.org>
52516
52517         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52518         Reported by Stepan Kasal <kasal@ucw.cz>.
52519
52520 2005-10-11  Simon Josefsson  <jas@extundo.com>
52521
52522         * tests/test-crc.c: New file.
52523
52524         * modules/crc, modules/crc-tests: New files.
52525
52526 2005-10-11  Simon Josefsson  <jas@extundo.com>
52527
52528         * m4/crc.m4: New file.
52529
52530 2005-10-11  Simon Josefsson  <jas@extundo.com>
52531
52532         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52533
52534         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52535
52536         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52537
52538 2005-10-11  Simon Josefsson  <jas@extundo.com>
52539
52540         * lib/crc.h, lib/crc.c: New files.
52541
52542         * lib/gc.h (gc_hash_buffer): Add doc.
52543
52544 2005-10-11  Bruno Haible  <bruno@clisp.org>
52545
52546         * modules/c-strcasestr: New file.
52547         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52548
52549 2005-10-11  Bruno Haible  <bruno@clisp.org>
52550
52551         * modules/c-strcase: New file.
52552         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52553
52554 2005-10-11  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/strcasecmp.c: Include limits.h.
52557         (strcasecmp): Avoid integer overflow on exotic platforms.
52558         * lib/strncasecmp.c: Include limits.h.
52559         (strncasecmp): Avoid integer overflow on exotic platforms.
52560         Reported by Paul Eggert.
52561
52562 2005-10-11  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/c-strcasestr.h: New file, from GNU gettext.
52565         * lib/c-strcasestr.c: New file, from GNU gettext.
52566
52567 2005-10-11  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/c-strcase.h: New file, from GNU gettext.
52570         * lib/c-strcasecmp.c: New file, from GNU gettext.
52571         * lib/c-strncasecmp.c: New file, from GNU gettext.
52572
52573 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52574
52575         * modules/mempcpy (License): GPL -> LGPL.
52576         * modules/strchrnul (License): Likewise.
52577         * modules/sysexits (License): Likewise.
52578
52579 2005-10-08  Simon Josefsson  <jas@extundo.com>
52580
52581         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52582
52583 2005-10-07  Simon Josefsson  <jas@extundo.com>
52584
52585         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52586
52587 2005-10-06  Simon Josefsson  <jas@extundo.com>
52588
52589         * tests/test-hmac-md5.c: New file.
52590
52591         * modules/hmac-md5-tests: New file.
52592
52593         * modules/hmac-md5: New file.
52594
52595 2005-10-06  Simon Josefsson  <jas@extundo.com>
52596
52597         * m4/hmac-md5.m4: New file.
52598
52599         * m4/memxor.m4: Require gl_C_RESTRICT.
52600
52601 2005-10-06  Simon Josefsson  <jas@extundo.com>
52602
52603         * lib/memxor.c (memxor): Avoid casts and warnings.
52604
52605 2005-10-06  Simon Josefsson  <jas@extundo.com>
52606
52607         * lib/hmac-md5.c: New file.
52608
52609         * lib/hmac.h: New file.
52610
52611 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52614         promotes to int, not unsigned int, to catch the AIX 5.3
52615         compiler bug.
52616
52617 2005-10-05  Simon Josefsson  <jas@extundo.com>
52618
52619         * modules/memxor: New file.
52620
52621         * modules/iconv (Files): Move config.rpath to havelib, it is used
52622         there.
52623
52624         * modules/havelib (Files): Add config.rpath.
52625
52626 2005-10-05  Simon Josefsson  <jas@extundo.com>
52627
52628         * m4/memxor.m4: New file.
52629
52630 2005-10-05  Simon Josefsson  <jas@extundo.com>
52631
52632         * lib/memxor.c (memxor): Fix compiler error.
52633
52634         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52635         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52636
52637         * lib/memxor.h, lib/memxor.c: New files.
52638
52639         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52640         we assume all systems have it, suggested by Jim Meyering
52641         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52642         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52643         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52644         same reasons.
52645
52646 2005-10-05  Simon Josefsson  <jas@extundo.com>
52647
52648         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52649
52650 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52651
52652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52653         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52654         needed, since the source code now assumes these .h files.
52655
52656 2005-10-05  Derek Price  <derek@ximbiot.com>
52657
52658         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52659
52660 2005-10-05  Bruno Haible  <bruno@clisp.org>
52661
52662         * modules/stdint (License): Change to LGPL.
52663
52664 2005-10-04  Simon Josefsson  <jas@extundo.com>
52665
52666         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52667         D. Baushke" <mdb@gnu.org>.
52668
52669 2005-10-04  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/verify.h (verify_true): Provide alternative definition for C++.
52672
52673 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52676         (SSIZE_MAX): New macro, if not already defined.
52677         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52678         than 2 GiB.
52679
52680 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52681
52682         Sync from coreutils.
52683         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52684         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52685         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52686         ULLONG_MAX doesn't work with 2.7.2.1.
52687
52688 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52689
52690         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52691         From Ben Pfaff.
52692
52693         * modules/exclude (Depends-on): Depend on verify.
52694         * modules/strtoimax (Depends-on): Likewise.
52695         * modules/utimecmp (Depends-on): Likewise.
52696
52697 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52698
52699         * lib/exclude.c: Include verify.h.
52700         (verify): Remove.  All callers changed to use verify.h's version.
52701         * lib/strtoimax.c: Likewise.
52702         * lib/utimecmp.c: Likewis.e
52703
52704         Sync from coreutils.
52705         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52706         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52707         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52708         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52709         bother returning ENOSYS if settimeofday or stime fails; just let
52710         them return whatever errno they want to return.
52711         * lib/utimens.c: Include unistd.h, for dup2.
52712         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52713         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52714
52715 2005-10-02  Jim Meyering  <jim@meyering.net>
52716
52717         Sync from coreutils.
52718         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52719         from glibc-2.2.5 that fails for read-only files.
52720
52721 2005-10-02  Jim Meyering  <jim@meyering.net>
52722
52723         Sync from coreutils.
52724         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52725         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52726         `#if HAVE_CONFIG_H'.
52727         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52728         Remove AT_FDCWD test.
52729         Do not consume the fd unless successful.
52730         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52731         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52732         block, so that we don't even try to compile it if settimeofday is
52733         available.  This works around a compilation failure on OSF1 V5.1,
52734         due to stime requiring a `long int*' while tv_sec is `int'.
52735
52736 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52737
52738         Sync from coreutils.
52739         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52740         against `yes', rather than just testing for nonempty.
52741
52742 2005-10-01  Simon Josefsson  <jas@extundo.com>
52743
52744         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52745         and Darwin.
52746
52747         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52748         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52749         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52750         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52751         Check if struct addrinfo is declared.
52752
52753 2005-10-01  Simon Josefsson  <jas@extundo.com>
52754
52755         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52756         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52757         AI_* and EAI_* definitions.  Protect function declarations.
52758
52759 2005-10-01  Jim Meyering  <jim@meyering.net>
52760
52761         Sync from coreutils.
52762
52763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52764         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52765         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52767         in the inet and nsl libraries.  Required on Solaris 5.7.
52768
52769 2005-10-01  Jim Meyering  <jim@meyering.net>
52770
52771         Sync from coreutils.
52772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52773         in the inet and nsl libraries.  Required on Solaris 5.7.
52774
52775 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52776
52777         * lib/getdelim.c (getdelim): Remove unused variables.
52778
52779 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52782         so that the code works even with ancient cpp.  Portability problem
52783         with GCC 2.7.2.1 reported by Thomas M.Ott.
52784
52785 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * modules/regex (Depends-on): Add strcase.
52788
52789         * modules/gethostname (Licence): Change from GPL to LGPL, since
52790         gethostname.c is a trivial implementation of a standard library
52791         function.
52792         * modules/poll (License): Change from GPL to LGPL, since it's
52793         derived from LGPL code.
52794
52795 2005-09-27  Jim Meyering  <jim@meyering.net>
52796
52797         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52798         HAVE_CONFIG_H.
52799
52800         * lib/intprops.h (signed_type_or_expr__): Define.
52801         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52802         for unsigned types.
52803
52804 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         * lib/verify.h (verify_expr): Remove, replacing with:
52807         (verify_true): New macro that returns true instead of void.
52808         (verify_type__): Remove.
52809         (verify): Use verify_true rather than verify_type__.
52810
52811 2005-09-26  Bruno Haible  <bruno@clisp.org>
52812
52813         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52814         is necessary.
52815         (lib_SOURCES): Remove mbchar.c.
52816         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52817         (Files): Add m4/mbrtowc.m4.
52818         * modules/mbiter: Likewise.
52819         * modules/mbuiter: Likewise.
52820
52821 2005-09-26  Bruno Haible  <bruno@clisp.org>
52822
52823         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52824         compile mbchar.c if they are not both present.
52825         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52826         * m4/mbiter.m4 (gl_MBITER): Likewise.
52827         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52828         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52829         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52830
52831 2005-09-25  Jim Meyering  <jim@meyering.net>
52832
52833         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52834         also uses socklen_t.
52835
52836 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52837
52838         * lib/utimens.c (ENOSYS): Define if not already defined.
52839         (futimens): Support having a null PATH if the file descriptor
52840         is nonnegative.
52841
52842         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52843         Remove.
52844         (__attribute): Define to empty unless GCC 3.1 or later.
52845         This works around a core dump on OpenBSD 3.4, which has GCC
52846         2.95.3, which dumps core when given __attribute__(()).  It also
52847         simplifies other tests, since we really don't want to bother with
52848         worrying about which ancient version of GCC supported what.
52849         Original problem reported by Yoann Vandoorselaere, with part of
52850         the fix suggested by Derek Price.
52851
52852 2005-09-24  Jim Meyering  <jim@meyering.net>
52853
52854         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52855         so we can once again use a positive bitfield width of 1 -- now we
52856         don't have to explain why we were using a bitfield width of 2.
52857
52858 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52861         and similarly for the other external symbols.  Problem reported
52862         by James Gallager.
52863
52864         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52865         bug reported by Jim Meyering.
52866
52867         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52869         not needed, since socklen is a prerequisite module.
52870
52871 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52874         Problem reported by Eric Blake.
52875         (getaddrinfo): Initialize se so that it's not garbage.
52876         Redo internal storage allocation so that it doesn't make unportable
52877         assumptions about alignment.
52878         Fix a memory leak.
52879
52880         * lib/utimens.c (futimens): Use futimesat if available.
52881         Prefer it to futimes since it doesn't have the futimes bug.
52882
52883         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
52884         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
52885         Instead, declare a function that returns a pointer to an array,
52886         and use verify_type__ to declare the size of the array.
52887         Problem and germ of a solution reported by Bruno Haible.
52888         (verify_type__): Use 2, not 1, for bitfield size, to avoid
52889         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
52890
52891 2005-09-23  Jim Meyering  <jim@meyering.net>
52892
52893         Sync from coreutils.
52894         Correct build failure (socklen_t not defined) on at least
52895         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
52896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
52897
52898 2005-09-23  Jim Meyering  <jim@meyering.net>
52899
52900         * modules/getaddrinfo (Depends-on): Add socklen.
52901
52902 2005-09-23  Bruno Haible  <bruno@clisp.org>
52903
52904         * tests/test-verify.c: New file.
52905
52906 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52907
52908         Sync from coreutils.
52909
52910         * modules/argmatch (Depends-on): Add verify.
52911         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
52912         unistd-safer.
52913         * modules/save-cwd (Depends-on): Likewise.
52914
52915         * modules/openat (Files): Add lib/openat-die.c.
52916         (Depends-on): Remove error, exitfail.
52917         Add dirname.
52918
52919         * modules/verify: New file.
52920         * MODULES.html.sh (Diagnostics <assert.h>): New section,
52921         with "verify" module.
52922
52923 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52924
52925         Sync from coreutils.
52926
52927         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
52928         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
52929         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
52930         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
52931         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
52932         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
52933         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
52934         Don't bother checking for string.h, stdlib.h, unistd.h.
52935         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
52936         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
52937         module's job.
52938         * m4/jm-macros.m4 (gl_MACROS): Likewise.
52939         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
52940
52941         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
52942         (gl_GETDATE): Use it.
52943
52944         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
52945
52946 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         Sync from coreutils.
52949
52950         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
52951         stat-time.h.
52952         * lib/argmatch.h: Include verify.h
52953         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
52954         (ARGMATCH_ASSERT): Remove; unused.
52955         * lib/canonicalize.c: Assume STDC_HEADERS.
52956         * lib/exclude.c: Include "strcase.h".
52957         * lib/regex_internal.h [!defined _LIBC]: Likewise.
52958         * lib/getusershell.c: Include stdio--.h rather than stdio.h
52959         and stdio-safer.h.
52960         (getusershell): Call fopen, not fopen_safer.
52961         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
52962         Do not include unistd-safer.h.
52963         (save_cwd): Don't call fd_safer; no longer needed
52964         now that we include fcntl--.h.
52965
52966         * lib/getdate.y (relative_time): New type.
52967         (RELATIVE_TIME_0): New constant.
52968         (parser_control): Use relative_time instead of doing it ourselves.
52969         (%union): Add new relative_time rel member.
52970         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
52971         Now typeless.
52972         (relunit, relunit_snumber): Now of type rel.
52973         (zone, rel, relunit, get_date): Adjust to above changes.
52974
52975         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
52976         Do not include unistd-safer.h.
52977         (getloadavg): Don't call fd_safer; no longer needed
52978         now that we include fcntl--.h.
52979
52980         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
52981         (make_dir_parents): Treat ENOSYS like EEXIST.
52982
52983         Improve quality of diagnostics on restore_cwd failure.
52984         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
52985         (make_dir_parents): Last arg is now int * (for errno), not bool *.
52986         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
52987         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
52988         each time through the loop.  Do not diagnose restore_cwd failure;
52989         that is the caller's job (and perhaps the caller does not care).
52990
52991         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
52992         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
52993         If the file already exists but is not a directory, don't bother
52994         to try to make its parents.
52995         Close potential file descriptor leak if we can't chdir("/") (!).
52996         Don't always return true if chdir($PWD) fails; return true only
52997         if the requested action was done successfully (except for the
52998         chdir($PWD)).
52999         Don't log final directory unless we actually made it.
53000         Refactor to avoid duplicate code to fix up permissions.
53001         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53002
53003         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53004         to make it a bit faster and (I hope) clearer.
53005         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53006         Fix bug in formats like %2N.
53007
53008         * lib/verify.h: New file.
53009
53010 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         Sync from coreutils.
53013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53014
53015 2005-09-22  Jim Meyering  <jim@meyering.net>
53016
53017         Sync from coreutils.
53018
53019         * m4/lstat.m4 (gl_FUNC_LSTAT):
53020         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53021         Remove obsolete comment.
53022         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53023         * m4/xstrtod.m4: Likewise.
53024
53025         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53026
53027 2005-09-22  Jim Meyering  <jim@meyering.net>
53028
53029         Sync from coreutils.
53030
53031         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53032
53033         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53034         the .tm_year member, since otherwise gcc-4.0 would now warn about
53035         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53036
53037         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53038         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53039
53040         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53041         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53042         when run in a time zone for which daylight savings time is in effect
53043         for the starting date.
53044
53045         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53046         stop us from restricting permissions of just-created absolute-named
53047         directories.
53048         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53049         to restore initial working directory.
53050         * lib/mkdir-p.c (make_dir_parents): New parameter:
53051         different_working_dir, to tell caller if/when we change the working
53052         directory and are unable to return to the initial one.
53053         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53054         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53055         `return false'.  This fixes a bug introduced on 2004-07-30.
53056
53057         * lib/openat.c (fdopendir): Be sure to close the supplied
53058         file descriptor before returning.  This makes our replacement
53059         implementation a little closer to Solaris's, where fdopendir
53060         ties the file descriptor to the returned DIR* pointer.
53061         * lib/openat.c (unlinkat): New function.
53062         * lib/openat.h (unlinkat): Add prototype.
53063         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53064         (openat_restore_fail): Rename from openat_restore_die.
53065         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53066
53067         Provide an alternative to exiting immediately upon save_cwd or
53068         restore_cwd failure.  Now, an application can arrange e.g.,
53069         to perform a longjump in that case.
53070         * lib/openat.c: Include dirname.h.
53071         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53072         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53073         and openat_restore_die rather than calling error directly.
53074         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53075
53076         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53077         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53078         define.
53079
53080         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53081         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53082                             int utc, int nanoseconds);
53083         Background:
53084         date should not have to allocate a megabyte of virtual memory to
53085         handle a format argument like +%1048575T.  When implemented with
53086         strftime, it must allocate such a buffer, use strftime to fill it
53087         in, print it, then free it.
53088         With fprintftime, it simply prints everything and exits.
53089         With no need for memory allocation, that's one fewer way to fail.
53090         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53091         optional field width, not before, so we accept %9:z, not %:9z.
53092         (my_strftime): Be sure to use L_('x') for literals.
53093
53094         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53095         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53096         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53097         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53098         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53099         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53100         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53101         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53102         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53103         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53104         * lib/xgethostname.c, lib/xreadlink.c:
53105         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53106
53107         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53108         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53109         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53110         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53111         and don't include <sys/file.h>).
53112
53113 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53114
53115         Sync from coreutils.
53116
53117         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53118         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53119         [!LDAV_DONE]: Avoid unused variable warning.
53120
53121 2005-09-21  Bruno Haible  <bruno@clisp.org>
53122
53123         * lib/unicodeio.h (unicode_to_mb): New declaration.
53124
53125 2005-09-20  Derek Price  <derek@ximbiot.com>
53126
53127         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53128         getaddrinfo.h.
53129
53130 2005-09-20  Bruno Haible  <bruno@clisp.org>
53131
53132         * gnulib-tool: Remove trailing slashes from the values specified for
53133         --source-base, --m4-base, --tests-base, --aux-dir.
53134         Suggested by Simon Josefsson <jas@extundo.com>.
53135
53136 2005-09-20  Bruno Haible  <bruno@clisp.org>
53137
53138         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53139         func_modules_to_filelist, func_import, func_create_testdir): Make all
53140         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53141         change when gnulib-tool is invoked in a different locale.
53142
53143 2005-09-19  Simon Josefsson  <jas@extundo.com>
53144
53145         * m4/socklen.m4: Fix typo.
53146
53147 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53148
53149         Use a consistent style for including <config.h>.
53150         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53151         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53152         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53153         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53154         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53155         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53156         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53157         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53158         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53159         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53160         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53161         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53162         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53163         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53164         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53165         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53166         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53167         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53168         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53169         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53170         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53171         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53172         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53173         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53174         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53175         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53176         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53177         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53178         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53179         lib/xstrtoumax.c, lib/yesno.c:
53180         Standardize inclusion of config.h.
53181         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53182         lib/inttostr.h:  Removed inclusion of config.h from header files.
53183         * lib/inttostr.c:  Adjusted in-tree users.
53184         * lib/timespec.h: Remove superfluous warning to include config.h.
53185         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53186         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53187         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53188         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53189         config.h with HAVE_CONFIG_H.
53190
53191 2005-09-19  Jim Meyering  <jim@meyering.net>
53192
53193         * modules/pathmax (License): Change to LGPL.
53194
53195 2005-09-19  Derek Price  <derek@ximbiot.com>
53196
53197         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53198
53199 2005-09-19  Bruno Haible  <bruno@clisp.org>
53200
53201         * gnulib-tool (import): Provide default for --tests-base.
53202
53203 2005-09-19  Bruno Haible  <bruno@clisp.org>
53204
53205         * doc/quote.texi: New file, extracted from gnulib.texi.
53206         * doc/ctime.texi: New file, extracted from gnulib.texi.
53207         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53208         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53209         * doc/gnulib.texi: Include them.
53210
53211 2005-09-18  Bruno Haible  <bruno@clisp.org>
53212
53213         Portability fix.
53214         * gnulib-tool (func_readlink): New function.
53215         (func_ln_if_changed): Use it.
53216
53217 2005-09-18  Bruno Haible  <bruno@clisp.org>
53218
53219         * gnulib-tool: Support --with-tests also with --import.
53220         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53221         (func_import): Use variables $testsbase and $inctests. Emit a
53222         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53223         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53224         SUBDIRS += $testsdir.
53225         (func_create_testdir): Update.
53226
53227 2005-09-18  Bruno Haible  <bruno@clisp.org>
53228
53229         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53230         instead of $dry_run.
53231         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53232         (func_ln_if_changed): Don't handle dry-run here.
53233         (func_import): In dry-run mode, detect more precisely which actions
53234         would be performed, and don't use "...ing" verbs.
53235
53236 2005-09-18  Bruno Haible  <bruno@clisp.org>
53237
53238         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53239         (func_import): Use join on two temporary files instead of three nested
53240         loops, in order to determine which files are new or old.
53241
53242 2005-09-18  Bruno Haible  <bruno@clisp.org>
53243
53244         * gnulib-tool (func_import): Comment out code that spits out the
53245         new files with --dry-run.
53246
53247 2005-09-18  Bruno Haible  <bruno@clisp.org>
53248
53249         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53250
53251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * lib/stat-time.h: New file.
53254         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53255         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53256         in a different way.
53257         (timespec_cmp): New function.
53258         * lib/utimecmp.c: Include stat-time.h.
53259         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53260         members exist, not on the obsolescent ST_MTIM_NSEC.
53261         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53262
53263 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53266
53267 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53268
53269         * MODULES.html.sh (File system functions): Add stat-time.
53270         * modules/stat-time: New file.
53271         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53272         is now done in a different way, by the stat-time module.
53273         * modules/utimecmp (Depends-on): Add stat-time.
53274
53275 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         * m4/st_mtim.m4: Remove.  Superseded by...
53278         * m4/stat-time.m4: New file.
53279         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53280         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53281
53282 2005-09-15  Derek Price  <derek@ximbiot.com>
53283
53284         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53285
53286 2005-09-15  Derek Price  <derek@ximbiot.com>
53287
53288         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53289         * lib/regex_internal.c: Ditto, using this...
53290         (__GNUC_PREREQ): ...new macro.
53291         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53292         using...
53293         (__GNUC_PREREQ): ...this new macro.
53294
53295         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53296
53297 2005-09-15  Derek Price  <derek@ximbiot.com>
53298             Paul Eggert  <eggert@cs.ucla.edu>
53299
53300         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53301         changes, consolidating in...
53302         * lib/regex_internal.h: ...this file.
53303
53304 2005-09-13  Jim Meyering  <jim@meyering.net>
53305
53306         * lib/canon-host.c: Filter through gnu indent and reword comments
53307         slightly.
53308         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53309
53310 2005-09-13  Derek Price  <derek@ximbiot.com>
53311
53312         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53313         failure.
53314         Reported by Jim Meyering  <jim@meyering.net>.
53315
53316 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53317
53318         * lib/base64.c: Typo.
53319         (base64_encode): Put b64str in initialized data section.
53320
53321 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         Merge glibc and coreutils changes into gnulib, plus a few
53324         extra fixes.
53325         * lib/md5.c: Use #error rather than a string.
53326         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53327         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53328         (__attribute__): Define to empty for non recent-GCC.
53329         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53330         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53331         Renamed from their non-__ counterparts, with new macros replacing
53332         them if not _LIBC.  Add __THROW attribute.
53333         (rol): Remove.
53334         (struct md5_ctx): Align buffer if using GCC.
53335         * lib/sha1.h (struct sha1_ctx): Likewise.
53336         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53337         The old name was backwards.
53338         (NOTSWAP): Remove; not used.
53339         (rol): New macro, moved here from md5.h.
53340         (sha1_process_block): Remove a FIXME that doesn't make sense.
53341
53342 2005-09-12  Derek Price  <derek@ximbiot.com>
53343
53344         Return usable errors from canon-host.
53345         * lib/canon-host.h: New file.
53346         * lib/canon-host.c (canon_host): Wrap...
53347         (canon_host_r): ...this new function, which now relies exclusively on
53348         getaddrinfo.
53349         (ch_strerror): New function.
53350         (last_cherror): New global.
53351         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53352         interface.
53353         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53354         void *.
53355         (freeaddrinfo): Free ai->ai_canonname when set.
53356
53357 2005-09-12  Derek Price  <derek@ximbiot.com>
53358
53359         Make canon-host require getaddrinfo.
53360         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53361         AC_LIBSOURCE canon-host.h.  Call...
53362         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53363         gl_GETADDRINFO.
53364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53365
53366 2005-09-12  Derek Price  <derek@ximbiot.com>
53367
53368         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53369         LGPL.
53370         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53371
53372 2005-09-12  Derek Price  <derek@ximbiot.com>
53373
53374         * lib/gai_strerror.c: Include config.h when available.  Include
53375         getaddrinfo.h before other headers to test interface.
53376         Reported by Larry Jones <lawrence.jones@ugs.com>.
53377
53378 2005-09-12  Derek Price  <derek@ximbiot.com>
53379             Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         * modules/glob (Files): Add glob-libc.h.
53382
53383 2005-09-12  Derek Price  <derek@ximbiot.com>
53384             Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53387         glob_.h, glob-libc.h.
53388         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53389
53390 2005-09-12  Derek Price  <derek@ximbiot.com>
53391             Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53394         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53395         protecting things that should be done only in gnulib contexts.
53396         * lib/glob_.h: New file, containing only the glob things needed for
53397         gnulib.
53398         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53399         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53400         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53401         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53402         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53403         and to respect the namespace rules better.
53404
53405 2005-09-08  Simon Josefsson  <jas@extundo.com>
53406
53407         * modules/socklen: New file.
53408
53409 2005-09-08  Simon Josefsson  <jas@extundo.com>
53410
53411         * m4/socklen.m4: New file.
53412
53413 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53414
53415         * modules/utimens (Files): Add m4/utimbuf.m4, since
53416         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53417         Reported by Sergey Poznyakoff.
53418
53419 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53422         definitions, since that's the preferred style in glibc.
53423         Fix a minor spacing issue, and update copyright notice to match
53424         glibc's.
53425
53426 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53429
53430 2005-09-06  Simon Josefsson  <jas@extundo.com>
53431
53432         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53433         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53434
53435 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53438         warning.
53439
53440 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         * config/srclist.txt: Add glibc bug 1302.
53443
53444 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         Change bitset word type from unsigned int to unsigned long int,
53447         as this has better performance on typical 64-bit hosts.
53448         Port bitset code to hosts with unusual word sizes.
53449         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53450         (build_collating_symbol):
53451         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53452         argument is a bitset.  This is merely a style issue, but it makes
53453         it clearer that an entire array is expected.
53454         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53455         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53456         Port to the case where bitset_word is not the same as unsigned int.
53457         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53458         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53459         Likewise.
53460         * lib/regexec.c (check_dst_limits_calc_pos_1,
53461         check_subexp_matching_top):
53462         (build_trtable, group_nodes_into_DFAstates):
53463         Likewise.
53464         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53465         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53466         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53467         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53468         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53469         * lib/regcomp.c (optimize_subexps, lower_subexp):
53470         Work even if bitset_word has holes in its bitwise representation.
53471         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53472         * lib/regexec.c (check_dst_limits_calc_pos_1,
53473         check_subexp_matching_top):
53474         Likewise.
53475         * lib/regex_internal.c (re_string_reconstruct):
53476         Don't assume UCHAR_MAX == 255.
53477         * lib/regex_internal.h (bitset_set_all): Likewise.
53478         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53479         All uses changed.
53480         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53481         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53482         All uses changed.
53483         (BITSET_WORD_MAX): New macro.
53484         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53485         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53486         (bitset_empty, bitset_copy):
53487         Prefer sizeof (bitset) to multiplying it out ourselves.
53488         (bitset_not_merge): Remove; unused.
53489         (bitset_contain): Return bool, not unsigned int with one bit on.
53490         All callers changed.
53491         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53492         alignment than re_node_set; do this by defining a new internal
53493         type struct dests_alloc and using it to allocate memory.
53494
53495 2005-09-05  Bruno Haible  <bruno@clisp.org>
53496
53497         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53498         links.
53499
53500 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53501
53502         * modules/size_max (Makefile.am): Add size_max.h
53503
53504 2005-09-04  Derek Price  <derek@ximbiot.com>
53505
53506         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53507
53508 2005-09-03  Simon Josefsson  <jas@extundo.com>
53509
53510         * gnulib-tool: Fix typo.
53511
53512 2005-09-03  Simon Josefsson  <jas@extundo.com>
53513
53514         * config/srclist.txt: Add glibc bug 1293.
53515
53516 2005-09-03  Derek Price  <derek@ximbiot.com>
53517
53518         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53519         From Larry Jones <lawrence.jones@ugs.com>.
53520
53521 2005-09-02  Simon Josefsson  <jas@extundo.com>
53522
53523         * modules/socklen: New file.
53524
53525 2005-09-02  Simon Josefsson  <jas@extundo.com>
53526
53527         * modules/havelib: New module.
53528
53529         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53530         Use havelib.
53531
53532 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53533
53534         Check for arithmetic overflow when calculating sizes, to prevent
53535         some buffer-overflow issues.  These patches are conservative, in the
53536         sense that when I couldn't determine whether an overflow was possible,
53537         I inserted a run-time check.
53538         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53539         macros.
53540         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53541         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53542         (re_xnrealloc, re_x2nrealloc): New inline functions.
53543         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53544         parse_bracket_exp):
53545         (build_equiv_class, build_charclass): Check for arithmetic overflow
53546         in size expression calculations.
53547         * lib/regex_internal.c (re_string_realloc_buffers):
53548         (build_wcs_upper_buffer, re_node_set_add_intersect):
53549         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53550         (re_dfa_add_node, register_state): Likewise.
53551         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53552         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53553         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53554         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53555
53556 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53557
53558         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53559         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53560
53561 2005-09-02  Bruno Haible  <bruno@clisp.org>
53562
53563         Support for lib vs. lib64 distinction on biarch platforms.
53564         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53565         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53567
53568 2005-09-02  Bruno Haible  <bruno@clisp.org>
53569
53570         * gnulib-tool (import): In the other first-use case, provide defaults
53571         as well.
53572
53573 2005-09-02  Bruno Haible  <bruno@clisp.org>
53574
53575         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53576         patches not yet found in the latest gettext release.
53577
53578 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53581         to avoid a collision with bits/local_lim.h in glibc.
53582         All uses changed.  Problem reported by Dmitry V. Levin in
53583         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53584
53585         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53586         bugs in int versus size_t comparisons.
53587         (re_string_context_at): Fix bug where the code assumed that
53588         Idx is signed.
53589
53590         Use bool where appropriate.
53591         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53592         All callers changed.
53593         (calc_eclosure_iter): Likewise, for ROOT arg.
53594         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53595         (build_charclass_op): Likewise, for NON_MATCH arg.
53596         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53597         (re_string_construct_common): Likewise, for ICASE arg.
53598         * lib/regexec.c (re_search_2_stub, re_search_stub):
53599         Likewise, for RET_LEN arg.
53600         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53601         (set_regs): Likewise, for FL_BACKTRACK arg.
53602         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53603         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53604         (calc_eclosure_iter, parse_bracket_exp):
53605         Use bool for internal variables that are booleans.
53606         * lib/regexec.c (re_search_internal, check_matching,
53607         proceed_next_node):
53608         (set_regs, build_sifted_states, sift_states_bkref):
53609         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53610         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53611         (find_collation_sequence_value):
53612         Likewise.
53613         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53614         (re_node_set_compare):
53615         Return bool, not int. All callers changed.
53616         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53617         (build_trtable, check_node_accept): Likewise.
53618         * lib/regex_internal.h: Include stdbool.h.
53619
53620         Fix bugs uncovered when converting to bool.
53621         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53622         failure instead of charging ahead blindly.
53623         * lib/regex_internal.c (register_state): Likewise.
53624         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53625         for freeing internal storage.
53626         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53627         bitset pieces used as boolean, to avoid undefined behavior
53628         on hosts that do int overflow checking.
53629
53630 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53631
53632         * config/srclist.txt: Add glibc bugs 1285-1287.
53633
53634 2005-09-01  Jim Meyering  <jim@meyering.net>
53635
53636         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53637         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53638         Require gl_STAT_MACROS, too.
53639
53640 2005-09-01  Bruno Haible  <bruno@clisp.org>
53641
53642         * gnulib-tool (import): In the first-use case, provide defaults.
53643
53644 2005-09-01  Bruno Haible  <bruno@clisp.org>
53645
53646         * gnulib-tool (func_import): Remove the .tmp files.
53647
53648 2005-09-01  Bruno Haible  <bruno@clisp.org>
53649
53650         * gnulib-tool (func_import): Fix handling of symbolic links.
53651
53652 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53653
53654         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53655         old glibc regex code mishandles strings longer than 2**31 bytes.
53656         This patch fixes this when the regex code is used in gnulib
53657         (i.e., outside glibc).
53658
53659         This patch should not affect the use of the regex code inside
53660         glibc.  No doubt this problem also needs to be handled for glibc
53661         as well, but the result will be an incompatible change to the
53662         glibc ABI, and the old ABI will have to be supported too.  That
53663         can be the the subject for another patch.
53664
53665         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53666         governing whether the rest of this patch is active.  By default,
53667         the macro is disabled and the patch has no effect.
53668         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53669         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53670         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53671         (re_match_2, re_set_registers): Use the new types.
53672         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53673         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53674         New macros.
53675         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53676         (re_string_context_at, bin_tree_t, re_dfastate_t):
53677         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53678         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53679         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53680         (re_string_char_size_at, re_string_wchar_at):
53681         (re_string_elem_size_at):
53682         Use the new types and macros to port to 64-bit hosts.
53683         Use unsigned types for internal values, so that the code
53684         mostly works even for arrays larger than SSIZE_MAX.
53685         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53686         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53687         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53688         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53689         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53690         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53691         (calc_inveclosure, parse_dup_op, build_range_exp):
53692         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53693         (fetch_number, create_token_tree, mark_opt_subexp):
53694         Likewise.
53695         * lib/regex_internal.c (re_string_construct_common,
53696         create_ci_newstate):
53697         (create_cd_newstate, re_string_allocate, re_string_construct):
53698         (re_string_realloc_buffers, build_wcs_upper_buffer):
53699         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53700         (re_string_reconstruct, re_string_peek_byte_case):
53701         (re_string_fetch_byte_case, re_string_context_at):
53702         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53703         (re_node_set_init_copy, re_node_set_add_intersect):
53704         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53705         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53706         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53707         (re_acquire_state, re_acquire_state_context, register_state):
53708         Likewise.
53709         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53710         search_cur_bkref_entry):
53711         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53712         (re_search_internal, re_search_2_stub, re_search_stub)
53713         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53714         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53715         (update_cur_sifted_state, check_dst_limits):
53716         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53717         (check_subexp_limits, sift_states_bkref, merge_state_array):
53718         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53719         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53720         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53721         (expand_bkref_cache, check_node_accept_bytes):
53722         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53723         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53724         (acquire_init_state_context, check_halt_node_context):
53725         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53726         (sift_states_backward, clean_state_log_if_needed):
53727         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53728         (find_recover_state, transit_state_sb, transit_state_mb):
53729         (transit_state_bkref, build_trtable, match_ctx_clean):
53730         Likewise.
53731         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53732         to work around an assumption that REG_MISSING is negative.
53733
53734         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53735         (seek_collating_symbol_entry) [defined _LIBC]:
53736         (lookup_collation_sequence_value) [defined _LIBC]:
53737         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53738         Use prototypes rather than old-style function definitions.
53739         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53740         (transit_state_sb) [0]:
53741         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53742
53743         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53744         rm_eo.
53745
53746         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53747         (optimize_subexps, lower_subexp):
53748         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53749         since the signed shift might overflow.  Use 1u<<31 instead.
53750         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53751         Likewise.
53752         * lib/regexec.c (check_dst_limits_calc_pos_1,
53753         check_subexp_matching_top): Likewise.
53754
53755         * lib/regcomp.c (optimize_subexps, lower_subexp):
53756         Use CHAR_BIT rather than 8, for clarity.
53757         * lib/regexec.c (check_dst_limits_calc_pos_1):
53758         (check_subexp_matching_top): Likewise.
53759         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53760         have to worry about portability issues when shifting it left.
53761         Remove no-longer-needed test for table_size > 0.
53762         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53763         in a word, as the resulting behavior is undefined.
53764         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53765         in one case, a <= should have been an <, and in another case the
53766         whole test was missing.
53767         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53768         the standard name CHAR_BIT.
53769         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53770         this is not true on one's complement and signed-magnitude hosts.
53771
53772         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53773         next_last_offset.
53774         (struct re_dfa_t): Remove unused member states_alloc.
53775         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53776
53777 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53780         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53781         and large-file glibc and in 32-bit large-file Solaris.
53782
53783 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53786         lengths fit in regoff_t; this isn't true if regoff_t is the same
53787         width as size_t.
53788         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53789         (= START + RANGE) instead of RANGE.  This avoids overflow
53790         problems when regoff_t is the same width as size_t.
53791         All callers changed.
53792         (re_search_2_stub): Check for overflow when adding the
53793         sizes of the two strings.
53794         (re_search_stub): Check for overflow when adding START
53795         to RANGE; if it occurs, substitute the extreme value.
53796
53797 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53798
53799         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53800
53801 2005-08-31  Jim Meyering  <jim@meyering.net>
53802
53803         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53804         a pointer-to-const.
53805         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53806         (register_state): Likewise.
53807         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53808         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53809         (group_nodes_into_DFAstates): Likewise.
53810
53811 2005-08-31  Jim Meyering  <jim@meyering.net>
53812
53813         * check-module: Add a FIXME comment.
53814
53815 2005-08-31  Eric Blake  <ebb9@byu.net>
53816
53817         * modules/unistd-safer (Files): Add unistd--.h.
53818         * modules/stdio-safer (Files): Add stdio--.h.
53819
53820 2005-08-31  Derek Price  <derek@ximbiot.com>
53821
53822         * lib/getdelim.c (getdelim): Return EOF on EOF.
53823         Reported by Larry Jones <lawrence.jones@ugs.com>.
53824
53825 2005-08-31  Bruno Haible  <bruno@clisp.org>
53826
53827         Avoid unnecessary diffs in the generated lib/Makefile.am.
53828         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53829         the generated files.
53830         (func_import): Don't set cmd.
53831
53832 2005-08-31  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/strstr.c: Include <stddef.h>, for NULL.
53835         * lib/strcasestr.c: Likewise.
53836         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53837
53838 2005-08-31  Bruno Haible  <bruno@clisp.org>
53839
53840         * gnulib-tool: New option --macro-prefix.
53841         (func_import): Use macro_prefix.
53842         (import): Handle option --macro-prefix.
53843
53844 2005-08-31  Bruno Haible  <bruno@clisp.org>
53845
53846         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53847         Also use new variables cached_lgpl, cached_libtool.
53848
53849 2005-08-31  Bruno Haible  <bruno@clisp.org>
53850
53851         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53852         always instantiating them.
53853
53854 2005-08-31  Bruno Haible  <bruno@clisp.org>
53855
53856         * gnulib-tool (func_import): Read the previous cached settings
53857         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53858         earlier added by gnulib but are now dropped. Warn when a gnulib file
53859         overwrites a non-gnulib file.
53860
53861 2005-08-31  Bruno Haible  <bruno@clisp.org>
53862
53863         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53864         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53865         projects that don't keep autogenerated files in CVS. Put into
53866         actioncmd only the specified modules, not the transitive closure.
53867
53868 2005-08-31  Bruno Haible  <bruno@clisp.org>
53869
53870         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53871         Create directories that shall be filled.
53872         (import): Don't look for gl_* macros in configure.ac. Recurse across
53873         all directories containing a gnulib-cache.m4 files, if meaningful.
53874
53875 2005-08-31  Bruno Haible  <bruno@clisp.org>
53876
53877         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
53878         (import): Set seen_libtool when we see gl_LIBTOOL.
53879
53880 2005-08-31  Bruno Haible  <bruno@clisp.org>
53881
53882         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
53883         declaration macro definitions from generated gnulib.m4.
53884
53885 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
53886
53887         * lib/iconvme.h: Add prototype for iconv_alloc.
53888
53889 2005-08-29  Simon Josefsson  <jas@extundo.com>
53890
53891         * lib/iconvme.c: Fix errno.
53892
53893 2005-08-29  Bruno Haible  <bruno@clisp.org>
53894
53895         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
53896         that it works when the directory contains spaces.
53897
53898 2005-08-29  Bruno Haible  <bruno@clisp.org>
53899
53900         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
53901
53902 2005-08-29  Bruno Haible  <bruno@clisp.org>
53903
53904         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
53905         Emit more advice.
53906
53907 2005-08-29  Bruno Haible  <bruno@clisp.org>
53908         and Stepan Kasal  <kasal@ucw.cz>
53909
53910         * check-module: If more parameters are given, check each of them
53911         separately; add more exceptions, as noted by Jim Meyering.
53912         (check_module): New procedure.
53913         (%exempt_header): Now contains all exceptions.
53914
53915 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
53916
53917         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
53918
53919 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53920
53921         * lib/iconvme.c: Split iconv_string into iconv_alloc.
53922
53923 2005-08-28  Bruno Haible  <bruno@clisp.org>
53924
53925         * m4/gnulib-tool.m4: New file.
53926
53927 2005-08-27  Jim Meyering  <jim@meyering.net>
53928
53929         * modules/unistd-safer (Files): Add pipe-safer.c.
53930         * modules/fcntl-safer (Files): Add creat-safer.c.
53931
53932 2005-08-27  Jim Meyering  <jim@meyering.net>
53933
53934         * m4/stdlib-safer.m4: New file.  From coreutils.
53935         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
53936         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
53937         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
53938         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
53939         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
53940
53941 2005-08-27  Jim Meyering  <jim@meyering.net>
53942
53943         * lib/fopen-safer.c: Merge minor changes from coreutils.
53944         * lib/dup-safer.c: Likewise.
53945         * lib/fd-safer.c: Likewise.
53946
53947         Merge from coreutils.
53948         * lib/stdio--.h: New file.
53949         * lib/stdlib--.h: New file.
53950         * lib/mkstemp-safer.c: New file.
53951
53952         GNU tar needs these.
53953         * lib/pipe-safer.c: New file.
53954         * lib/creat-safer.c: New file.
53955         * lib/fcntl--.h (creat): Define to creat_safer.
53956         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
53957         * lib/unistd--.h (pipe): Define to pipe_safer.
53958         * lib/unistd-safer.h: Declare pipe_safer.
53959
53960 2005-08-26  Simon Josefsson  <jas@extundo.com>
53961
53962         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
53963         Haible <bruno@clisp.org>.
53964
53965 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
53966
53967         * lib/regex_internal.h: Remove all references to
53968         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
53969         or better.
53970         (bitset_not, bitset_merge, bitset_not_merge):
53971         (bitset_mask, re_string_allocate, re_string_construct):
53972         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
53973         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
53974         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
53975         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
53976         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53977         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53978         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
53979         (re_acquire_state_context):
53980         Remove unnecessary forward decls.
53981         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
53982         Put __attribute at function definition,
53983         now that the function decl has been removed.
53984         * lib/regex_internal.c (re_string_peek_byte_case):
53985         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
53986         Likewise.
53987
53988 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
53989
53990         * m4/regex.m4: Add AC_PREREQ(2.50).
53991         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
53992
53993 2005-08-25  Simon Josefsson  <jas@extundo.com>
53994
53995         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
53996         __fsetlocking.
53997
53998 2005-08-25  Simon Josefsson  <jas@extundo.com>
53999
54000         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54001         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54002         GLIBC specific code.
54003
54004 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54005
54006         Make regex safe for g++.  This fixes one real bug (an "err"
54007         that should have been "*err").  g++ problem reported by
54008         Sam Steingold.
54009         * lib/regex_internal.h (re_calloc): New macro, consistent with
54010         re_malloc etc.  All callers of calloc changed to use re_calloc.
54011         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54012         not int.  All callers changed.
54013         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54014         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54015         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54016         (find_recover_state): Change "err" to "*err"; this fixes what
54017         appears to be a real bug.
54018         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54019         versus int.
54020
54021 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * modules/regex (Depends-on): Add malloc, since the code
54024         assumes that !malloc(0) means failure.
54025
54026 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54027
54028         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54029
54030         alloca modernization/simplification for regex.
54031         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54032         needs to be at the start of the file, and can be moved into
54033         regex_internal.h and simplified.
54034         * lib/regex_internal.h: Include <alloca.h>.
54035         (__libc_use_alloca) [!defined _LIBC]: New macro.
54036         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54037         now works outside glibc.
54038
54039 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54040
54041         * config/srclist.txt: Add glibc bugs 1241, 1245.
54042
54043 2005-08-25  Jim Meyering  <jim@meyering.net>
54044
54045         * lib/open-safer.c: Include <config.h>.
54046         Otherwise, we'd lose LARGEFILE support in any file using
54047         e.g. "fcntl--.h"
54048
54049 2005-08-25  Bruno Haible  <bruno@clisp.org>
54050
54051         * m4/minmax.m4: Require autoconf 2.52.
54052         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54053         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54054         alternatives of translit over the alphabet.
54055         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54056
54057 2005-08-24  Simon Josefsson  <jas@extundo.com>
54058
54059         * tests/test-getpass.c: New file.
54060
54061 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54064         for GNU regex features.
54065
54066 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54069         * lib/regex.h (regerror): Likewise.
54070
54071         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54072         requires this.  (The code never needed it.)
54073
54074         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54075         All uses of recently-renamed identifiers changed to use the new,
54076         POSIX-compliant names.  The code will build and run just fine
54077         without these changes, but it's better to eat our own dog food
54078         and use the standard-conforming names.
54079
54080         * lib/regex.h: Fix a multitude of POSIX name space violations.
54081         These changes have an effect only for programs that define
54082         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54083         do not change anything for programs compiled in the normal way.
54084         Also, there is no effect on the ABI.
54085
54086         (_REGEX_SOURCE): New macro.
54087         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54088         defined and _GNU_SOURCE is not; this fixes a name space violation.
54089
54090         Rename the following macros to obey POSIX requirements.
54091         The old names are still visible as macros if _REGEX_SOURCE is defined.
54092         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54093         RE_BACKSLASH_ESCAPE_IN_LISTS.
54094         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54095         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54096         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54097         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54098         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54099         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54100         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54101         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54102         (REG_INTERVALS): renamed from RE_INTERVALS.
54103         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54104         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54105         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54106         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54107         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54108         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54109         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54110         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54111         RE_UNMATCHED_RIGHT_PAREN_ORD.
54112         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54113         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54114         (REG_DEBUG): renamed from RE_DEBUG.
54115         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54116         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54117         unusual, since we can't clash with the POSIX REG_ICASE.
54118         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54119         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54120         (REG_NO_SUB): renamed from RE_NO_SUB.
54121         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54122         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54123         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54124         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54125         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54126         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54127         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54128         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54129         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54130         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54131         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54132         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54133         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54134         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54135         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54136         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54137         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54138         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54139         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54140         (REG_FIXED): Renamed from REGS_FIXED.
54141         (REG_NREGS): Renamed from RE_NREGS.
54142
54143         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54144         of other REG_* macros, since POSIX says the user is allowed to
54145         #undef these macros selectively.
54146
54147         (reg_errcode_t): Update comment stating what other tables need
54148         to be consistent.
54149
54150         Rename the following enum values to obey POSIX requirements.
54151         The old names are still visible as macros.
54152         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54153         is not defined, since GNU is supposed to be a superset of POSIX as
54154         much as possible, and since we want reg_errcode_t to be a signed
54155         type for implementation consistency.
54156         (_REG_NOERROR): Renamed from REG_NOERROR.
54157         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54158         (_REG_BADPAT): Renamed from REG_BADPAT.
54159         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54160         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54161         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54162         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54163         (_REG_EBRACK): Renamed from REG_EBRACK.
54164         (_REG_EPAREN): Renamed from REG_EPAREN.
54165         (_REG_EBRACE): Renamed from REG_EBRACE.
54166         (_REG_BADBR): Renamed from REG_BADBR.
54167         (_REG_ERANGE): Renamed from REG_ERANGE.
54168         (_REG_ESPACE): Renamed from REG_ESPACE.
54169         (_REG_BADRPT): Renamed from REG_BADRPT.
54170         (_REG_EEND): Renamed from REG_EEND.
54171         (_REG_ESIZE): Renamed from REG_ESIZE.
54172         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54173         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54174         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54175         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54176         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54177
54178         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54179         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54180         changed.  But support the old name if the new one is not defined
54181         and if _REGEX_SOURCE.
54182
54183         Change the following member names in struct re_pattern_buffer.
54184         The old names are still supported if !_REGEX_SOURCE.
54185         The new names are always supported, regardless of _REGEX_SOURCE.
54186         (re_buffer): Renamed from buffer.
54187         (re_allocated): Renamed from allocated.
54188         (re_used): Renamed from used.
54189         (re_syntax): Renamed from syntax.
54190         (re_fastmap): Renamed from fastmap.
54191         (re_translate): Renamed from translate.
54192         (re_can_be_null): Renamed from can_be_null.
54193         (re_regs_allocated): Renamed from regs_allocated.
54194         (re_fastmap_accurate): Renamed from fastmap_accurate.
54195         (re_no_sub): Renamed from no_sub.
54196         (re_not_bol): Renamed from not_bol.
54197         (re_not_eol): Renamed from not_eol.
54198         (re_newline_anchor): Renamed from newline_anchor.
54199
54200         Change the following member names in struct re_registers.
54201         The old names are still supported if !_REGEX_SOURCE.
54202         The new names are always supported, regardless of _REGEX_SOURCE.
54203         (rm_num_regs): Renamed from num_regs.
54204         (rm_start): Renamed from start.
54205         (rm_end): Renamed from end.
54206
54207         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54208         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54209         Prepend __ to parameter names.
54210
54211         Undo yesterday's changes.
54212
54213 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54214
54215         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54216         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54217         lib/regex.c.
54218
54219 2005-08-24  Jim Meyering  <jim@meyering.net>
54220
54221         Sync from coreutils.
54222         * m4/fcntl-safer.m4: New file.
54223
54224         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54225         and object files for this module.
54226
54227 2005-08-24  Jim Meyering  <jim@meyering.net>
54228
54229         Sync from coreutils.
54230         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54231
54232 2005-08-24  Jim Meyering  <jim@meyering.net>
54233
54234         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54235         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54236
54237 2005-08-24  Jim Meyering  <jim@meyering.net>
54238
54239         * modules/fcntl-safer: New module.
54240         * modules/fts (Depends-on): Add fcntl-safer.
54241         * MODULES.html.sh (File descriptor based Input/Output):
54242         Add fcntl-safer.
54243
54244 2005-08-24  Bruno Haible  <bruno@clisp.org>
54245
54246         Support for unit test modules.
54247         * modules/README: Mention tests modules.
54248         * modules/TEMPLATE-TESTS: New file.
54249         * gnulib-tool: New options --extract-tests-module, --with-tests and
54250         --tests-base (unused for the moment).
54251         (testsbase, inctests): New variables.
54252         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54253         (func_verify_module): Exclude TEMPLATE-TESTS.
54254         (func_verify_nontests_module, func_verify_tests_module): New functions.
54255         (func_get_dependencies): Add implicit dependency for tests modules.
54256         (func_get_tests_module): New function.
54257         (func_modules_transitive_closure): When --with-tests was specified,
54258         include the unit tests as well, unless explicitly avoided.
54259         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54260         (func_emit_tests_Makefile_am): New function.
54261         (func_create_testdir): When --with-tests was specified, emit a
54262         tests/ directory.
54263         * MODULES.html.sh (Future developments): Update.
54264
54265 2005-08-24  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/tls-tests: New file.
54268         * tests/test-tls.c: New file, from GNU gettext.
54269
54270 2005-08-24  Bruno Haible  <bruno@clisp.org>
54271
54272         * modules/lock-tests: New file.
54273         * tests/test-lock.c: New file, from GNU gettext.
54274
54275 2005-08-24  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/lock.h: Add multiple inclusion guard.
54278         * lib/tls.h: Add multiple inclusion guard.
54279
54280 2005-08-24  Bruno Haible  <bruno@clisp.org>
54281
54282         * gnulib-tool: Add support for the --aux-dir option to
54283         --create-testdir, --create-megatestdir, --test, --megatest.
54284         (func_create_testdir, func_create_megatestdir): Optionally emit a
54285         AC_CONFIG_AUX_DIR directive.
54286         (create-testdir, create-megatestdir, test, megatest): Provide a
54287         default value for $auxdir.
54288
54289 2005-08-24  Bruno Haible  <bruno@clisp.org>
54290
54291         * gnulib-tool (import): Use compound statement instead of subshell
54292         where possible.
54293
54294 2005-08-24  Bruno Haible  <bruno@clisp.org>
54295
54296         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54297
54298 2005-08-24  Bruno Haible  <bruno@clisp.org>
54299
54300         * gnulib-tool (func_version): Update.
54301
54302 2005-08-24  Bruno Haible  <bruno@clisp.org>
54303
54304         * gnulib-tool (func_import, func_create_testdir,
54305         func_create_megatestdir): Quote all autoconf macro arguments.
54306
54307 2005-08-24  Bruno Haible  <bruno@clisp.org>
54308
54309         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54310         option --force, because --force causes the aclocal.m4 of each
54311         subdirectory to be newer than the corresponding config.h.in.
54312
54313 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54316         All contents moved to gl_REGEX.
54317         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54318         assume that it does.
54319
54320 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         * lib/regex.h (REG_NOSYS)
54323         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54324         Define, since POSIX requires it as of 2001.
54325         (_REG_ENOSYS)
54326         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54327         New private symbol, used to keep the enum signed in all cases.
54328         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54329         Youngman in
54330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54331
54332         * lib/regex_internal.c (re_string_skip_chars, register_state):
54333         (calc_state_hash):
54334         Remove forward decls; no longer needed now that we use prototypes.
54335         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54336         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54337         (clean_state_log_if_needed): Likewise.
54338
54339 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * config/srclist.txt: Add glibc bugs 1231-1233.
54342
54343 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         Fix problems reported by Sam Steingold in
54346         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54347         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54348         assumed that reg_errcode_t is a signed type, which is not
54349         necessarily true if _XOPEN_SOURCE is not defined.
54350         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54351         since some compilers warn about it otherwise.
54352
54353 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54354
54355         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54356         (init_word_char, create_initial_state, duplicate_node_closure):
54357         (fetch_token, peek_token_bracket, build_range_exp):
54358         (build_collating_symbol): Remove forward decls; no longer needed
54359         now that we use prototypes.
54360
54361         * lib/regcomp.c:
54362         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54363         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54364         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54365         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54366         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54367         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54368         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54369         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54370         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54371         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54372         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54373         (build_charclass, build_charclass_op, fetch_number, create_tree):
54374         (create_token_tree, mark_opt_subexp, duplicate_tree):
54375         Use prototypes rather than old-style definitions.
54376
54377         * lib/regex_internal.c:
54378         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54379         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54380         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54381         (re_string_reconstruct, re_string_peek_byte_case):
54382         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54383         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54384         (re_node_set_init_copy, re_node_set_add_intersect):
54385         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54386         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54387         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54388         (re_acquire_state, re_acquire_state_context, register_state):
54389         (create_ci_newstate, create_cd_newstate, free_state):
54390         Likewise.
54391         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54392         re_search_2):
54393         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54394         (re_search_internal, prune_impossible_nodes):
54395         (acquire_init_state_context, check_matching, static):
54396         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54397         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54398         (update_regs, sift_states_backward, build_sifted_states):
54399         (clean_state_log_if_needed, merge_state_array):
54400         (update_cur_sifted_state, add_epsilon_src_nodes):
54401         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54402         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54403         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54404         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54405         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54406         (check_arrival, check_arrival_add_next_nodes):
54407         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54408         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54409         (check_node_accept_bytes, check_node_accept, extend_buffers):
54410         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54411         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54412         (sift_ctx_init):
54413         Likewise.
54414
54415         * lib/regex_internal.h:
54416         (re_string_allocate, re_string_construct, re_string_reconstruct):
54417         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54418         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54419         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54420         (re_string_context_at, re_string_peek_byte_case):
54421         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54422         is defined, since we now use prototypes always.
54423
54424         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54425         C89 or better.  All uses removed.
54426
54427 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54428
54429         * config/srclist.txt: Add glibc bugs 1220-1227.
54430
54431 2005-08-20  Jim Meyering  <jim@meyering.net>
54432
54433         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54434         of unused local, dfa.
54435
54436 2005-08-20  Bruno Haible  <bruno@clisp.org>
54437
54438         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54439
54440 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54443         (re_node_set_insert_last, re_dfa_add_node):
54444         Rename local variables to avoid GCC shadowing warnings.
54445
54446 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54447
54448         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54449         [defined lint]: Suppress bogus uninitialized-variable warnings.
54450
54451         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54452         and let the caller return REG_ESPACE if out of space.  This
54453         removes an uninitialied-variable warning with GCC 4.0.1, and also
54454         avoids taking the address of a local variable.  All callers
54455         changed.
54456
54457 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54458
54459         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54460         $LIBCSRC/posix/regexec.c.
54461         Add glibc bug 1217 for regcomp.c.
54462
54463 2005-08-19  Jim Meyering  <jim@meyering.net>
54464
54465         * lib/regexec.c (proceed_next_node): Redo local variables to
54466         avoid GCC shadowing warnings.
54467
54468 2005-08-18  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/strstr.c (strstr): Fix return value in multibyte case.
54471         * lib/strcasestr.c (strcasestr): Likewise.
54472
54473 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54474
54475         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54476
54477 2005-08-17  Jim Meyering  <jim@meyering.net>
54478
54479         Make the %s format (seconds since the epoch) work for a negative
54480         number and when used with a zero-padded field width, e.g. %015s.
54481
54482         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54483         label so that it precedes the code to set `digits'.  Otherwise,
54484         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54485         print `00-22'.  Now, it prints `-0022', as it should.
54486
54487 2005-08-17  Bruno Haible  <bruno@clisp.org>
54488
54489         * modules/strstr (Files): Add m4/mbrtowc.m4.
54490         (Depends-on): Add mbuiter.
54491
54492 2005-08-17  Bruno Haible  <bruno@clisp.org>
54493
54494         * modules/strcasestr: New file.
54495         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54496         strcasestr.
54497
54498 2005-08-17  Bruno Haible  <bruno@clisp.org>
54499
54500         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54501
54502 2005-08-17  Bruno Haible  <bruno@clisp.org>
54503
54504         * modules/mbuiter: New file.
54505         * MODULES.html.sh (Extended multibyte and wide character utilities):
54506         Add mbuiter.
54507
54508 2005-08-17  Bruno Haible  <bruno@clisp.org>
54509
54510         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54511         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54512
54513 2005-08-17  Bruno Haible  <bruno@clisp.org>
54514
54515         * m4/strcasestr.m4: New file.
54516
54517 2005-08-17  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54520         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54521
54522 2005-08-17  Bruno Haible  <bruno@clisp.org>
54523
54524         * lib/strcasestr.h: New file.
54525         * lib/strcasestr.c: New file.
54526
54527 2005-08-17  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/strcasecmp.c: Use mbuiter.h.
54530
54531 2005-08-17  Bruno Haible  <bruno@clisp.org>
54532
54533         * lib/mbuiter.h: New file.
54534
54535 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54538         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54539         and gl_GETOPT are both invoked via different paths (as happens
54540         with GNU tar CVS because it uses both argp and getopt), the former
54541         wins.
54542
54543 2005-08-16  Bruno Haible  <bruno@clisp.org>
54544
54545         * modules/tls: New file.
54546         * MODULES.html.sh (Multithreading): Add tls.
54547
54548 2005-08-16  Bruno Haible  <bruno@clisp.org>
54549
54550         * modules/strnlen1: New file.
54551         * MODULES.html.sh (String handling): Add strnlen1.
54552
54553 2005-08-16  Bruno Haible  <bruno@clisp.org>
54554
54555         * modules/strcase (Files): Add m4/mbrtowc.m4.
54556         (Depends-on): Add strnlen1, mbchar.
54557
54558 2005-08-16  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/mbiter: New file.
54561         * MODULES.html.sh (Extended multibyte and wide character utilities):
54562         Add mbiter.
54563
54564 2005-08-16  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/mbfile: New file.
54567         * MODULES.html.sh (Extended multibyte and wide character utilities):
54568         Add mbfile.
54569
54570 2005-08-16  Bruno Haible  <bruno@clisp.org>
54571
54572         * modules/mbchar: New file.
54573         * MODULES.html.sh (Extended multibyte and wide character utilities):
54574         New section.
54575
54576 2005-08-16  Bruno Haible  <bruno@clisp.org>
54577
54578         * m4/tls.m4: New file, from GNU gettext.
54579
54580 2005-08-16  Bruno Haible  <bruno@clisp.org>
54581
54582         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54583         always.
54584         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54585
54586 2005-08-16  Bruno Haible  <bruno@clisp.org>
54587
54588         * m4/mbiter.m4: New file.
54589
54590 2005-08-16  Bruno Haible  <bruno@clisp.org>
54591
54592         * m4/mbfile.m4: New file.
54593
54594 2005-08-16  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/mbchar.m4: New file.
54597
54598 2005-08-16  Bruno Haible  <bruno@clisp.org>
54599
54600         * lib/tls.h: New file, from GNU gettext.
54601         * lib/tls.c: New file, from GNU gettext.
54602
54603 2005-08-16  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/strnlen1.h: New file.
54606         * lib/strnlen1.c: New file.
54607
54608 2005-08-16  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54611         (mbi_init): Update.
54612         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54613         NUL byte, not after it.
54614
54615 2005-08-16  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/strcase.h (strcasecmp): Add note in comments.
54618         * lib/strncasecmp.c: Use code from strcasecmp.c.
54619         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54620         (strcasecmp): Work correctly in multibyte locales.
54621
54622 2005-08-16  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/mbiter.h: New file.
54625
54626 2005-08-16  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/mbfile.h: New file.
54629
54630 2005-08-16  Bruno Haible  <bruno@clisp.org>
54631
54632         * lib/mbchar.h: New file.
54633         * lib/mbchar.c: New file.
54634
54635 2005-08-16  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54638         the valid ones. Makes the comparison operations transitive:
54639         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54640         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54641
54642 2005-08-15  Simon Josefsson  <jas@extundo.com>
54643
54644         * modules/ssize_t (License): Change to 'unlimited'.
54645
54646         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54647
54648 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54651         Add comments for each pending glibc patch.
54652
54653 2005-08-15  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54656         __cplusplus is defined.
54657
54658 2005-08-14  Jim Meyering  <jim@meyering.net>
54659
54660         Sync from coreutils.
54661
54662         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54663         Use the hash-table-based cycle-detection code not just when
54664         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54665         Reported by James Youngman in
54666         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54667         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54668         FTS_TIGHT_CYCLE_CHECK.
54669         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54670         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54671         once again.
54672         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54673         * lib/fts.c (fd_safer): Remove decl.
54674         Include fcntl--.h rather than unistd-safer.h
54675         (fts_safe_changedir): Don't call fd_safer; no longer needed
54676         now that we include fcntl--.h.
54677
54678 2005-08-12  Simon Josefsson  <jas@extundo.com>
54679
54680         * modules/getndelim2: Use ssize_t module.
54681         * modules/getnline: Likewise.
54682         * modules/safe-read: Likewise.
54683         * modules/xreadlink: Likewise.
54684
54685         * modules/ssize_t: New file.
54686
54687 2005-08-12  Simon Josefsson  <jas@extundo.com>
54688
54689         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54690
54691 2005-08-12  Simon Josefsson  <jas@extundo.com>
54692
54693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54694         ssize_t.
54695
54696 2005-08-12  Simon Josefsson  <jas@extundo.com>
54697
54698         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54699         readline, getdelim and check_version.
54700         (Support for systems lacking ISO C 99: Sizes of integer types):
54701         Add size_max.
54702
54703 2005-08-12  Bruno Haible  <bruno@clisp.org>
54704
54705         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54706
54707 2005-08-11  Simon Josefsson  <jas@extundo.com>
54708
54709         * modules/readline: New file.
54710
54711         * modules/strnlen (Files): Add strnlen.h.
54712
54713 2005-08-11  Simon Josefsson  <jas@extundo.com>
54714
54715         * m4/readline.m4: New file.
54716
54717 2005-08-11  Simon Josefsson  <jas@extundo.com>
54718
54719         * lib/readline.h, readline.c: New file.
54720
54721 2005-08-11  Simon Josefsson  <jas@extundo.com>
54722
54723         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54724         gl_AVOID.
54725
54726 2005-08-11  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54729
54730 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54731
54732         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54733
54734 2005-08-10  Simon Josefsson  <jas@extundo.com>
54735
54736         * tests/test-iconvme.c: New file.
54737
54738 2005-08-10  Simon Josefsson  <jas@extundo.com>
54739
54740         * m4/strnlen.m4: New file.
54741
54742         * m4/strndup.m4: Don't check for strnlen declaration, done in
54743         strnlen.m4.
54744
54745 2005-08-10  Simon Josefsson  <jas@extundo.com>
54746
54747         * lib/strndup.c: Use strnlen.h.
54748
54749         * lib/strnlen.h: New file.
54750
54751 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54752
54753         * README: Typos.
54754
54755 2005-08-02  Simon Josefsson  <jas@extundo.com>
54756
54757         * modules/readline: New file.
54758
54759 2005-08-02  Simon Josefsson  <jas@extundo.com>
54760
54761         * modules/getdelim: New file.
54762
54763         * modules/getline: Rewrite, don't use getndelim2.
54764
54765 2005-08-02  Simon Josefsson  <jas@extundo.com>
54766
54767         * m4/getline.m4: Separate out getdelim stuff into separate module.
54768
54769         * m4/getdelim.m4: New file.
54770
54771 2005-08-02  Simon Josefsson  <jas@extundo.com>
54772
54773         * lib/getline.h, getline.c: Rewrite.
54774
54775         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54776
54777 2005-07-31  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/lock.h (gl_lock_initializer): New macro.
54780         (gl_lock_define_initialized): Use it.
54781         (gl_rwlock_initializer): New macro.
54782         (gl_rwlock_define_initialized): Use it.
54783         (gl_recursive_lock_initializer): New macro.
54784         (gl_recursive_lock_define_initialized): Use it.
54785
54786 2005-07-30  Karl Berry  <karl@gnu.org>
54787
54788         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54789         Report from Ben Pfaff, regarding getopt.
54790
54791 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54794         normal way.
54795         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54796         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54797         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54798         (gl_GETOPT): Use the new macros.  Most of the implementation
54799         is moved to the new macros.  This is for programs like Emacs
54800         that don't want all the functionality of gl_GETOPT.
54801
54802 2005-07-26  Bruno Haible  <bruno@clisp.org>
54803
54804         * m4/lock.m4: Update from GNU gettext.
54805
54806 2005-07-26  Bruno Haible  <bruno@clisp.org>
54807
54808         * lib/lock.h: Update from GNU gettext.
54809         * lib/lock.c: Update from GNU gettext.
54810
54811 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54812
54813         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54814         obsolescent AC_TRY_RUN.  Include the default includes files, for
54815         'exit'.
54816
54817 2005-07-24  Bruno Haible  <bruno@clisp.org>
54818
54819         * modules/visibility: New file.
54820         * MODULES.html.sh (Misc): Add visibility.
54821
54822 2005-07-24  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/visibility.m4: New file.
54825
54826 2005-07-24  Bruno Haible  <bruno@clisp.org>
54827
54828         * doc/visibility.texi: New file.
54829
54830 2005-07-22  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54833         $(ALLOCA_H), redundant through BUILT_SOURCES.
54834         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54835         redundant through BUILT_SOURCES.
54836         * modules/byteswap (Makefile.am): Remove explicit dependency on
54837         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54838         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54839         $(FNMATCH_H), redundant through BUILT_SOURCES.
54840         * modules/getopt (Makefile.am): Remove explicit dependency on
54841         $(GETOPT_H), redundant through BUILT_SOURCES.
54842         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54843         redundant through BUILT_SOURCES.
54844         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54845         redundant through BUILT_SOURCES.
54846         * modules/stdbool (Makefile.am): Remove explicit dependency on
54847         $(STDBOOL_H), redundant through BUILT_SOURCES.
54848         * modules/stdint (Makefile.am): Remove explicit dependency on
54849         $(STDINT_H), redundant through BUILT_SOURCES.
54850         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54851         Remove explicit dependency on $(SYSEXITS_H).
54852         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54853
54854 2005-07-18  Simon Josefsson  <jas@extundo.com>
54855
54856         * lib/check-version.c (check_version): Accept identical versions too.
54857
54858 2005-07-18  Bruno Haible  <bruno@clisp.org>
54859
54860         * modules/lock: New file.
54861         * MODULES.html.sh (Multithreading): New section.
54862
54863 2005-07-18  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/lock.m4: New file, from GNU gettext.
54866
54867 2005-07-18  Bruno Haible  <bruno@clisp.org>
54868
54869         * lib/lock.h: New file, from GNU gettext.
54870         * lib/lock.c: New file, from GNU gettext.
54871
54872 2005-07-18  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/lock.h (gl_once_t): New type.
54875         (gl_once_define, gl_once): New macros.
54876         * lib/lock.c (fresh_once): New variable.
54877         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
54878         functions.
54879
54880 2005-07-16  Simon Josefsson  <jas@extundo.com>
54881
54882         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
54883         workaround, suggested by Bruno.
54884
54885 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * modules/xalloc (Depends-on): Add xalloc-die.
54888         * modules/xvasprintf (Depends-on): Add xalloc-die.
54889
54890 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54891
54892         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
54893         with a minor change.
54894
54895 2005-07-15  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
54898         When using lib/poll.c, define poll as rpl_poll.
54899
54900 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
54901
54902         * modules/argp (Depends-on): Remove unlocked-io.
54903
54904 2005-07-14  Derek Price  <derek@ximbiot.com>
54905
54906         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
54907         for glob symlink bug.
54908
54909 2005-07-14  Bruno Haible  <bruno@clisp.org>
54910
54911         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
54912         Instead, test for *_unlocked function declarations directly.
54913
54914 2005-07-11  Simon Josefsson  <jas@extundo.com>
54915
54916         * modules/size_max: New file.
54917
54918         * modules/xsize: Depend on size_max module for size_max.m4.
54919
54920 2005-07-11  Simon Josefsson  <jas@extundo.com>
54921
54922         * lib/size_max.h: New file.
54923
54924 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
54925
54926         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
54927         copyright symbol and the year.
54928         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
54929         (version_etc_va): Use parameterized copyright notice.
54930         Reword to conform to the current GNU coding standards.
54931
54932 2005-07-11  Karl Berry  <karl@gnu.org>
54933
54934         * doc/gnulib.texi (Quoting): new node.
54935         (Initial import): more info, from Patrice.
54936
54937 2005-07-11  Bruno Haible  <bruno@clisp.org>
54938
54939         * gnulib-tool (func_usage): Document option --avoid.
54940         (Command line options): Handle --avoid.
54941         (func_acceptable): New function.
54942         (func_modules_transitive_closure): Use it.
54943
54944 2005-07-11  Bruno Haible  <bruno@clisp.org>
54945
54946         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
54947         Reported by Jim Meyering.
54948
54949 2005-07-10  Bruno Haible  <bruno@clisp.org>
54950
54951         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
54952         Needed when size_t is smaller than 'unsigned int'.
54953         Reported by Paul Eggert.
54954
54955 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54956
54957         * modules/argp (Depends-on): Add unlocked-io
54958
54959 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54960
54961         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
54962         block of defines.
54963
54964 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54965
54966         * config/srclist.txt: Comment out regcomp.c, since we have a porting
54967         fix now.
54968
54969 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
54970         and Paul Eggert  <eggert@cs.ucla.edu>
54971
54972         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
54973         in wint_t, not wchar_t.  Remove now-unnecessary cast.
54974
54975 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * modules/regex (Files): Add lib/regex_internal.c,
54978         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
54979         (Depends-on): Add extensions.
54980         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
54981
54982 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54983
54984         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
54985         pathconf.
54986         * m4/same.m4 (gl_SAME): Likewise.
54987         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
54988
54989         * m4/regex.m4: Adjust to new libc regex implementation.
54990         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
54991         all the .c and .h parts of (the new) regex.
54992         Quote the m4 stuff better.
54993         Check for RE_ICASE bug of old gnulib.
54994         Check for REG_STARTEND of recent libc.
54995         Rename local variables from jm_* to gl_*.
54996         Quote operand of "test -f".
54997         Say "recent enough" version of libc, not "version 2".
54998         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
54999         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55000         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55001         Remove check for btowc, isascii.
55002         Require AM_LANGINFO_CODESET.
55003
55004 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55005
55006         * lib/regex.c, regex.h: Sync from libc.
55007         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55008         * lib/regexec.c:
55009         New files, synced from libc, except that regex_internal.h
55010         currently has a small porting fix.
55011
55012 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55015         regex_internal.c, regexec.c.
55016         Add regex_internal.h too, but as a comment, since the libc version
55017         is currently broken in gnulib mode.
55018
55019 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55020
55021         Support programs like Emacs that use gnulib but not gettext.
55022         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55023         * modules/gettext-h: New file.
55024         * modules/gettext (Files): Remove lib/gettext.h.
55025         (Depends-on): Add gettext-h.
55026         (Makefile.am): Remove lib_SOURCES.
55027         * modules/argmatch, modules/c-stack, modules/closeout:
55028         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55029         * modules/execute, modules/file-type, modules/getaddrinfo:
55030         * modules/getopt, modules/human, modules/javacomp:
55031         * modules/javaexec, modules/mkdir-p, modules/obstack:
55032         * modules/openat, modules/pagealign_alloc, modules/pipe:
55033         * modules/quotearg, modules/regex, modules/rpmatch:
55034         * modules/unicodeio, modules/userspec, modules/version-etc:
55035         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55036         * modules/xsetenv:
55037         Depend on gettext-h, not gettext.
55038
55039 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * gnulib-tool (func_import): Add support for 'public domain' license.
55042         * modules/alloca, modules/atexit, modules/memmove:
55043         Now public domain, not GPL.
55044         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55045         * modules/realloc, modules/strerror, modules/strtod:
55046         Now LGPL, not GPL.
55047
55048 2005-07-05  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55051         autoconf CVS. Needed for mingw.
55052
55053 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55054
55055         Remove the dependency of the strftime module on the tzset module.
55056         * modules/strftime (Depends-on): Remove dependency on tzset.
55057
55058 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55059
55060         Remove the dependency of the strftime module on the tzset module.
55061         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55062         gl_FUNC_TZSET_CLOBBER.
55063
55064 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         Remove the dependency of the strftime module on the tzset module.
55067         * lib/strftime.c (my_strftime)
55068         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55069         Copy the input structure, to work around some of the bug with
55070         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55071         Solaris releases, you should also use the tzset module, but we won't
55072         require it as a dependency any more since we don't want LGPLed code
55073         to depend on GPLed code.
55074
55075 2005-07-02  Jim Meyering  <jim@meyering.net>
55076
55077         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55078         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55079         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55080         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55081
55082 2005-07-02  Jim Meyering  <jim@meyering.net>
55083
55084         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55085
55086 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55087
55088         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55089         declares only 'struct timespec;' (!).
55090
55091 2005-07-01  Jim Meyering  <jim@meyering.net>
55092
55093         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55094         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55095         * lib/save-cwd.c, tempname.c:
55096         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55097         and don't include <sys/file.h>).
55098
55099 2005-06-29  Jim Meyering  <jim@meyering.net>
55100
55101         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55102         type name.  Use the variable name instead.
55103         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55104         Likewise.
55105
55106 2005-06-28  Simon Josefsson  <jas@extundo.com>
55107
55108         * modules/check-version (Files): Add check-version.m4.
55109
55110 2005-06-28  Simon Josefsson  <jas@extundo.com>
55111
55112         * m4/check-version.m4: New file, suggested by Jim Meyering
55113         <jim@meyering.net>.
55114
55115 2005-06-28  Simon Josefsson  <jas@extundo.com>
55116
55117         * lib/check-version.h, lib/check-version.c: New files.
55118
55119 2005-06-28  Simon Josefsson  <jas@extundo.com>
55120
55121         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55122         collision with global variable.  Better indentation.  Don't
55123         increment buffer pointer beyond buffer end.  Based on comments
55124         from Paul Eggert <eggert@cs.ucla.edu>.
55125
55126         * lib/base64.h: Indent.
55127
55128 2005-06-28  Simon Josefsson  <jas@extundo.com>
55129
55130         * doc/gnulib.texi (Library version handling): New section.
55131
55132 2005-06-28  Jim Meyering  <jim@meyering.net>
55133
55134         * check-module (find_included_lib_files): Hard-code another
55135         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55136         but modules/fts-lgpl (correctly) does not list those files.
55137
55138         * modules/canonicalize (Files): Add lib/pathmax.h.
55139
55140 2005-06-25  Simon Josefsson  <jas@extundo.com>
55141
55142         * modules/check-version: New file.
55143
55144 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55147         initializer of struct addrinfo, as an indication that we don't
55148         care how many members the structure has.
55149
55150 2005-06-24  Derek Price  <derek@ximbiot.com>
55151         and Bruno Haible  <bruno@clisp.org>
55152
55153         Remove stat module & update lstat.
55154         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55155         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55156         * m4/stat.m4: Remove this file.
55157
55158 2005-06-24  Derek Price  <derek@ximbiot.com>
55159         and Bruno Haible  <bruno@clisp.org>
55160
55161         Remove stat module & update lstat.
55162         * lib/stat.c: Remove this file...
55163         (slash_aware_lstat): ...moving this content and its support...
55164         * lib/lstat.c (rpl_lstat): ...into here.
55165         * lib/lstat.h: New file.
55166
55167 2005-06-24  Derek Price  <derek@ximbiot.com>
55168         and Bruno Haible  <bruno@clisp.org>
55169
55170         Remove stat module & update lstat.
55171         * config/srclist.txt (libc sources): Remove stat.
55172
55173 2005-06-24  Derek Price  <derek@ximbiot.com>
55174         and Bruno Haible  <bruno@clisp.org>
55175
55176         Remove stat module & update lstat.
55177         * MODULES.html.sh (stat): Remove.
55178         * MODULES.html: Regenerated.
55179         * modules/lstat (Description): Correct function name.
55180         (Files): Add "lstat.h".
55181         (Depends-on): Remove stat, add xalloc, stat-macros.
55182         * modules/stat: Remove this file.
55183         (Include): Add "lstat.h", remove <sys/stat.h>.
55184
55185 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55188         (ranged_convert): Don't save conversion in a temporary struct.
55189         This causes a warning with GCC 4.0.0, and anyway in the typical
55190         case it's not worth the extra 100 bytes or so of code.
55191         (ranged_convert, __mktime_internal): When calling a function via a
55192         pointer P, use P () rather than (*P) (), as we now assume C89 or
55193         better.
55194
55195 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55198         "who -r" failed to give output.  Problem reported by Tim Waugh.
55199
55200         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55201         (xcalloc): Use it to avoid needless tests.
55202         Problem reported by Jim Meyering.
55203
55204 2005-06-20  Derek Price  <derek@ximbiot.com>
55205
55206         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55207         unnecessary for Autoconfs > 2.59c.
55208
55209 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55210
55211         * lib/argp.h (__option_is_short): Check upper limit of
55212         __key. Isprint() requires its argument to have the value
55213         of an unsigned char or EOF.
55214
55215 2005-06-16  Jim Meyering  <jim@meyering.net>
55216
55217         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55218         when either N or S is zero.
55219
55220 2005-06-16  Derek Price  <derek@ximbiot.com>
55221
55222         * m4/bison.m4: Declare YACC & YFLAGS precious.
55223
55224 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55227         multibyte string or pattern, fall back on unibyte matching.
55228         Problem reported by James Youngman.
55229
55230 2005-06-08  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/csharpcomp: New file.
55233         * MODULES.html.sh (C#): Add csharpcomp.
55234
55235 2005-06-08  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/csharpcomp.m4: New file, from GNU gettext.
55238
55239 2005-06-08  Bruno Haible  <bruno@clisp.org>
55240
55241         * lib/csharpcomp.h: New file, from GNU gettext.
55242         * lib/csharpcomp.c: New file, from GNU gettext.
55243         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55244
55245 2005-06-08  Bruno Haible  <bruno@clisp.org>
55246
55247         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55248         warning on mingw.
55249
55250 2005-06-07  Derek Price  <derek@ximbiot.com>
55251
55252         Sync from CVS.
55253         * lib/glob_.h: Indent nested #ifdef.
55254
55255 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         Sync from coreutils.
55258         Use "file name" when talking about file names, instead of "filename"
55259         or "path", as per the GNU coding standards.
55260         * lib/mkdir-p.c: Renamed from makepath.c.
55261         (make_dir_parents): Renamed from make_path.  All callers changed.
55262         * lib/mkdir-p.h: Likewise.  All includers changed.
55263         * lib/filenamecat.c: Renamed from path-concat.c.
55264         (file_name_concat): Renamed from path_concat.  All callers changed.
55265         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55266         * lib/filenamecat.h: Likewise.  All includers changed.
55267         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55268         in comments or local variable names.
55269         * lib/basename.c: Likewise.
55270         * lib/canonicalize.c, canonicalize.h: Likewise.
55271         * lib/dirname.c, dirname.h: Likewise.
55272         * lib/euidaccess.c: Likewise.
55273         * lib/exclude.c: Likewise
55274         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55275         * lib/fsusage.c, fsuage.h: Likewise.
55276         * lib/fts.c, fts_.h: Likewise.
55277         * lib/getcwd.c: Likewise.
55278         * lib/getloadavg.c: Likewise.
55279         * lib/mkstemp.c: Likewise.
55280         * lib/mountlist.c, mountlist.h: Likewise.
55281         * lib/openat.c, openat.h: Likewise.
55282         * lib/readlink-stub.c: Likewise.
55283         * lib/readutmp.c, readutmp.h: Likewise.
55284         * lib/rename.c: Likewise.
55285         * lib/rmdir.c: Likewise.
55286         * lib/same.c: Likewise.
55287         * lib/savedir.c: Likewise.
55288         * lib/stripslash.c: Likewise.
55289         * lib/tempname.c: Likewise.
55290         * lib/xreadlink.c: Likewise.
55291         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55292         All uses changed.
55293         * lib/exclude.h: Likewise.
55294
55295         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55296         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55297         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55298         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55299         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55300         files have been getting away with it for years (MORE/BSD 4.3
55301         is extinct now).
55302         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55303         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55304
55305         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55306         Define to 256, not 255, as per modern POSIX.
55307
55308 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         Sync from coreutils.
55311         Use "file name" when talking about file names, instead of "filename"
55312         or "path", as per the GNU coding standards.
55313         * MODULES.html.sh: mkdir-p renamed from makepath.
55314         filenamecat renamed from path-concat.
55315         * modules/filenamecat: Renamed from modules/path-concat.
55316         (Files): filenamecat.h and filenamecat.c renamed from
55317         path-concat.h and path-concat.c.
55318         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55319         (Include): filenamecat.h, not path-concat.h.
55320         * modules/mkdir-p: Renamed from modules/makepath.
55321         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55322         makepath.c.
55323         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55324         (Include): mkdir-p.h, not makepath.h.
55325
55326 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55327
55328         Sync from coreutils.
55329         * m4/mkdir-p.m4: Renamed from makepath.m4.
55330         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55331         Rename files from makepath.c to mkdir-p.c, and from
55332         makepath.h to mkdir-p.h.
55333         * m4/filenamecat.m4: Renamed from path-concat.m4.
55334         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55335         Rename files from path-concat.c to filenamecat.c,
55336         and from path-concat.h to filenamecat.h.
55337         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55338         "file name" in local variables or comments.
55339         * m4/rename.m4: Likewise.
55340
55341 2005-06-01  Bruno Haible  <bruno@clisp.org>
55342
55343         * modules/csharpexec: New file.
55344         * MODULES.html.sh (C#): New section.
55345
55346 2005-06-01  Bruno Haible  <bruno@clisp.org>
55347
55348         * m4/csharp.m4: New file, from GNU gettext.
55349         * m4/csharpexec.m4: New file, from GNU gettext.
55350
55351 2005-06-01  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/csharpexec.h: New file, from GNU gettext.
55354         * lib/csharpexec.c: New file, from GNU gettext.
55355         * lib/csharpexec.sh.in: New file, from GNU gettext.
55356
55357 2005-05-31  Derek Price  <derek@ximbiot.com>
55358             Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         Sync from cvs.
55361         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55362
55363 2005-05-31  Derek Price  <derek@ximbiot.com>
55364             Paul Eggert  <eggert@cs.ucla.edu>
55365
55366         Sync from cvs.
55367         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55368
55369 2005-05-29  Derek Price  <derek@ximbiot.com>
55370
55371         * config/srclist.txt (glob_.h, glob.c): Add these files.
55372
55373 2005-05-29  Derek Price  <derek@ximbiot.com>
55374
55375         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55376         * modules/glob: New file.
55377         * modules/getlogin_r: Add link to POSIX spec in description.
55378
55379 2005-05-29  Derek Price  <derek@ximbiot.com>
55380             Paul Eggert  <eggert@cs.ucla.edu>
55381
55382         * m4/glob.m4: New file.
55383
55384 2005-05-29  Derek Price  <derek@ximbiot.com>
55385             Paul Eggert  <eggert@cs.ucla.edu>
55386
55387         * lib/glob_.h, lib/glob.c: New files.
55388
55389 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55392         * modules/fts-lgpl (Depends-on): Remove gettext.
55393
55394 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55397         and don't require gt_INTTYPES_PRI.
55398
55399 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55402
55403         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55404         the configuration hassle isn't worth it.
55405         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55406         (LONGEST_MODIFIER, PRIuMAX): Remove.
55407
55408 2005-05-27  Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55411
55412 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55413
55414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55415         _POSIX_PTHREAD_SEMANTICS for Solaris.
55416
55417 2005-05-25  Derek Price  <derek@ximbiot.com>
55418
55419         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55420
55421 2005-05-25  Derek Price  <derek@ximbiot.com>
55422             Paul Eggert  <eggert@cs.ucla.edu>
55423
55424         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55425         * lib/getlogin_r.c, getlogin_r.h: New files.
55426
55427 2005-05-25  Bruno Haible  <bruno@clisp.org>
55428             Derek Price  <derek@ximbiot.com>
55429
55430         * lib/getlogin_r.h: Simplify API documentation.
55431
55432 2005-05-23  Derek Price  <derek@ximbiot.com>
55433
55434         * modules/minmax (Files): Add m4/minmax.m4.
55435         (configure.ac): Add gl_MINMAX.
55436
55437 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55438
55439         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55440         so that unistd-safer.h (GPL'ed code) need not be included.
55441
55442 2005-05-22  Bruno Haible  <bruno@clisp.org>
55443
55444         * m4/minmax.m4: New file.
55445         Based on a patch by Derek Price <derek@ximbiot.com>.
55446
55447 2005-05-22  Bruno Haible  <bruno@clisp.org>
55448
55449         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55450         (INT64_MIN): Fix definition.
55451         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55452
55453         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55454         NEED_SIGNED_INT_TYPES.
55455
55456         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55457         HAVE_SYSTEM_INTTYPES.
55458
55459 2005-05-22  Bruno Haible  <bruno@clisp.org>
55460
55461         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55462         Also include <sys/param.h> if it defines MIN, MAX.
55463         Based on a patch by Derek Price <derek@ximbiot.com>.
55464
55465 2005-05-21  Jim Meyering  <jim@meyering.net>
55466
55467         * modules/fts (Files): Add m4/inttypes-pri.m4.
55468         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55469
55470 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         New fts module.
55473         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55474         (setup_dir, free_dir): New functions.
55475         (enter_dir, leave_dir): Define trivial
55476         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55477         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55478         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55479         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55480         Move to fts-cycle.c.
55481         (fts_open): Use setup_dir.
55482         (fts_close): Use free_dir.
55483         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55484         This adds a label and some gotos, but the alternatives were messier.
55485         Check for memory allocation failure when entering a dir.
55486         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55487         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55488         (FTS): New member fts_cycle, that is a union that contains the
55489         old active_dir_ht and cycle_state.  All uses changed to mention
55490         fts_cycle.ht and fts_cycle.state.
55491         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55492         fts.c, with the following changes:
55493         (setup_dir, free_dir): New functions.
55494         (enter_dir): Now returns bool.  Return true if successful, false
55495         if memory exhausted.  All callers changed.
55496         Do not bother partly cleaning up on
55497         memory allocation failure; that is free_dir's job.
55498         However, free ad if hash_insert fails, to avoid memory leak.
55499         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55500         fts->fts_options to see which union member to use.
55501
55502 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55503
55504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55505         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55506
55507 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55510
55511 2005-05-20  Jim Meyering  <jim@meyering.net>
55512
55513         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55514         Now a macro, to pacify GCC.
55515
55516 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55517
55518         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55519         of -1.
55520
55521 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55522
55523         * lib/chown.c (rpl_chown): Return -1 on failure.
55524
55525 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55528         Don't check for stddef.h.
55529         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55530         don't use its results.
55531         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55532         since we include them unconditionally.  Don't require
55533         AM_STDBOOL_H, since stdbool is a prerequisite.
55534         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55535         since we assume C89 or better.
55536         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55537         as we don't use their results.
55538         Don't check for fchdir, memmove, memset, strrchr, as we use
55539         them unconditionally.
55540         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55541         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55542
55543 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55544
55545         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55546         Include <stddef.h> unconditionally, since we assume C89 now.
55547         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55548         * lib/fts.c: Include fts_.h first, to check interface.
55549         Do not include intprops.h; no longer needed.
55550         Include cycle-check.h and hash.h, since fts_.h no longer does.
55551         Remove unnecessary casts of closedir to void.
55552         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55553         decide whether to decrement nlinks.
55554         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55555         (FTS): Use struct hash_table * instead of Hash_table, so that
55556         we no longer need to include hash.h here.
55557
55558 2005-05-18  Jim Meyering  <jim@meyering.net>
55559
55560         * modules/dirfd (License): Change to LGPL.  Most of the code
55561         is already in the public domain.
55562
55563 2005-05-18  Jim Meyering  <jim@meyering.net>
55564
55565         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55566         Reported by Yoann Vandoorselaere.
55567
55568 2005-05-17  Jim Meyering  <jim@meyering.net>
55569
55570         * m4/fts.m4: New file, from coreutils.
55571
55572 2005-05-17  Jim Meyering  <jim@meyering.net>
55573
55574         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55575
55576 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         Sync from coreutils.
55579         * m4/unlinkdir.m4: New file.
55580
55581 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55582
55583         Sync from coreutils.
55584         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55585         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55586         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55587         White space changes only.
55588         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55589         special.
55590         * lib/yesno.c: Include getline.h, not ctype.h.
55591         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55592         Use getline to remove arbitrary restriction on response length.
55593
55594 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55595
55596         * config/srclist-update: Spell out "Street" in FSF postal
55597         mail address; this is the style the FSF seems to prefer.
55598
55599         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55600         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55601         this updates FSF postal mail address.
55602
55603         Sync from coreutils.
55604         * modules/unlinkdir: New file.
55605         * modules/yesno (Depends-on): Add getline.
55606         * MODULES.html.sh (File system functions): Add unlinkdir.
55607
55608 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55609
55610         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55611         lib/strsep.h:
55612         Change the initial comment to refer to GPL, not LGPL.
55613         gnulib-tool will change it to LGPL as needed.
55614
55615         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55616         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55617         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55618         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55619         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55620         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55621         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55622         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55623         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55624         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55625         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55626         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55627         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55628         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55629         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55630         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55631         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55632         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55633         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55634         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55635         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55636         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55637         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55638         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55639         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55640         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55641         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55642         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55643         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55644         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55645         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55646         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55647         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55648         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55649         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55650         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55651         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55652         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55653         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55654         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55655         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55656         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55657         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55658         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55659         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55660         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55661         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55662         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55663         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55664         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55665         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55666         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55667         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55668         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55669         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55670         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55671         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55672         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55673         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55674         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55675         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55676         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55677         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55678         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55679         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55680         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55681         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55682         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55683         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55684         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55685         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55686         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55687         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55688         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55689         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55690         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55691         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55692         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55693         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55694         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55695         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55696         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55697         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55698         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55699         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55700         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55701         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55702         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55703         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55704         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55705         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55706         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55707         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55708         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55709         lib/yesno.c, lib/yesno.h:
55710         Update FSF postal mail address.
55711
55712 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55713
55714         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55715         tests/test-memmem.c, tests/test-stpncpy.c:
55716         Update FSF postal mail address.
55717
55718 2005-05-13  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55721         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55722         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55723         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55724         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55725         Add support for 64-bit integers in the MSVC compiler.
55726
55727 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55728
55729         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55730
55731 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55732
55733         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55734
55735 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * doc/getdate.texi (General date syntax): Don't say that date
55738         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55739         Problem reported by Nic Ferrier.
55740
55741 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55742
55743         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55744         specified in ai_socktype. Fix invalid ai_protocol
55745         check. ai_protocol is usually set to 0 or depending on
55746         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55747         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55748         ai_socktype / ai_protocol in the returned addrinfo structure.
55749
55750 2005-05-10  Simon Josefsson  <jas@extundo.com>
55751
55752         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55753         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55754
55755 2005-05-10  Karl Berry  <karl@gnu.org>
55756
55757         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55758         (from http://www.gnu.org/licenses).
55759         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55760         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55761         fdl.texi suffices.
55762
55763 2005-05-10  Karl Berry  <karl@gnu.org>
55764
55765         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55766         (COPYING.DOC): remove.
55767
55768         * config/srclist-update: new FSF address.
55769
55770 2005-05-10  Derek Price  <derek@ximbiot.com>
55771
55772         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55773         possible.
55774
55775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55776             Bruno Haible  <bruno@clisp.org>
55777
55778         * modules/inet_ntop: New file.
55779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55780         inet_ntop.
55781
55782 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55783             Bruno Haible  <bruno@clisp.org>
55784
55785         * m4/inet_ntop.m4: New file.
55786
55787 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55788             Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/inet_ntop.h: New file.
55791         * lib/inet_ntop.c: New file, from glibc with modifications.
55792
55793 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         * modules/time_r (License): Change to LGPL.
55796         * modules/extensions (License): Change to LGPL.  Actually,
55797         the license is more permissive than that, but currently gnulib-tool
55798         doesn't know how to handle more-permissive licenses.
55799
55800         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55801         Problem reported by Dave Love.
55802
55803 2005-05-08  Jim Meyering  <jim@meyering.net>
55804
55805         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55806         blank.
55807
55808 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55809
55810         * modules/argmatch (Depends-on): Add stdbool.
55811         * modules/backupfile (Depends-on): Likewise.
55812         * modules/chdir-long (Depends-on): Likewise.
55813         * modules/closeout (Depends-on): Likewise.
55814         * modules/cycle-check (Depends-on): Likewise.
55815         * modules/dirname (Depends-on): Likewise.
55816         * modules/fnmatch (Depends-on): Likewise.
55817         * modules/fsusage (Depends-on): Likewise.
55818         * modules/fwriteerror (Depends-on): Likewise.
55819         * modules/getcwd (Depends-on): Likewise.
55820         * modules/getloadavg (Depends-on): Likewise.
55821         * modules/hard-locale (Depends-on): Likewise.
55822         * modules/makepath (Depends-on): Likewise.
55823         * modules/mountlist (Depends-on): Likewise.
55824         * modules/nanosleep (Depends-on): Likewise.
55825         * modules/posixtm (Depends-on): Likewise.
55826         * modules/quotearg (Depends-on): Likewise.
55827         * modules/readtokens (Depends-on): Likewise.
55828         * modules/readtokens0 (Depends-on): Likewise.
55829         * modules/readutmp (Depends-on): Likewise.
55830         * modules/save-cwd (Depends-on): Likewise.
55831         * modules/strftime (Depends-on): Likewise.
55832         * modules/userspec (Depends-on): Likewise.
55833         * modules/utimecmp (Depends-on): Likewise.
55834         * modules/xgetcwd (Depends-on): Likewise.
55835         * modules/xnanosleep (Depends-on): Likewise.
55836         * modules/xstrtod (Depends-on): Likewise.
55837         * modules/yesno (Depends-on): Likewise.
55838
55839 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55842         needless checks.
55843
55844 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         Merge from coreutils.  Among other things,
55847         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55848         * lib/fd-safer.c: New file.
55849         * lib/fcntl-safer.h, open-safer.c: Remove.
55850         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55851         * lib/dup-safer.c: Include unistd-safer.h first.
55852         Don't include errno.h.
55853         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55854         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55855         * lib/file-type.c: Rely on file-type.h change.
55856         * lib/getloadavg.c: Include unistd-safer.h.
55857         (getloadavg): Use safer open.
55858         * lib/getusershell.c: Include "stdio-safer.h".
55859         (getusershell): Use safer fopen.
55860         * lib/long-options.c (long_options): Use NULL rather than 0.
55861         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55862         'free'.
55863         * lib/modechange.c: Likewise.
55864         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55865         (MODE_DONE): New constant.
55866         (struct mode_change): Remove 'next' member.
55867         (make_node_op_equals): New function; like the old one of the
55868         same name, except it allocates an array.
55869         (mode_compile, mode_create_from_ref): Use it.
55870         (mode_compile): Allocate result as an array, not a linked list.
55871         Parse octal string ourself, so that we catch mistakes like "+0".
55872         (mode_adjust): Arg is an array, not a linked list.
55873         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55874         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55875         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55876         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
55877         Remove.  This is now stat-macros.h's job.
55878         (talloc): Remove.  All callers replaced by xalloc, so that
55879         our invokers don't have to worry about reporting memory failures.
55880         (make_node_op_equals): Remove.
55881         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55882         New constants.
55883         (struct mode_change): Moved here from modechange.h.
55884         (mode_append_entry): Remove.
55885         (mode_compile): Remove MASKED_OPS arg, since it encouraged
55886         apps to have incorrect behavior.  Use simpler algorithm for head
55887         and tail.  Don't futz with umask; that's now the job of mode_adjust.
55888         Detect more invalid usages rather than having somewhat-random behavior.
55889         Don't insert an "a=" action, as that leads to incorrect behavior.
55890         (mode_compile, mode_create_from_ref): Return NULL on error instead
55891         of an enum, since now there's only one way to have an error.  All
55892         callers changed.
55893         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
55894         at the correct time.  Simplify calculation of "+u" and its ilk.
55895         Don't mishandle "+X".
55896         (mode_free): Remove "register" and localize decls.
55897         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55898         (struct mode_change): Move to modechange.c; callers don't
55899         need to see this stuff.
55900         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
55901         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
55902         (mode_change, mode_adjust): Reflect the new signatures noted above.
55903         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
55904         that might redefine system include files.
55905         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
55906         (my_usleep): Use NULL rather than (void *) 0.
55907         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
55908         Use siginterrupt to specify that system calls should be interrupted.
55909         (rpl_nanosleep): Move initialization of suspended closer to call of
55910         my_usleep.
55911         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
55912         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
55913         (desirable_utmp_entry): New function.
55914         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
55915         using x2nrealloc, to simplify logic.
55916         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
55917         size calculation.  Do not assume utmp file is a regular file.
55918         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
55919         (READ_UTMP_CHECK_PIDS): New constant.
55920         * lib/save-cwd.c: Include unistd-safer.h.
55921         (save_cwd): Use fd_safer.
55922         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
55923         [!_LIBC] Include "stat-macros.h" instead.
55924         * lib/unistd-safer.h (fd_safer): New decl.
55925
55926 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         * modules/getloadavg (Depends-on): Add unistd-safer.
55929         * modules/getusershell (Depends-on): Add stdio-safer.
55930         * modules/lstat (Depends-on): Remove xalloc.
55931         * modules/mkstemp (Depends-on): Add stat-macros.
55932         * modules/modechange (Depends-on): Remove xstrtol.
55933         Add stat-macros, xalloc.
55934         * modules/save-cwd (Depends-on): Add unistd-safer.
55935         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
55936         * modules/unistd-safer (Files): Add lib/fd-safer.c
55937         (Makefile.am): Remove lib_SOURCES.
55938
55939         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
55940         Remove fcntl-safer; unistd-safer supersedes it.
55941
55942 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55943
55944         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
55945         AC_HEADER_STAT.
55946         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
55947         (gl_PREREQ_CHOWN): Remove.
55948         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
55949         it.  Don't require AC_HEADER_STAT.
55950         (gl_PREREQ_LSTAT): Remove.
55951         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
55952         Don't require AC_HEADER_STAT.
55953         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
55954         (gl_PREREQ_RMDIR): Remove.
55955         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
55956         mention stat-macros.h or AC_HEADER_STAT, since we'll make
55957         the stat-macros module a prerequisite.
55958         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
55959         * m4/filemode.m4 (gl_FILEMODE): Likewise.
55960         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
55961         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
55962         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
55963         variable names.
55964         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
55965         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
55966         variable prefixes.
55967         * m4/fcntl-safer.m4: Remove.
55968         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
55969         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
55970         Invoke gl_PREREQ_FD_SAFER.
55971         (gl_PREREQ_FD_SAFER): New macro.
55972         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
55973         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
55974         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
55975         Remove duplicate call to AC_LIBOBJ(readutmp).
55976         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
55977
55978         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
55979         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
55980
55981 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55982
55983         * MODULES.html.sh (Misc): Add byteswap.
55984
55985 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55986
55987         * modules/getcwd (Depends-on): Add extensions.
55988         * modules/openat (Depends-on): Likewise.
55989
55990 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55991
55992         * modules/byteswap: New file.
55993
55994 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55995
55996         * m4/byteswap.m4: New file.
55997
55998 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55999
56000         * lib/byteswap_.h: New file.
56001
56002 2005-04-25  Karl Berry  <karl@gnu.org>
56003
56004         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56005
56006 2005-04-25  Albert Chin  <china@thewrittenword.com>
56007
56008         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56009         Toolkit C bug.
56010
56011 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56012
56013         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56014         (func_ln_if_changed) Remove forcibly for no error message
56015         in case file does not exist.
56016
56017 2005-04-19  Simon Josefsson  <jas@extundo.com>
56018
56019         * gnulib-tool (Options): Make --symlink mean --symbolic.
56020
56021 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56022
56023         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56024
56025 2005-04-16  Simon Josefsson  <jas@extundo.com>
56026
56027         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56028
56029 2005-04-15  Simon Josefsson  <jas@extundo.com>
56030
56031         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56032
56033 2005-04-15  Simon Josefsson  <jas@extundo.com>
56034
56035         * gnulib-tool: Rename --symlink to --symbolic.
56036
56037 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56038
56039         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56040         symbolic links to files instead of copying/moving.  Add --aux-dir,
56041         specifying directory relative --dir where auxiliary build tools
56042         are placed.
56043
56044 2005-04-14  Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/allocsa (License): Change to LGPL.
56047         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56048
56049 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56050
56051         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56052         that "UTC +1 second" continues to work.  Problem reported
56053         by Dmitry V. Levin.
56054         (relunit_snumber): New rule.
56055         (relunit): Use it.
56056
56057 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * lib/getdate.y (universal_time_zone_table): New constant.
56060         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56061         universal_time_zone_table.
56062         (lookup_zone): Prefer universal_time_zone_table to
56063         local_time_zone_table, so that "GMT" time stamps are allowed in
56064         London during the summer.  Problem reported by Ian Abbott.
56065
56066 2005-04-12  Jim Meyering  <jim@meyering.net>
56067
56068         * lib/human.c (humblock): Set *options even when returning due to
56069         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56070         warning from gcc-4.
56071
56072 2005-04-09  Jim Meyering  <jim@meyering.net>
56073
56074         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56075         -Wuninitialized: initialize tm0.tm_year.
56076
56077 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56078
56079         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56080         count, since there's no maximum.  All uses changed.
56081         Add member dsts_seen.
56082         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56083         not being INT_MAX.
56084         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56085         Use pc_rels_seen to decide whther a date is absolute.
56086
56087         * lib/getdate.y (number): Don't overwrite year.
56088         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56089         check.
56090
56091 2005-04-02  Simon Josefsson  <jas@extundo.com>
56092
56093         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56094         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56095
56096 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56097
56098         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56099         where no absolute path name can be longer than PATH_MAX.
56100
56101 2005-03-27  Jim Meyering  <jim@meyering.net>
56102
56103         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56104
56105 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56108         "one's complement" -> "ones' complement" in comment, as per Knuth.
56109         "value of type" -> "type or expression" in comment.
56110         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56111
56112 2005-03-26  Jim Meyering  <jim@meyering.net>
56113
56114         Comment nits.
56115         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56116         Correct typos: s/or/of/.
56117
56118 2005-03-26  Jim Meyering  <jim@meyering.net>
56119
56120         * modules/check-include-files: Move to ../ and rename to...
56121         * check-module: ...this.
56122
56123 2005-03-25  Jim Meyering  <jim@meyering.net>
56124
56125         * modules/xvasprintf (Files): Add xalloc.h.
56126
56127 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * modules/gettext (Files): config/config.rpath ->
56130         build-aux/config.rpath
56131         * modules/iconv (Files): Likewise.
56132         Problem reported by Oskar Liljeblad.
56133
56134 2005-03-23  Jim Meyering  <jim@meyering.net>
56135
56136         * modules/check-include-files: New script to check for
56137         missing dependencies, multiple includes, etc.
56138
56139         * modules/c-strtold (Depends-on): Add xalloc.
56140         * modules/c-strtod (Depends-on): Add xalloc.
56141         * modules/hash (Depends-on): Add xalloc.
56142         (Files): Remove lib/xalloc.h.
56143
56144         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56145         * modules/userspec (Files): Add lib/inttostr.h.
56146
56147 2005-03-23  Jim Meyering  <jim@meyering.net>
56148
56149         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56150
56151 2005-03-22  Jim Meyering  <jim@meyering.net>
56152
56153         * modules/stat-macros: New module.
56154         * modules/canonicalize, modules/euidaccess, modules/file-type,
56155         * modules/filemode, modules/lchown, modules/makepath,
56156         * modules/rmdir, modules/stat: Depend on new stat-macros module
56157         rather than listing lib/stat-macros.h manually.
56158         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56159
56160 2005-03-22  Jim Meyering  <jim@meyering.net>
56161
56162         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56163
56164 2005-03-22  Bruno Haible  <bruno@clisp.org>
56165
56166         * config/srclist.txt: Replace target directory 'config' with
56167         'build-aux'.
56168         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56169         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56170         ../build-aux/.
56171
56172 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         * modules/chdir-long (Depends-on): Add mempcpy.
56175
56176         * modules/acl, modules/backupfile, modules/c-strtod,
56177         modules/c-strtold, modules/canon-host, modules/canonicalize,
56178         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56179         modules/exclude, modules/exitfail, modules/file-type,
56180         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56181         modules/getdate, modules/getline, modules/getpagesize,
56182         modules/getpass, modules/getugroups, modules/group-member,
56183         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56184         modules/inttostr, modules/long-options, modules/makepath,
56185         modules/md5, modules/memcasecmp, modules/memcoll,
56186         modules/modechange, modules/mountlist, modules/path-concat,
56187         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56188         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56189         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56190         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56191         modules/strftime, modules/strndup, modules/strverscmp,
56192         modules/timespec, modules/unlocked-io, modules/userspec,
56193         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56194         modules/yesno:
56195         Remove lib_SOURCES line from Makefile.am section, as this is now
56196         done automatically by the corresponding Autoconf macro.
56197
56198 2005-03-21  Jim Meyering  <jim@meyering.net>
56199
56200         Changes imported from coreutils.
56201
56202         * lib/cycle-check.c: Don't include xalloc.h.
56203
56204         * lib/path-concat.c: Don't include assert.h.
56205         (path_concat): Remove assertion that would have triggered
56206         for ABASE starting with more than one slash.
56207         Reported by Andreas Schwab.
56208
56209         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56210         properly when ABASE is an absolute file name.
56211         Correct the description of this function.
56212         Include <assert.h>.
56213         Add an assertion and a test driver.
56214         This fixes a bug introduced on 2004-07-02.
56215         Andreas Schwab reported the resulting failure of cp --parents:
56216         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56217
56218 2005-03-21  Jim Meyering  <jim@meyering.net>
56219
56220         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56222
56223 2005-03-21  Jim Meyering  <jim@meyering.net>
56224         and  Paul Eggert  <eggert@cs.ucla.edu>
56225
56226         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56227         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56228         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56229         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56230         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56231         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56232         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56233         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56234         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56235         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56236         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56237         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56238         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56239         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56240         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56241         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56242         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56243         for these modules.
56244
56245 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56246
56247         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56248         (which shouldn't happen), generate nothing instead of returning 0
56249         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56250
56251 2005-03-16  Bruno Haible  <bruno@clisp.org>
56252
56253         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56254         HAVE_LONGLONG_64BIT.
56255
56256 2005-03-16  Bruno Haible  <bruno@clisp.org>
56257
56258         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56259         HAVE_LONGLONG_64BIT.
56260
56261 2005-03-16  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56264         HAVE_LONGLONG_64BIT.
56265
56266 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56267
56268         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56269         reliably distinguish strftime failure from empty output on POSIX
56270         hosts.
56271
56272 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56273
56274         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56275         (iconv_string): Don't guess a size-zero buffer, as that might cause
56276         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56277         result would be 'too large', where 'too large' is (heuristically)
56278         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56279         overflow concerns.  This will prevent some unwanted malloc failures
56280         when the inputs are very large.
56281
56282 2005-03-15  Karl Berry  <karl@gnu.org>
56283
56284         * config/srclist.txt (config.rpath): from gettext.
56285         * config/config.rpath: update.
56286
56287 2005-03-15  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56290         to 'negate'.
56291
56292         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56293         variable.
56294
56295         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56296         results.
56297
56298 2005-03-14  Simon Josefsson  <jas@extundo.com>
56299
56300         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56301         <fx@gnu.org>.
56302
56303 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56306         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56307         intprops.h.
56308         * lib/strtol.c: Likewise.
56309
56310 2005-03-14  Jim Meyering  <jim@meyering.net>
56311
56312         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56313         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56314         to be nonzero so that we (and caller) can detect the difference
56315         between a valid zero-length expansion and an error return, even
56316         when the underlying strftime fails before writing anything into
56317         that location.
56318
56319 2005-03-14  Bruno Haible  <bruno@clisp.org>
56320
56321         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56322         Update from GNU gettext 0.14.3.
56323
56324 2005-03-10  Jim Meyering  <jim@meyering.net>
56325
56326         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56327
56328 2005-03-10  Jim Meyering  <jim@meyering.net>
56329
56330         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56331         so that this module works on systems without fchdir.
56332
56333 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56334
56335         Factor int-properties macros into a single file, except for
56336         glibc-related files.
56337         * lib/intprops.h: New file.
56338         * lib/getloadavg.c: Include it instead of limits.h.
56339         (INT_STRLEN_BOUND): Remove.
56340         * lib/human.c: Include intprops.h.
56341         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56342         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56343         302/1000.
56344         * lib/inttostr.h: Include intprops.h instead of limits.h.
56345         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56346         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56347         for consistency with intprops.h.
56348         (time_t_is_integer, twos_complement_arithmetic): Use them.
56349         * lib/sig2str.h: Include <signal.h>, intprops.h.
56350         (INT_STRLEN_BOUND): Remove.
56351         * lib/strftime.c (TYPE_SIGNED): Remove.
56352         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56353         * lib/strtol.c: Adjust comments to match intprops.h.
56354         * lib/userspec.c: Include intprops.h.
56355         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56356         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56357         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56358         instead of rolling our own expressions.
56359         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56360
56361         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56362         instead of int.
56363         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56364         the right thing even if adding 1900 would overflow.  Similarly
56365         for tm_mon + 1 and tm_yday + 1.
56366         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56367         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56368         (DO_SIGNED_NUMBER): New macro.
56369         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56370
56371 2005-03-07  Bruno Haible  <bruno@clisp.org>
56372
56373         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56374
56375 2005-03-07  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56378
56379 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56380
56381         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56382         (func_import): Only replace files via --import when they have actually
56383         changed.
56384
56385 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56386
56387         * m4/mmap-anon.m4: New file.
56388         * m4/pagealign_alloc.m4: New file.
56389
56390 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56391             Bruno Haible  <bruno@clisp.org>
56392
56393         * modules/pagealign_alloc: New file.
56394         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56395
56396 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56397             Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/pagealign_alloc.h: New file.
56400         * lib/pagealign_alloc.c: New file.
56401
56402 2005-03-03  Bruno Haible  <bruno@clisp.org>
56403
56404         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56405         Use an all-permissive copyright notice, recommended by RMS.
56406
56407 2005-03-02  Bruno Haible  <bruno@clisp.org>
56408
56409         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56410         of AIX, the replacement has to be done only after <string.h> is
56411         included, therefore not in config.h. stpncpy.h does the replacement,
56412         and stpncpy.c uses it.
56413
56414 2005-03-02  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56417         stpncpy.c uses it.
56418
56419 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56420
56421         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56422         The workaround isn't strictly needed for POSIX conformance, and
56423         it's too much of a pain to configure and maintain.  We'll ask
56424         people to fix their kernels instead.
56425         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56426         (NANOSLEEP_BUG_WORKAROUND): Remove.
56427         (xnanosleep): Remove the workaround.
56428
56429 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56430
56431         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56432         Reported by Derek Price.
56433         (Include): Add "timespec.h".
56434
56435         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56436
56437 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56438
56439         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56440         to detect nanosleep bug.
56441
56442 2005-03-01  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56445
56446 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56447
56448         * modules/gethrxtime: New file.
56449         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56450         (Depends-on): Add gethrxtime.
56451         (configure.ac): Add gl_XNANOSLEEP.
56452         (Makefile.am): Remove lib_SOURCES line.
56453
56454 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56457         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56458
56459 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56460
56461         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56462         * lib/timespec.h (gettime): Return void, since it always
56463         succeeds now.  All uses changed.
56464         * lib/gettime.c (gettime) Likewise.
56465         [HAVE_NANOTIME]: Prefer nanotime.
56466         Assume gettimeofday succeeds, as POSIX requires.
56467         Assime time () succeeds, since other code already does.
56468         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56469         (timespec_subtract): Remove.
56470         (NANOSLEEP_BUG_WORKAROUND): New constant.
56471         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56472         things considerably.  Use it only on GNU/Linux hosts, since the
56473         workaround shouldn't be needed elsewhere.
56474
56475 2005-02-24  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/gettext (Files): Add m4/glibc2.m4.
56478
56479 2005-02-24  Bruno Haible  <bruno@clisp.org>
56480
56481         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56482         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56483         * m4/progtest.m4:
56484         Update from GNU gettext 0.14.2.
56485         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56486
56487 2005-02-24  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56490         * lib/config.charset: Update from GNU gettext 0.14.2.
56491
56492 2005-02-24  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/gettext.h: Update from GNU gettext 0.14.2.
56495
56496 2005-02-23  Simon Josefsson  <jas@extundo.com>
56497
56498         * m4/iconvme.m4: New file.
56499
56500 2005-02-23  Jim Meyering  <jim@meyering.net>
56501
56502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56503         change.
56504         Thanks to Bruno Haible for catching it.
56505
56506 2005-02-22  Simon Josefsson  <jas@extundo.com>
56507
56508         * modules/iconvme: New file.
56509
56510         * MODULES.html.sh: Add iconvme.
56511
56512 2005-02-22  Simon Josefsson  <jas@extundo.com>
56513
56514         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56515
56516 2005-02-22  Simon Josefsson  <jas@extundo.com>
56517
56518         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56519
56520 2005-02-22  Jim Meyering  <jim@meyering.net>
56521
56522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56523         s/ifndef/ifdef/.
56524
56525 2005-02-20  Neil Conway  <neilc@samurai.com>
56526
56527         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56528         returned by OSX/Darwin if the specified buffer is not large
56529         enough for the hostname.
56530
56531 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56532
56533         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56534         pass it to _help, otherwise the latter coredumps trying to
56535         dereference state.root_argp.
56536
56537 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * modules/chdir-long (Depends-on): Add memrchr.
56540         * modules/memrchr (Files): Add lib/memrchr.h.
56541         (Include): "memrchr.h".
56542
56543 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56544
56545         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56546
56547 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         * lib/memrchr.h: New file.
56550         * lib/chdir-long.c: Include it.
56551         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56552         Don't bother including stddef.h.
56553
56554 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56555
56556         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56557         inclusion.
56558         Include <sys/types.h>, for dev_t.
56559         (ME_DUMMY, ME_REMOTE): Move from here....
56560         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56561         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56562         Dmitry V. Levin.
56563         Include mountlist.h first, to test the interface.
56564
56565 2005-01-29  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/progname.c (program_name): Initialize.
56568         Needed when linking statically on MacOS X.
56569
56570 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56571
56572         Sync from coreutils.
56573         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56574         (Depends-on): Add c-strtod.
56575         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56576
56577 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56578
56579         Sync from coreutils.
56580         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56581
56582         Remove files that are specific to coreutils.
56583         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56584
56585 2005-01-28  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/javacomp: New file.
56588         * MODULES.html.sh (Java): Add javacomp.
56589
56590 2005-01-28  Bruno Haible  <bruno@clisp.org>
56591
56592         * m4/javacomp.m4: New file, from GNU gettext.
56593
56594 2005-01-28  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/javacomp.sh.in: New file, from GNU gettext.
56597         * lib/javacomp.h: New file, from GNU gettext.
56598         * lib/javacomp.c: New file, from GNU gettext.
56599
56600 2005-01-26  Simon Josefsson  <jas@extundo.com>
56601
56602         * lib/gai_strerror.c: Use GPL in header.
56603
56604 2005-01-26  Bruno Haible  <bruno@clisp.org>
56605
56606         * modules/javaexec: New file.
56607         * MODULES.html.sh (Java): Add javaexec.
56608
56609 2005-01-26  Bruno Haible  <bruno@clisp.org>
56610
56611         * m4/javaexec.m4: New file, from GNU gettext.
56612
56613 2005-01-26  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/javaexec.sh.in: New file, from GNU gettext.
56616         * lib/javaexec.h: New file, from GNU gettext.
56617         * lib/javaexec.c: New file, from GNU gettext.
56618
56619 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56620
56621         * modules/lchown (Depends-on): Remove lchown.h
56622
56623 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56624
56625         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56626         must be defined if the header file was not found, in order
56627         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56628
56629 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56630
56631         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56632         initializers for struct pentry_state.
56633         (__argp_error): Check return value of __asprintf
56634         (__argp_failure): Translate error message
56635
56636         * lib/argp-parse.c: Removed braces around the expansion of N_()
56637
56638 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56641         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56642         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56643         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56644         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56645         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56646         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56647         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56648         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56649         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56650         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56651         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56652         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56653         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56654         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56655         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56656         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56657         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56658         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56659         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56660         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56661         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56662         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56663         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56664         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56665         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56666         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56667         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56668         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56669         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56670         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56671         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56672         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56673         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56674         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56675         Use an all-permissive copyright notice, recommended by RMS.
56676
56677 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         * modules/chdir-long (Depends-on): Remove mempcpy.
56680
56681 2005-01-21  Jim Meyering  <jim@meyering.net>
56682
56683         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56684         same value as for Solaris 9.
56685
56686         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56687         component length.  This included changing the parameter to be
56688         of type `char *' rather than `char const *'.
56689         * lib/chdir-long.h (chdir_long): Update prototype.
56690
56691         * lib/openat.c (fdopendir, fstatat): New functions.
56692         * lib/openat.h: Include headers required for use of DIR and struct
56693         stat.
56694         [AT_SYMLINK_NOFOLLOW]: Define.
56695         (fdopendir, fstatat): Add prototypes.
56696
56697 2005-01-21  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/classpath: New file.
56700         * MODULES.html.sh (Java): Add classpath.
56701
56702 2005-01-21  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/classpath.h: New file, from GNU gettext.
56705         * lib/classpath.c: New file, from GNU gettext.
56706
56707 2005-01-20  Simon Josefsson  <jas@extundo.com>
56708
56709         * modules/version-etc-fsf: New file.
56710
56711 2005-01-20  Simon Josefsson  <jas@extundo.com>
56712
56713         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56714         * lib/version-etc.c: Remove version_etc_copyright.
56715         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56716         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56717
56718 2005-01-20  Simon Josefsson  <jas@extundo.com>
56719
56720         * lib/base64.h (isbase64): Add.
56721
56722         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56723         using a unsigned prototype, don't inline.
56724         (base64_decode): Use it.
56725
56726 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56729         it.
56730
56731 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56732
56733         * lib/save-cwd.c (save_cwd): Remove code to support the case
56734         where fchdir is missing or flaky.
56735
56736 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56739
56740 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56741
56742         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56743         AC_LIBSOURCES now does this.
56744         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56745         with new ullong_max module.
56746
56747 2005-01-19  Bruno Haible  <bruno@clisp.org>
56748
56749         * modules/sh-quote: New file.
56750         * MODULES.html.sh (Executing programs): Add sh-quote.
56751
56752 2005-01-19  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/sh-quote.h: New file, from GNU gettext.
56755         * lib/sh-quote.c: New file, from GNU gettext.
56756
56757 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         Merge from coreutils.
56760         * m4/ullong_max.m4: New file.
56761         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56762         (gl_MACROS): Assume localeconv exists.
56763
56764 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         Merge changes from coreutils, as described below in several
56767         changelogs dated today.
56768
56769         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56770         (O_DIRECTORY): Remove; not needed here, since "." must be
56771         a directory.  All uses removed.
56772         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56773         universal on Suns, and we also need to test for IRIX.
56774         Revamp code to use 'if' rather than '#if'.
56775         Avoid unnecessary comparison of cwd->desc to 0.
56776
56777         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56778         for known valid error numbers rather than observed invalid ones.
56779
56780 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56781
56782         * modules/ullong_max: New file.
56783
56784         * modules/chdir-long, modules/openat: New files.
56785         * modules/save-cwd (Depends-on): Depend on chdir-long.
56786         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56787
56788 2005-01-18  Jim Meyering  <jim@meyering.net>
56789
56790         Merge from coreutils.
56791         * m4/chdir-long.m4, m4/openat.m4: New files.
56792         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56793         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56794         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56795         is sane and DOES follow symlinks.  Besides, testing 20 different
56796         systems found no broken chown implementations.
56797         Prompted by a change in rsync's copy of this macro.
56798         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56799
56800         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56801
56802         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56803         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56804         NULL-means-set-to-current-time semantics.
56805         Remove temporary file immediately, rather than waiting
56806         for configure's at-exit trap code to do it.
56807
56808 2005-01-18  Jim Meyering  <jim@meyering.net>
56809
56810         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56811
56812         * lib/utimens.c (futimens): Account for the fact that futimes
56813         can also fail with errno == ENOSYS or errno == ENOENT.
56814         Patch from Dmitry V. Levin.
56815
56816         Change the name of the robust chdir function from chdir to chdir_long.
56817         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56818         (restore_cwd): Use chdir_long, not chdir.
56819         * lib/chdir-long.c: Renamed from chdir.c.
56820         * lib/chdir-long.h: Renamed from chdir.h.
56821         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56822         Hurd.
56823
56824 2005-01-18  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56827         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56828         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56829         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56830         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56831         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56832         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56833         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56834         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56835         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56836         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56837         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56838         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56839         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56840         Use an all-permissive copyright notice, recommended by RMS.
56841
56842 2005-01-18  Bob Proulx  <bob@proulx.com>
56843
56844         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56845         simplify offsetof() macro construct to avoid compile failure with
56846         native HP-UX 11.0 ANSI C compiler.
56847
56848 2005-01-17  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56851         redundant because stpncpy.m4 takes care of it.
56852
56853 2005-01-17  Bruno Haible  <bruno@clisp.org>
56854
56855         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56856
56857 2005-01-17  Bruno Haible  <bruno@clisp.org>
56858
56859         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56860         used.
56861
56862 2005-01-17  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/fwriteerror.h (fwriteerror): Change specification to include
56865         fclose.
56866         * lib/fwriteerror.c: Include <stdbool.h>.
56867         (fwriteerror): At the end, close the file stream. Record whether
56868         stdout was already closed.
56869
56870 2005-01-17  Bruno Haible  <bruno@clisp.org>
56871
56872         * lib/execute.c (environ): Declare if needed.
56873         * lib/pipe.c (environ): Likewise.
56874         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56875
56876 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56877
56878         * modules/argp: Depend on vsnprintf
56879
56880 2005-01-10  Jim Meyering  <jim@meyering.net>
56881
56882         * modules/closeout (Depends-on): Add atexit.
56883
56884 2005-01-06  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
56887
56888 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
56891         definitions to be after all include files, to avoid collisions.
56892         Problem reported by Bob Proulx.
56893
56894 2005-01-04  Jim Meyering  <jim@meyering.net>
56895
56896         Changes imported from coreutils.
56897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
56898         as the mkstemp template, use a temporary directory and an
56899         8.3-friendly template to avoid trouble on systems like DJGPP.
56900         Reported by Juan M. Guerrero via Stepan Kasal.
56901         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
56902         close. Remove the temporary directory right away, rather than waiting
56903         for configure's at-exit trap code to do it.
56904         Suggestion from Stepan Kasal.
56905
56906 2005-01-01  Simon Josefsson  <jas@extundo.com>
56907
56908         * gnulib-tool: Print #include directives when --import'ing.
56909
56910 2004-12-28  Simon Josefsson  <jas@extundo.com>
56911
56912         * tests/test-base64.c: Include required header files.  Remove
56913         unused variables.
56914
56915 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56916
56917         * modules/error (Depends-on): Remove gettext.
56918
56919 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
56922         not needed.  This removes a dependency on the gettext module.
56923         [defined _LIBC]: Do not include <libintl.h>; not needed.
56924
56925 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56926
56927         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
56928         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
56929
56930 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
56933         HAVE_DECL_STRTOLD.
56934
56935 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56936
56937         * modules/getdate (Depends-on): Remove alloca-opt.
56938
56939 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56940
56941         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
56942
56943 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56944
56945         * lib/argp-parse.c: Include <stddef.h>.
56946         (alignof, alignto): New macros.
56947         (parser_init): Don't assume that void * is aligned sufficiently
56948         for struct option.
56949
56950         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
56951         need to extend the stack.
56952         (YYINITDEPTH): New macro, so that the initial stack isn't overly
56953         large.
56954
56955 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56956
56957         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
56958
56959 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56960
56961         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
56962         (2004-10-24) change.  Apparently this was a false alarm.
56963
56964         * modules/getdate: Depend on alloca-opt, not alloca.
56965
56966 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
56969         Remove now-obsolete comment about AIX.
56970         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
56971         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
56972         (YYMAXDEPTH): New macro.
56973
56974 2004-12-18  Simon Josefsson  <jas@extundo.com>
56975
56976         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
56977
56978 2004-12-18  Bruno Haible  <bruno@clisp.org>
56979
56980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
56981
56982 2004-12-18  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/fatal-signal.c (fatal_signals): Make non-const.
56985         (init_fatal_signals): New function.
56986         (uninstall_handlers, install_handlers): Ignore signals that were set to
56987         SIG_IGN.
56988         (at_fatal_signal): Call init_fatal_signals.
56989         (init_fatal_signal_set): Likewise. Ignore signals that were set to
56990         SIG_IGN.
56991         Reported by Paul Eggert.
56992
56993 2004-12-18  Bruno Haible  <bruno@clisp.org>
56994
56995         * doc/alloca.texi: New file.
56996         * doc/alloca-opt.texi: New file.
56997
56998 2004-12-17  Jim Meyering  <jim@meyering.net>
56999
57000         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57001         Otherwise, install-sh could exit with improper exit status when
57002         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57003
57004 2004-12-16  Simon Josefsson  <jas@extundo.com>
57005
57006         * tests/test-base64.c: Add license.
57007
57008 2004-12-15  Stepan Kasal  <address@hidden>
57009
57010         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57011
57012 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57013
57014         * modules/getcwd (Files): Add m4/d-ino.m4.
57015         Suggested by Mark D. Baushke.
57016
57017 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57018
57019         * lib/getdate.y (textint): New member "negative".
57020         (time_zone_hhmm): New function.
57021         Expect 14 shift-reduce conflicts, not 13.
57022         (o_colon_minutes): New rule.
57023         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57024         (yylex): Set the "negative" member of signed numbers.
57025
57026 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * doc/getdate.texi (Time of day items, Time zone items):
57029         Describe new formats +00:00, UTC+00:00.
57030
57031 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57032
57033         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57034         spurious "-l"s.  Problem reported by Stepan Kasal.
57035
57036 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57037
57038         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57039         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57040
57041 2004-12-04  Simon Josefsson  <jas@extundo.com>
57042
57043         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57044         Vandoorselaere <yoann@prelude-ids.org>.
57045
57046 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57047
57048         Changes imported from coreutils.
57049         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57050         exist.
57051         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57052
57053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57054
57055         Changes imported from coreutils.
57056         * lib/hard-locale.c: Assume <locale.h> exists.
57057         Include "strdup.h".
57058         (GLIBC_VERSION): New macro.
57059         (hard_locale): Assume setlocale exists.
57060         Rewrite to avoid #ifdef.
57061         Use strdup rather than malloc + strcpy.
57062         * lib/human.c: Assume <locale.h> exists.
57063         (human_readable): Assume localeconv exists.
57064
57065 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * modules/hard-locale (Depends-on): Add strdup.
57068
57069 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57070
57071         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57072         convert T2, not T.  (Imported from libc.)
57073
57074 2004-11-30  Simon Josefsson  <jas@extundo.com>
57075
57076         * modules/restrict (License): Change to LGPL.
57077
57078 2004-11-30  Simon Josefsson  <jas@extundo.com>
57079
57080         * m4/restrict.m4: Add copyright and copying conditions.
57081
57082 2004-11-30  Simon Josefsson  <jas@extundo.com>
57083
57084         * m4/base64.m4: New file.
57085
57086 2004-11-30  Simon Josefsson  <jas@extundo.com>
57087
57088         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57089         base64.
57090
57091         * tests/test-base64.c: New file.
57092
57093         * modules/base64: New file.
57094
57095 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57098         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57099
57100         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57101
57102 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57105         (__getcwd.c): Don't restore errno; glibc doesn't.
57106         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57107         first, falling back to our code only if its results look suspicious.
57108         Ensure that the resulting buffer is only as large as necessary.
57109
57110         * lib/readutmp.c: Include readutmp.h first.
57111         Include <errno.h>, since readutmp.h no longer does that.
57112         * lib/readutmp.h: Don't include <errno.h>,
57113         <sys/param.h>, <time.h>; not needed to establish interface.
57114         (errno): Remove decl.
57115         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57116         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57117         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57118
57119 2004-11-28  Simon Josefsson  <jas@extundo.com>
57120
57121         * lib/base64.h, base64.c: New file.
57122
57123 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57126
57127 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57130         (Depends-on): Remove pathmax, same.  Add mempcpy.
57131         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57132         (Makefile.am): Append getcwd.h to lib_SOURCES.
57133         (Include): Add getcwd.h.
57134         (Maintainer): Change from Jim Meyering to "all, glibc",
57135         since getdate now uses intended-for-glibc code.
57136         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57137         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57138
57139 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57140
57141         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57142         HP's ANSI C compiler.
57143         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57144         Declaring int functions causes warnings on some modern systems and
57145         shouldn't be needed to compile on ancient ones.
57146         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57147         defined.
57148
57149         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57150         with the following changes.
57151         (__set_errno): Parenthesize properly.
57152         Include <stdbool.h>.
57153         (MIN, MAX, MATCHING_INO): New macros.
57154         (__getcwd): Define with prototype, not K&R form.
57155         Use heuristics to allocate default buffer on stack if possible.
57156         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57157         behavior, and to avoid the PATH_MAX limit when computing
57158         ../../../../...
57159         Use MATCHING_INO to compare inode number to file.
57160         Check for arithmetic overflow in size calculations.
57161         Fix bug in reallocation of dot array that caused getcwd to fail
57162         on directories nested deeper than 75.
57163         Be more careful about saving errno on error.
57164         Do not use realloc; use only free+malloc, as this is a bit
57165         more flexible and avoids a needless copy operation.
57166         Do not inspect st_dev and st_ino for symbolic links; POSIX
57167         doesn't specify the latter.
57168         Check for closedir errors.
57169         Avoid needless casts.
57170         Use "#ifdef weak_alias" around weak_alias, to be like other
57171         glibc code.
57172         The following changes to getcwd.c have effect only when used in
57173         gnulib; they have no effect inside glibc proper.
57174         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57175         as alloca isn't used.
57176         (alloca, __alloca): Likewise.
57177         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57178         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57179         unconditionally, as gnulib assumes C89 or better.
57180         Do not include <sys/param.h>.
57181         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57182         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57183         better.
57184         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57185         Include <dirent.h> in a way that is compatible with modern Autoconf.
57186         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57187         New macros, if not already defined.
57188         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57189         Use "_LIBC", not "defined _LIBC", for consistency.
57190         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57191         a mempcpy module.
57192         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57193         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57194         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57195         credit only to Jim Meyering and adjust the copyright dates.
57196         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57197         <stdlib.h>, <unistd.h>, "pathmax.h".
57198         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57199         (INITIAL_BUFFER_SIZE): Remove.
57200         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57201
57202 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57205         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57206         Use the _ONCE methods, for efficiency.
57207         Check for fcntl.h.  In test program, include <errno.h>
57208         and <fcntl.h> if available.  Remove old K&R cruft from
57209         test program.  Check for common errors in GNU/Linux,
57210         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57211         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57212         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57213         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57214         name accordingly.
57215         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57216         accommodate new getcwd.c.
57217         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57218         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57219         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57220         that's all we need now.
57221
57222 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57223
57224         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57225         argp-parse.c depends on getopt internals, that means we should
57226         always use our getopt, to be on the safe side.
57227         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57228         order not to spoil the result of an eventual previous invocation
57229         of gl_GETOPT_SUBSTITUTE.
57230
57231 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57232
57233         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57234         redefinition warnings. To avoid them, include the defines
57235         in `#if !defined __need_getopt ... #endif'. The only place
57236         where __getopt_argv_const is used is in definitions
57237         of getopt_long and getopt_long_only below, which are as well
57238         protected by `#ifndef __need_getopt'.
57239         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57240         __need_getopt after including <stdio.h> and <unistd.h> These
57241         headers might have defined it.
57242
57243 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57244
57245         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57246
57247 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57248
57249         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57250         (futimens): New function, which uses futimes if available.
57251         (futimens, utimens): Support timespec==NULL, with same semantics
57252         as utime and utimens.
57253         * lib/utimens.h (futimens): New decl.
57254
57255 2004-11-23  Jim Meyering  <jim@meyering.net>
57256
57257         * lib/getopt_.h: Remove trailing blanks.
57258
57259 2004-11-23  Jim Meyering  <jim@meyering.net>
57260
57261         * lib/__fpending.c: Add comment.
57262
57263 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * modules/canonicalize (Depends-on): Add xreadlink.
57266         Problem reported by James Youngman.
57267
57268 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57271         New macros.
57272         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57273         optopt): Use them instead of invoking ## directly; otherwise, the
57274         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57275
57276 2004-11-19  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/strtok_r.c: Move comments from here...
57279         * lib/strtok_r.h: ... to here.
57280
57281 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57284         implementations that mishandle size_t overflow.
57285
57286 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57287
57288         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57289         might fail.  Problem reported by Yoann Vandoorselaere.
57290         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57291         implementations that mishandle size_t overflow.
57292
57293 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * modules/canon-host (Depends-on): Add strdup.
57296
57297 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57298
57299         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57300
57301 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57302
57303         * lib/canon-host.c: Include "strdup.h".
57304         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57305         Use strdup instead of malloc/strcpy to duplicate strings.
57306
57307         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57308         (human_space_before_unit): New constant.
57309         * lib/human.c (human_readable): Support it.
57310
57311         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57312         (xgetcwd): Set errno correctly when failing.
57313         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57314         the failure is actually due to a PATH_MAX problem.
57315
57316         Further getopt changes to make it more likely that glibc will
57317         buy the changes back.
57318         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57319         (getopt): Use it, so to preserve glibc semantic
57320         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57321         when compiling for libc.
57322         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57323         (getopt_long, getopt_long_only): Use it.
57324
57325         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57326         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57327         (getopt): Argv is now char * const *, as per standard.
57328         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57329         not char *__getopt_argv_const *.
57330         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57331         _getopt_long_only_r): Likewise.
57332         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57333         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57334         _getopt_long_r, _getopt_long_only_r): Likewise.
57335         * lib/getopt_.h (__getopt_argv_const): Remove.
57336         (getopt): Argv is now char * const *, as per standard.
57337
57338         * lib/getdate.y (tORDINAL): New token.
57339         (day, relunit): Allow it for relative times.
57340         (relative_time_table): Use tORDINAL for ordinals.
57341
57342 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57343
57344         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57345         Document that "second" isn't allowed as an ordinal number.
57346
57347 2004-11-16  Jim Meyering  <jim@meyering.net>
57348
57349         * modules/closeout (Depends-on): Add fpending.
57350
57351 2004-11-15  Jim Meyering  <jim@meyering.net>
57352
57353         * lib/closeout.c: Include "__fpending.h" once again.
57354         Include <stdbool.h>.
57355         (close_stdout): Don't fail just because stdout was closed initially,
57356         since some programs don't write to stdout in the normal course of
57357         operation (other than --version and --help), and we don't want this
57358         function to make e.g. `touch file >&-' fail.
57359         But do fail if it was closed and someone has tried to write to it.
57360         E.g., `printf foo >&-' must fail.
57361
57362 2004-11-13  Jim Meyering  <jim@meyering.net>
57363
57364         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57365
57366 2004-11-12  Simon Josefsson  <jas@extundo.com>
57367
57368         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57369         small doc fix is still pending.
57370
57371 2004-11-11  Simon Josefsson  <jas@extundo.com>
57372
57373         * modules/strtok_r: New file.
57374
57375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57376         strtok_r.
57377
57378 2004-11-11  Simon Josefsson  <jas@extundo.com>
57379
57380         * m4/strtok_r.m4: New file.
57381
57382         * m4/getopt.m4: Replace opterr.
57383
57384 2004-11-11  Simon Josefsson  <jas@extundo.com>
57385
57386         * lib/strtok_r.h, strtok_r.c: New file.
57387
57388 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57391         of replacing opterr, getopt, etc.  This should handle the
57392         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57393
57394 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57395
57396         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57397         we can stop lying to compilers about the constness of argv when we
57398         are compiled outside glibc.
57399         (getopt, getopt_long, getopt_long_only): Use it.
57400         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57401         _getopt_internal, getopt): Likewise.
57402         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57403         _getopt_long_only_r): Likewise.
57404         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57405         _getopt_long_r, _getopt_long_only_r): Likewise.
57406
57407         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57408         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57409         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57410         the other external symbols.
57411         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57412         declaration, since the above renaming now works around collisions.
57413
57414 2004-11-11  Jim Meyering  <jim@meyering.net>
57415
57416         * lib/linebreak.c: Remove trailing blanks.
57417         * lib/alloca_.h: Likewise.
57418         * lib/acosl.c: Likewise.
57419         * lib/euidaccess.c: Likewise.
57420         * lib/allocsa.h: Likewise.
57421
57422 2004-11-10  Simon Josefsson  <jas@extundo.com>
57423
57424         * m4/getaddrinfo.m4: New file.
57425
57426 2004-11-10  Simon Josefsson  <jas@extundo.com>
57427
57428         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57429
57430 2004-11-10  Simon Josefsson  <jas@extundo.com>
57431
57432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57433         getaddrinfo.
57434
57435         * modules/getaddrinfo: New file.
57436
57437 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57440
57441 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57442
57443         * lib/mktime.c (SHR): New macro, which is a portable
57444         substitute for >> that should work even on Crays.
57445         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57446         Problem reported by Mark D. Baushke in
57447         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57448         * lib/getdate.y (SHR): Likewise.
57449         (tm_diff): Use it.
57450         * lib/strftime.c (SHR): Likewise.
57451         (tm_diff): Use it.
57452         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57453         quote_these_too, so that right shifts are well defined.  All uses
57454         changed.
57455
57456 2004-11-10  Jim Meyering  <jim@meyering.net>
57457
57458         Ensure that no close failure goes unreported.
57459         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57460         return early when it seems there's nothing to flush.
57461         Don't include __fpending.h.
57462
57463 2004-11-10  Jim Meyering  <jim@meyering.net>
57464
57465         * modules/closeout (Depends-on): Remove fpending.
57466
57467 2004-11-10  Jim Meyering  <jim@meyering.net>
57468
57469         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57470
57471 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57474         gl_FUNC_STRFTIME.
57475         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57476         and AC_REQUIRE when possible, to avoid duplicate checks.
57477         Check for <wchar.h>.
57478
57479 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57482
57483 2004-11-09  Bruno Haible  <bruno@clisp.org>
57484
57485         * m4/sockpfaf.m4: New file.
57486
57487 2004-11-05  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57490         Reported by Mark D. Baushke <mdb@cvshome.org>.
57491
57492 2004-11-04  Bruno Haible  <bruno@clisp.org>
57493
57494         2004-09-11  Bruno Haible  <bruno@clisp.org>
57495                 * allocsa.valgrind: New file.
57496         2004-02-06  Bruno Haible  <bruno@clisp.org>
57497                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57498                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57499                 Reported by Christopher Seip <chris.seip@hp.com>.
57500
57501 2004-11-04  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57504         (Makefile.am): Distribute it.
57505
57506 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57509         with errno == ERANGE if the buffer is too small.
57510         Problem reported by Mark D. Baushke.
57511
57512 2004-11-03  Albert Chin  <china@thewrittenword.com>
57513             Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57516         equivalent, substitute $ac_type for equivalent type rather than
57517         blindly using uint32_t *always* which won't work if uint32_t is not
57518         available.  Define _UINT32_T to work around typedef of uint32_t if
57519         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57520         2.5.1.
57521
57522 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * m4/jm-macros.m4: Sync from coreutils.
57525         (gl_MACROS): Check for mbrlen, for pathchk.
57526         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57527
57528 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57529
57530         * lib/xreadlink.c (MAXSIZE): New macro.
57531         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57532         size does not exceed MAXSIZE.  Avoid cast.
57533         As suggested by Mark D. Baushke in
57534         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57535         if readlink fails with buffer size just under MAXSIZE, try again
57536         with MAXSIZE.
57537
57538 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57539
57540         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57541
57542 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57543         and  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57546         (get_date): Overparenthesize to avoid GCC warning.
57547
57548 2004-11-02  Bruno Haible  <bruno@clisp.org>
57549
57550         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57551         returns void.
57552
57553 2004-11-02  Bruno Haible  <bruno@clisp.org>
57554
57555         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57556         function returns void.
57557
57558 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57559
57560         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57561         fflush_unlocked, flockfile, funlockfile, funlockfile,
57562         fputs_unlocked, putc_unlocked.
57563
57564 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57567         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57568         already declared.
57569
57570 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * modules/getdate (Files): Add doc/getdate.texi.
57573         (Depends-on): Add setenv, xalloc.
57574
57575 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57576
57577         * lib/getdate.y: Add support for TZ="foo" within a date string.
57578         Fix some bugs near time_t boundaries.  Reject dates with
57579         out-of-range components, e.g., "Sept 31".
57580         Include <stdlib.h>, "setenv.h", "xalloc.h".
57581         (ISDIGIT_LOCALE): Remove; unused.
57582         Note that the TZ and time functions used here are not reentrant.
57583         (mktime_ok, get_tz): New functions.
57584         (TZBUFSIZE): New constant.
57585         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57586         This requires that we sometimes generate our own TZ="XXX..." setting.
57587
57588 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * doc/getdate.texi: New file, from coreutils with modifications for
57591         the new TZ parsing.
57592
57593 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57594
57595         * lib/mktime.c (not_equal_tm): Remove redundant check.
57596
57597 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57598
57599         * modules/regex (lib_SOURCES): Add regex.c.
57600         Reported by James Youngman in
57601         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57602
57603 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * lib/getdate.y: Use Bison 1.875 features, and some minor
57606         code cleanups.  This change does not affect semantics.
57607         Don't include <stdlib.h>; no longer needed.
57608         Don't include unlocked-io.h; only the "#if TEST" code uses
57609         stdio, and performance isn't crucial there.
57610         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57611         Bison 1.875 features as described below.
57612         All uses of "PC." replaced by "pc->".
57613         (YYSTYPE): Add a forward declaration.
57614         (yylex, yyerror): Use full prototypes in forward decls.
57615         Use "%pure-parser" rather than obsolescent "%pure_parser".
57616         Use %parse-param and %lex-param instead of obsolescent
57617         YYPARSE_PARAM and YYLEX_PARAM.
57618         (meridian_table, month_and_day_table, time_units_table,
57619         relative_time_table, time_zone_table, military_table,
57620         lookup_zone, lookup_word, get_date):
57621         Use NULL instead of 0 where appropriate.
57622         (to_hour): Avoid abort (), to avoid a dependency on
57623         stdlib.h.
57624         (yyerror, yylex): Now accepts parser_control * arg.
57625         (main) [TEST]: Use '\0' rather than 0 for char.
57626
57627 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57628
57629         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57630
57631 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57632
57633         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57634         It's now the caller's responsibility to handle the case where
57635         !HAVE_GETPAGESIZE && !defined getpagesize.
57636
57637         * lib/mktime.c (leapyear): Arg is long int, not int.
57638
57639 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57642
57643 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57646         missing.  Problem reported by James Youngman.
57647
57648 2004-10-16  Simon Josefsson  <jas@extundo.com>
57649
57650         * gnulib-tool: Fix comments.  Fix parse problem.
57651         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57652
57653 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57656         implementation of getopt_long.  Problem reported by Alexander Taler in:
57657         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57658
57659 2004-10-15  Bruno Haible  <bruno@clisp.org>
57660
57661         * gnulib-tool: Untabify. Initialize supplied_libname.
57662         (func_usage): More homogenous output.
57663         (func_modules_transitive_closure, func_modules_to_filelist,
57664         func_emit_lib_Makefile_am): New functions.
57665         (func_import): New function, extracted from big case statement. Use
57666         func_get_license, func_modules_transitive_closure,
57667         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57668         opt_lgpl. Don't use test -a, as it's not portable.
57669         (func_create_testdir): Use func_modules_transitive_closure,
57670         func_modules_to_filelist, func_emit_lib_Makefile_am.
57671
57672 2004-10-15  Bruno Haible  <bruno@clisp.org>
57673
57674         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57675
57676 2004-10-15  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57679         the portions belonging to each module.
57680         Suggested by Derek Robert Price <derek@ximbiot.com>.
57681
57682 2004-10-12  Simon Josefsson  <jas@extundo.com>
57683
57684         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57685         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57686         to real functions.
57687
57688 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57689
57690         * modules/vsnprintf: New file.
57691
57692 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57693
57694         * m4/vsnprintf.m4: New file.
57695
57696 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57697
57698         * lib/vsnprintf.h: New file.
57699         * lib/vsnprintf.c: New file.
57700
57701 2004-10-11  Bruno Haible  <bruno@clisp.org>
57702
57703         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57704         vsnprintf.
57705
57706 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57707
57708         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57709
57710 2004-10-07  Bruno Haible  <bruno@clisp.org>
57711
57712         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57713         fits into the provided buffer.
57714
57715 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         * lib/diacrit.c, diacrit.h: Add GPL notice.
57718
57719         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57720         notice.
57721         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57722         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57723         This avoids a potential constant-folding bug.
57724
57725 2004-10-05  Bruno Haible  <bruno@clisp.org>
57726
57727         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57728         for the declaration of strsep.
57729
57730 2004-10-05  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57733
57734 2004-10-04  Simon Josefsson  <jas@extundo.com>
57735
57736         * modules/memmem: New file.
57737         * tests/test-memmem.c: New file.
57738         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57739
57740 2004-10-04  Simon Josefsson  <jas@extundo.com>
57741
57742         * m4/memmem.m4: New file.
57743
57744 2004-10-04  Simon Josefsson  <jas@extundo.com>
57745
57746         * lib/memmem.h: New file.
57747         * lib/memmem.c: New file, taken from glibc.
57748
57749 2004-10-04  Simon Josefsson  <jas@extundo.com>
57750
57751         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57752         '#ifdef USE_UNLOCKED_IO'.
57753
57754 2004-10-04  Simon Josefsson  <jas@extundo.com>
57755
57756         * config/srclist.txt: Add memmem from glibc.
57757
57758 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57759
57760         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57761
57762         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57763         modules/exclude, modules/getdate, modules/getline,
57764         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57765         modules/getusershell, modules/linebuffer, modules/md5,
57766         modules/mountlist, modules/posixtm, modules/readtokens,
57767         modules/readutmp, modules/regex, modules/sha1,
57768         modules/version-etc, modules/yesno:
57769         Remove dependency on unlocked-io.
57770
57771 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57772
57773         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57774
57775         * m4/unlocked-io.m4: Add copyright notice.
57776         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57777
57778 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57781         * lib/xmalloc.c (xmemdup): Likewise.
57782         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57783         XFREE): Remove these long-obsolescent macros.
57784         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57785         * lib/xstrdup.c: Remove.
57786
57787         * lib/regex.c (re_comp): Cast gettext return value to char *,
57788         Problem reported by Martin Neitzel via Mark D. Baushke.
57789
57790 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57793         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57794         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57795         regex.c, sha1.c, version-etc.c, yesno.c:
57796         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57797         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57798         the includer's responsibility.
57799
57800         Sync from coreutils.
57801
57802         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57803         points to the start of a string, as the C Standard says the
57804         resulting behavior is undefined.
57805
57806         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57807         simple -> simple_backups, numbered_existing ->
57808         numbered_existing_backups, numbered -> numbered_backups
57809         to avoid shadowing problems.  All uses changed.
57810         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57811         * lib/backupfile.c (check_extension, numbered_backup):
57812         Rename locals to avoid shadowing 'basename'.
57813         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57814         once.
57815
57816         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57817         * lib/.cvsignore: Add getopt.h.
57818
57819 2004-10-04  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/README: New file.
57822         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57823         not a module.
57824
57825 2004-10-02  Jim Meyering  <jim@meyering.net>
57826
57827         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57828
57829 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57830
57831         * modules/strsep: New file.
57832
57833 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57834
57835         * m4/strsep.m4: New file.
57836
57837 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57838
57839         * lib/strsep.h: New file.
57840         * lib/strsep.c: New file.
57841
57842 2004-10-01  Simon Josefsson  <jas@extundo.com>
57843
57844         * lib/snprintf.c (snprintf): Handle size==0.
57845
57846 2004-10-01  Simon Josefsson  <jas@extundo.com>
57847             Bruno Haible  <bruno@clisp.org>
57848
57849         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57850         (snprintf): Declare 'args'.
57851
57852 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57853
57854         * lib/snprintf.c: Remove comments as to why each header is needed.
57855
57856 2004-10-01  Bruno Haible  <bruno@clisp.org>
57857
57858         * MODULES.html.sh: Add strsep.
57859
57860 2004-09-30  Simon Josefsson  <jas@extundo.com>
57861
57862         * modules/snprintf: New file.
57863
57864 2004-09-30  Simon Josefsson  <jas@extundo.com>
57865
57866         * m4/snprintf.m4: New file.
57867
57868 2004-09-30  Simon Josefsson  <jas@extundo.com>
57869
57870         * lib/snprintf.h, lib/snprintf.c: New files.
57871
57872 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57873
57874         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57875         (hol_entry_help): Never translate an empty string.
57876         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
57877         * lib/argp.h (OPTION_NO_TRANS): New option.
57878
57879 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57880
57881         * modules/argp (Maintainer): Replace Simon Josefsson
57882         by Sergey Poznyakoff.
57883
57884 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57885
57886         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
57887         changes merged back into glibc.
57888
57889 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
57892
57893 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57894
57895         * lib/xvasprintf.c: Include xalloc.h.
57896         (xvasprintf): Use xalloc_die, not xmalloc_die.
57897
57898 2004-09-29  Bruno Haible  <bruno@clisp.org>
57899
57900         * modules/alloca-opt: New file, derived from modules/alloca.
57901         * modules/allocsa: Depend on alloca-opt instead of alloca.
57902         * modules/setenv: Likewise.
57903         * modules/vasnprintf: Likewise.
57904         * MODULES.html.sh: Add alloca-opt.
57905
57906 2004-09-28  Simon Josefsson  <jas@extundo.com>
57907
57908         * gnulib-tool: New parameter --lgpl, to asseert that modules are
57909         LGPL, and to replace license template from GPL to LGPL.
57910
57911 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * modules/dummy: Change license to LGPL.
57914
57915 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
57918
57919 2004-09-24  Simon Josefsson  <jas@extundo.com>
57920
57921         * modules/minmax (License): Change from GPL to LGPL.
57922
57923 2004-09-23  Simon Josefsson  <jas@extundo.com>
57924
57925         * gnulib-tool (--import): Typo.
57926
57927 2004-09-23  Simon Josefsson  <jas@extundo.com>
57928
57929         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
57930
57931 2004-09-22  Bruno Haible  <bruno@clisp.org>
57932
57933         * modules/*: Add 'License' field.
57934         * gnulib-tool: Accept --extract-license option.
57935         (func_get_license): New function.
57936
57937 2004-09-21  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
57940         Reported by Simon Josefsson.
57941
57942 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
57945         gl_AC_TYPE_LONG_LONG.
57946
57947 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
57950
57951 2004-09-18  Simon Josefsson  <jas@extundo.com>
57952         and  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
57955         calls with autoreconf.  Define GL_LIB.
57956
57957 2004-09-14  Karl Berry  <karl@gnu.org>
57958
57959         * config/srclist.txt: unsync setenv.c, sigh.
57960
57961 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
57964         Problem reported by Bruno Haible in:
57965         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
57966
57967 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * config/srclist.txt: Comment out argp-pvh.c.
57970
57971 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
57974         in case some system header has #define'd it.  Problem reported by
57975         Soeren D. Schulze in
57976         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
57977
57978 2004-09-09  Karl Berry  <karl@gnu.org>
57979
57980         * regex.[ch]: delete from the root.  These were supposed to be
57981                 synced with emacs cvs, but this has not happened for about
57982                 a year, and anyway nothing else uses emacs regex.[ch].
57983                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
57984                 lib/regex[.ch] is untouched.
57985
57986 2004-09-09  Bruno Haible  <bruno@clisp.org>
57987
57988         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
57989
57990 2004-09-09  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
57993         modifications.
57994         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
57995
57996 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57997
57998         * modules/xvasprintf: New file.
57999         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58000
58001 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58002
58003         * lib/xvasprintf.h: New file.
58004         * lib/xvasprintf.c: New file.
58005         * lib/xasprintf.c: New file.
58006
58007 2004-09-08  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58010
58011 2004-09-08  Bruno Haible  <bruno@clisp.org>
58012
58013         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58014         length is > INT_MAX.
58015         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58016         more.
58017
58018 2004-09-08  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/stdint_.h: New file, taken from GNU clisp.
58021
58022 2004-09-08  Bruno Haible  <bruno@clisp.org>
58023             Oskar Liljeblad  <oskar@osk.mine.nu>
58024
58025         * modules/stdint: New file.
58026         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58027
58028 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         Import from coreutils.
58031         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58032         strings on unbounded length.  alloca's performance benefits aren't
58033         that important here.
58034         (V_STRDUP): Remove.
58035         (parse_with_separator): New function, with most of the internals
58036         of the old parse_user_spec.  Allow user to omit both user and group,
58037         for compatibility with FreeBSD.
58038         Clone only the user name, not the entire spec.
58039         Do not set *uid, *gid unless entirely successful.
58040         Avoid memory leak in some failing cases.
58041         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58042         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58043         (parse_user_spec): Rewrite to use parse_with_separator.
58044
58045 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         * modules/userspec: Don't depend on alloca.
58048
58049 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58052
58053 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58054
58055         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58056         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58057         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58058
58059 2004-08-16  Simon Josefsson  <jas@extundo.com>
58060
58061         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58062         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58063         Add --dry-run for --import.
58064         Let user provided command line parameters override configure.ac
58065         settings.
58066
58067 2004-08-12  Simon Josefsson  <jas@extundo.com>
58068
58069         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58070         as discussed with Paul Eggert in threads rooted at
58071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58072         and
58073         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58074         Before, the test was empty, and relied on ELIDE_CODE in source
58075         code.)
58076         (gl_PREREQ_GETOPT): New macro.
58077         (gl_GETOPT): Use them.
58078
58079 2004-08-12  Simon Josefsson  <jas@extundo.com>
58080
58081         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58082         * lib/getopt_.h: Renamed from getopt.h.
58083
58084 2004-08-12  Simon Josefsson  <jas@extundo.com>
58085
58086         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58087         Change default library name from libfoo to libgnu.
58088         Now, if you have a configure.ac that says:
58089                 gl_SOURCE_BASE(gl)
58090                 gl_M4_BASE(gl/m4)
58091                 gl_MODULES(error getopt etcetera)
58092                 gl_INIT
58093         you can import all you need by running:
58094                 ../gnulib/gnulib-tool --import
58095
58096         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58097         (Makefile.am): Rewrite, use logic from argz.
58098         (Include): Use <getopt.h> instead of "getopt.h".
58099
58100 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         * modules/argp (Files): Add m4/unlocked-io.m4.
58103         (Depends-on): Add extensions.
58104
58105 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58108         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58109         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58110         Check for program_invocation_name, program_invocation_short_name,
58111         flockfile, funlockfile, features.h, _getopt_long_only_r.
58112
58113 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58114
58115         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58116         its complicated substitute.
58117         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58118         and program_invocation_name.
58119         (__argp_basename) [!_LIBC]: Remove; the only use was
58120         replaced by its body.
58121         (__argp_short_program_name): Change condition from
58122         !defined __argp_short_program_name to
58123         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58124         to match argp-namefrob.h.
58125         (__argp_failure): Don't assume strerror_r returns char *.
58126         * lib/argp-parse.c (N_): Define unconditionally.
58127         (argp_default_options): Fill out initializers with 0 to avoid
58128         gcc warnings.
58129
58130 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58133         getopt1.c.
58134
58135 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         Merge from coreutils.
58138
58139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58140
58141         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58142         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58143
58144 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58145
58146         Merge from coreutils.
58147
58148         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58149         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58150         for Reliant Unix 5.43.
58151
58152         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58153         (union fooround): Use uintmax_t, not long int.
58154         The rest is a merge from libc:
58155         [defined _LIBC]: Include <shlib-compat.h>.
58156         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58157
58158         * lib/settime.c (settime): Recode to avoid warning with
58159         Sun Forte C 6U2.
58160
58161         * lib/strverscmp.c: Convert to UTF-8.
58162
58163 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58166         m4/uintmax_t.m4.
58167
58168 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58169
58170         * modules/xalloc-die: New file.
58171         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58172
58173         * modules/md5 (Files): Add m4/uint32_t.m4.
58174         * modules/sha1: Renamed from modules/sha.
58175         (Files):
58176         Rename lib/sha.h to lib/sha1.h.
58177         Rename lib/sha.c to lib/sha1.c.
58178         Rename m4/sha.m4 to m4/sha1.m4.
58179         (lib_SOURCES): Likewise.
58180         (configure.ac): Rename gl_SHA to gl_SHA1.
58181         (Include): sha.h -> sha1.h.
58182
58183 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58186         * m4/sha1.m4: Renamed from sha.m4.
58187         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58188
58189 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58190
58191         * lib/obstack.h (obstack_empty_p):
58192         Don't assume that chunk->contents is suitably aligned.
58193         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58194         Likewise. Problem reported by Benno in
58195         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58196
58197         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58198         readable.  This could be improved further but it'd take some work.
58199
58200 2004-08-08  Simon Josefsson  <jas@extundo.com>
58201
58202         * modules/xgethostname (Depends-on): Remove exit and error (not
58203         used).
58204
58205         * modules/getpass-gnu: Add getpass.h.
58206         (Depends-on): Add stdbool.
58207         * modules/getpass: Add getpass.h.
58208
58209 2004-08-08  Simon Josefsson  <jas@extundo.com>
58210
58211         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58212         Check getpass declaration.
58213
58214 2004-08-08  Simon Josefsson  <jas@extundo.com>
58215
58216         * lib/xgethostname.c: Don't include error.h (not used).
58217
58218         * lib/getpass.h: Add.
58219         * lib/getpass.c: Include getpass.h first.
58220
58221 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * lib/xalloc-die.c: New file.
58224         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58225         All uses removed.
58226         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58227         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58228         xalloc-die.c.
58229         (_, N_, xalloc_die): Move to xalloc-die.c.
58230         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58231         so that we needn't mess with xalloc_msg_memory_exhausted.
58232
58233         * lib/sha1.h: Renamed from sha.h.
58234         (SHA1_H): Renamed from _SHA_H.
58235         (sha1_ctx): Renamed from sha_ctx.
58236         (sha1_init_ctx): Renamed from sha_init_ctx.
58237         (sha1_process_block): Renamed from sha_process_block.
58238         (sha1_process_bytes): Renamed from sha_process_bytes.
58239         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58240         (sha1_read_ctx): Renamed from sha_read_ctx.
58241         (sha1_stream): Renamed from sha_stream.
58242         (sha1_buffer): Renamed from sha_buffer.
58243         * lib/sha1.c: Likewise; renamed from sha.c.
58244         Do not include <sys/types.h>.
58245         Include <stddef.h> rather than <stdlib.h>.
58246
58247 2004-08-08  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58250         FILESYSTEM_PREFIX_LEN.
58251         * lib/progreloc.c: Likewise.
58252         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58253
58254 2004-08-06  Simon Josefsson  <jas@extundo.com>
58255
58256         * modules/progname (Depends-on): Don't depend on stdbool.
58257
58258 2004-08-06  Simon Josefsson  <jas@extundo.com>
58259
58260         * modules/getsubopt: New file.
58261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58262         getsubopt.
58263
58264 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58265
58266         More merge from coreutils.
58267
58268         * m4/utimens.m4, m4/utimecmp.m4: New files.
58269         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58270         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58271         prereq.m4, sha.m4: Import changes from coreutils.
58272
58273 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         More merge from coreutils.
58276         * modules/raise, modules/readtokens0, modules/utimens:
58277         * modules/utimecmp, module/xnanosleep: New files.
58278         * modules/strftime: Add lib/strftime.h.
58279         Change include from <time.h> to "strftime.h".
58280         * modules/yesno: Add lib/yesno.h.
58281         * modules/backupfile: Remove lib/addext.c.
58282         * modules/euidaccess: Add stat-macros.h.
58283         * modules/canonicalize, modules/euidaccess,
58284         modules/filemode, modules/lchown, modules/makepath,
58285         modules/rmdir, modules/stat: Likewise.
58286
58287 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         Merge from tar.
58290         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58291         SIZE_MAX is a valid preprocessor constant.
58292         (__argp_basename): Change from "#ifndef _LIBC"
58293         to "#ifndef __argp_short_program_name", so that
58294         we don't compile these functions for tar.
58295
58296         More merges from coreutils.
58297         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58298         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58299         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58300         * lib/addext.c: Remove; no longer needed.
58301         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58302         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58303         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58304         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58305         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58306         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58307         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58308         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58309         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58310         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58311         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58312         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58313         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58314         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58315         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58316         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58317         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58318         Import changes from coreutils.
58319
58320 2004-08-05  Simon Josefsson  <jas@extundo.com>
58321
58322         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58323
58324 2004-08-05  Simon Josefsson  <jas@extundo.com>
58325
58326         * m4/getsubopt.m4: New file.
58327
58328 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         Merge from coreutils.
58331
58332         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58333         * m4/getcwd-path-max.m4: New files.
58334
58335         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58336         FILESYSTEM_PREFIX_LEN ->
58337         FILE_SYSTEM_PREFIX_LEN.
58338         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58339         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58340         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58341         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58342
58343         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58344         prerequisite modules now handle the DOS stuff.
58345         Don't check for unistd.h.
58346
58347 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58348
58349         Merge from coreutils.
58350
58351         * lib/.gdb-history: Remove; this doesn't belong here.
58352
58353         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58354         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58355         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58356         * lib/getcwd.c: New files.
58357
58358         * lib/dirname.h: Include <stdbool.h>.
58359         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58360         for consistency with POSIX terminology.  All uses changed.
58361         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58362         (strip_trailing_slashes): Use bool for booleans.
58363         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58364
58365         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58366         sometimes returns a positive errno value even when it succeeds.
58367         (print_errno_message) [!LIBC]: Fall back on strerror if
58368         __strerror_r fails.
58369
58370         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58371         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58372         (longest_relative_suffix): New function.
58373         (path_concat): Use it.  Assume first argument is not NULL.
58374         Port to DOS.  Omit redundant separators.
58375         Report an error instead of returning NULL.
58376         Use mempcpy instead of memcpy.
58377         (xpath_concat): Remove: not declared or used.
58378
58379         * lib/same.h: Include <stdbool.h>
58380         (same_name): Return bool, not int.
58381         * lib/same.c (same_name): Likewise.
58382         (errno): Don't declare; we assume C89 or better now.
58383
58384         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58385         if not already defined.
58386
58387         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58388         * lib/dup-safer.c (errno): Likewise.
58389
58390 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         Merge from coreutils.
58393         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58394         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58395         * modules/path-concat: Don't depend on strdup.
58396
58397 2004-08-03  Simon Josefsson  <jas@extundo.com>
58398
58399         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58400         * lib/progname.h: Don't include stdbool.h.
58401
58402 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58403
58404         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58405         * MODULES.html.sh (func_all_modules): Remove fatal.
58406
58407 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58408
58409         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58410
58411 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58414         working.
58415
58416 2004-08-02  Simon Josefsson  <jas@extundo.com>
58417
58418         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58419         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58420         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58421
58422 2004-08-01  Simon Josefsson  <jas@extundo.com>
58423
58424         * lib/xgetdomainname.c: Include stdlib.h, for free().
58425
58426 2004-07-19  Bruno Haible  <bruno@clisp.org>
58427
58428         * MODULES.html.sh (func_all_modules): Add dummy.
58429
58430 2004-07-16  Simon Josefsson  <jas@extundo.com>
58431
58432         * modules/dummy: New file.
58433
58434 2004-07-16  Simon Josefsson  <jas@extundo.com>
58435
58436         * lib/dummy.c: New file.
58437
58438 2004-07-16  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/backupfile.h: Add extern "C" for C++.
58441         * lib/closeout.h: Likewise.
58442         * lib/copy-file.h: Likewise.
58443         * lib/findprog.h: Likewise.
58444         * lib/full-write.h: Likewise.
58445         * lib/pathname.h: Likewise.
58446         * lib/progname.h: Likewise.
58447         * lib/stpcpy.h: Likewise.
58448         * lib/stpncpy.h: Likewise.
58449         * lib/strcase.h: Likewise.
58450         * lib/strstr.h: Likewise.
58451         * lib/xalloc.h: Likewise.
58452
58453         * lib/mbswidth.h: Add extern "C" for C++.
58454         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58455
58456 2004-07-13  Robert Millan  <robertmh@gnu.org>
58457
58458         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58459
58460 2004-07-09  Simon Josefsson  <jas@extundo.com>
58461
58462         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58463         failed without this.)
58464
58465 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * modules/chown (Files): Add lib/fchown-stub.c, since
58468         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58469
58470 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         * lib/fchown-stub.c: New file.
58473
58474 2004-06-24  Jim Meyering  <jim@meyering.net>
58475
58476         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58477
58478 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * modules/argz: Omit "#include".
58481
58482         * MODULES.html.sh (func_all_modules): Add calloc, to match
58483         2004-06-01 addition of calloc module.
58484
58485 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * m4/argz.m4: New file, which is autoupdated from libtool.
58488
58489 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58492         libtool.
58493
58494 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * config/srclist-update: Don't insist on "USA." before the
58497         close-comment, as libtool omits the period and puts the */ on a
58498         separate line.
58499         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58500         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58501
58502 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58503
58504         * modules/argz: New file.
58505         * MODULES.html.sh (func_all_modules): Add argz.
58506
58507 2004-06-12  Jim Meyering  <jim@meyering.net>
58508         and  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * modules/hash (Files): Add lib/xalloc.h.
58511         * modules/pipe (Depends-on): Add wait-process.
58512         * modules/stat (Depends-on): Add xalloc.
58513         * modules/userspec (Files): Add lib/userspec.h.
58514         * modules/xstrto
58515
58516         Upgrade from gettext-0.13.
58517         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58518         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58519         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58520
58521 2004-06-10  Jim Meyering  <jim@meyering.net>
58522
58523         * lib/calloc.c: New file.
58524
58525 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/getdate.y (yylex): Allow space between sign and number.
58528         Problem reported by Dan Jacobson.
58529
58530 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         Merge from coreutils CVS.
58533
58534         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58535         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58536         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58537         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58538         xstrtol.m4: Fix copyright date and/or serial number.
58539
58540         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58541         See if we need an fchown replacement.
58542         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58543         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58544         and use the replacement function if we detect either defect.
58545
58546         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58547         gl_UTIMECMP.
58548
58549 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58550         and  Jim Meyering  <jim@meyering.net>
58551
58552         Merge from coreutils CVS.
58553
58554         * lib/stat-macros.h: New file, with contents from file-type.h
58555         and coreutils' system.h.
58556         * lib/file-type.c: Include "stat-macros.h".
58557         * lib/file-type.h (file_type): Move all macro definitions to new file,
58558         stat-macros.h.
58559
58560         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58561         Wrap old code with this conditional.
58562         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58563         function that does not dereference symlinks.
58564         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58565
58566         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58567         dependency problems.
58568         (xreadlink): Accept new arg SIZE, for efficiency.
58569         All decls and uses changed.
58570         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58571
58572         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58573         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58574
58575         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58576         sysexits.h.
58577
58578 2004-06-01  Jim Meyering  <jim@meyering.net>
58579
58580         * m4/calloc.m4: New file.
58581
58582 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58583
58584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58585         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58586         Also, fix a typo in a diagnostic.
58587
58588 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58591         or AC_FUNC_REALLOC.
58592
58593 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58596         macros to be defined.
58597         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58598         the allocator returns NULL because the requested size is zero.
58599
58600 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58603         var.  Add comment explaining why libc still defines it.  This
58604         merges the following patch from glibc:
58605         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58606
58607 2004-05-20  Andreas Schwab  <schwab@suse.de>
58608
58609         * m4/free.m4: Replace free if it not known to work, not the other
58610         way round.
58611
58612 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58615         present in glibc since revision 1.1 of this file.
58616         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58617         obstack_alignment_mask, obstack_alloc, obstack_base,
58618         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58619         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58620         obstack_grow0, obstack_init, obstack_int_grow,
58621         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58622         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58623         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58624         nonexistent functions.
58625
58626 2004-05-18  Karl Berry  <karl@gnu.org>
58627
58628         * config/srclist.txt: break link for vasnprintf.c.
58629
58630 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         Port obstack to the AS/400, where pointers are 16 bytes wide and
58633         you cannot cast an integer to a valid pointer.  This patch is
58634         currently waiting to be integrated into glibc; see
58635         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58636
58637         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58638         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58639         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58640         (struct obstack): temp member is now a union of a pointer and
58641         an integer, instead of an integer.  All integer uses changed.
58642         This does not affect the physical layout of struct obstack,
58643         except on hosts (like the AS/400) where the size or alignment of
58644         void * is greater than that of ptrdiff_t.
58645         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58646         __STDC__)]: Store temporary in pointer member of union, not
58647         integer member.
58648         * lib/obstack.c: Include <stddef.h>, for offsetof.
58649         (struct fooalign): Remove; it doesn't need a name.
58650         (union fooround): Change double to long double, and add void *.
58651         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58652         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58653         not a macro.  Hence the values are always int; so remove all
58654         casts-to-int in uses.
58655
58656 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58659         we can get this patch merged into glibc.
58660
58661 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58662             Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * m4/argp: Depend on alloca.
58665
58666 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58667             Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58670         freecoding.
58671
58672 2004-05-17  Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58675         precision that consists of a '.' followed by an empty digit string.
58676         Patch by Tor Lillqvist <tml@iki.fi>.
58677
58678 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58679
58680         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58681         for backward compatibility with older code.  We need our own
58682         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58683         it under some other name, and our alloca.h will define it.
58684
58685 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58686             Derek Price  <derek@ximbiot.com>
58687
58688         * lib/alloca.c: Include <alloca.h>, to get our interface.
58689         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58690         include <alloca.h> first.  Use C89 prototype for alloca; this
58691         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58692         Use #elif for simplicity, since we can assume C89 now.
58693         Don't try to source the system alloca.h since it will not be found
58694         and to prevent recursively including its replacement.
58695         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58696         * lib/regex.c: Likewise.
58697
58698 2004-05-16  Derek Price  <derek@ximbiot.com>
58699             Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         getline cleanup.  This changes the getndelim2 API: both order of
58702         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58703         no delimiter).
58704
58705         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58706         interface does that.
58707         (getline): Always use getdelim, so that we don't have two
58708         copies of this code.
58709         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58710         if available.
58711         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58712         (GETNDELIM2_MAXIMUM): New macro.
58713         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58714         instead of the old practice of delim2==0.  All callers changed.
58715         Return -1 on overflow, instead of returning junk.
58716         Do not set *linesize unless allocation succeeds.
58717         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58718         that we include sys/types.h.
58719         * lib/getnline.h: Likewise.
58720         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58721         (getndelim2): Reorder arguments.
58722         * lib/getnline.c (getnline, getndelim):
58723         Don't discard the NMAX argument.
58724         (getnline): Invoke getndelim, to avoid code duplication.
58725         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58726         of (size_t) -1 by callers of the getnline family.
58727
58728 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58729
58730         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58731         Check for gettimeofday.
58732         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58733         Check for settimeofday, stime.
58734
58735 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * lib/nanosleep.c (suspended): Change its type from int to
58738         sig_atomic_t volatile.
58739         (first_call): Make it private to rpl_nanosleep, and have it
58740         be zero initially as that's a bit faster.
58741         (my_usleep): Round up fractional times instead of truncating them,
58742         as this is the usual meaning for 'sleep'.
58743
58744         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58745         doesn't work.
58746         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58747         (ENOSYS): Define if not defined.
58748         (settime): Fall back on stime if it exists and settimeofday fails.
58749         But don't bother with fallbacks if a method fails with errno == EPERM.
58750
58751 2004-05-11  Jim Meyering  <jim@meyering.net>
58752
58753         Prior to this change, the save_cwd caller required read access to the
58754         current directory on most systems (ones with the fchdir function).
58755
58756         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58757         fails, try write-only, and finally, resort to using xgetcwd.
58758
58759 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * lib/obstack.c, obstack.h: Import changes from libc.
58762
58763 2004-04-28  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58766         also implicitly appends .exe to executables.
58767         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58768         accepts Windows pathnames.
58769         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58770         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58771         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58772         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58773         Reported by Derek Robert Price <derek@ximbiot.com>.
58774
58775 2004-04-21  Karl Berry  <karl@gnu.org>
58776
58777         * config/srclist.txt (localcharset.c): break sync.
58778
58779 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58780
58781         * m4/host-os.m4: Add a copyright notice.
58782
58783 2004-04-20  Jim Meyering  <jim@meyering.net>
58784
58785         Change UTILS_ to gl_ in AC_DEFINE'd names.
58786         Change utils_- and jm_-prefixed variables, too.
58787         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58788         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58790
58791         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58792         Don't emit trailing blanks.
58793         Also rename jm_-prefixed variables to have gl_ prefix.
58794
58795         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58796         Also rename jm_-prefixed variables to have gl_ prefix.
58797
58798         * m4/jm-macros.m4: Reflect the renamings.
58799         * m4/prereq.m4: Likewise.
58800
58801 2004-04-20  Jim Meyering  <jim@meyering.net>
58802
58803         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58804         memory.
58805
58806 2004-04-20  Jim Meyering  <jim@meyering.net>
58807             Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58810         memory when realloc fails.
58811
58812 2004-04-19  Jim Meyering  <jim@meyering.net>
58813
58814         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58815         now that readutmp.c may call `free (0)'.
58816
58817 2004-04-19  Bruno Haible  <bruno@clisp.org>
58818
58819         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58820         * m4/inttypes_h.m4: Likewise.
58821         * m4/stdint_h.m4: Likewise.
58822         * m4/intmax_t.m4: Likewise.
58823         * m4/uintmax_t.m4: Likewise.
58824
58825 2004-04-18  Jim Meyering  <jim@meyering.net>
58826
58827         * m4/prereq.m4: Don't forbid jm_ prefix.
58828
58829         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58830         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58831         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58832         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58833         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58834         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58835         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58836         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58837         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58838         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58839         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58840         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58841         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58842         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58843         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58844         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58845         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58846         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58847         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58848
58849 2004-04-18  Jim Meyering  <jim@meyering.net>
58850
58851         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58852         failure, don't leak memory and do call END_UTMP_ENT.
58853
58854 2004-04-16  Jim Meyering  <jim@meyering.net>
58855
58856         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58857         coreutils' stat program.
58858         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58859
58860 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58861
58862         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58863         C89.
58864         (CHAR_BIT): Remove, since we assume C89.
58865         Include <stdint.h> if available, as per current Autoconf CVS advice.
58866
58867 2004-03-31  Jim Meyering  <jim@meyering.net>
58868
58869         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58870         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58871         * m4/xalloc.m4: Likewise.
58872
58873 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58874
58875         Merge from coreutils.
58876
58877         * m4/inttostr.m4: New file.
58878         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
58879         Require AM_STDBOOL_H and gl_TIMESPEC instead.
58880         Require gl_CLOCK_TIME.
58881         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
58882
58883 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58884
58885         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
58886         not bool, to be more consistent with Unix conventions.
58887         Suggested by Bruno Haible.
58888
58889         Merge from coreutils.
58890
58891         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
58892         * lib/umaxtostr.c: New files.
58893
58894         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
58895         the usual <time.h> dance.
58896         (get_date): Change signature to support fractional time stamps.
58897         All callers changed.
58898         * lib/getdate.y: Include "getdate.h" first, as we can now
58899         assume C89 and don't need to worry about 'const'.
58900         Similarly, include "unlocked-io.h" near start, not in middle.
58901         Include <limits.h>.
58902         (textint.value): Use long int rather than int.
58903         (textint.digits): Use size_t rather than int.
58904         (BILLION, LOG10_BILLION): New constants.
58905         (parser_control): New member rel_ns.  Members day_ordinal,
58906         time_zone, month, day, hour, minutes, rel_year, rel_month,
58907         rel_day, rel_hour, rel_minutes, rel_seconds
58908         are now long int, not int.  Member seconds is now struct timespec,
58909         not int.  New member timespec_seen.  Members dates_seen, days_seen,
58910         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
58911         not int.
58912         (%union.intval): Now long int, not int.
58913         New member timespec.
58914         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
58915         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
58916         (spec): Now is a timespec or an item list.
58917         (timespec, items): New nonterminals.
58918         (time, rel, relunit, number, get_date):
58919         Add support for fractional seconds.
58920         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
58921         (gmtime, localtime, mktime): Remove decls; not needed with C89.
58922         (to_hour): First arg is now long int, not int.
58923         (to_year): Returns long int, not int.
58924         Don't treat year -70 like 70.
58925         (tm_diff): Returns long int, not int.
58926         (lookup_word): Use bool instead of int when appropriate.
58927         (yylex): Use size_t for count, not int.
58928         Detect overflow when parsing large integer constants.
58929         Add support for fractions.
58930         (get_date): Make pointers 'const' if possible.
58931         Use more-portable code to detect integer overflow.
58932         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
58933         Don't use ctime; it's not reliable if the year has >4 digits.
58934
58935         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
58936         This is for compatibility with BSD.
58937
58938         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
58939         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
58940         From coreutils' system.h.
58941
58942         * lib/userspec.c: Don't include "posixver.h".
58943         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
58944         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
58945         compatible extension.  Simplify code by removing a boolean int
58946         that was always nonzero if a string was nonnull.
58947
58948 2004-03-30  Jim Meyering  <jim@meyering.net>
58949
58950         Merge from coreutils.
58951
58952         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
58953         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
58954         on some systems one must include <grp.h> before it.
58955         Reported by Christian Krackowizer.
58956
58957 2004-03-30  Jim Meyering  <jim@meyering.net>
58958
58959         Merge from coreutils.
58960
58961         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
58962
58963         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
58964         an empty input stream.
58965
58966         * lib/readtokens.c: Include <stdbool.h>.
58967         (readtoken): Use `size_t' rather than int/long.
58968         All callers adjusted.
58969         Use `bool' rather than `int' where appropriate.
58970         Use memset rather than an explicit loop.
58971         Use x2nrealloc rather than xrealloc.
58972         Allow the use of `\0' as a delimiter.
58973         (readtokens): Likewise.
58974         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
58975
58976 2004-03-30  Jim Meyering  <jim@meyering.net>
58977
58978         * m4/realloc.m4: Remove file, since now it does no more than
58979         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
58980         the `configure.ac' section of module/realloc.
58981         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
58982
58983 2004-03-30  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
58986         nonnull.
58987
58988 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58989
58990         Merge changes to getloadavg.c from coreutils and Emacs.
58991
58992         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
58993         Define to an expression, not to the empty string.
58994         Include cloexec.h and xalloc.h.
58995         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
58996         Use set_cloexec_flag rather than rolling our own.
58997         * lib/cloexec.c, lib/cloexec.h: New files.
58998
58999 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59000
59001         * m4/cloexec.m4: New file.
59002
59003 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59004
59005         * lib/getopt.h: Sync with libc CVS.
59006
59007 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59008             Bruno Haible  <bruno@clisp.org>
59009
59010         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59011         mbswidth.
59012
59013 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59014             Bruno Haible  <bruno@clisp.org>
59015
59016         * lib/mbswidth.h: Include <wchar.h> only if
59017         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59018         <wchar.h>.
59019         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59020
59021 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59022
59023         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59024         Sync with libc CVS.
59025         * lib/getopt_int.h: New file, also synced from libc.
59026
59027 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59028
59029         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59030         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59031         Bring back getopt.c, getopt.h, getopt1.c.
59032
59033 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59034
59035         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59036         All uses changed.  Check for sa_sigaction member; this fixes
59037         a bug first reported by Jason Andrade in
59038         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59039
59040 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59041
59042         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59043         '#if' expressions.  Unlike the code it replaces, it does not
59044         depend on (defined _SC_PAGESIZE).  However, it does depend on
59045         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59046         first reported by Jason Andrade in
59047         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59048
59049 2004-02-25  Simon Josefsson  <jas@extundo.com>
59050
59051         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59052
59053 2004-02-25  Simon Josefsson  <jas@extundo.com>
59054
59055         * lib/strdup.h: New file.
59056         * lib/strdup.c: Include it.
59057         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59058         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59059
59060 2004-02-23  Karl Berry  <karl@gnu.org>
59061
59062         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59063         (from fencepost.gnu.org:/gd/gnuorg).
59064
59065 2004-02-23  Karl Berry  <karl@gnu.org>
59066
59067         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59068         * config/srclist.txt: add maintain/standards documents.
59069
59070 2004-02-18  Bruno Haible  <bruno@clisp.org>
59071
59072         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59073         Reported by Derek Robert Price <derek@ximbiot.com>.
59074
59075 2004-02-16  Karl Berry  <karl@gnu.org>
59076
59077         * config/mkinstalldirs, install-sh: update from automake.
59078
59079 2004-02-06  Karl Berry  <karl@gnu.org>
59080
59081         * m4/po.m4: update from gettext 0.14.1.
59082
59083 2004-02-06  Karl Berry  <karl@gnu.org>
59084
59085         * lib/config.charset: update from gettext 0.14.1.
59086
59087 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59088
59089         Add comments and code, prompted by suggestions from Bruno Haible
59090         for sh-quote.
59091         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59092         describing the enum quoting_style values.
59093         * lib/quotearg.c (quotearg_alloc): New function.
59094         (quotearg_buffer_restyled): Treat lone { and } as special.
59095         Treat = as special.  Work around bug with older shells
59096         that "see" a '\' that is really the 2nd byte of a multibyte char.
59097         Quote empty string with shell_quoting_style.
59098
59099 2004-02-03  Bruno Haible  <bruno@clisp.org>
59100
59101         * m4/pipe.m4: New file, from GNU gettext.
59102
59103 2004-02-03  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/pipe.h: New file, from GNU gettext.
59106         * lib/pipe.c: New file, from GNU gettext.
59107
59108 2004-01-27  Bruno Haible  <bruno@clisp.org>
59109
59110         * m4/execute.m4: New file, from GNU gettext.
59111
59112 2004-01-27  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/execute.h: New file, from GNU gettext.
59115         * lib/execute.c: New file, from GNU gettext.
59116         * lib/w32spawn.h: New file, from GNU gettext.
59117
59118 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59119
59120         Merge from diffutils.
59121
59122         * lib/file-type.c (file_type): Add typed memory objects.
59123         * lib/file-type.h (S_TYPEISTMO): New macro.
59124
59125         * lib/c-stack.h (c_stack_action): Remove argv argument.
59126         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59127         (die): Don't calculate message unless segv_action returns.
59128         (get_stack_location, min_address_from_argv, max_address_from_argv,
59129         volatile stack_base, volatile_stack_size): Remove.
59130         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59131         that every segmentation violation is a stack overflow.  (Ouch!)
59132         See Debian bug 136249 (still outstanding) for more info about why
59133         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59134
59135 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59136
59137         Exit-status fix from coreutils.
59138
59139         Use exit_failure consistently in place of EXIT_FAILURE,
59140         so that program exit statuses are consistent on failure.
59141
59142         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59143         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59144         * lib/argmatch.h: Comment fix to match the above.
59145         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59146         Now a macro referring to exit_failure, instead of a separate
59147         variable.  Include "exitfail.h" to get it.
59148         * lib/xstrtol.h: Include "exitfail.h".
59149         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59150
59151         * lib/long-options.c (parse_long_options): Use prototype
59152         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59153         for clarity.
59154
59155 2004-01-21  Jim Meyering  <jim@meyering.net>
59156
59157         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59158         so as not to conflict with a different-sized __mktime_internal
59159         function in GNU libc.
59160         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59161         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59162
59163 2004-01-20  Karl Berry  <karl@gnu.org>
59164
59165         * config/config.guess: update from config.
59166
59167         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59168
59169 2004-01-20  Bruno Haible  <bruno@clisp.org>
59170
59171         Safer stack allocation.
59172         * lib/setenv.c: Include allocsa.h.
59173         (alloca): Remove fallback definition.
59174         (freea): Remove macro.
59175         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59176         instead of freea.
59177
59178 2004-01-20  Bruno Haible  <bruno@clisp.org>
59179
59180         * m4/eealloc.m4: New file, from GNU gettext.
59181
59182 2004-01-20  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/allocsa.m4: New file, from GNU gettext.
59185
59186 2004-01-20  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/xallocsa.h: New file, from GNU gettext.
59189         * lib/xallocsa.c: New file, from GNU gettext.
59190
59191 2004-01-20  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59194
59195 2004-01-20  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59198         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59199         specially.
59200
59201 2004-01-20  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59204         patch.
59205
59206 2004-01-20  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59209
59210 2004-01-20  Bruno Haible  <bruno@clisp.org>
59211
59212         * lib/eealloc.h: New file.
59213
59214 2004-01-20  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/binary-io.h: Avoid warnings on Cygwin.
59217
59218 2004-01-20  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/allocsa.h: New file, from GNU gettext.
59221         * lib/allocsa.c: New file, from GNU gettext.
59222
59223 2004-01-18  Karl Berry  <karl@gnu.org>
59224
59225         * doc/gpl.texi, doc/lgpl.texi: new files.
59226
59227 2004-01-18  Karl Berry  <karl@gnu.org>
59228
59229         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59230         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59231
59232 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59233
59234         Merge from coreutils.
59235
59236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59237         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59238         (gl_DEFAULT_POSIX2_VERSION): Move
59239         the documentation from 'configure' into 'config.hin',
59240         so that 'configure --help' isn't burdened by it and
59241         we don't have to worry about its formatting there.
59242         Reword the documentation so that it's more succinct
59243         and can be run together into a single paragraph.
59244         * m4/same.m4 (gl_SAME): Check for pathconf.
59245
59246 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59247
59248         Merge from coreutils.
59249
59250         * lib/posixver.c: Include posixver.h.
59251
59252         * lib/same.c: Include <stdbool.h>, <limits.h>.
59253         (_POSIX_NAME_MAX): Define if not defined.
59254         (MIN): New macro.
59255         (same_name): If file names are silently truncated, report
59256         that the file names are the same if they are the same after
59257         the silent truncation.
59258
59259         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59260         conversion function.
59261         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59262         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59263         longer needed.
59264
59265 2004-01-15  Jim Meyering  <jim@meyering.net>
59266
59267         Merge from coreutils.
59268
59269         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59270         if no library is required.
59271         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59272         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59273         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59274         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59275         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59276         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59277         value, $ac_cv_search_crypt, if it's "none required".
59278         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59279         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59280         not gl_FUNC_GETLOADAVG.
59281         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59282         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59283
59284 2004-01-15  Jim Meyering  <jim@meyering.net>
59285
59286         Merge from coreutils.
59287
59288         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59289         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59290         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59291
59292         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59293         optional configure-time default.
59294
59295         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59296
59297         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59298
59299 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59300
59301         Merge from coreutils.
59302
59303         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59304         value, $ac_cv_search_nanosleep, if it's "none required".
59305
59306 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59307
59308         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59309         with like-named macro in fnmatch.c.
59310         (EXT): Use an internal constant instead.
59311
59312         Merge fnmatch patches from glibc.
59313         * lib/fnmatch.c (mbsinit): Remove define.
59314         Add libc_hidden_ver (__fnmatch, fnmatch).
59315         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59316         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59317
59318 2004-01-14  Karl Berry  <karl@gnu.org>
59319
59320         * config/install-sh: update from automake.
59321
59322 2004-01-13  Karl Berry  <karl@gnu.org>
59323
59324         * config/install-sh: update from automake.
59325
59326 2004-01-09  Karl Berry  <karl@gnu.org>
59327
59328         * config/install-sh: update from automake.
59329
59330 2004-01-05  Karl Berry  <karl@gnu.org>
59331
59332         * config/config.{sub,guess}: update from config.
59333
59334 2003-12-31  Karl Berry  <karl@gnu.org>
59335
59336         * config/depcomp: update from automake.
59337
59338 2003-12-14  Karl Berry  <karl@gnu.org>
59339
59340         * lib/config.charset: update from gettext-runtime.
59341
59342 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59343
59344         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59345         Bug reported by Alfred M. Szmidt.
59346
59347 2003-12-03  Bruno Haible  <bruno@clisp.org>
59348
59349         * m4/gettext.m4: Upgrade from gettext-0.13.
59350         * m4/po.m4: Upgrade from gettext-0.13.
59351         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59352         * m4/intmax.m4: New file, from gettext-0.13.
59353         * m4/printf-posix.m4: New file, from gettext-0.13.
59354
59355 2003-11-29  Karl Berry  <karl@gnu.org>
59356
59357         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59358
59359 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59360             Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/printf-parse.h: Don't include sys/types.h.
59363         (ARG_NONE): New macro.
59364         (char_directive): Change type of *arg_index fields to size_t.
59365         * lib/printf-parse.c: Don't include sys/types.h.
59366         (SSIZE_MAX): Remove macro.
59367         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59368         Remove unnecessary overflow check.
59369         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59370         fields.
59371
59372 2003-11-25  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59375
59376 2003-11-25  Bruno Haible  <bruno@clisp.org>
59377
59378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59379         gt_TYPE_SSIZE_T.
59380
59381 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59382
59383         * modules/alloca: Remove dependency on xalloc.
59384
59385 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59386
59387         * lib/alloca.c: Remove dependency on xalloc module.
59388         (xalloc_die): Remove.
59389         (memory_full) [!defined emacs]: New macro.
59390         [!defined emacs]: Don't include xalloc.h.
59391         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59392         address arithmetic overflows.  Change datatypes a bit to avoid
59393         unnecessary casts.
59394
59395 2003-11-22  Jim Meyering  <jim@meyering.net>
59396
59397         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59398         s/size/size_t/.
59399
59400 2003-11-21  Karl Berry  <karl@gnu.org>
59401
59402         * config/config.{sub,guess}: update from config.
59403
59404 2003-11-18  Karl Berry  <karl@gnu.org>
59405
59406         * config/config.{sub,guess}: update from config.
59407
59408         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59409
59410 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59411
59412         * README: Mention that S+T cannot overflow if S is the size of
59413         an existing object and T is sufficiently small.
59414
59415 2003-11-17  Jim Meyering  <jim@meyering.net>
59416
59417         On systems without utime and without a utimes function capable of
59418         dealing with a NULL struct utimbuf* argument, this utime replacement
59419         could -- in unusual circumstances -- leak a file descriptor.
59420         * lib/utime.c: Include <unistd.h> and <errno.h>.
59421         (utime_null): Be sure to close `fd' and to preserve errno.
59422         Reported by Geoff Collyer via Arnold Robbins.
59423
59424 2003-11-17  Bruno Haible  <bruno@clisp.org>
59425
59426         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59427         (Depends-on): Add xsize.
59428
59429 2003-11-17  Bruno Haible  <bruno@clisp.org>
59430
59431         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59432
59433 2003-11-17  Bruno Haible  <bruno@clisp.org>
59434
59435         * lib/vasnprintf.c (alloca): Remove fallback definition.
59436         (freea): Remove definition.
59437         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59438         Reported by Paul Eggert.
59439
59440 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59441             Bruno Haible  <bruno@clisp.org>
59442
59443         Protect against address arithmetic overflow.
59444         * lib/printf-args.h: Include stddef.h.
59445         (arguments): Change type of field 'count' to size_t.
59446         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59447         'unsigned int' where appropriate.
59448         * lib/printf-parse.h: Include sys/types.h.
59449         (char_directive): Change type of *arg_index fields to ssize_t.
59450         (char_directives): Change type of fields 'count', max_*_length to
59451         size_t.
59452         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59453         (SSIZE_MAX): Define fallback value.
59454         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59455         instead of 'int' where appropriate. Check a_allocated, d_allocated
59456         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59457         * lib/vasnprintf.c: Include xsize.h.
59458         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59459         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59460         overflow. Avoid wraparound when converting a width or precision from
59461         decimal to binary.
59462
59463 2003-11-16  Bruno Haible  <bruno@clisp.org>
59464
59465         Update from GNU gettext.
59466         * lib/printf-parse.c: Generalize to it can be compiled for wide
59467         strings.
59468         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59469         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59470         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59471         SNPRINTF): New macros.
59472         Don't include <alloca.h> if the file is used inside libintl.
59473         (local_wcslen): New function, for Solaris 2.5.1.
59474         (VASNPRINTF): Use it instead of wcslen.
59475
59476 2003-11-16  Bruno Haible  <bruno@clisp.org>
59477
59478         * lib/xsize.h (xmax): New function.
59479         (xsum, xsum3, xsum4): Declare as "pure" functions.
59480
59481 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59482
59483         * modules/xalloc (Files): Undo latest change, since xalloc.h
59484         no longer needs SIZE_MAX or PTRDIFF_MAX.
59485
59486 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59487
59488         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59489         gl_PTRDIFF_MAX.
59490
59491 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59492
59493         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59494         "return", to pacify some unknown compiler.  Problem reported
59495         by Joerg Schilling.
59496
59497 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59498
59499         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59500         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59501         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59502         heuristic is just as accurate as far as we know, and it removes a
59503         dependency on size_max.m4 and ptrdiff_max.m4.
59504
59505 2003-11-11  Bruno Haible  <bruno@clisp.org>
59506
59507         * modules/xsize (Files): Add m4/size_max.m4.
59508         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59509
59510 2003-11-11  Bruno Haible  <bruno@clisp.org>
59511
59512         * m4/size_max.m4: New file.
59513         * m4/ptrdiff_max.m4: New file.
59514         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59515         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59516         (gl_XALLOC): Invoke it.
59517
59518 2003-11-11  Bruno Haible  <bruno@clisp.org>
59519
59520         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59521         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59522         defined.
59523
59524 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59525
59526         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59527         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59528         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59529         From Bruno Haible.
59530         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59531         not (size_t) -1, since it's defined here.
59532
59533 2003-11-09  Karl Berry  <karl@gnu.org>
59534
59535         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59536
59537 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59538
59539         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59540         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59541         Reject sizes of exactly SIZE_MAX bytes.
59542         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59543         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59544
59545 2003-11-05  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59548         SIZE_MAX defined in <limits.h> on Solaris.
59549
59550 2003-11-04  Jim Meyering  <jim@meyering.net>
59551
59552         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59553         variable names, rather than @VAR@.
59554         * modules/poll: Likewise.
59555
59556 2003-11-04  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/xsize: New file.
59559         * modules/linebreak: Depend on xsize.
59560         * MODULES.html.sh (func_all_modules): Add xsize.
59561
59562 2003-11-04  Bruno Haible  <bruno@clisp.org>
59563
59564         * m4/xsize.m4: New file.
59565
59566 2003-11-04  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/xsize.h: New file.
59569         * lib/linebreak.c: Include xsize.h.
59570         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59571         argument for overflow.
59572         Suggested by Paul Eggert.
59573
59574 2003-11-03  Karl Berry  <karl@gnu.org>
59575
59576         * config/config.{guess,sub}: update from config.
59577
59578 2003-11-03  Jim Meyering  <jim@meyering.net>
59579
59580         * modules/userspec (lib_SOURCES): Add userspec.h.
59581         (Include): Add "userspec.h".
59582         Improve description.
59583
59584 2003-11-03  Jim Meyering  <jim@meyering.net>
59585
59586         * lib/userspec.c: Include "userspec.h".
59587         * lib/userspec.h: New file.
59588
59589 2003-11-03  Bruno Haible  <bruno@clisp.org>
59590
59591         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59592
59593 2003-11-03  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59596         available, to avoid (extremely rare) race condition.
59597         Suggested by Paul Eggert.
59598
59599 2003-11-02  Karl Berry  <karl@gnu.org>
59600
59601         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59602
59603 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59604
59605         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59606         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59607         (read_filesystem_list): Set and use me_type_malloced.
59608         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59609         whatever the type happens to be), for brevity and consistency.
59610         Check for size calculation overflow on Alphas running OSF/1.
59611
59612 2003-10-31  Jim Meyering  <jim@meyering.net>
59613
59614         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59615
59616         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59617
59618 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59619             Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59622         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59623
59624 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59627         netbsd*-gnu*.  Suggested by Robert Millan.
59628
59629 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59630
59631         * modules/group-member: Depend on stdbool.
59632
59633 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59634
59635         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59636
59637 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59638
59639         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59640         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59641         after the 'gnu' in these cases.  This fixes some bugs in the
59642         previous change, and is based on suggestions by Robert Millan.
59643
59644 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59645
59646         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59647         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59648         no longer needed.
59649         * lib/quotearg.c (quotearg_n_options): Use it.
59650         * lib/group-member.c: Include <stdbool.h>.
59651         (free_group_info): Arg is now const *; don't free arg.
59652         (get_group_info): Now returns bool and accepts struct group_info *,
59653         rather than returning a malloc'ed struct group_info *.
59654         All uses changed.  Check for overflow in internal size calculation.
59655
59656         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59657         rather than xmalloc/xrealloc.
59658         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59659         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59660         conformance bug: the old code used a pointer after freeing the
59661         storage that it addressed.
59662         * lib/hash.c (hash_initialize): Simplify the code by using
59663         xalloc_oversized rather than doing it by hand.
59664         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59665         the buffer preserved.  Use free and xmalloc instead.
59666         * lib/quotearg.c (quotearg_n_options): Likewise.
59667         Use a simpler test for size overflow.  Don't use xalloc_oversized
59668         because unsigned int might be wider than size_t (!); this suggests
59669         that we should switch from unsigned int to size_t for slot numbers.
59670
59671 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59672
59673         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59674         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59675         NetBSD kernels.  Requested by Richard Stallman.
59676
59677 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59678
59679         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59680         to allocate the returned structure.  Do not allocate a subarray,
59681         as x2nrealloc will do that.
59682         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59683         instead of xnrealloc.
59684         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59685
59686 2003-10-27  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/stdbool_.h: Better support for BeOS.
59689
59690 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59691
59692         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59693         now uses inline.
59694
59695 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59696
59697         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59698         callers that want to do their own size-overflow checking.  Include
59699         <stdbool.h>, since xalloc_oversized returns bool.
59700         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59701         to use xalloc_oversized.
59702
59703         Add two functions x2realloc, x2nrealloc, for programs that grow
59704         arrays dynamically by doubling their sizes.
59705         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59706         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59707         New functions.
59708
59709         Port to C99 semantics for 'inline' of external functions.
59710         Bug reported by Bruno Haible.
59711         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59712         with the old contents of xnmalloc.
59713         (xnmalloc, xmalloc): Use it.
59714         (xnrealloc_inline): New static inline function,
59715         with the old contents of xnrealloc.
59716         (xnrealloc, xrealloc): Use it.
59717
59718         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59719         that.
59720
59721 2003-10-26  Karl Berry  <karl@gnu.org>
59722
59723         * config/srclist.txt (COPYING.DOC): no longer available from
59724         /gd/gnuorg; don't know where the ultimate source is.
59725
59726 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59727
59728         Fix several address-calculation bugs in the hash modules,
59729         plus some minor code cleanup.
59730
59731         * lib/hash.h: Include <stdbool.h>, for bool.
59732         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59733         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59734         hash_get_n_entries, hash_get_max_bucket_length,
59735         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59736         hash_rehash): Use size_t rather than unsigned.
59737         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59738         hash_get_n_buckets_used, hash_get_n_entries,
59739         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59740         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59741         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59742         Likewise.
59743         (SIZE_MAX): Define if not defined.
59744         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59745         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59746         hash_print):
59747         Use const * when possible.
59748         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59749         (check_tuning): Fix bug: if tuning parameters were very close to
59750         0 or 1, rounding errors could have caused subscript violations.
59751         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59752         (hash_initialize): Add 'fail:' label
59753         to free table and return NULL, and use it to simplify code.
59754         Use calloc rather than clearing the storage ourself.
59755         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59756         buffer size calculations.
59757         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59758         Include <stddef.h>, for size_t.
59759         * lib/hash-pjw.c (hash_pjw): Likewise.
59760         Switch to method described by Bruno Haible.
59761         Include <limits.h>, for CHAR_BIT.
59762         (SIZE_BITS): New macro.
59763
59764 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59765
59766         * m4/getline.m4 (AM_FUNC_GETLINE):
59767         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59768         hosts.  Problem reported by Derek Robert Price in
59769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59770         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59771         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59772
59773 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59774
59775         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59776         ceiling the allocation at NMAX bytes rather than silently
59777         discarding input bytes before NMAX is reached.  This makes
59778         a difference only if NMAX exceeds SIZE_MAX / 2.
59779
59780         * lib/obstack.c: Merge from glibc.
59781         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59782         Add libc_hidden_def (_obstack_newchunk).
59783         (_obstack_free) [! defined _LIBC]: Remove.
59784         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59785         a clone of the function body.
59786         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59787         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59788
59789         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59790         glibc.
59791         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59792         arg to memcpy.
59793
59794         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59795         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59796         Don't use lvalue casts, as GCC plans to remove support for them
59797         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59798         was also present in the non-GCC version, indicating that this
59799         code had always been buggy and had never been widely used.
59800         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59801         Use the fast variant of each macro, rather than copying the
59802         definiens of the fast variant; that way, we'll be more likely to
59803         catch future bugs in the fast variants.
59804
59805 2003-10-20  Bruno Haible  <bruno@clisp.org>
59806
59807         * modules/wait-process: New file.
59808         * MODULES.html.sh (func_all_modules): Add wait-process.
59809
59810 2003-10-20  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/wait-process.m4: New file.
59813
59814 2003-10-20  Bruno Haible  <bruno@clisp.org>
59815
59816         * lib/wait-process.h: New file, from GNU gettext.
59817         * lib/wait-process.c: New file, from GNU gettext.
59818
59819 2003-10-19  Jim Meyering  <jim@meyering.net>
59820
59821         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59822         HPUX 10.20.
59823
59824 2003-10-18  Karl Berry  <karl@gnu.org>
59825
59826         * config/config.guess: update from config.
59827
59828 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59829
59830         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59831         (getgroups): First arg is int, not size_t.
59832         Don't let 'free' mangle errno.
59833
59834 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59835
59836         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59837
59838 2003-10-16  Karl Berry  <karl@gnu.org>
59839
59840         * config/config.{guess,sub}: update from config.
59841
59842 2003-10-16  Jim Meyering  <jim@meyering.net>
59843
59844         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59845         memcpy.
59846
59847 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59848
59849         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59850         (SIZE_MAX): Remove.
59851         (new_exclude, add_exclude_file): Initial size no longer needs to
59852         be a power of 2.
59853         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59854         our own address arithmetic overflow checking.
59855
59856         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59857         (fnmatch): Do not alloca more than 2000 wide characters;
59858         instead, use malloc for large buffers.
59859         Check for address arithmetic overflow, and return -1
59860         with errno set to ENOMEM in that case.
59861         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59862         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59863         instead, return -1.  Check for address arithmetic overflow.
59864
59865 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59866
59867         Handle invalid suffixes and overflow independently, so that
59868         callers can treat them independently as needed.  Fix some bugs in
59869         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59870         suffix for a human-readable blocksize.  The major caller-visible
59871         change is the addition of a new
59872         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59873         that both overflow and suffix chars were found.
59874
59875         * lib/human.c (humblock): Don't check separately for invalid suffix
59876         char; that is xstrtoumax's job (now that its bug is fixed).
59877         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
59878         INTMAX_MAX]: New macros.
59879         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
59880         TYPE_MAXIMUM): New macros.
59881         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
59882         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
59883         if overflow occurs, as it's what __strtol does and it's more useful
59884         in practice.
59885         (__xstrtol): If __strtol reports some error other than ERANGE,
59886         reflect it to the caller as LONGINT_INVALID.  If it reports
59887         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
59888         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
59889         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
59890         value.
59891         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
59892         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
59893         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
59894         [defined UINTMAX_MAX]: New macros.
59895
59896 2003-10-14  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
59899
59900 2003-10-14  Bruno Haible  <bruno@clisp.org>
59901
59902         * m4/sig_atomic_t: New file, from GNU gettext.
59903         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
59904
59905 2003-10-14  Bruno Haible  <bruno@clisp.org>
59906
59907         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
59908         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
59909         Also use volatile where needed.
59910
59911 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59912
59913         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
59914         Change maintainer from Bruno Haible to 'all'.
59915
59916 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59917
59918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
59919
59920 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59921
59922         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
59923         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
59924         and define in terms of the other primitives.
59925         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
59926         (SIZE_MAX): Define if not already defined.
59927         (array_size_overflow): New function.
59928         (xalloc_die): Abort instead of exiting if 'error' returns.
59929         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
59930         (xmalloc, xrealloc): Use them.
59931         (xcalloc): Check for address arithmetic overflow.
59932         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
59933         a bit faster than strcpy.
59934
59935 2003-10-10  Simon Josefsson  <jas@extundo.com>
59936
59937         * modules/argp (Depends-on): Add restrict and strcase.
59938
59939 2003-10-10  Simon Josefsson  <jas@extundo.com>
59940
59941         * m4/argp.m4: Add AC_C_INLINE.
59942
59943 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59944
59945         Merge getpass from libc, plus a few fixes.
59946
59947         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
59948         Include <stdbool.h>.
59949         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
59950         __fsetlocking to empty.
59951         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
59952         do include <bits/libc-lock.h>.
59953         Do not include <fcntl.h>; not needed.
59954         [_LIBC]: Include <wchar.h>.
59955         (NOTCANCEL_MODE): New macro.
59956         (flockfile, funlockfile) [_LIBC]: New macros.
59957         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
59958         [!_LIBC]: New macros.
59959         (call_fclose): New function.
59960         (getpass): Use it.  Save tty stream separately; this simplifies the
59961         code and makes it more reliable if stdin happens to equal stdout.
59962         Invoke __fsetlocking on tty.
59963         Handle thread cancellation if needed.
59964         Namespace cleanup (use __tcgetattr, __getline).
59965         Use bool for Booleans.
59966         [USE_IN_LIBIO]: Handle wide streams.
59967         [!_LIBC]: Unconditionally do the fseek, since we don't know what
59968         stream might go where.
59969
59970         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
59971         doesn't have to include <stdio.h> before us.
59972         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
59973         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
59974         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
59975         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
59976         if not declared, so that we can use getpass.c code from libc without
59977         rewriting it.
59978         (flockfile, ftrylockfile, funlockfile): New macros.
59979
59980 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59981
59982         * modules/getpass: Depend on stdbool.
59983
59984 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59985
59986         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
59987
59988 2003-10-07  Karl Berry  <karl@gnu.org>
59989
59990         * config/config.{guess,sub}: update from config.
59991
59992 2003-10-06  Jim Meyering  <jim@meyering.net>
59993             Bruno Haible  <bruno@clisp.org>
59994
59995         This lets translators provide better translations for the
59996         "Written by ..." part of --version output.
59997         * lib/version-etc.h: Include stdarg.h.
59998         (version_etc_copyright): Declare as readonly.
59999         (version_etc): Make this function variadic with a NULL-terminated list
60000         of author name strings.
60001         (version_etc_va): New declaration.
60002         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60003         (version_etc_copyright): Declare as readonly.
60004         (version_etc_va): New function. Provide a different translatable string
60005         for each possible number of authors < 10. Abbreviate when there are 10
60006         authors or more.
60007         (version_etc): Make this function variadic. Call version_etc_va.
60008         Suggestion from Gary V. Vaughan.
60009
60010         * lib/long-options.h (parse_long_options): Change prototype: the
60011         authors string is moved to the end and becomes variadic.
60012         * lib/long-options.c: Include stdarg.h.
60013         (parse_long_options): Make this function variadic, too.
60014         Call version_etc_va, not version_etc.
60015
60016 2003-10-06  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/version-etc-2: Remove file.
60019         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60020
60021 2003-10-06  Bruno Haible  <bruno@clisp.org>
60022
60023         * modules/fatal-signal: New file.
60024         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60025
60026 2003-10-06  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/fatal-signal.m4: New file.
60029         * m4/signalblocking.m4: New file, from GNU gettext.
60030
60031 2003-10-06  Bruno Haible  <bruno@clisp.org>
60032
60033         * lib/version-etc-2.h: Remove file.
60034         * lib/version-etc-2.c: Remove file.
60035
60036 2003-10-06  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/fatal-signal.h: New file, from GNU gettext.
60039         * lib/fatal-signal.c: New file, from GNU gettext.
60040
60041 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60042
60043         * README: Rework advice for preventing empty .o files.
60044         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60045         not <sys/types.h>.
60046
60047 2003-10-04  Karl Berry  <karl@gnu.org>
60048
60049         * lib/argp*: update from libc.
60050
60051 2003-10-04  Karl Berry  <karl@gnu.org>
60052
60053         * config/config.{guess,sub}: update from config.
60054
60055 2003-10-02  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/lchown (Include): Add lchown.h.
60058         * modules/time_r (Include): Use "..." syntax.
60059         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60060
60061 2003-10-01  Simon Josefsson  <jas@extundo.com>
60062
60063         * MODULES.html.sh (func_all_modules): Move gethostname from section
60064         'based on' to section 'lacking' POSIX:2001.
60065
60066 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60067
60068         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60069         to output mode on the same stream.
60070
60071 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60072
60073         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60074         Fix arg typo in previous patch.
60075
60076 2003-09-28  Jim Meyering  <jim@meyering.net>
60077
60078         * lib/error.c: Correct cpp indentation.
60079
60080 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60081
60082         * modules/free: New file.
60083
60084 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60085
60086         * m4/free.m4: New file.
60087
60088 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60089
60090         * lib/minmax.h (MIN, MAX)
60091         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60092         Omit the special code that used __typeof__, since we worry that
60093         it could be more trouble than it's worth.  See:
60094         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60095         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60096
60097         * lib/free.c: New file.
60098
60099 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60100
60101         Trivial fixes to Makefile.am parts of module listings.
60102         * modules/strstr: Append strstr.h to lib_SOURCES.
60103         * modules/strcase: Likewise, for strcase.h.
60104
60105 2003-09-27  Karl Berry  <karl@gnu.org>
60106
60107         * config/mkinstalldirs: update from automake.
60108
60109 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60110
60111         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60112         (error_tail): Do not loop, reallocating temporary buffer, since
60113         the output cannot contain more wide characters than the input
60114         contains bytes, the size must be big enough already.  This avoids
60115         one potential size overflow calculation.  Check for size overflow
60116         when calculating temporary buffer size.  Free temporary buffer
60117         when done, if it was allocated with malloc; this plugs a memory
60118         leak.  Remove casts from void * to pointers, that are no longer
60119         needed now that we're assuming C89 or better.
60120
60121         Merge error changes from glibc.
60122
60123         * lib/error.c, error.h: Update copyright notice header to match glibc.
60124         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60125         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60126         Disable cancellation while printing error.
60127         * lib/error.h: Prepend __ to parameter names.
60128
60129 2003-09-26  Jim Meyering  <jim@meyering.net>
60130
60131         * lib/error.c (error_tail): Move some declarations
60132         into inner scope where the local variables are used.
60133
60134 2003-09-26  Bruno Haible  <bruno@clisp.org>
60135
60136         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60137         stpncpy().
60138         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60139
60140 2003-09-26  Bruno Haible  <bruno@clisp.org>
60141
60142         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60143         (stpncpy): Define as alias for gnu_stpncpy.
60144         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60145
60146 2003-09-25  Simon Josefsson  <jas@extundo.com>
60147
60148         * lib/xgetdomainname.h: New file.
60149         * lib/xgetdomainname.c: New file.
60150
60151 2003-09-25  Simon Josefsson  <jas@extundo.com>
60152             Bruno Haible  <bruno@clisp.org>
60153
60154         * modules/getdomainname: New file.
60155         * modules/xgetdomainname: New file.
60156         * MODULES.html.sh (func_all_modules): Add getdomainname,
60157         xgetdomainname.
60158
60159 2003-09-25  Simon Josefsson  <jas@extundo.com>
60160             Bruno Haible  <bruno@clisp.org>
60161
60162         * m4/getdomainname.m4: New file.
60163
60164 2003-09-25  Simon Josefsson  <jas@extundo.com>
60165             Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/getdomainname.h: New file.
60168         * lib/getdomainname.c: New file.
60169
60170 2003-09-25  Karl Berry  <karl@gnu.org>
60171
60172         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60173
60174 2003-09-25  Karl Berry  <karl@gnu.org>
60175
60176         * config/install-sh: update from automake.
60177
60178 2003-09-25  Bruno Haible  <bruno@clisp.org>
60179
60180         * modules/version-etc-2: New file, from modules/version-etc with
60181         modifications.
60182         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60183
60184 2003-09-25  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60187         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60188
60189 2003-09-24  Simon Josefsson  <jas@extundo.com>
60190
60191         * modules/xgethostname: Add xgethostname.h.
60192
60193 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60194
60195         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60196         the buffer associated with the argument.  Bug reported by
60197         Simon Josefsson.
60198
60199 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60200
60201         * README: Document assumptions that 'int' is at least 32 bits
60202         wide, that integer arithmetic is 2's complement without overflow,
60203         that there are no holes in integer values, that adding sizes of
60204         two nonoverlapping objects can't overflow, and that all-bits-zero
60205         yields scalar zero.  Fix spelling and capitalization typos.
60206
60207 2003-09-19  Karl Berry  <karl@gnu.org>
60208
60209         * lib/argp.h: update from libc.
60210
60211 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60212
60213         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60214         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60215         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60216
60217 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60218
60219         * gnulib-tool: Use "test -h", not "test -L", for portability
60220         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60221         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60222         (sed_extract_prog): Issue s commands one-by-one, rather than
60223         using \| in one s command.
60224
60225 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60226
60227         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60228         input error, instead of returning NULL the next time we are called
60229         (and therefore losing track of errno).
60230
60231 2003-09-16  Bruno Haible  <bruno@clisp.org>
60232
60233         * gnulib-tool (func_create_testdir): Warn about duplicated
60234         dependencies.
60235
60236 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60237
60238         * modules/argmatch, modules/fatal, modules/obstack,
60239         modules/xalloc, modules/xgethostname: Sort dependencies by
60240         importance, not alphabetically.
60241
60242 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60243
60244         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60245         fails, so that the caller gets the proper errno.
60246
60247         * lib/readutmp.c (read_utmp): Likewise.
60248         Check for fstat error.  Close stream and free storage
60249         when failing.
60250
60251 2003-09-14  Karl Berry  <karl@gnu.org>
60252
60253         * config/srclist.txt (strdup.c): disable for c89 changes.
60254
60255 2003-09-14  Jim Meyering  <jim@meyering.net>
60256
60257         * lib/getloadavg.c: Correct cpp indentation.
60258         * lib/strdup.c: Likewise.
60259         * lib/vasnprintf.c: Likewise.
60260
60261 2003-09-14  Bruno Haible  <bruno@clisp.org>
60262
60263         * modules/fwriteerror: New file.
60264         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60265
60266 2003-09-14  Bruno Haible  <bruno@clisp.org>
60267
60268         * lib/fwriteerror.h: New file.
60269         * lib/fwriteerror.c: New file.
60270
60271 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60272
60273         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60274         modules/xgethostname, modules/xalloc: Depend on exit.
60275
60276 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60277
60278         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60279
60280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60281         and AC_MINIX, too, so that their extensions are available.
60282
60283         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60284         This macro has been superseded by gl_BACKUPFILE.
60285
60286         More patches to assume C89 or better.
60287
60288         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60289
60290         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60291         unconditionally.
60292         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60293         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60294         Include <string.h>, <stdlib.h> unconditionally.
60295         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60296         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60297         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60298         headers or for string.h.
60299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60300         or strtoul.
60301
60302         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60303         headers.
60304         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60305         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60306         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60307         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60308         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60309         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60310         memcpy, memset.
60311         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60312         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60313         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60314         strtol.
60315         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60316         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60317         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60318         strtoul.
60319
60320 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60321
60322         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60323         * lib/obstack.c [!defined _LIBC]: Likewise.
60324         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60325         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60326         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60327
60328         More changes to assume C89 or better.
60329
60330         * lib/error.c (error_tail): Assume vprintf.
60331
60332         * lib/argmatch.c (getenv): Remove decl.
60333         * lib/progreloc.c (get_full_program_name): Define via prototype.
60334         * lib/setenv.c (clearenv): Likewise.
60335         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60336         needed.
60337         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60338         (malloc, memcpy): Remove decls.
60339         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60340         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60341         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60342         (memcpy): Remove macro.
60343         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60344         (__P): Remove.  All uses removed.
60345         (PTR): Remove.  All uses changed to void *.
60346         (CHAR_BIT, NULL): Remove.
60347         (spaces, zeros, memset_space, memset_zero)
60348         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60349         Remove.
60350         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60351         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60352         Define with prototype.
60353         Remove now-unnecessary prototype decl.
60354         (extra_args_spec): Assume ANSI C.  All uses changed.
60355         (extra_args_spec_iso): Remove.
60356         (my_strftime, emacs_strftimeu): Define via prototype.
60357         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60358         unconditionally.
60359         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60360         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60361         (strtoul, strtol): Remove decls.
60362         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60363         LONG_MAX): Remove.
60364         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60365         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60366         (LOCALE_PARAM_PROTO): New macro.
60367         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60368         (INTERNAL (strtol), strtol): Define with a prototype.
60369         (PARAMS): Remove.  All uses removed.
60370         * lib/tempname.c: Include <string.h> unconditionally.
60371         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60372         * lib/xgethostname.c (main): Define with a prototype.
60373         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60374         Include <stdlib.h> unconditionally.
60375         (calloc, malloc, realloc, free): Remove decls.
60376         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60377         Include <stdlib.h> unconditionally.  Sort include file names.
60378         (strtod): Remove.
60379         (xstrtod): Define with a prototype.
60380         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60381         (strtol, strtoul): Remove decls.
60382
60383 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60384
60385         More patches to assume C89 or better.
60386         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60387         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60388         string.h, memchr, STDC_HEADERS.
60389
60390 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60391
60392         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60393         Include <stdlib.h>, <string.h> unconditionally.
60394         Remove now-unnecessary cast to char *.
60395         * lib/strnlen.c: Include <string.h> unconditionally.
60396         * lib/yesno.c (yesno): Define with a prototype.
60397
60398 2003-09-11  Bruno Haible  <bruno@clisp.org>
60399
60400         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60401
60402 2003-09-10  Jim Meyering  <jim@meyering.net>
60403
60404         * lib/error.c: Correct indentation of cpp directives.
60405
60406 2003-09-10  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60409         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60410         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60411         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60412         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60413         <stdlib.h> and <string.h> checks.
60414         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60415         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60416
60417 2003-09-10  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/strcspn.c: Include <string.h> unconditionally.
60420         * lib/strpbrk.c: Include <string.h> unconditionally.
60421         * lib/strstr.c: Include <string.h> unconditionally.
60422         * lib/unicodeio.c: Include <string.h> unconditionally.
60423         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60424         * lib/unsetenv.c: Likewise.
60425         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60426         * lib/yesno.c: Include <stdlib.h> unconditionally.
60427         (rpmatch): Add prototype.
60428
60429 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60430
60431         More patches to assume C89 or better.
60432         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60433         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60434         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60435         or for string.h.
60436         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60437         stdlib.h.
60438         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60439         C headers.
60440         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60441         string.h.
60442         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60443         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60444         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60445         or for string.h.
60446         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60447         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60448         C headers.
60449         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60450         memcpy.
60451         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60452         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60453         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60454         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60455         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60456         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60457         string.h, free.
60458         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60459         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60460         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60461         C headers, or for string.h.
60462         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60463         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60464         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60465         headers, memory.h, stdlib.h, string.h, strings.h.
60466         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60467         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60468         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60469         strchr.
60470         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60471         headers, memory.h, string.h.
60472         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60473         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60474         free.
60475         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60476         headers.
60477         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60478         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60479         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60480         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60481         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60482
60483 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60484
60485         More K&R removal.
60486
60487         * lib/acosl.c (main): Use a prototype.
60488         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60489         tanl.c: Likewise.
60490
60491         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60492
60493         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60494         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60495         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60496         with a prototype.
60497         * lib/getopt.c (const): Remove macro.
60498         Include <string.h> unconditionally.
60499         (my_index): Remove; all uses changed to strchr.
60500         (strlen): Remove decl.
60501         (exchange): Remove forward decl; no longer needed.
60502         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60503         Define with prototype.
60504         * lib/getopt1.c (const): Remove macro.
60505         (getopt_long, getopt_long_only, main): Define with prototype.
60506
60507         * lib/getugroups.c: Include <string.h> unconditionally.
60508
60509         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60510         (getusershell, setusershell, endusershell, readname, main):
60511         Define with prototypes.
60512
60513         * lib/group-member.c: Include group-member.h first.
60514         Include <stdlib.h> unconditionally.
60515
60516         * lib/hard-locale.c: Include hard-locale.h first.
60517         Include <stdlib.h>, <string.h> unconditionally.
60518
60519         * lib/hash.c (free, malloc): Remove decls.
60520         Include <stdlib.h> unconditionally.
60521
60522         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60523         (getenv): Do not declare.
60524
60525         * lib/idcache.c: Include <string.h> unconditionally.
60526
60527         * lib/long-options.c: Include long-options.h first, to test interface.
60528         Include <stdlib.h> unconditionally.
60529
60530         * lib/makepath.c: Include makepath.h first, to test interface.
60531         Include <stdlib.h> and <string.h> unconditionally.
60532
60533         * lib/linebuffer.c: Include <stdlib.h>.
60534         (free): Remove decl.
60535
60536         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60537         stddef.h. rpl_malloc returns void *, not char *.
60538         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60539         prototype.
60540
60541         * lib/md5.h: Include <limits.h> unconditionally.
60542         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60543         (__P): Remove; all uses removed.
60544         * lib/md5.c: Include "md5.h" first.
60545         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60546         md5_buffer, md5_process_bytes, md5_process_block):
60547         Define with prototypes.
60548         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60549         * lib/sha.c: Include "sha.h" first.
60550         Include <stdlib.h>, <string.h> unconditionally.
60551
60552         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60553         * lib/memcmp.c (__ptr_t): Likewise.
60554         * lib/memrchr.c (__ptr_t): Likewise.
60555         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60556         Include <string.h> unconditionally.
60557         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60558         * lib/memchr.c: Include <stdlib.h> unconditionally.
60559         * lib/memchr.c (LONG_MAX): Remove.
60560         * lib/memrchr.c (LONG_MAX): Likewise.
60561         * lib/memchr.c (__memchr): Define via a prototype.
60562         * lib/memrchr.c (__memrchr): Likewise.
60563         * lib/memcmp.c (__P): Remove, and remove all uses.
60564         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60565         Remove forward decls; no longer needed.
60566         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60567         Use types required by C89 in prototype.
60568
60569         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60570         * lib/savedir.c: Likewise.
60571         * lib/mkdir.c (free): Remove decl.
60572         * lib/rmdir.c (rmdir): Define with a prototype.
60573         * lib/savedir.c: Include savedir.h first, to test interface.
60574
60575         * lib/mktime.c (STDC_HEADERS): Remove.
60576         Include <stdlib.h>, <string.h> unconditionally.
60577
60578         * lib/modechange.c: Include <stdlib.h> unconditionally.
60579         (malloc): Remove decl.
60580
60581         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60582         (free): Remove decl.
60583
60584         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60585         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60586         (This type really should be intptr_t, but that's a C99ism.)
60587         (_obstack_memcpy): Remove: all uses changed to memcpy.
60588         Include <string.h> unconditionally.
60589         (struct obstack): Assume __STDC__ for types of members
60590         chunkfun, freefun, extra_arg.
60591         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60592         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60593         obstack_begin, obstack_specify_allocation,
60594         obstack_specify_allocation_with_arg, obstack_chunkfun,
60595         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60596         Remove unprototyped decls and the macros that use them.
60597         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60598         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60599         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60600         (defined __STDC__ && __STDC__)]:
60601         Remove nonprototyped code.
60602         Include <stdlib.h> unconditionally.
60603         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60604         _obstack_allocated_p, _obstack_free, obstack_free,
60605         _obstack_memory_used, print_and_abort):
60606         Define using prototypes.
60607         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60608         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60609         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60610         obstack_next_free, obstack_object_size, obstack_room) [0]:
60611         Remove unused, unprototyped code.
60612
60613         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60614
60615         * lib/physmem.c (physmem_total, physmem_available, main): Define
60616         with prototypes.
60617
60618         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60619         (main): Define with a prototype.
60620
60621         * lib/posixver.c (getenv): Remove decl.
60622
60623         * lib/putenv.c (malloc): Returns void *, not char *.
60624         Include <string.h> unconditionally.
60625         (strchr, memcpy, NULL): Do not define.
60626
60627         * lib/readtokens.c: Include readtokens.h first, to test interface.
60628         Include <stdlib.h>, <string.h> unconditionally.
60629         (init_tokenbuffer): Define with a prototype.
60630
60631         * lib/regex.c (PARAMS): Remove.  All uses removed.
60632         All uses of _RE_ARGS removed, too.
60633         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60634         unconditionally.
60635         (bzero): Assume memset exists.
60636         (memcmp, memcpy, NULL): Remove.
60637         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60638         char, or assignments to local vars of type signed char.
60639         (init_syntax_once, PREFIX(extract_number_and_incr),
60640         PREFIX(print_partial_compiled_pattern),
60641         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60642         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60643         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60644         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60645         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60646         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60647         wcs_compile_range, byte_compile_range, truncate_wchar,
60648         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60649         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60650         count_mbs_length, wcs_re_match_2_internal,
60651         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60652         PREFIX(alt_match_null_string_p),
60653         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60654         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60655         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60656         now-unnecessary declaration, if any.
60657         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60658         regcomp, regexec):
60659         Remove now-unnecessary casts among pointer types.
60660         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60661
60662         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60663         (free): Remove decl.
60664
60665         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60666
60667         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60668         (free): Remove decl.
60669
60670         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60671         * lib/xgetcwd.c: Likewise.
60672
60673         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60674         (free): Remove decl.
60675
60676         * lib/strchrnul.c (strchrnul): Define with a prototype.
60677         Fix bug: c_in was not converted to char before searching.
60678
60679         The following changes are not K&R related:
60680
60681         * lib/group-member.h: Include <sys/types.h>, so that this file is
60682         self-contained.
60683         * lib/makepath.h: Likewise.
60684
60685         * lib/getusershell.c (readname, default_index, line_size, readname):
60686         Use size_t, not int, for sizes.
60687         (readname): If the size overflows, report an error instead of
60688         looping forever.
60689
60690 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60691
60692         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60693         libc.
60694
60695 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60696
60697         * README: New section: portability guidelines.
60698
60699 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60700
60701         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60702         C89 spec.
60703
60704 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60705
60706         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60707
60708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60709
60710         Assume C89 or better; remove K&R cruft.
60711         A few of these changes were first proposed by Derek Robert Price
60712         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60713
60714         * lib/addext.c: Include <string.h> unconditionally.
60715         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60716         Don't declare getenv or malloc.
60717
60718         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60719         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60720         (NULL): Remove.
60721         (find_stack_direction, alloca): Use prototypes.
60722
60723         * lib/atexit.c (atexit): Define using a prototype.
60724
60725         * lib/basename.c, dirname.c, stripslash.c:
60726         Include <string.h> unconditionally.
60727
60728         * lib/bcopy.c: Include <stddef.h>.
60729         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60730
60731         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60732
60733         * lib/error.h (error, error_at_line, error_print_progname)
60734         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60735         * lib/error.c: Include error.h first, to check interface.
60736         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60737         (VA_START): Remove; all uses changeed to va_start.
60738         (exit, strerror): Remove decls.
60739         (error_print_progname): Prototype uncondionally.
60740         Don't include <errno.h>; no longer needed.
60741         (private_strerror): Remove.
60742         (error_tail): Always define.
60743         (error, error_at_line): Assume C89 or better; always use prototypes.
60744         * lib/fatal.c: Include "fatal.h" first, to test interface.
60745         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60746         (VA_START): Remove; all uses changed to va_start.
60747         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60748         this case.
60749         (exit): Remove decl.
60750         (fatal): Prototype unconditionally.  Assume va_start works.
60751         Abort at end, to pacify gcc.
60752
60753         * lib/euidaccess.c (main): Define with a prototype.
60754
60755         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60756
60757         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60758
60759         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60760         prototypes.
60761         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60762         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60763         (getenv): Remove decl.
60764         (fnmatch): Define using a prototype.
60765         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60766         (FCT): Define using a prototype.
60767
60768         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60769
60770         * lib/gethostname.c: Include <stddef.h>.
60771         (gethostname): Define with prototype.  Length is size_t, not int.
60772
60773 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60774
60775         Assume C89 or better; remove K&R cruft.
60776         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60777         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60778         string.h, getenv, malloc.
60779         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60780         headers.
60781         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60782         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60783         do not check for strerror.
60784         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60785         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60786         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60787         do not check for doprnt or vprintf.
60788         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60789         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60790
60791 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60792
60793         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60794         getversion.c should have been removed then, but was accidentally
60795         preserved.
60796
60797         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60798         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60799
60800 2003-09-08  Karl Berry  <karl@gnu.org>
60801
60802         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60803                 config, forget about prep.
60804
60805         * config/depcomp, missing: update from automake.
60806
60807 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60808
60809         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60810         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60811
60812 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60813
60814         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60815         copy_tm_result.  Bug reported by Simon Josefsson in
60816         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60817
60818 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60819
60820         * m4/time_r.m4: New file.
60821         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60822         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60823         is. Check for timegm declaration.
60824         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60825         Do not check for gmtime_r.
60826         Replace mktime if __mktime_internal does not exist and if mktime
60827         hasn't been replaced already.
60828
60829 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60830
60831         * lib/time_r.c, lib/time_r.h: New files.
60832
60833         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60834         __localtime_r.
60835         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60836         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60837
60838         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60839         __gmtime_r.
60840         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60841         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60842         Include <time_r.h>.
60843
60844         * lib/timegm.c: Switch to glibc implementation, with the following
60845         changes:
60846         [defined HAVE_CONFIG_H]: Include <config.h>.
60847         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60848         (__mktime_internal) [!defined _LIBC]: New decl.
60849         (__gmtime_r) [!defined _LIBC]: New macro and function.
60850         (timegm): Use a prototype, since gnulib assumes C89.
60851         Do not bother declaring tmp to be const, as it's not really usefu.
60852         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60853         (timegm): Declare only if HAVE_DECL_TIMEGM.
60854
60855 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60856
60857         * MODULES.html.sh (func_all_modules): Add time_r.
60858         * modules/time_r: New file.
60859         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60860         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60861
60862 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60863
60864         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60865         Bug reported by Lute Kamstra in
60866         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60867
60868         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60869         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60870         course with correspondingly smaller numbers for tomorrow and
60871         yesterday.  From Tadayoshi Funaba.  Originally installed into
60872         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60873         coreutils merge?).
60874
60875 2003-08-31  Simon Josefsson  <jas@extundo.com>
60876
60877         * modules/timegm: New file.
60878         * MODULES.html.sh (func_all_modules): Add timegm.
60879
60880 2003-08-31  Simon Josefsson  <jas@extundo.com>
60881
60882         * m4/timegm.m4: New file.
60883
60884 2003-08-31  Simon Josefsson  <jas@extundo.com>
60885
60886         * lib/timegm.h: New file.
60887         * lib/timegm.c: New file.  Based on
60888         wget-1.8.2/src/http.c:mktime_from_utc.
60889
60890 2003-08-31  Karl Berry  <karl@gnu.org>
60891
60892         * lib/argp.h: update from libc.
60893
60894 2003-08-28  Bruno Haible  <bruno@clisp.org>
60895
60896         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
60897         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
60898         followed by '#define fnmatch fnmatch_posix' gives an error.
60899
60900 2003-08-28  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
60903         warning on QNX, which defines O_BINARY to 000000.
60904
60905 2003-08-27  Jim Meyering  <jim@meyering.net>
60906
60907         * m4/mkstemp.m4: Require that the system mkstemp be able to create
60908         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
60909         would fail after 32.  Reported by Danny Levinson.  Details here:
60910         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
60911
60912 2003-08-24  Bruno Haible  <bruno@clisp.org>
60913
60914         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
60915         MSVC7 <stdio.h> is included later.
60916
60917 2003-08-22  Simon Josefsson  <jas@extundo.com>
60918
60919         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
60920
60921 2003-08-20  Karl Berry  <karl@gnu.org>
60922
60923         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
60924
60925 2003-08-20  Bruno Haible  <bruno@clisp.org>
60926
60927         * modules/progname: New file.
60928         * MODULES.html.sh (func_all_modules): Add progname.
60929
60930 2003-08-20  Bruno Haible  <bruno@clisp.org>
60931
60932         * lib/progname.h: New file, from GNU gettext.
60933         * lib/progname.c: New file, from GNU gettext.
60934         * lib/progreloc.c: New file, from GNU gettext.
60935
60936 2003-08-19  Jim Meyering  <jim@meyering.net>
60937
60938         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
60939         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
60940
60941 2003-08-19  Bruno Haible  <bruno@clisp.org>
60942
60943         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
60944         more.
60945
60946 2003-08-19  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/xstrdup.c: Assume <string.h> exists.
60949
60950 2003-08-18  Paul Eggert  <eggert@twinsun.com>
60951
60952         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
60953         in makefile rules.
60954
60955 2003-08-18  Jim Meyering  <jim@meyering.net>
60956
60957         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
60958         * m4/lib-ld.m4: Likewise.
60959
60960 2003-08-18  Jim Meyering  <jim@meyering.net>
60961
60962         * lib/setenv.h: Indent nested cpp directive.
60963         * lib/vasnprintf.c: Remove trailing blanks.
60964
60965 2003-08-17  Simon Josefsson  <jas@extundo.com>
60966
60967         * modules/xstrndup: New file.
60968         * MODULES.html.sh (func_all_modules): Add xstrndup.
60969
60970 2003-08-17  Simon Josefsson  <jas@extundo.com>
60971
60972         * modules/argp: Fix autoconf macro name. Add more dependencies.
60973
60974 2003-08-17  Simon Josefsson  <jas@extundo.com>
60975
60976         * m4/xstrndup.m4: New file.
60977
60978 2003-08-17  Simon Josefsson  <jas@extundo.com>
60979
60980         * m4/argp.m4: New file.
60981
60982 2003-08-17  Simon Josefsson  <jas@extundo.com>
60983             Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/xstrndup.h: New file.
60986         * lib/xstrndup.c: New file.
60987
60988 2003-08-17  Bruno Haible  <bruno@clisp.org>
60989
60990         * modules/strndup (Files, Include): Add lib/strndup.h.
60991
60992 2003-08-17  Bruno Haible  <bruno@clisp.org>
60993
60994         * modules/euidaccess (Files): Add lib/euidaccess.h.
60995
60996 2003-08-17  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/strndup.h: New file.
60999
61000 2003-08-17  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61003         like AC_GNU_SOURCE.
61004         * modules/extensions (configure.ac): Comment out the invocation of
61005         gl_USE_SYSTEM_EXTENSIONS.
61006
61007 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61008
61009         Merges from coreutils, etc.
61010         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61011         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61012         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61013         fixing a typo.
61014         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61015         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61016
61017 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61018
61019         Document merge from coreutils.
61020         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61021         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61022         * modules/utime: Add m4/utimes-null.m4.
61023
61024 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61025
61026         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61027         space, undoing this 2003-08-12 change:
61028         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61029
61030 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61031
61032         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61033         strtoul.c from libc, undoing this 2003-08-12 change:
61034         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61035
61036 2003-08-16  Jim Meyering  <jim@meyering.net>
61037
61038         Merges from coreutils.
61039         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61040         prefix.  Adjust cache variables similarly.  Create 500 rather than
61041         just 300 files, to exercise bug on Darwin6.5, too.
61042         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61043         $missing_dir.
61044         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61045         AM_SYS_POSIX_TERMIOS.
61046         Reported by mkc@mathdogs.com.
61047         Also change use of $am_cv_sys_posix_termios
61048         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61049         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61050         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61051         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61052         in /proc/mounts until it finds one with matching device number.  This
61053         is unnecessary when the FILE argument *is* a mount point.  No stat call
61054         is necessary in that case.  So, disable the statvfs-testing code on
61055         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61056         as RedHat bug# 84846.
61057         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61058         to 1MB, so as not to render systems with no stack size limit (e.g.,
61059         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61060         Include <unistd.h>.  On some systems,
61061         it is required for the definition of _SC_PAGESIZE.
61062
61063 2003-08-16  Jim Meyering  <jim@meyering.net>
61064
61065         Merge from coreutils.
61066         * lib/xstrtoimax.c: #else #if -> #elif.
61067         * lib/xstrtoumax.c: Likewise.
61068
61069 2003-08-16  Jim Meyering  <jim@meyering.net>
61070
61071         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61072         * m4/utimes.m4: Removed.
61073         * m4/utimes-null.m4: Renamed from utimes.m4.
61074
61075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61076         to 1MB, so as not to render systems with no stack size limit (e.g.,
61077         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61078         Include <unistd.h>.  On some systems,
61079         it is required for the definition of _SC_PAGESIZE.
61080
61081 2003-08-16  Jim Meyering  <jim@meyering.net>
61082         and Paul Eggert  <eggert@cs.ucla.edu>
61083
61084         Merges from coreutils, etc.
61085
61086         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61087         using the latest version from cvs.  This avoids problems with #line
61088         directives using a vendor (Sun) compiler.
61089         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61090         Don't set GETGROUPS_LIB here; now it's
61091         done via getgroups.m4's wrapper function.
61092         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61093         rather than just in sh-util/configure.in, so that the
61094         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61095         same.
61096         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61097         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61098         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61099         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61100         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61101         Remove code that is now done by the newly-required macros.
61102         Append $(EXEEXT) to DF_PROG.
61103         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61104         Do not invoke or require the following here,
61105         since prereq.m4 or some gnulib .m4 now does this for us:
61106         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61107         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61108         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61109         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61110         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61111         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61112         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61113         AC_FUNC_OBSTACK.
61114         Do not replace the following functions, as this is now the job
61115         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61116         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61117         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61118         atexit getpass, strdup, getpagesize.
61119         Replace 'raise'.
61120         Do not check for the following functions, as this is now the job
61121         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61122         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61123         setregid.
61124         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61125         Check for sys/sysctl.h.
61126         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61127         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61128         of checking for ssize_t ourselves.
61129
61130         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61131         Require every macro that gnulib/modules/* suggests for us.
61132         (jm_PREREQ_ADDEXT): New macro.
61133         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61134         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61135
61136         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61137         (gl_PHYSMEM): Use it.
61138         Also check for `table' function.
61139         Check for new headers and functions.
61140         Add check for sys/sysmp.h.
61141         With suggestions from Kaveh Ghazi.
61142         Ignore headers that are present but cannot be compiled.  This
61143         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61144         C 5.4.
61145
61146 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61147
61148         Document merge from coreutils.
61149         * modules/userspec: Depend on posixver.
61150         * modules/strftime: Depend on tzset.
61151
61152 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61153
61154         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61155         rather than tab, after '#' in shell-script copyright notices.
61156         Suggested by Bruno Haible.
61157
61158 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61159
61160         * config/srclist-update: Use three spaces, rather than tab, after '#'
61161         in shell-script copyright notices.  Suggested by Bruno Haible.
61162         Remove unnecessary parenthesization in regular expression.
61163
61164 2003-08-15  Jim Meyering  <jim@meyering.net>
61165
61166         Merge from coreutils.
61167         * lib/xgethostname.c: Include <stdlib.h>.
61168         (xghostname): Don't exit for anything other than memory-related
61169         failure; just return NULL.
61170         * lib/userspec.c: Include "posixver.h".
61171         (parse_user_spec): Accept `.' as a separator only
61172         in pre-POSIX-200112 mode.
61173         * lib/strtoimax.c: Use #elif rather than #else #if.
61174         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61175         Remove function, now that we can rely on a working tzset function.
61176         [!_LIBC]: Ensure that the required autoconf test has been run.
61177         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61178         Use underlying_strftime for %r.
61179         * lib/sha.c: Merge in some clean-up and optimization changes from
61180         glibc.
61181         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61182         Ensure that it is a multiple of 64.
61183         Rearrange loop exit tests so as to avoid performing an
61184         additional fread after encountering an error or EOF.
61185         * lib/realloc.c: Update copyright date.
61186
61187 2003-08-15  Jim Meyering  <jim@meyering.net>
61188         and Paul Eggert  <eggert@twinsun.com>
61189
61190         Merge from coreutils.
61191         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61192         member but strut utmpx does not.  Needed for AIX 4.3.3.
61193         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61194
61195 2003-08-15  Jim Meyering  <jim@meyering.net>
61196         and Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         Merges from coreutils, etc.
61199         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61200         Require gl_FUNC_TZSET_CLOBBER.
61201         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61202         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61203         members.
61204
61205 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61206
61207         Help the merge from coreutils.
61208         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61209         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61210         * m4/tzset.m4: Use it too.
61211
61212 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61213
61214         * modules/tzset: New file.
61215
61216 2003-08-14  Jim Meyering  <jim@meyering.net>
61217
61218         Merges from coreutils.
61219         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61220         variable names, rather than @FNMATCH_H@.
61221         * modules/alloca: Likewise for $(ALLOCA_H).
61222
61223         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61224         the three copies of the literal target, `fnmatch.h'.
61225         * modules/alloca (alloca.h): Likewise.
61226
61227 2003-08-14  Jim Meyering  <jim@meyering.net>
61228
61229         Merge from coreutils.
61230         * m4/tzset.m4: New file.
61231         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61232         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61233         otherwise, AIX 5.1 systems would end up using the latter.
61234         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61235         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61236         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61237         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61238
61239 2003-08-14  Jim Meyering  <jim@meyering.net>
61240
61241         Merge from coreutils.
61242         * lib/obstack.h: Whitespace changes.
61243         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61244         and xcalloc return values.
61245         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61246         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61247         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61248         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61249         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61250         error from mntctl.
61251         Use mntctl's return value to drive the entry-processing loop, since
61252         we can't rely on the value of the vmt_length member in the last
61253         entry.  On some systems doing so could result in exhausting
61254         virtual memory.  Based in part on a patch from Mike Jetzer.
61255
61256 2003-08-14  Jim Meyering  <jim@meyering.net>
61257         and Paul Eggert  <eggert@twinsun.com>
61258
61259         Merges from coreutils, plus other fixes.
61260         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61261         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61262         for credits and details.  Thanks to Kaveh Ghazi for helping
61263         to keep these files in sync.
61264         (ARRAY_SIZE): Define it.
61265         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61266         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61267         (memcasecmp): Don't assume size_t fits in unsigned int.
61268         Remove casts and duplicate code.
61269         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61270         (memcpy): Remove definition.
61271         Merge in some clean-up and optimization changes from glibc.
61272         [BLOCKSIZE]: Move definition to top of file.
61273         Ensure that it is a multiple of 64.
61274         Rearrange loop exit tests so as to avoid performing an
61275         additional fread after encountering an error or EOF.
61276         * lib/md5.h (md5_uintptr): Define.
61277         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61278         return to the initial working directory.  Preserve errno
61279         for caller.
61280         * lib/idcache.c: Include "xalloc.h".
61281         (xmalloc, xrealloc): Remove decls.
61282         (getuser): Remove casts no longer required in C89.
61283         * lib/human.c: Include stdio.h, for sprintf.
61284         * lib/group-member.c: Include "xalloc.h".
61285         (xmalloc, xrealloc): Remove decls.
61286         (get_group_info): Remove casts no longer required in C89.
61287         * lib/getusershell.c (readname): Remove casts no longer required in
61288         C89.
61289         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61290         * lib/getline.c: Whitespace fix, from coreutils.
61291
61292 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61293
61294         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61295         Check for isascii.
61296
61297         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61298         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61299         Undo previous (whitespace-only) change.
61300
61301 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61302
61303         * lib/exclude.c: Include <ctype.h>
61304         (IN_CTYPE_DOMAIN): New macro.
61305         (is_space): New fn.
61306         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61307         and empty lines.
61308
61309         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61310         Undo previous (whitespace-only) change.
61311
61312 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61313
61314         * config/srclist-update: Change update back to the old behavior,
61315         leaving whitespace alone.  Use one 'sed' command rather than a
61316         pipeline.
61317         (fixlicense): Now a variable, not a function.
61318         (remove_trailing_blanks): Remove.
61319         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61320         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61321         Undo previous (whitespace-only) change.
61322
61323 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61324
61325         Merge from coreutils.
61326         * modules/euidaccess: Add lib_SOURCES, include for new
61327         file euidaccess.h
61328
61329 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61330
61331         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61332         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61333         Normalize leading white space and remove trailing white space.
61334
61335         Merge from coreutils
61336         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61337
61338         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61339         0.12.1.  These files are now being upgraded automatically by
61340         ../config/srclist-update.
61341
61342 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61343
61344         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61345         Normalize leading white space and remove trailing white space.
61346         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61347         notice, as per ../config/srclist-update.
61348
61349         Merge from coreutils.
61350         * lib/euidaccess.h: New file.
61351         * lib/euidaccess.c: Include it.
61352         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61353         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61354         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61355
61356 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61357
61358         * config/srclist-update: Add copyright notice.
61359         (remove_id_lines, remove_trailing_blanks): New constants.
61360         (fixfile): Use them to normalize spacing a bit in copied files.
61361         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61362         Normalize leading white space and remove trailing white space.
61363
61364         * config/texinfo.tex: Sync with texinfo.
61365
61366         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61367         strtoul.c from libc, to merge coreutils whitespace changes.
61368
61369         * config/srclist.txt: Get the following m4 files from gettext:
61370         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61371         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61372         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61373         wint_t.m4.
61374
61375 2003-08-12  Karl Berry  <karl@gnu.org>
61376
61377         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61378         been made.
61379
61380 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61381
61382         * modules/gnu-source, m4/gnu-source.m4:
61383         Remove; we're assuming Autoconf 2.54 or later now.
61384         Suggested by Bruno Haible.
61385         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61386
61387 2003-08-11  Bruno Haible  <bruno@clisp.org>
61388
61389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61390
61391 2003-08-11  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61394         (vasnprintf): Use it instead of wcslen.
61395
61396 2003-08-11  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61399         value to ensure that _Bool promotes to int. Use #define for _Bool when
61400         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61401
61402 2003-08-10  Karl Berry  <karl@gnu.org>
61403
61404         * lib/regex.h: update from libc (whitespace fix).
61405
61406 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61407
61408         Merge some files from coreutils.  These changes were
61409         originally made by Jim Meyering.
61410         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61411         many older Unixes require this.
61412         * lib/alloca.c (alloca): Remove cast to argument of free;
61413         no longer needed in C89.
61414         * lib/alloca_.h, regex.h: Fix white space to match
61415         what GNU indent does.
61416
61417 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61418
61419         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61420         apparently Emacs's Unicode mode got confused before my 2003-08-05
61421         checkin.
61422
61423 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61424
61425         * m4/extensions.m4: New file.
61426         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61427         Require gl_USE_SYSTEM_EXTENSIONS.
61428         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61429         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61430
61431 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61432
61433         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61434         * modules/extensions, modules/gnu-source: New files.
61435         * modules/timespec, modules/unlocked-io: Depend on extensions.
61436
61437 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61438
61439         * modules/restrict: New file.
61440         * MODULES.html.sh (func_all_modules): Add restrict.
61441         * modules/regex: Depend on restrict.
61442
61443 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61444
61445         * m4/restrict.m4: New file.
61446         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61447
61448 2003-08-07  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61451         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61452
61453 2003-08-07  Bruno Haible  <bruno@clisp.org>
61454
61455         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61456         makes the module 'getndelim2' compatible with the module 'getline'.
61457
61458 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61459
61460         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61461         byte with "\201" to avoid glitches when editing that source file
61462         with multi-gnome-terminal.
61463
61464 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61465
61466         * lib/bumpalloc.h: Remove.
61467
61468 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61469
61470         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61471         * modules/bumpalloc: Remove.
61472
61473 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61474
61475         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61476         GNU coding style.
61477
61478         Merge from coreutils.
61479         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61480         1. From glibc.
61481         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61482         from Karl Berry, implemented by Jim Meyering.
61483         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61484         from Dmitry V. Levin.
61485         Remove anachronistic cast of xrealloc.
61486         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61487         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61488         type. Otherwise, it wouldn't compile with at least /bin/cc on
61489         ymp-cray-unicos9.0.2.X.
61490         Combine two mostly-identical uses of alloca into one.
61491         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61492
61493 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61494
61495         [From Emacs.]
61496
61497         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61498         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61499         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61500         obsolete NLIST_NAME_UNION.
61501         [__GNU__]: Undef BSD and FSCALE.
61502         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61503
61504 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61505
61506         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61507         an enum type, so that it's guaranteed to promote to int.  See:
61508         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61509
61510 2003-08-03  Karl Berry  <karl@gnu.org>
61511
61512         * config/depcomp: update from automake.
61513
61514 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61515
61516         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61517         (strerror): Don't assume that a printable int fits in 14 bytes.
61518
61519 2003-07-31  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/getpass-gnu: New file.
61522         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61523
61524 2003-07-31  Bruno Haible  <bruno@clisp.org>
61525
61526         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61527
61528 2003-07-24  Karl Berry  <karl@gnu.org>
61529
61530         * config/missing: update from automake.
61531
61532 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61533             Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61536         * lib/getline.c (getline, getdelim): Likewise.
61537         Remove _GNU_SOURCE define; now it's defined in config.h through
61538         m4/getline.m4.
61539
61540 2003-07-23  Karl Berry  <karl@gnu.org>
61541
61542         * config/config.sub: update from prep.
61543
61544 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61545
61546         * modules/xalloc (Depends-on): Add exitfail.
61547         * modules/xmemcoll: Likewise.
61548
61549 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61550
61551         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61552         over-parenthesization in macros.
61553
61554         Sync with coreutils.
61555
61556         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61557         required by C99.
61558
61559         Use `exit_failure' for xalloc and xmemcoll instead of their own
61560         private exit-failure variables.
61561         * lib/xalloc.h (xalloc_exit_failure): Remove.
61562         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61563         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61564         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61565         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61566         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61567
61568 2003-07-20  Jim Meyering  <jim@meyering.net>
61569
61570         * modules/closeout (Depends-on): Add exitfail.
61571         Suggestion from Bruno Haible.
61572
61573 2003-07-19  Karl Berry  <karl@gnu.org>
61574
61575         * config/config.sub: update from prep.
61576
61577 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61578
61579         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61580         Remove.
61581         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61582         to test that it can stand by itself.  Include "exitfail.h".
61583         Clients should set exit_failure instead.
61584         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61585
61586 2003-07-18  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/getndelim2: New file.
61589         * modules/getline: Share files with module getndelim2.
61590         * modules/getnline: Depend on getndelim2 instead of sharing files with
61591         it. Add getnline.c to lib_SOURCES.
61592         * MODULES.html.sh (func_all_modules): Add getndelim2.
61593
61594 2003-07-18  Bruno Haible  <bruno@clisp.org>
61595
61596         * m4/getndelim2.m4: New file.
61597         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61598         invoke gl_PREREQ_GETNDELIM2.
61599         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61600         gl_PREREQ_GETNDELIM2.
61601         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61602         gl_GETNDELIM2.
61603
61604 2003-07-18  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/getndelim2.h: New file.
61607         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61608         getndelim2.h.
61609         (getndelim2): Make non-static. Change return type to ssize_t.
61610         * lib/getline.h: Change argument names.
61611         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61612         * lib/getnline.c: Include getndelim2.h.
61613
61614 2003-07-18  Andreas Schwab  <schwab@suse.de>
61615
61616         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61617
61618 2003-07-17  Karl Berry  <karl@gnu.org>
61619
61620         * config/config.sub: update from prep.
61621
61622 2003-07-17  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/getnline: New file.
61625         * modules/getline: Add lib/getndelim2.c to source file list.
61626         * MODULES.html.sh (func_all_modules): Add getnline.
61627
61628 2003-07-17  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/getnline.m4: New file.
61631
61632 2003-07-17  Bruno Haible  <bruno@clisp.org>
61633
61634         * m4/Makefile.am.in: Remove file.
61635         * m4/Makefile.am: Remove file.
61636         * m4/Makefile.in: Remove file.
61637
61638 2003-07-17  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/getnline.h: New file.
61641         * lib/getnline.c: New file.
61642         * lib/getndelim2.c: New file, extracted from getline.c.
61643         (getndelim2): Renamed from getdelim2, with added nmax argument.
61644         * lib/getline.c: Include getndelim2.c.
61645         (getdelim2): Moved out to getndelim2.c.
61646         (getline, getdelim): Update.
61647
61648 2003-07-17  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/Makefile.am: Remove file.
61651         * lib/Makefile.in: Remove file.
61652
61653 2003-07-17  Bruno Haible  <bruno@clisp.org>
61654
61655         * configure.in: Remove file.
61656         * Makefile.in: Remove file.
61657
61658 2003-07-17  Bruno Haible  <bruno@clisp.org>
61659
61660         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61661
61662 2003-07-16  Karl Berry  <karl@gnu.org>
61663
61664         * config/srclist-update: was running fixlicense twice, which caused
61665                 texinfo.tex to be nullified for some reason.  Simplify,
61666                 $gplsrc is no longer needed as far as I can see?
61667
61668 2003-07-16  Jim Meyering  <jim@meyering.net>
61669
61670         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61671
61672 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61673
61674         * config/srclist.txt: Get the following files from gettext-runtime/intl
61675         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61676         ref-del.sin.  From Bruno Haible.
61677         * config/srclist-update (fixfile): Change grep pattern again, since the
61678         previous fix didn't work (there was another trailing $).  Use
61679         '[$]' to escape the $s.
61680
61681 2003-07-15  Karl Berry  <karl@gnu.org>
61682
61683         * lib/vasnprintf.c: update from gettext.
61684
61685 2003-07-15  Karl Berry  <karl@gnu.org>
61686
61687         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61688         gets expanded when surrounded by '$'.
61689
61690 2003-07-15  Jim Meyering  <jim@meyering.net>
61691
61692         * modules/save-cwd: Don't depend on error.  From Derek Price.
61693
61694 2003-07-15  Jim Meyering  <jim@meyering.net>
61695
61696         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61697
61698 2003-07-14  Simon Josefsson  <jas@extundo.com>
61699
61700         * modules/mempcpy: New file.
61701         * MODULES.html.sh (func_all_modules): Add mempcpy.
61702
61703 2003-07-14  Simon Josefsson  <jas@extundo.com>
61704
61705         * m4/mempcpy.m4: New file.
61706
61707 2003-07-14  Simon Josefsson  <jas@extundo.com>
61708
61709         * lib/mempcpy.h: New file.
61710         * lib/mempcpy.c: New file.
61711
61712 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61713
61714         * modules/getdate, modules/posixtm: Depend on mktime.
61715
61716 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61717
61718         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61719         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61720         unicodeio.c, unicodeio.h, unlocked-io.h:
61721         Switch from LGPL to GPL.
61722
61723 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61724
61725         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61726         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61727         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61728         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61729         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61730         updated automatically by ../config/srclist-update.  This changes
61731         their license from LPGL to GPL.
61732
61733 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61734
61735         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61736         assumed to refer to the root of the most recent stable gettext version.
61737         * config/srclistvars.sh: Add defaults for eggert.
61738         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61739         Match "This program" as well as "The program".  This is needed
61740         for gettext.
61741
61742 2003-07-14  Jim Meyering  <jim@meyering.net>
61743
61744         Don't emit diagnostics.  Let callers do that.
61745         * lib/save-cwd.c: Don't include "error.h".
61746         (save_cwd): Don't call error.  Ensure that errno is valid
61747         when returning nonzero.
61748
61749         * lib/save-cwd.h (restore_cwd): Update prototype.
61750         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61751         Simplify.  Don't call error upon failure.  Let callers do that.
61752         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61753         when auditing is enabled.  But don't bother updating the #if.
61754
61755 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61756
61757         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61758         it breaks C++ compilation.
61759         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61760
61761 2003-07-10  Simon Josefsson  <jas@extundo.com>
61762
61763         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61764
61765 2003-07-10  Jim Meyering  <jim@meyering.net>
61766
61767         * m4/clock_time.m4: Remove trailing blank.
61768         * m4/intmax_t.m4: Likewise.
61769
61770 2003-07-10  Jim Meyering  <jim@meyering.net>
61771
61772         * lib/vasnprintf.c: Remove trailing blanks.
61773         Make cpp indentation consistent.
61774
61775 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61776
61777         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61778         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61779         Switch from LGPL to GPL.
61780
61781 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61782
61783         * config/srclist.txt: Sort sublists.  Add
61784         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61785         that differ from gnulib for one reason or another; we'd like this list
61786         to be smaller but for now let's document what we have.
61787
61788 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61789
61790         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61791         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61792         and sweeter "eval x=$x".
61793         * config/srclist.txt: Get lib/argp* from glibc.
61794
61795 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61796
61797         * lib/mktime.c: Fix some boundary cases and remove need for floating
61798         point.
61799
61800         Issue a compile-time diagnostic if time_t is floating point, or if
61801         two's complement arithmetic is not in effect, or if arithmetic
61802         right shift does not propagate the sign.  These assumptions were
61803         all in the original code but they weren't checked.
61804
61805         (TIME_T_MIDPOINT, verify): New macros.
61806         (__isleap): Remove; it has integer overflow problems.
61807         (leapyear): New function, without those problems.
61808         (ydhms_tm_diff): Remove; splitting into two parts.
61809         (ydhms_diff): New function, containing the arithmetic part of
61810         the old ydhms_tm_diff function.  Issue a compile-time
61811         diagnostic if we are not using C99 integer division.
61812         Avoid casts when possible.
61813         (guess_time_tm): New function, containing the checking part of
61814         the old ydhms_tm_diff function.  Return the new value, rather than
61815         the difference between it and the old.  Accept a new argument T
61816         so that *T specifies the old value.  Check for overflow in the result.
61817
61818         (__mktime_internal): Use a time_t offset, not a long int offset.
61819         This undoes the 2003-06-04 change, which is no longer needed now
61820         that we have better overflow checking.
61821         (localtime_offset): Likewise.
61822
61823         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61824         and long are 64-bit but int is only 32-bit.
61825         (ydhms_diff): Use long int to store year1 and yday1.
61826         Issue a compile-time diagnostic if long int is not wide enough.
61827
61828         (__mktime_internal): Use long int to store adjusted year and yday.
61829         Use plain C rather than preprocessor commands, if that doesn't
61830         affect efficiency.
61831         Check for overflow (and try to repair) after each probe
61832         rather than checking only at the very end.  This avoids some bugs
61833         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61834         does not equal GMT offset at maximum time).
61835         Use integer to check for overflow rather than floating point; this
61836         is more portable to non-IEEE hosts, and is a tad faster.
61837         When we detect that we are oscillating between two values,
61838         don't check whether tm_isdst has the requested value, since
61839         we already know the answer.  When tm_isdst has the wrong value,
61840         use a different heuristic to find the right one, based on the
61841         extreme values actually observed in practice in tz2003a,
61842         rather than the (overly optimistic) "previous 3 calendar quarters".
61843
61844         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61845         "T const" to accommodate glibc style.
61846         (check_result): Use less-confusing report format.  "long" -> "long int.
61847         (main): Likewise.
61848         Don't loop if the iteration overflows time_t.
61849         Allow a negative step in the iteration.
61850
61851 2003-07-06  Karl Berry  <karl@gnu.org>
61852
61853         * config/depcomp: update from automake.
61854         * config/config.sub: update from prep.
61855
61856 2003-07-03  Karl Berry  <karl@gnu.org>
61857
61858         * config/config.guess: update from prep.
61859
61860 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61861
61862         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61863         xreadlink.c now includes it unconditionally.
61864
61865 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61866
61867         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61868         having it depend on HAVE_SYS_TYPES_H.
61869
61870 2003-07-01  Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61873         <sys/types.h> should be sufficient.
61874         Reported by Paul Eggert.
61875
61876 2003-06-26  Karl Berry  <karl@gnu.org>
61877
61878         * config/depcomp: update from automake.
61879
61880 2003-06-26  Bruno Haible  <bruno@clisp.org>
61881
61882         * modules/human: Depend on module stdbool.
61883
61884 2003-06-25  Bruno Haible  <bruno@clisp.org>
61885
61886         * modules/readlink: New file.
61887         * modules/xreadlink: Depend on it.
61888         * MODULES.html.sh (func_all_modules): Add readlink.
61889
61890 2003-06-25  Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/readlink.m4: New file.
61893
61894 2003-06-25  Bruno Haible  <bruno@clisp.org>
61895
61896         * lib/readlink.c: New file.
61897
61898 2003-06-22  Karl Berry  <karl@gnu.org>
61899
61900         * config/srclist.txt: update mkinstalldirs from automake.
61901         * config/mkinstalldirs: update.
61902
61903 2003-06-22  Bruno Haible  <bruno@clisp.org>
61904
61905         Portability to mingw32.
61906         * m4/ssize_t.m4: New file, from GNU gettext.
61907         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
61908         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
61909
61910 2003-06-22  Bruno Haible  <bruno@clisp.org>
61911
61912         * modules/safe-read: Add m4/ssize_t.m4.
61913         * modules/xreadlink: Add m4/ssize_t.m4.
61914
61915 2003-06-20  Bruno Haible  <bruno@clisp.org>
61916
61917         Assume C89, so PARAMS isn't needed.
61918         * lib/unicodeio.h (PARAMS): Remove.
61919         * lib/unicodeio.c: Don't use PARAMS.
61920
61921 2003-06-18  Karl Berry  <karl@gnu.org>
61922
61923         * config/config.{guess,sub}: update from prep.
61924
61925 2003-06-18  Jim Meyering  <jim@meyering.net>
61926
61927         Merge changes from coreutils.
61928         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
61929         Remove explicit declarations of xmalloc and realloc.
61930         Include xalloc.h.
61931         (read_utmp): Remove anachronistic cast of xmalloc.
61932
61933 2003-06-17  Paul Eggert  <eggert@twinsun.com>
61934
61935         Assume C89, so PARAMS isn't needed.
61936         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
61937         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
61938         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
61939         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
61940         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
61941         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
61942         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
61943         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
61944         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
61945         lib/xstrtod.h, lib/xstrtol.h: Likewise.
61946         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
61947         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
61948         no longer needed. Anyway, config.h should always be included before any
61949         other file.
61950
61951 2003-06-11  Simon Josefsson  <jas@extundo.com>
61952
61953         * modules/sysexits: New file.
61954         * MODULES.html.sh (func_all_modules): Add sysexits.
61955
61956 2003-06-11  Simon Josefsson  <jas@extundo.com>
61957
61958         * lib/sysexit_.h: New file.
61959
61960 2003-06-11  Derek Price  <derek@ximbiot.com>
61961
61962         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
61963         necessary.
61964
61965 2003-06-11  Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/sysexits.m4: New file.
61968
61969 2003-06-10  Simon Josefsson  <jas@extundo.com>
61970
61971         * lib/argp.h: New file, from glibc.
61972         * lib/argp-ba.c: New file, from glibc.
61973         * lib/argp-eexst.c: New file, from glibc.
61974         * lib/argp-fmtstream.c: New file, from glibc.
61975         * lib/argp-fmtstream.h: New file, from glibc.
61976         * lib/argp-fs-xinl.c: New file, from glibc.
61977         * lib/argp-help.c: New file, from glibc.
61978         * lib/argp-namefrob.h: New file, from glibc.
61979         * lib/argp-parse.c: New file, from glibc.
61980         * lib/argp-pv.c: New file, from glibc.
61981         * lib/argp-pvh.c: New file, from glibc.
61982         * lib/argp-xinl.c: New file, from glibc.
61983
61984 2003-06-10  Simon Josefsson  <jas@extundo.com>
61985
61986         * modules/strchrnul: New file.
61987
61988 2003-06-10  Simon Josefsson  <jas@extundo.com>
61989
61990         * modules/argp: New file.
61991
61992 2003-06-10  Simon Josefsson  <jas@extundo.com>
61993
61994         * m4/strchrnul.m4: New file.
61995
61996 2003-06-10  Simon Josefsson  <jas@extundo.com>
61997
61998         * lib/strchrnul.h: New file.
61999         * lib/strchrnul.c: New file.
62000
62001 2003-06-10  Bruno Haible  <bruno@clisp.org>
62002
62003         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62004
62005 2003-06-07  Karl Berry  <karl@gnu.org>
62006
62007         * config/config.{guess,sub}: update from prep.
62008
62009 2003-06-07  Jim Meyering  <jim@meyering.net>
62010
62011         * modules/strtod: Use $(...) notation, not @...@ for
62012         AC_REPLACE'd variables.
62013         * modules/localcharset: Likewise.
62014
62015 2003-06-07  Jim Meyering  <jim@meyering.net>
62016
62017         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62018         in place of my name in the copyright comment.
62019         Remove definition and uses of __P.
62020
62021         From coreutils.
62022         * lib/stat.c: Don't declare xmalloc explicitly.
62023         Instead, include "xalloc.h".
62024         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62025         xrealloc, and xcalloc return values.
62026         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62027         Improve comment.
62028         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62029
62030 2003-06-07  Bruno Haible  <bruno@clisp.org>
62031
62032         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62033         avoid AC_CONFIG_LINKS.
62034         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62035         fnmatch.h, to avoid AC_CONFIG_LINKS.
62036         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62037
62038 2003-06-07  Bruno Haible  <bruno@clisp.org>
62039
62040         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62041         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62042         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62043         directory.
62044         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62045         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62046         directory.
62047
62048 2003-06-06  Jim Meyering  <jim@meyering.net>
62049
62050         Merge from coreutils.
62051         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62052         Consolidate declarations and initializations of *_base* locals.
62053
62054         Merge from coreutils.
62055         This avoids a core dump on systems without GNU putenv,
62056         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62057         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62058         (unsetenv): New static function, from GNU libc.
62059         (rpl_putenv): Use it.
62060
62061         * lib/modechange.c: Remove trailing blanks.
62062
62063         Merge from coreutils.
62064         * lib/fsusage.c: Remove declaration of statfs.
62065         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62066
62067         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62068
62069 2003-06-06  Jim Meyering  <jim@meyering.net>
62070
62071         * lib/stdbool_.h: Renamed from stdbool.h.in.
62072
62073 2003-06-06  Jim Meyering  <jim@meyering.net>
62074             Bruno Haible  <bruno@clisp.org>
62075
62076         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62077         Adjust Makefile.am snippet not to redirect directly to target.
62078         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62079
62080 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62081
62082         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62083         mismatch, look in future quarters as well as past.  This fixes a
62084         bug when processing fall-backwards gaps immediately after a long
62085         period of daylight-saving time.
62086
62087         * lib/mktime.c: Assume freestanding C89 or better.
62088         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62089         (__P): Remove; not used.
62090         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62091         (mktime, not_equal_tm, print_tm, check_result,
62092         main): Use prototypes.  Use const * where appropriate.
62093         (main): Fix typo in testing code that uncovered by above changes.
62094         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62095
62096 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62097
62098         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62099         locale.h, localeconv.  This merges changes from coreutils.
62100
62101         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62102         It can be removed after the next Autoconf is released.
62103         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62104         needed.
62105
62106 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62107
62108         * lib/mktime.c: Fix Debian bug 177940
62109         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62110         (localtime_offset): Now long int, not time_t, because we want it
62111         to be guaranteed to be signed.  All uses changed.
62112         (__mktime_internal): If overflow would occur when adding offset,
62113         don't add it.
62114
62115         Merge 'human' changes from coreutils.  Rewrite to support
62116         locale-specific notations like thousands separators.
62117         * lib/human.c: Simplify authorship notice.
62118         Include human.h immediately after config.h.
62119         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62120         <limits.h>: Do not include, since human.h does.
62121         (SIZE_MAX, UINTMAX_MAX): New macros.
62122         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62123         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62124         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62125         (power_letter): Renamed from suffixes.
62126         (generate_suffix_backwards): Remove.
62127         (adjust_value): Now takes int style (because of human.h changes)
62128         and long double value (for greater precision on some platforms).
62129         (group_number): New function.
62130         (human_readable): Use it.  Use integer options, not enum.
62131         Put the options before the sizes in the arg list.
62132         Support all the new options.
62133         The old human_readable function has been removed;
62134         use inttostr.h instead.
62135         (human_readable, default_block_size, humblock):
62136         Use uintmax_t, not int, for block sizes.
62137         (human_readable_inexact, block_size_types): Remove.
62138         (block_size_opts): New constant.
62139         (human_options): Renamed from human_block_size, with new signature
62140         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62141         * lib/human.h: Add copyright and authorship notice.
62142         Include <limits.h> and <stdbool.h> unconditionally.
62143         (PARAMS): Remove.  All uses removed.
62144         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62145         (enum human_inexact_style): Remove tag; now a nameless enum.
62146         (human_floor, human_ceiling, human_round_to_even): Now have
62147         values 2, 0, 1 rather than -1, 1, 0.
62148         (human_group_digits, human_suppress_point_zero, human_autoscale,
62149         human_base_1024, human_SI, human_B): New constants.
62150         (human_readable_inexact, human_block_size): Remove.
62151         (human_readable): Size args are now uintmax_t, not int.
62152         (human_options): New decl.
62153
62154         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62155         unnecessary now that we assume C89 or better.  This change
62156         imported from coreutils.
62157
62158         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62159         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62160         in the 2003-05-30 sync from glibc.
62161
62162         .h files should stand alone, but we shouldn't include <sys/types.h>
62163         if we can get away with just <stddef.h>.
62164
62165         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62166         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62167         rather than <sys/types.h>, as we merely need size_t.
62168         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62169         to get size_t.
62170         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62171         Include <stdio.h>, to get FILE.
62172         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62173         memcasecmp.h has included <stddef.h> and all we need is size_t.
62174         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62175         our interface, instead of including <sys/types.h>
62176
62177 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62178
62179         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62180         now, as glibc mktime is buggy on non-glibc systems.
62181
62182 2003-06-03  Karl Berry  <karl@gnu.org>
62183
62184         * config/config.sub: update from prep.
62185
62186 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62187
62188         [from coreutils]
62189         Fix some minor time-related bugs with POSIX time arguments.
62190         Some valid time stamps were being rejected (notably -1, and
62191         time stamps before 1900 on 64-bit hosts).  And some invalid
62192         time stamps were being accepted, e.g. September 31.
62193
62194         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62195         that we can return (time_t) -1 successfully.
62196         * lib/posixtm.c: Likewise.
62197         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62198         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62199         (t): Remove static var.
62200         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62201         of static var.  All uses changed.
62202         (year): Do not reject years before 1900; they can occur with
62203         64-bit time_t.
62204         (posix_time_parse): Do not check for out-of-range components;
62205         that is now the caller's responsibility, since our checks were
62206         only approximations.
62207         (posixtime): Use mktime to check for out-of-range components,
62208         since it knows them exactly.
62209         If mktime returns (time_t) -1, check whether an error actually occurred
62210         by invoking localtime on -1.
62211         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62212         posixtime failures better.
62213         Improve the test data (in comments only).
62214
62215 2003-06-02  Karl Berry  <karl@gnu.org>
62216
62217         * config/mkinstalldirs (version): new variable.
62218         (--version): new option.
62219         (usage): improve message.
62220
62221 2003-05-30  Karl Berry  <karl@gnu.org>
62222
62223         * lib/mktime.c: update from libc.
62224
62225 2003-05-30  Bruno Haible  <bruno@clisp.org>
62226
62227         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62228         * config/config.rpath: Upgrade to gettext-0.12.1.
62229
62230 2003-05-30  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62233         * m4/nls.m4: New file, from gettext-0.12.1.
62234         * m4/po.m4: New file, from gettext-0.12.1.
62235         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62236
62237 2003-05-30  Bruno Haible  <bruno@clisp.org>
62238
62239         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62240         * lib/localcharset.h: Likewise.
62241         * lib/localcharset.c: Likewise.
62242
62243 2003-05-29  Karl Berry  <karl@gnu.org>
62244
62245         * config/config.rpath: update from gettext.
62246
62247 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62248
62249         Assume the headers required for C89 freestanding compilers.
62250         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62251         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62252         * m4/human.m4 (gl_HUMAN): Likewise.
62253         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62254         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62255         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62256         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62257         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62258         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62259
62260 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62261
62262         Assume the headers required for C89 freestanding compilers.
62263         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62264         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62265         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62266         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62267         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62268         define, since <limits.h> is guaranteed to do that.
62269         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62270         * lib/exclude.c: Include <stdbool.h> unconditionally.
62271         * lib/tempname.c: Include <stddef.h> unconditionally.
62272         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62273         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62274         <stddef.h> does that.
62275         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62276         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62277         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62278         needed.
62279         * lib/xstrtol.c: Likewise.
62280         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62281         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62282
62283         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62284         warnings on some platforms.
62285
62286         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62287         arbitrarily.
62288
62289 2003-05-26  Jim Meyering  <jim@meyering.net>
62290
62291         Merge in a change from coreutils:
62292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62293         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62294         that condition, rather than `-1' which is slightly misleading.
62295         Change the name of the cache variable to have the gl_ prefix.
62296         Prompted by a patch from Richard Dawe for DJGPP.
62297
62298 2003-05-24  Karl Berry  <karl@gnu.org>
62299
62300         * config/config.guess: update from prep.
62301
62302 2003-05-22  Karl Berry  <karl@gnu.org>
62303
62304         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62305
62306 2003-05-20  Karl Berry  <karl@gnu.org>
62307
62308         * config/config.guess: update from prep.
62309
62310 2003-05-18  Karl Berry  <karl@gnu.org>
62311
62312         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62313         might actually be set by the user.
62314
62315         * config/depcomp, install-sh, mdate-sh: update from automake.
62316
62317 2003-05-17  Bruno Haible  <bruno@clisp.org>
62318
62319         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62320         invalid expansion for AC_EGREP_CPP.
62321         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62322         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62323         Suggested by Akim Demaille <akim@epita.fr> in
62324         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62325
62326 2003-05-12  Jim Meyering  <jim@meyering.net>
62327
62328         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62329         the space-padded-by-default conversion specifiers, %e, %k, %l.
62330
62331 2003-05-12  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62334         the string is longer than 4 KB.
62335
62336 2003-05-11  Karl Berry  <karl@gnu.org>
62337
62338         * config/config.{guess,sub}: update from prep.
62339
62340 2003-05-09  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/error: Add m4/strerror_r.m4 to file list.
62343
62344 2003-05-03  Bruno Haible  <bruno@clisp.org>
62345
62346         Upgrade to Unicode-4.0.
62347         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62348         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62349         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62350         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62351         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62352         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62353         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62354         Change width of U+E0100..U+E01EF from 1 to 0.
62355
62356 2003-04-25  Jim Meyering  <jim@meyering.net>
62357
62358         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62359         of type size_t, not int.
62360
62361 2003-04-25  Bruno Haible  <bruno@clisp.org>
62362
62363         * lib/copy-file.c: Include <stddef.h>, for size_t.
62364
62365 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62366
62367         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62368         code which expansion is under static control.  Patch imported from
62369         Akim Demaille's patch to Bison; see
62370         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62371
62372 2003-04-14  Bruno Haible  <bruno@clisp.org>
62373
62374         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62375
62376 2003-04-11  Jim Meyering  <jim@meyering.net>
62377
62378         Merge changes from Coreutils.
62379
62380         2003-03-22  Jim Meyering  <jim@meyering.net>
62381
62382         * lib/strftime.c (widen): Cast alloca return value to proper type.
62383
62384         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62385
62386         From GNU libc.
62387         * lib/strftime.c (my_strftime): Handle very large width
62388         specifications for numeric values correctly.  Improve checks for
62389         overflow.
62390
62391         2003-01-19  Jim Meyering  <jim@meyering.net>
62392
62393         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62394         definitions.
62395         (nl_get_alt_digit) [! defined my_strftime]: Define.
62396         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62397         _nl_get_alt_digit and _nl_get_walt_digit.
62398
62399         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62400         libc. These changes have no effect outside of _LIBC.
62401
62402 2003-04-10  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/findprog: New file.
62405         * MODULES.html.sh (func_all_modules): Add it.
62406
62407 2003-04-10  Bruno Haible  <bruno@clisp.org>
62408
62409         * m4/findprog.m4: New file.
62410         * m4/eaccess.m4: New file.
62411
62412 2003-04-10  Bruno Haible  <bruno@clisp.org>
62413
62414         * lib/findprog.h: New file, from GNU gettext.
62415         * lib/findprog.c: New file, from GNU gettext.
62416
62417 2003-04-05  Jim Meyering  <jim@meyering.net>
62418
62419         Merge changes from Coreutils.
62420
62421         * lib/exclude.h (PARAMS): Remove definition and uses.
62422         * lib/exclude.c: Remove uses of `PARAMS'.
62423
62424         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62425         Add test-cases for DOS filenames. Declare program_name.
62426         (main): Set up program_name.  Patch by Rich Dawe.
62427
62428         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62429         error from mntctl.
62430         Use mntctl's return value to drive the entry-processing loop, since
62431         we can't rely on the value of the vmt_length member in the last
62432         entry.  On some systems doing so could result in exhausting
62433         virtual memory.  Based in part on a patch from Mike Jetzer.
62434
62435 2003-04-04  Bruno Haible  <bruno@clisp.org>
62436
62437         * modules/linebreak: New file.
62438         * MODULES.html.sh (func_all_modules): Add it.
62439
62440 2003-04-04  Bruno Haible  <bruno@clisp.org>
62441
62442         * m4/linebreak.m4: New file.
62443
62444 2003-04-04  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/linebreak.h: New file, from GNU gettext.
62447         * lib/linebreak.c: New file, from GNU gettext with slight
62448         modifications.
62449         * lib/lbrkprop.h: New file, from GNU gettext.
62450
62451 2003-04-03  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/utf8-ucs4: New file.
62454         * modules/utf16-ucs4: New file.
62455         * modules/ucs4-utf8: New file.
62456         * modules/ucs4-utf16: New file.
62457         * MODULES.html.sh (func_all_modules): Add them.
62458
62459 2003-04-03  Bruno Haible  <bruno@clisp.org>
62460
62461         * m4/utf-ucs4.m4: New file.
62462         * m4/ucs4-utf.m4: New file.
62463
62464 2003-04-03  Bruno Haible  <bruno@clisp.org>
62465
62466         * lib/utf8-ucs4.h: New file, from GNU gettext.
62467         * lib/utf16-ucs4.h: New file, from GNU gettext.
62468         * lib/ucs4-utf8.h: New file, from GNU gettext.
62469         * lib/ucs4-utf16.h: New file, from GNU gettext.
62470
62471 2003-04-02  Bruno Haible  <bruno@clisp.org>
62472
62473         * modules/binary-io: New file.
62474         * MODULES.html.sh (func_all_modules): Add it.
62475
62476 2003-04-02  Bruno Haible  <bruno@clisp.org>
62477
62478         * lib/binary-io.h: New file, from GNU gettext.
62479
62480 2003-04-01  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/pathname: New file.
62483         * MODULES.html.sh (func_all_modules): Add it.
62484
62485 2003-04-01  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/pathname.h: New file, from GNU gettext.
62488         * lib/concatpath.c: New file, from GNU gettext.
62489
62490 2003-03-30  Bruno Haible  <bruno@clisp.org>
62491
62492         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62493
62494 2003-03-30  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62497         function chown() doesn't exist.
62498
62499 2003-03-28  Bruno Haible  <bruno@clisp.org>
62500
62501         * modules/copy-file: New file.
62502         * MODULES.html.sh (func_all_modules): Add it.
62503
62504 2003-03-28  Bruno Haible  <bruno@clisp.org>
62505
62506         * m4/copy-file.m4: New file.
62507
62508 2003-03-28  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/copy-file.h: New file, from GNU gettext.
62511         * lib/copy-file.c: New file, from GNU gettext.
62512
62513 2003-03-18  Jim Meyering  <jim@meyering.net>
62514
62515         * lib/quote.c (quote_n): Fix typo in comment.
62516
62517 2003-03-18  Bruno Haible  <bruno@clisp.org>
62518
62519         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62520         checking.
62521         * m4/onceonly_2_57.m4: Likewise.
62522
62523 2003-03-17  Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62526         (m4_quote): Remove macro.
62527         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62528
62529 2003-03-14  Jim Meyering  <jim@meyering.net>
62530
62531         Merge changes from Coreutils.
62532         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62533         to be const, in order to avoid warnings.
62534         (obstack_room): Likewise.
62535         (obstack_empty_p): Likewise.
62536
62537 2003-03-14  Bruno Haible  <bruno@clisp.org>
62538
62539         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62540         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62541
62542 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62543
62544         Merge changes from Bison.
62545         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62546         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62547         when compiling Bison 1.875's `bitset bset = obstack_alloc
62548         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62549         * lib/hash.c: Include <stdbool.h> unconditionally.
62550
62551 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62552
62553         * m4/onceonly.m4 (m4_quote): New macro.
62554         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62555         Quote AC_FOREACH variable-expansions properly.
62556
62557 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62558
62559         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62560
62561 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62562
62563         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62564         Reported by Bruce Becker; see:
62565         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62566
62567 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62568             Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62571         Reported by John Hughes, see
62572         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62573
62574 2003-02-20  Bruno Haible  <bruno@clisp.org>
62575
62576         * MODULES.html.sh (func_all_modules): Add poll.
62577
62578 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62579
62580         * modules/poll: New file.
62581
62582 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62583
62584         * lib/poll_.h: New file.
62585         * lib/poll.c: New file.
62586
62587 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62588
62589         * m4/poll.m4: New file.
62590
62591 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62592
62593         * modules/mathl: New file.
62594
62595 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62596
62597         * lib/mathl.h: New file.
62598         * lib/acosl.c: New file.
62599         * lib/asinl.c: New file.
62600         * lib/atanl.c: New file.
62601         * lib/ceill.c: New file.
62602         * lib/cosl.c: New file.
62603         * lib/expl.c: New file.
62604         * lib/floorl.c: New file.
62605         * lib/frexpl.c: New file.
62606         * lib/ldexpl.c: New file.
62607         * lib/logl.c: New file.
62608         * lib/sincosl.c: New file.
62609         * lib/sinl.c: New file.
62610         * lib/sqrtl.c: New file.
62611         * lib/tanl.c: New file.
62612         * lib/trigl.c: New file.
62613         * lib/trigl.h: New file.
62614
62615 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62616
62617         * m4/mathl.m4: New file.
62618
62619 2003-02-18  Bruno Haible  <bruno@clisp.org>
62620
62621         * MODULES.html.sh (func_all_modules): Add mathl.
62622
62623 2003-02-17  Bruno Haible  <bruno@clisp.org>
62624
62625         * modules/mkdtemp: New module.
62626         * MODULES.html.sh (func_all_modules): Add it.
62627
62628 2003-02-17  Bruno Haible  <bruno@clisp.org>
62629
62630         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62631
62632 2003-02-17  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/mkdtemp.h: New file, from GNU gettext.
62635         * lib/mkdtemp.c: New file, from GNU gettext.
62636
62637 2003-02-02  Jim Meyering  <jim@meyering.net>
62638
62639         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62640         e.g. glibc-2.2.93.
62641
62642 2003-01-31  Bruno Haible  <bruno@clisp.org>
62643
62644         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62645         'rpl_rename'.
62646         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62647         'rpl_strnlen'.
62648         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62649         'rpl_strtod'.
62650         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62651         'rpl_utime'.
62652
62653 2003-01-31  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/rename.c: #undef rename before defining rpl_rename.
62656         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62657
62658 2003-01-30  Bruno Haible  <bruno@clisp.org>
62659
62660         * modules/vasnprintf, modules/vasprintf: New modules.
62661         * MODULES.html.sh (func_all_modules): Add them.
62662
62663 2003-01-30  Bruno Haible  <bruno@clisp.org>
62664
62665         * m4/signed.m4: New file, from GNU gettext.
62666         * m4/longdouble.m4: New file, from GNU gettext.
62667         * m4/wchar_t.m4: New file, from GNU gettext.
62668         * m4/wint_t.m4: New file, from GNU gettext.
62669         * m4/vasnprintf.m4: New file.
62670         * m4/vasprintf.m4: New file.
62671
62672 2003-01-30  Bruno Haible  <bruno@clisp.org>
62673
62674         * lib/printf-args.h: New file, from GNU gettext.
62675         * lib/printf-args.c: New file, from GNU gettext.
62676         * lib/printf-parse.h: New file, from GNU gettext.
62677         * lib/printf-parse.c: New file, from GNU gettext.
62678         * lib/vasnprintf.h: New file, from GNU gettext.
62679         * lib/vasnprintf.c: New file, from GNU gettext.
62680         * lib/asnprintf.c: New file, from GNU gettext.
62681         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62682         * lib/vasprintf.c: New file, from GNU gettext.
62683         * lib/asprintf.c: New file, from GNU gettext.
62684
62685 2003-01-29  Bruno Haible  <bruno@clisp.org>
62686
62687         * modules/stpncpy: New module.
62688         * MODULES.html.sh (func_all_modules): Add it.
62689
62690 2003-01-29  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/stpncpy.m4: New file.
62693
62694 2003-01-29  Bruno Haible  <bruno@clisp.org>
62695
62696         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62697         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62698
62699 2003-01-28  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/c-ctype: New module.
62702         * MODULES.html.sh (func_all_modules): Add it.
62703
62704 2003-01-28  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62707         Paul Eggert.
62708         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62709         Paul Eggert.
62710
62711 2003-01-27  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/xsetenv: New module.
62714         * MODULES.html.sh (func_all_modules): Add it.
62715
62716 2003-01-27  Bruno Haible  <bruno@clisp.org>
62717
62718         * lib/xsetenv.h: New file, from GNU gettext.
62719         * lib/xsetenv.c: New file, from GNU gettext.
62720
62721 2003-01-23  Jim Meyering  <jim@meyering.net>
62722
62723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62724         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62725
62726 2003-01-23  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/minmax: New module.
62729         * MODULES.html.sh (func_all_modules): Add it.
62730
62731 2003-01-23  Bruno Haible  <bruno@clisp.org>
62732
62733         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62734         Eggert.
62735
62736 2003-01-22  Bruno Haible  <bruno@clisp.org>
62737
62738         * modules/exit: New module.
62739         * MODULES.html.sh (func_all_modules): Add it.
62740
62741 2003-01-22  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/exit.h: New file, from GNU gettext.
62744
62745 2003-01-19  Bruno Haible  <bruno@clisp.org>
62746
62747         * gnulib-tool: Recognize option --extract-maintainer.
62748         (func_get_maintainer): New function.
62749         * modules/*: Add Maintainer entry.
62750
62751 2003-01-16  Jim Meyering  <jim@meyering.net>
62752
62753         * m4/regex.m4: The `regex' struct is both input and output.
62754         Initialize it before each use.  Patch by Tim Waugh.
62755
62756 2003-01-16  Bruno Haible  <bruno@clisp.org>
62757
62758         * MODULES.html.sh: Add a table of contents. Add the module name as
62759         leftmost column. Add hyperlinks.
62760
62761 2003-01-15  Bruno Haible  <bruno@clisp.org>
62762
62763         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62764
62765 2003-01-15  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62768         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62769         suffix.
62770
62771 2003-01-15  Bruno Haible  <bruno@clisp.org>
62772
62773         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62774
62775 2003-01-15  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62778         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62779
62780 2003-01-14  Jim Meyering  <jim@meyering.net>
62781
62782         * lib/same.c (same_name): Tweak a comment.
62783
62784 2003-01-14  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62787         when a string comparison is sufficient.
62788
62789 2003-01-14  Bruno Haible  <bruno@clisp.org>
62790
62791         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62792         'unsigned int'.
62793
62794 2003-01-14  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/hash-pjw.c: Add comment about low quality of this function.
62797
62798 2003-01-13  Bruno Haible  <bruno@clisp.org>
62799
62800         * modules/stpcpy: Distribute lib/stpcpy.h.
62801         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62802
62803 2003-01-13  Bruno Haible  <bruno@clisp.org>
62804
62805         * modules/*: Add a description.
62806         * modules/strpbrk: Fix Makefile.am snippet.
62807         * modules/strtoimax: Fix dependencies.
62808         * modules/strtoumax: Likewise.
62809
62810 2003-01-13  Bruno Haible  <bruno@clisp.org>
62811
62812         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62813         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62814         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62815
62816 2003-01-13  Bruno Haible  <bruno@clisp.org>
62817
62818         * gnulib-tool (func_create_testdir): Store config/* files in the main
62819         directory.
62820         * config.rpath: Move to ...
62821         * config/config.rpath: ... here.
62822         * modules/gettext: Contains config/config.rpath, not config.rpath.
62823         * modules/iconv: Likewise.
62824
62825 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62826
62827         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62828         to avoid collisions with libcurses and libreadline.
62829
62830         * m4/getstr.m4: Remove.
62831         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62832
62833 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62834
62835         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62836         to avoid collisions with libcurses and libreadline.
62837
62838         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62839         * lib/getstr.h, getstr.c: Remove.
62840         * lib/getline.c: Include "getline.h", to check interface.
62841         Move body of old getstr.c here: this defines MIN_CHUNK and
62842         declares getdelim2, which is renamed from getstr.
62843         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62844
62845         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62846         All uses changed.
62847         * lib/linebuffer.h: Likewise.
62848         (readline): Remove backward-compatibility macro.
62849
62850 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62851
62852         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62853         to avoid collisions with libcurses and libreadline.
62854         * getstr: Remove.
62855         * MODULES.html.sh: Remove getstr.
62856         * modules/getline: Depend on unlocked-io, not getstr.
62857
62858 2003-01-12  Jim Meyering  <jim@meyering.net>
62859
62860         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62861
62862 2003-01-10  Bruno Haible  <bruno@clisp.org>
62863
62864         * modules/alloca: Change Makefile.am requirements. Simplify Include
62865         requirements. Add lib/alloca_.h to file list.
62866
62867 2003-01-10  Bruno Haible  <bruno@clisp.org>
62868
62869         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62870
62871 2003-01-10  Bruno Haible  <bruno@clisp.org>
62872
62873         * lib/alloca_.h: New file.
62874         * lib/getdate.y: Unconditionally include alloca.h.
62875         * lib/makepath.c: Likewise.
62876         * lib/setenv.c: Likewise.
62877         * lib/userspec.c: Likewise.
62878
62879 2003-01-09  Karl Berry  <karl@gnu.org>
62880
62881         * MODULES.html.sh: include `dirname $0` in PATH, to find
62882         gnulib-tool.
62883
62884 2003-01-09  Bruno Haible  <bruno@clisp.org>
62885
62886         * modules/stdbool: Change configure.ac, Makefile.am requirements.
62887         Simplify Include requirements. Add lib/stdbool.h.in to file list.
62888
62889 2003-01-09  Bruno Haible  <bruno@clisp.org>
62890
62891         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
62892
62893 2003-01-09  Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/stdbool.h.in: New file.
62896
62897 2003-01-09  Bruno Haible  <bruno@clisp.org>
62898
62899         * gnulib-tool (func_all_modules): Ignore files ending in ~.
62900         * MODULES.html.sh: Likewise.
62901
62902 2003-01-08  Jim Meyering  <jim@meyering.net>
62903
62904         * lib/full-write.c: Undefine and define-away `const' after inclusion
62905         of errno.h, not before.  Suggestion from Bruno Haible.
62906
62907 2003-01-08  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/full-read: Depend on full-write.
62910
62911 2003-01-08  Bruno Haible  <bruno@clisp.org>
62912
62913         * lib/safe-read.c: Include specification header first, to ensure its
62914         selfcontainedness.
62915         * lib/full-write.c: Likewise.
62916
62917 2003-01-07  Jim Meyering  <jim@meyering.net>
62918
62919         * lib/full-write.c: Rework so that it may serve to define full_read,
62920         too.
62921         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
62922
62923 2003-01-07  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/strtoimax.c: Include <stdint.h> as an alternative to
62926         <inttypes.h>.
62927         * lib/xstrtol.h: Likewise.
62928         * lib/xstrtoimax.c: Likewise.
62929         * lib/xstrtoumax.c: Likewise.
62930         * lib/human.h: Likewise.
62931
62932         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
62933         on systems that have <inttypes.h> but not <stdint.h>.
62934
62935 2003-01-07  Bruno Haible  <bruno@clisp.org>
62936
62937         * MODULES.html.sh: Add copyright notice.
62938         (missed_files): Omit CVS directory entries.
62939         (func_module): Make it work with sed-3.02.
62940         * MODULES.txt: Remove file.
62941
62942 2003-01-06  Jim Meyering  <jim@meyering.net>
62943
62944         * lib/version-etc.c: Update year in translatable copyright string.
62945
62946 2003-01-03  Karl Berry  <karl@gnu.org>
62947
62948         * config/config.{guess,sub}: update from prep.
62949
62950 2003-01-02  Karl Berry  <karl@gnu.org>
62951
62952         * doc/COPYING.DOC: belatedly updated to 1.2.
62953
62954 2003-01-01  Karl Berry  <karl@gnu.org>
62955
62956         * gnulib-tool (func_verify_module): report module name $module in
62957         error message, not $1.
62958         * gnulib-tool (create-testdir): don't complain if destdir couldn't
62959         be created, only if it doesn't exist.
62960         * gnulib-tool (last_checkin_date): don't expand the $Date here.
62961
62962 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62963
62964         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
62965
62966 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62967
62968         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
62969         memcmp if strcoll doesn't work.
62970
62971 2002-12-31  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/utime.c (utime_null): No need to call ftruncate if the file was
62974         nonempty.
62975
62976 2002-12-31  Bruno Haible  <bruno@clisp.org>
62977
62978         * lib/memcoll.c (STRCOLL): New macro.
62979         (memcoll): Use it.
62980
62981 2002-12-31  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/localcharset.h: New file.
62984         * lib/localcharset.c: Include it.
62985         * lib/unicodeio.c: Likewise.
62986
62987 2002-12-31  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
62990         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
62991
62992 2002-12-31  Bruno Haible  <bruno@clisp.org>
62993
62994         * lib/getline.h: Include <stddef.h>, for size_t.
62995
62996         * lib/unicodeio.h: Include <stddef.h>, for size_t.
62997         * lib/unicodeio.c: Don't include <stddef.h>.
62998
62999 2002-12-31  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63002         HAVE_TM_ZONE.
63003
63004 2002-12-24  Karl Berry  <karl@gnu.org>
63005
63006         * config/config.guess: update from prep.
63007
63008 2002-12-24  Bruno Haible  <bruno@clisp.org>
63009
63010         General infrasructure.
63011         * m4/README: Rewritten.
63012         * m4/onceonly.m4: New file.
63013         * m4/onceonly_2_57.m4: New file.
63014
63015         Module atexit.
63016         * m4/atexit.m4: New file.
63017
63018         Module strtod.
63019         * m4/strtod.m4: New file.
63020
63021         Module strtol.
63022         * m4/strtol.m4: New file.
63023
63024         Module strtoul.
63025         * m4/strtoul.m4: New file.
63026
63027         Module memchr.
63028         * m4/memchr.m4: New file.
63029
63030         Module memcmp.
63031         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63032         (jm_FUNC_MEMCMP): Invoke it.
63033
63034         Module memcpy.
63035         * m4/memcpy.m4: New file.
63036
63037         Module memmove.
63038         * m4/memmove.m4: New file.
63039
63040         Module memset.
63041         * m4/memset.m4: New file.
63042
63043         Module strcspn.
63044         * m4/strcspn.m4: New file.
63045
63046         Module strpbrk.
63047         * m4/strpbrk.m4: New file.
63048
63049         Module strstr.
63050         * m4/strstr.m4: New file.
63051
63052         Module strerror.
63053         * m4/strerror.m4: New file.
63054
63055         Module mktime.
63056         * m4/mktime.m4: Renamed from jm-mktime.m4.
63057         (gl_PREREQ_MKTIME): New macro.
63058         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63059
63060         Module malloc.
63061         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63062         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63063         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63064
63065         Module realloc.
63066         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63067         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63068         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63069
63070         Module strftime.
63071         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63072         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63073         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63074         gl_TM_GMTOFF.
63075         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63076
63077         Module xalloc.
63078         * m4/xalloc.m4: New file.
63079
63080         Module alloca.
63081         * m4/alloca.m4: New file.
63082
63083         Module putenv.
63084         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63085         (jm_FUNC_PUTENV): Invoke it.
63086
63087         Module setenv.
63088         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63089         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63090         when invoked twice.
63091         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63092         gt_FUNC_SETENV.
63093
63094         Module memrchr.
63095         * m4/memrchr.m4: New file.
63096
63097         Module stpcpy.
63098         * m4/stpcpy.m4: New file.
63099
63100         Module strcase.
63101         * m4/strcase.m4: New file.
63102
63103         Module strdup.
63104         * m4/strdup.m4: New file.
63105
63106         Module strnlen.
63107         * m4/strnlen.m4: New file.
63108
63109         Module strndup.
63110         * m4/strndup.m4: New file.
63111
63112         Module xstrtod.
63113         * m4/xstrtod.m4: New file.
63114
63115         Module xstrtol.
63116         * m4/xstrtol.m4: New file.
63117
63118         Module getdate.
63119         * m4/getdate.m4: New file.
63120
63121         Module unlocked-io.
63122         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63123         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63124         * m4/jm-glibc-io.m4n: Remove file.
63125
63126         Module long-options.
63127         * m4/long-options.m4: New file.
63128
63129         Module md5.
63130         * m4/md5.m4: New file.
63131
63132         Module sha.
63133         * m4/sha.m4: New file.
63134
63135         Module getstr.
63136         * m4/getstr.m4: New file.
63137
63138         Module getline.
63139         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63140         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63141         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63142         simply getline. Infoke gl_PREREQ_GETLINE.
63143
63144         Module obstack.
63145         * m4/obstack.m4: New file.
63146
63147         Module hash.
63148         * m4/hash.m4: New file.
63149
63150         Module readtokens.
63151         * m4/readtokens.m4: New file.
63152
63153         Module strverscmp.
63154         * m4/strverscmp.m4: New file.
63155
63156         Module stdbool.
63157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63158         OSF/1.
63159
63160         Module strtoll.
63161         * m4/strtoll.m4: New file.
63162
63163         Module strtoull.
63164         * m4/strtoull.m4: New file.
63165
63166         Module strtoimax.
63167         * m4/strtoimax.m4: New file.
63168
63169         Module strtoumax.
63170         * m4/strtoumax.m4: New file.
63171
63172         Module xstrtoimax.
63173         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63174         jm_AC_PREREQ_XSTRTOIMAX.
63175         Moved the strtol prerequisites to strtol.m4.
63176         Moved the strtoll prerequisites to strtoll.m4.
63177         Moved the strtoimax prerequisites to strtoimax.m4.
63178
63179         Module xstrtoumax.
63180         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63181         jm_AC_PREREQ_XSTRTOUMAX.
63182         Moved the strtoul prerequisites to strtoul.m4.
63183         Moved the strtoull prerequisites to strtoull.m4.
63184         Moved the strtoumax prerequisites to strtoumax.m4.
63185
63186         Module chown.
63187         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63188         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63189
63190         Module dup2.
63191         * m4/dup2.m4: New file.
63192
63193         Module ftruncate.
63194         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63195         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63196
63197         Module getgroups.
63198         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63199         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63200
63201         Module gettimeofday.
63202         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63203         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63204         gl_PREREQ_GETTIMEOFDAY.
63205
63206         Module mkdir.
63207         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63208         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63209
63210         Module mkstemp.
63211         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63212         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63213         jm_AC_TYPE_UINTMAX_T.
63214         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63215
63216         Module stat.
63217         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63218         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63219
63220         Module lstat.
63221         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63222         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63223
63224         Module timespec.
63225         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63226         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63227         * m4/st_mtim.m4: Indentation.
63228
63229         Module nanosleep.
63230         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63231         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63232         gl_PREREQ_NANOSLEEP.
63233
63234         Module regex.
63235         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63236         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63237         (gl_REGEX): New macro.
63238
63239         Module rename.
63240         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63241         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63242
63243         Module rmdir.
63244         * m4/rmdir.m4: New file.
63245
63246         Module utime.
63247         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63248         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63249         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63250
63251         Module dirname.
63252         * m4/dirname.m4: New file.
63253
63254         Module getopt.
63255         * m4/getopt.m4: New file.
63256
63257         Module unistd-safer.
63258         * m4/unistd-safer.m4: New file.
63259
63260         Module fnmatch.
63261         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63262         declaration.
63263         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63264         (gl_FUNC_FNMATCH_POSIX): New macro.
63265         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63266         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63267         simply fnmatch.
63268
63269         Module exclude.
63270         * m4/exclude.m4: New file.
63271
63272         Module human.
63273         * m4/human.m4: New file.
63274
63275         Module acl.
63276         * m4/acl.m4: Nop.
63277
63278         Module backupfile.
63279         * m4/backupfile.m4: New file.
63280         * m4/d-ino.m4: Indentation.
63281
63282         Module fsusage.
63283         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63284         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63285         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63286
63287         Module dirfd.
63288         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63289         requirements.
63290
63291         Module euidaccess.
63292         * m4/euidaccess.m4: New file.
63293
63294         Module file-type.
63295         * m4/file-type.m4: New file.
63296
63297         Module fileblocks.
63298         * m4/fileblocks.m4: New file.
63299
63300         Module filemode.
63301         * m4/filemode.m4: New file.
63302
63303         Module isdir.
63304         * m4/isdir.m4: New file.
63305
63306         Module lchown.
63307         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63308         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63309
63310         Module makepath.
63311         * m4/makepath.m4: New file.
63312
63313         Module modechange.
63314         * m4/modechange.m4: New file.
63315
63316         Module mountlist.
63317         * m4/mountlist.m4: New file.
63318         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63319         Indentation.
63320
63321         Module path-concat.
63322         * m4/path-concat.m4: New file.
63323
63324         Module pathmax.
63325         * m4/pathmax.m4: New file.
63326
63327         Module same.
63328         * m4/same.m4: New file.
63329
63330         Module save-cwd.
63331         * m4/save-cwd.m4: New file.
63332
63333         Module savedir.
63334         * m4/savedir.m4: New file.
63335
63336         Module xgetcwd.
63337         * m4/xgetcwd.m4: New file.
63338         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63339
63340         Module xreadlink.
63341         * m4/xreadlink.m4: New file.
63342
63343         Module safe-read.
63344         * m4/safe-read.m4: New file.
63345
63346         Module safe-write.
63347         * m4/safe-write.m4: New file.
63348
63349         Module closeout.
63350         * m4/closeout.m4: New file.
63351
63352         Module stdio-safer.
63353         * m4/stdio-safer.m4: New file.
63354
63355         Module getpass.
63356         * m4/getpass.m4: New file.
63357
63358         Module getugroups.
63359         * m4/getugroups.m4: New file.
63360
63361         Module group-member.
63362         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63363         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63364
63365         Module idcache.
63366         * m4/idcache.m4: New file.
63367
63368         Module userspec.
63369         * m4/userspec.m4: New file.
63370
63371         Module gettime.
63372         * m4/clock_time.m4: New file.
63373         * m4/gettime.m4: New file.
63374
63375         Module settime.
63376         * m4/settime.m4: New file.
63377
63378         Module posixtm.
63379         * m4/posixtm.m4: New file.
63380
63381         Module gethostname.
63382         * m4/gethostname.m4: New file.
63383
63384         Module canon-host.
63385         * m4/canon-host.m4: New file.
63386
63387         Module gettext.
63388         * m4/codeset.m4: New file, from gettext-0.11.5.
63389         * m4/gettext.m4: New file, from gettext-0.11.5.
63390         * m4/glibc21.m4: New file, from gettext-0.11.5.
63391         * m4/iconv.m4: New file, from gettext-0.11.5.
63392         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63393         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63394         * m4/inttypes.m4: New file, from gettext-0.11.5.
63395         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63396         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63397         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63398         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63399         * m4/lib-link.m4: New file, from gettext-0.11.5.
63400         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63401         * m4/progtest.m4: New file, from gettext-0.11.5.
63402         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63403         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63404         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63405
63406         Module localcharset.
63407         * m4/localcharset.m4: New file.
63408
63409         Module hard-locale.
63410         * m4/hard-locale.m4: New file.
63411
63412         Module mbswidth.
63413         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63414         onceonly macros.
63415         * m4/mbrtowc.m4: Add comment.
63416
63417         Module memcasecmp.
63418         * m4/memcasecmp.m4: New file.
63419
63420         Module memcoll.
63421         * m4/memcoll.m4: New file.
63422
63423         Module unicodeio.
63424         * m4/unicodeio.m4: New file.
63425
63426         Module rpmatch.
63427         * m4/rpmatch.m4: New file.
63428
63429         Module yesno.
63430         * m4/yesno.m4: New file.
63431
63432         Module exitfail.
63433         * m4/exitfail.m4: New file.
63434
63435         Module c-stack.
63436         * m4/c-stack.m4 (gl_C_STACK): New macro.
63437         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63438
63439         Module error.
63440         * m4/error.m4 (gl_ERROR): New macro.
63441         (jm_PREREQ_ERROR): Use onceonly macros.
63442
63443         Module fatal.
63444         * m4/fatal.m4: New file.
63445
63446         Module getloadavg.
63447         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63448         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63449
63450         Module getpagesize.
63451         * m4/getpagesize.m4: New file.
63452
63453         Module getusershell.
63454         * m4/getusershell.m4: New file.
63455
63456         Module physmem.
63457         * m4/physmem.m4: New file.
63458
63459         Module posixver.
63460         * m4/posixver.m4: New file.
63461
63462         Module quotearg.
63463         * m4/quotearg.m4: New file.
63464
63465         Module quote.
63466         * m4/quote.m4: New file.
63467
63468         Module readutmp.
63469         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63470
63471         Module sig2str.
63472         * m4/sig2str.m4: New file.
63473
63474         Other.
63475         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63476         ulonglong.m4.
63477         * m4/intmax_t.m4: New file.
63478         * m4/d-type.m4: Indentation.
63479         * m4/jm-macros.m4: Update.
63480         * m4/prereq.m4 (jm_PREREQ): Update.
63481         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63482         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63483         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63484         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63485         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63486         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63487         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63488         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63489         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63490         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63491         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63492         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63493         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63494         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63495         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63496         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63497         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63498         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63499         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63500
63501 2002-12-24  Bruno Haible  <bruno@clisp.org>
63502
63503         * MODULES.txt: Update according to m4/ changes.
63504
63505         Module gettext.
63506         * config.rpath: New file, from gettext-0.11.5.
63507
63508         * modules/*: New module descriptions.
63509         * gnulib-tool: New file.
63510         * MODULES.html.sh: New file.
63511
63512 2002-12-21  Karl Berry  <karl@gnu.org>
63513
63514         * doc/fdl.texi: update to version 1.2.
63515
63516 2002-12-19  Karl Berry  <karl@gnu.org>
63517
63518         * config/config.guess: update from prep.
63519
63520 2002-12-18  Bruno Haible  <bruno@clisp.org>
63521
63522         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63523         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63524
63525 2002-12-17  Bruno Haible  <bruno@clisp.org>
63526
63527         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63528         stdlib.h, string.h.
63529
63530 2002-12-17  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/canon-host.c (strdup): Remove unused declaration.
63533
63534         * lib/fsusage.c: Include full_read.h.
63535         (get_fs_usage): Use full_read instead of safe_read.
63536
63537         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63538
63539 2002-12-12  Karl Berry  <karl@gnu.org>
63540
63541         * config/config.guess: update from prep.
63542
63543 2002-12-11  Bruno Haible  <bruno@clisp.org>
63544
63545         * m4/setenv.m4: New file, from gettext-0.11.5.
63546
63547 2002-12-11  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63550         not unsetenv().
63551         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63552         modifications:
63553
63554         2002-12-11  Bruno Haible  <bruno@clisp.org>
63555
63556                 * setenv.c (alloca): Fall back to malloc.
63557                 (freea): New macro.
63558                 (setenv): Use freea() to free memory allocated with alloca().
63559
63560         2002-11-13  Bruno Haible  <bruno@clisp.org>
63561
63562                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63563                 function declarations.
63564                 * unsetenv.c (unsetenv): Likewise.
63565
63566         2002-03-04  Bruno Haible  <bruno@clisp.org>
63567
63568                 Portability to AIX 4.3.3.
63569                 * unsetenv.c: New file, extracted from setenv.c.
63570                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63571
63572         2001-12-20  Bruno Haible  <bruno@clisp.org>
63573
63574                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63575                 use malloc instead. For SunOS 4.
63576
63577         2001-12-11  Bruno Haible  <bruno@clisp.org>
63578
63579                 * setenv.c: Declare alloca.
63580                 (compar_fn_t): New typedef.
63581                 (KNOWN_VALUE, STORE_VALUE): Use it.
63582
63583         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63584         setenv.h.
63585
63586 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63587
63588         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63589         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63590         Choose values that are less likely to collide with system fnmatch
63591         options.
63592         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63593         defined (e.g., a pure POSIX system).
63594         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63595         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63596
63597 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63598
63599         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63600         a pain in practice to deal with generated m4 files.  This change
63601         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63602
63603         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63604         and jm-glibc-io.m4, as they are no longer a special case.
63605         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63606         kludge and the auto-generation stuff.  Check only whether the
63607         functions are declared, not whether they exist, since older hosts
63608         that don't declare the functions can't use the optimization anyway.
63609
63610 2002-12-06  Jim Meyering  <jim@meyering.net>
63611
63612         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63613
63614         Merge in changes from libc's misc/error.c, in preparation
63615         for the merge of gnulib's changes back into libc.
63616
63617         * lib/error.c (_): Define only if not already defined.
63618         Move definition to follow all #include directives.
63619         Include unlocked-io.h only if !_LIBC.
63620         [_LIBC]: Include <libio/libioP.h>.
63621         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63622         (fflush): Tweak definition to use INTUSE.
63623         (putc): Define.
63624
63625 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63626
63627         * lib/alloca.c [defined emacs]: Include "lisp.h".
63628         (xalloc_die) [defined emacs]: New macro.
63629         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63630         [! defined emacs]: Include <xalloc.h>.
63631         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63632         (pointer): Typedef to POINTER_TYPE *.
63633         (malloc): Remove decl; we now always use xmalloc.
63634         (alloca): Use old-style definition, since Emacs needs this.
63635         Check for arithmetic overflow when computing combined size.
63636
63637 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63638
63639         Do not generate unlocked-io.h automatically, since it's easier to
63640         maintain it by hand.
63641
63642         * lib/unlocked-io.h: New file, from GNU diffutils,
63643         but with proper copyright notice and attribution.
63644         * lib/gen-uio: Remove.
63645         * lib/Makefile.am: Add copyright notice.
63646         (libfetish_a_SOURCES): Add unlocked-io.h.
63647         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63648         (DISTCLEANFILES, io_functions): Remove macros.
63649         (EXTRA_DIST): Remove gen_uio.
63650         (unlocked-io.h): Remove rule.
63651
63652 2002-12-04  Jim Meyering  <jim@meyering.net>
63653
63654         Reflect the fact that stat.c and lstat.c are no longer generated.
63655         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63656         (DISTCLEANFILES): Likewise.
63657         (EXTRA_DIST): Likewise.
63658         (all_local): Don't depend on stat.c or lstat.c.
63659         (stat.c, lstat.c): Remove rules.
63660         (EXTRA_DIST): Remove xstat.in.
63661
63662         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63663         * lib/stat.c: New file.  Contents mostly from xstat.in.
63664         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63665         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63666
63667         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63668         too.
63669         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63670
63671 2002-12-03  Jim Meyering  <jim@meyering.net>
63672
63673         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63674         but not semantics, to minimize the differences between these two files.
63675         (safe_read): Change comment to mention SAFE_READ_ERROR.
63676
63677         * lib/safe-read.c (IS_EINTR): Define.
63678         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63679
63680 2002-12-02  Jim Meyering  <jim@meyering.net>
63681
63682         * lib/safe-read.c (EINTR): Define.
63683         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63684         (INT_MAX): Provide fallback.
63685         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63686
63687         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63688
63689 2002-12-02  Bruno Haible  <bruno@clisp.org>
63690
63691         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63692         Define, taken from safe-read.c.
63693         (INT_MAX): Provide fallback.
63694         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63695         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63696
63697         * lib/safe-read.c (EINTR): Remove definition.
63698         (safe_read): Don't use EINTR if it is absent.
63699
63700 2002-12-01  Jim Meyering  <jim@meyering.net>
63701
63702         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63703         zero.
63704         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63705
63706 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63707
63708         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63709         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63710         with `if (! (value < limit)) abort ();', for readability.
63711
63712 2002-11-26  Karl Berry  <karl@gnu.org>
63713
63714         * lib/strdup.c: copy from libc again, with jim's ok.
63715         * lib/.cppi-disable: re-add strdup.c
63716
63717 2002-11-25  Karl Berry  <karl@gnu.org>
63718
63719         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63720         instead of "strtol.c".
63721
63722 2002-11-25  Karl Berry  <karl@gnu.org>
63723
63724         * config/install-sh: update from automake for variable quoting, $0 in
63725         error msgs, etc.
63726
63727         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63728         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63729         entry.
63730
63731 2002-11-25  Jim Meyering  <jim@meyering.net>
63732
63733         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63734
63735 2002-11-24  Karl Berry  <karl@gnu.org>
63736
63737         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63738         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63739
63740 2002-11-24  Jim Meyering  <jim@meyering.net>
63741
63742         Update from coreutils:
63743
63744         * lib/mktime.c: Merge in changes from libc.
63745
63746         Avoid a link-time failure on some Linux systems.
63747         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63748         (otherwise).
63749         (__mon_yday): Declare with the STATIC attribute.
63750         (__mktime_internal): Likewise.
63751         Based on a report from Greg Schafer.
63752
63753 2002-11-23  Jim Meyering  <jim@meyering.net>
63754
63755         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63756         Use `unsigned', not `int', as type of index.
63757
63758         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63759
63760         * lib/fsusage.c: Remove unneeded parentheses around operands of
63761         `defined'.
63762
63763 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63764
63765         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63766         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63767         so that we can be included first.
63768         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63769         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63770         No need to include stddef.h or sys/types.h any more.
63771         Surround local include files with "", not "<>".
63772         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63773         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63774         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63775         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63776         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63777         (ISPRINT): Remove; no longer needed now that we assume C89.
63778
63779         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63780         Preserve errno.
63781
63782         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63783         quotearg_char): Use SIZE_MAX rather than
63784         (size_t) -1 when we are talking about "infinity".
63785
63786         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63787
63788 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63789
63790         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63791         hint that one should use `if (! x) abort ();' rather than `assert
63792         (x);', and anyway it's one less thing to worry about configuring.
63793         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63794         hash_rehash, hash_insert): Use abort rather than assert.
63795
63796 2002-11-22  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/safe-read.h: Assume C89. Add comments.
63799         (safe_read): Change return type to size_t.
63800         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63801         byte counts > SSIZE_MAX correctly.
63802         * lib/safe-write.h: New file.
63803         * lib/safe-write.c: New file.
63804         * lib/full-read.h: New file.
63805         * lib/full-read.c: New file.
63806         * lib/full-write.h: Assume C89. Add comments.
63807         * lib/full-write.c: Include safe-write.h.
63808         (full_write): Rewritten to use safe_write.
63809         Suggested by Jim Meyering and Paul Eggert.
63810
63811 2002-11-21  Jim Meyering  <jim@meyering.net>
63812
63813         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63814
63815         Merge in changes from the coreutils.
63816
63817         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63818         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63819         <stdint.h>.
63820         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63821         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63822         int.  Work more efficiently if X is the same width as uintmax_t.
63823         Do not compare X to -1, to avoid bogus compiler warning.
63824         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63825         Don't assume that f_frsize and f_bsize are the same type.
63826
63827         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63828         warning on FreeBSD.
63829
63830         * lib/makepath.c (make_path): Restore umask *before* creating the final
63831         component.
63832         (make_path): Minor reformatting.
63833
63834         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63835         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63836         HAVE_MALLOC/HAVE_REALLOC.
63837
63838         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63839         dummy ones.  At least on GNU/Linux systems, `auto' means something
63840         else.
63841         From Michael Stone.
63842
63843 2002-11-21  Bruno Haible  <bruno@clisp.org>
63844
63845         Remove case insensitive option matching.
63846         * lib/argmatch.h (argcasematch): Remove declaration.
63847         (ARGCASEMATCH): Remove macro.
63848         (__xargmatch_internal): Remove case_sensitive argument.
63849         (XARGMATCH): Update.
63850         (XARGCASEMATCH): Remove macro.
63851         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63852         case_sensitive argument.
63853         (argcasematch): Remove function.
63854         (__xargmatch_internal): Remove case_sensitive argument.
63855         (main): Use XARGMATCH instead of XARGCASEMATCH.
63856
63857         * lib/xmalloc.c: Change compile-time error message. Add comment about
63858         required autoconf version.
63859
63860 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63861
63862         Merge argmatch cleanups from Bison.  Assume C89.
63863
63864         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63865         Include stdlib.h, for EXIT_FAILURE.
63866         Always include <string.h>, since we assume C89.
63867         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63868         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63869         Include <stddef.h> instead, since it's all we need for size_t.
63870         (PARAMS): Remove.  All uses removed.
63871         (ARRAY_CARDINALITY): Do not bother to #undef.
63872         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63873         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63874         Remove unnecessary parentheses.
63875         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63876         Insert necessary parentheses.
63877         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
63878         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
63879
63880 2002-11-19  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
63883         * lib/mbswidth.h: Include <stddef.h>, for size_t.
63884
63885         * lib/mbswidth.h (PARAMS): Remove macro.
63886         (mbswidth, mbsnwidth): Use ANSI C function declarations.
63887         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
63888
63889         * lib/gcd.h (PARAMS): Remove macro.
63890         (gcd): Use ANSI C function declarations.
63891         * lib/gcd.c (gcd): Likewise.
63892
63893 2002-11-15  Bruno Haible  <bruno@clisp.org>
63894
63895         * lib/strcspn.c: Include <stddef.h>.
63896         (strcspn): Use ANSI C function declaration. Change return type to
63897         size_t. Use NULL.
63898         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
63899         (strpbrk): Use NULL.
63900         * lib/strpbrk.h (PARAMS): Remove macro.
63901         (strpbrk): Use ANSI C function declaration.
63902         * lib/strstr.c: Don't include <sys/types.h>.
63903         * lib/strstr.h (PARAMS): Remove macro.
63904         (strstr): Use ANSI C function declarations.
63905
63906 2002-11-14  Karl Berry  <karl@gnu.org>
63907
63908         * config/mkinstalldirs: `do' on separate line, instead of
63909         `for var; do'.
63910
63911 2002-11-06  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
63914         * lib/gcd.c (gcd): Likewise.
63915
63916 2002-11-05  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/gcd.h: New file, from gettext-0.11.5.
63919         * lib/gcd.c: New file, from gettext-0.11.5.
63920
63921 2002-11-05  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63924         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63925         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63926         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63927
63928         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
63929         <libintl.h>.
63930         * lib/makepath.c: Include gettext.h instead of <locale.h> and
63931         <libintl.h>.
63932
63933         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
63934         * lib/human.c: Include gettext.h instead of <libintl.h>.
63935         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
63936         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
63937         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
63938         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
63939         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
63940         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
63941         (textdomain): Remove definition.
63942         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
63943
63944         * lib/long-options.c: Remove include of <libintl.h> and definition of
63945         _.
63946         * lib/same.c: Remove include of <libintl.h> and definition of _.
63947
63948 2002-11-04  Owen Taylor  <otaylor@redhat.com>
63949
63950         * lib/config.charset: A few additions for Solaris.
63951
63952 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63953
63954         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
63955         * lib/localcharset.c (locale_charset): Declare as extern "C".
63956
63957 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63958
63959         * lib/config.charset: msdos in uk_UA uses CP1125.
63960
63961 2002-11-04  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
63964         * lib/strcase.h: New file, from GNU gettext-0.11.5.
63965         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
63966         * lib/strstr.h: New file, from GNU gettext-0.11.5.
63967         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
63968
63969 2002-11-04  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/localcharset.c (locale_charset): Don't return an empty string.
63972
63973 2002-11-04  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
63976         aliases.
63977
63978 2002-11-04  Bruno Haible  <bruno@clisp.org>
63979
63980         * lib/config.charset: Update for newest glibc. Add canonical names
63981         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
63982
63983 2002-11-04  Bruno Haible  <bruno@clisp.org>
63984
63985         * lib/config.charset: Add support for NetBSD.
63986
63987 2002-11-04  Bruno Haible  <bruno@clisp.org>
63988
63989         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
63990
63991 2002-11-01  Bruno Haible  <bruno@clisp.org>
63992
63993         * configure.in: Add AC_CONFIG_AUX_DIR call.
63994         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
63995         test/Makefile.
63996         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
63997
63998 2002-09-28  Karl Berry  <karl@gnu.org>
63999
64000         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64001         installed automake until the next release, since changes have been
64002         made.
64003
64004 2002-09-25  Karl Berry  <karl@gnu.org>
64005
64006         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64007         * lib/getopt*: copy from libc/posix.
64008         * lib/gettext.h: copy from gettext.
64009         * lib/.cppi-disable: add strdup.c, gettext.h.
64010
64011 2002-09-25  Karl Berry  <karl@gnu.org>
64012
64013         * config/srclist.txt: enable gettext.h check.
64014         * config/config.{guess,sub}: update from prep.
64015         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64016                 from automake 1.6.3.
64017         See srclist*.
64018
64019 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64020
64021         * regex.c (PATFETCH): Remove the translating fetch.
64022         (PATFETCH_RAW): Rename to PATFETCH.
64023         (set_image_of_range): New fun.
64024         (SET_RANGE_TABLE_WORK_AREA): Use it.
64025         (regex_compile): Don't translate the pattern chars so eagerly.
64026         Only do it when inserting an `exactn' bytecode or when handling
64027         a char-range.
64028         (mutually_exclusive_p): Avoid empty statement.
64029
64030 2002-07-06  Jim Meyering  <meyering@lucent.com>
64031
64032         * m4/README: Don't mention Makefile.am.in.
64033         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64034
64035 2002-07-01  Jim Meyering  <meyering@lucent.com>
64036
64037         * lib/c-stack.c: Include sys/time.h.
64038         From Volker Borchert.
64039
64040 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64041
64042         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64043
64044 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64045
64046         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64047         New macro.  Use it uniformly instead of
64048         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64049         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64050         reported by Vin Shelton.
64051
64052 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64053
64054         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64055         Do not assume SA_SIGINFO behavior.
64056         Bug reported by Jim Meyering on NetBSD 1.5.2.
64057
64058 2002-06-22  Jim Meyering  <meyering@lucent.com>
64059
64060         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64061         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64062
64063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64064         now that configure.ac uses AC_GNU_SOURCE.
64065         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64066         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64067
64068         Update to latest tools.  Suggestions from Paul Eggert.
64069         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64070         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64071         * m4/fnmatch.m4: Likewise.
64072         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64073         to AC_HEADER_STDBOOL
64074
64075 2002-06-22  Jim Meyering  <meyering@lucent.com>
64076
64077         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64078         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64079
64080 2002-06-22  Jim Meyering  <meyering@lucent.com>
64081
64082         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64083
64084         * lib/exitfail.c, exitfail.h: Likewise.
64085         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64086
64087         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64088         of fnmatch.h.
64089         (EXTRA_DIST): Add fnmatch_loop.c.
64090         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64091
64092         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64093         * lib/fnmatch.c: Update from diffutils-2.8.2.
64094         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64095         * lib/fnmatch.h: Remove file.
64096
64097 2002-06-21  Jim Meyering  <meyering@lucent.com>
64098
64099         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64100         * m4/mbrtowc.m4: Likewise.
64101
64102         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64103         * m4/mbswidth.m4: Reflect name change:
64104         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64106
64107         * m4/lib-link.m4: Update from gettext-0.11.2.
64108         * m4/gettext.m4: Likewise.
64109
64110         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64111         From Alfred M. Szmidt.
64112
64113 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64114
64115         * lib/file-type.h: Report an error if neither S_ISREG nor
64116         S_IFREG is defined, instead of using a test specific to glibc
64117         2.2.  This should be safe, since POSIX requires S_ISREG and
64118         Unix Version 7 had S_IFREG.  We don't need to check for
64119         <sys/types.h> since we don't use any symbols that it defines.
64120
64121 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64122
64123         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64124         $@-t, so that each temporary file name is unique and valid in the first
64125         8 characters, for operation under DOS.
64126
64127 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64128
64129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64130
64131 2002-06-15  Jim Meyering  <meyering@lucent.com>
64132
64133         Work even with DJGPP 2.03, which lacks support for symlinks.
64134         From Richard Dawe.
64135         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64136         is defined.
64137         * lib/lchown.c (S_ISLNK): Likewise.
64138
64139 2002-06-15  Jim Meyering  <meyering@lucent.com>
64140
64141         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64142         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64143         have been included before this file.
64144
64145 2002-06-14  Jim Meyering  <meyering@lucent.com>
64146
64147         * lib/file-type.h: Use the version from diffutils-2.8.2.
64148         * lib/file-type.c: Likewise.
64149
64150 2002-06-07  Jim Meyering  <meyering@lucent.com>
64151
64152         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64153         They're needed at least for NetBSD 1.5.2.
64154         ($statxfs_includes): Include those same headers.
64155         ($statxfs_includes): Include sys/vfs.h if available.
64156         ($statxfs_includes): Likewise for sys/statvfs.h.
64157         Check for the following members in both structs statfs and statvfs:
64158         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64159
64160 2002-06-01  Jim Meyering  <meyering@lucent.com>
64161
64162         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64163         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64164
64165 2002-05-28  Jim Meyering  <meyering@lucent.com>
64166
64167         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64168         Reported by Volker Borchert.
64169
64170 2002-05-27  Jim Meyering  <meyering@lucent.com>
64171
64172         Fix a problem seen only on nonconforming systems whereby ls.c's
64173         use of localtime, and then of gettimeofday would cause trouble:
64174         the localtime call used to initialize rpl_gettimeofday's save
64175         mechanism would clobber ls's current local time information so
64176         that in any long listing the first file would always be listed
64177         with date 1970-01-01.  Analysis by Volker Borchert.
64178
64179         * lib/gettimeofday.c (localtime): Undefine.
64180         (rpl_localtime): New function.
64181
64182 2002-05-27  Jim Meyering  <meyering@lucent.com>
64183
64184         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64185         localtime.
64186
64187         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64188         use the replacement function; it wouldn't resolve at link time.
64189         Reported by Volker Borchert.
64190
64191 2002-05-22  Jim Meyering  <meyering@lucent.com>
64192
64193         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64194         file-type.h.
64195         * lib/file-type.h: New file.
64196         * lib/file-type.c (file_type): New file/function.  Extracted from
64197         diffutils.
64198
64199 2002-04-30  Jim Meyering  <meyering@lucent.com>
64200
64201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64202
64203 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64204
64205         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64206
64207 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64208
64209         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64210         Do not check for alloca.h (no longer used) or stdbool.h (was never
64211         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64212
64213 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64214
64215         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64216
64217 2002-04-29  Jim Meyering  <meyering@lucent.com>
64218
64219         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64220         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64221         Use AC_FUNC_STRNLEN here instead.
64222
64223         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64224         With autoconf-2.53a, it's part of AC_PROG_CC.
64225
64226 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64227
64228         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64230
64231 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64232
64233         * lib/sig2str.h, lib/sig2str.c: New files.
64234         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64235
64236 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64237
64238         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64239         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64240         of 127, since 64 is the largest conceivable number for ancient
64241         nonstandard hosts.
64242         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64243
64244 2002-04-28  Jim Meyering  <meyering@lucent.com>
64245
64246         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64247
64248 2002-04-24  Jim Meyering  <meyering@lucent.com>
64249
64250         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64251         (jm_PREREQ): Use it.
64252
64253         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64254         mach/mach.h fcntl.h.
64255         Check for this function: setlocale.
64256
64257 2002-04-24  Jim Meyering  <meyering@lucent.com>
64258
64259         * lib/gettext.h: New file, from Gettext.
64260         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64261         (libfetish_a_SOURCES): Add gettext.h.
64262
64263 2002-04-16  Jim Meyering  <meyering@lucent.com>
64264
64265         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64266         ut_pid, ut_id, ut_exit.
64267
64268 2002-04-16  Jim Meyering  <meyering@lucent.com>
64269
64270         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64271         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64272         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64273
64274 2002-04-12  Jim Meyering  <meyering@lucent.com>
64275
64276         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64277         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64278         existence of the getmntinfo function.  Needed for Darwin 5.3.
64279
64280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64281         This is necessary at least on Darwin 5.3.
64282
64283         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64284         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64285         strnlen.o in the library, and that makes some versions of ranlib
64286         object.
64287
64288 2002-04-12  Jim Meyering  <meyering@lucent.com>
64289
64290         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64291
64292 2002-04-09  Jim Meyering  <meyering@lucent.com>
64293
64294         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64295         to be more precise.  Rather than saying we're checking whether the
64296         function `works', say what we're testing.
64297         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64298         Reported by Bruno Haible.
64299
64300 2002-03-10  Jim Meyering  <meyering@lucent.com>
64301
64302         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64303         Suggestion from Santiago Vila.
64304
64305 2002-03-08  Jim Meyering  <meyering@lucent.com>
64306
64307         * lib/rename.c: Mention that this wrapper is needed also on
64308         mips-dec-ultrix4.4 systems.
64309
64310 2002-03-02  Jim Meyering  <meyering@lucent.com>
64311
64312         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64313         not HAVE_CLOCK_SETTIME.
64314
64315 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64316
64317         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64318         Check for clock_settime.
64319
64320 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64321
64322         * lib/nanosleep.h: Rename to....
64323         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64324
64325         * lib/gettime.c: New file.
64326         * lib/settime.c: New file.
64327         * lib/stime.c: Remove.
64328
64329         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64330         timespec.h.  Remove nanosleep.h.
64331
64332 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64333
64334         * m4/acl.m4: New file.
64335         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64336         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64337
64338 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64339
64340         * lib/acl.c, lib/acl.h: New files.
64341         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64342
64343 2002-02-24  Jim Meyering  <meyering@lucent.com>
64344
64345         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64346         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64347         cause trouble.  Reported by Nelson Beebe.
64348
64349 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64350
64351         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64352         compilers that don't know that xalloc_die never returns.
64353
64354 2002-02-20  Jim Meyering  <meyering@lucent.com>
64355
64356         * lib/getdate.c: Regenerate using bison-1.33.
64357
64358 2002-02-17  Jim Meyering  <meyering@lucent.com>
64359
64360         * config/config.guess (main): Don't use `head -1'; it's no longer
64361         portable. Use `sed 1q' instead.
64362
64363 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64364
64365         * m4/codeset.m4: Upgrade to gettext-0.11.
64366         * m4/gettext.m4: Upgrade to gettext-0.11.
64367         * m4/glibc21.m4: Upgrade to gettext-0.11.
64368         * m4/iconv.m4: Upgrade to gettext-0.11.
64369         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64370         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64371         * m4/lib-ld.m4: New file, from gettext-0.11.
64372         * m4/lib-link.m4: New file, from gettext-0.11.
64373         * m4/lib-prefix.m4: New file, from gettext-0.11.
64374         * m4/progtest.m4: Upgrade to gettext-0.11.
64375
64376 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64377
64378         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64379         (jm_PREREQ): Use it.
64380
64381 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64382
64383         * lib/posixver.c, lib/posixver.h: New files.
64384         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64385
64386 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64387             Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64390         (fwrite_success_callback): New declaration.
64391         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64392         print_unicode_char. Call failure callback instead of error.
64393         (fwrite_success_callback): New function.
64394         (exit_failure_callback): New function.
64395         (fallback_failure_callback): New function.
64396         (print_unicode_char): Call unicode_to_mb.
64397
64398 2002-01-26  Jim Meyering  <meyering@lucent.com>
64399
64400         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64401         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64402
64403 2002-01-26  Jim Meyering  <meyering@lucent.com>
64404
64405         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64406
64407 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64408
64409         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64410
64411 2002-01-22  Jim Meyering  <meyering@lucent.com>
64412
64413         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64414         Otherwise, some versions of automake would omit the rule that makes
64415         Makefile from Makefile.in.
64416
64417 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64418
64419         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64420         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64421         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64422         (memcoll): Set errno to zero if there is no error.
64423
64424         * lib/quotearg.c (quotearg_buffer_restyled):
64425         Fix bug with quoting buffers containing NUL when backslashing escapes.
64426         This bug was exposed by the other changes in this patch.
64427         (quotearg_n_options): New arg ARGSIZE.
64428         All callers changed.
64429         (quoting_options_from_style): New function.
64430         (quotearg_n_style): Use it.
64431         (quotearg_n_style_mem): New function.
64432
64433         * lib/quotearg.h (quotearg_n_style_mem): New function.
64434
64435 2002-01-19  Jim Meyering  <meyering@lucent.com>
64436
64437         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64438         Remove useless quotes: DF_PROG="df".
64439         * m4/strnlen.m4: New file.
64440
64441 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64442
64443         * lib/backupfile.c (ISDIGIT): Comment fix.
64444         * lib/getdate.y (ISDIGIT): Likewise.
64445         * lib/posixtm.c (ISDIGIT, year): Likewise.
64446         * lib/strverscmp.c (ISDIGIT): Likewise.
64447         * lib/userspec.c (ISDIGIT): Likewise.
64448
64449 2002-01-16  Jim Meyering  <meyering@lucent.com>
64450
64451         * lib/getdate.y: Add three semicolons, each just before a closing
64452         brace. Bison (as of version 1.31) no longer papers over that mistake.
64453
64454 2002-01-05  Jim Meyering  <meyering@lucent.com>
64455
64456         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64457
64458 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64459
64460         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64461         not silently exit merely because the output buffer happens to
64462         have nothing pending.
64463
64464 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64465
64466         See the big note in ../ChangeLog.
64467         * lib/human.c (suffixes): Prefer K to k for 1024.
64468         (generate_suffix_backwards): New function.
64469         (human_readable_inexact): Use it.
64470         * lib/xstrtol.c (__xstrtol): If there is no number but there
64471         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64472         Accept 'K' as well as 'k'.
64473
64474 2001-12-15  Jim Meyering  <meyering@lucent.com>
64475
64476         * lib/regex.h (__restrict_arr): Update from libc.
64477
64478         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64479         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64480         (STREQ): Define.
64481
64482 2001-12-14  Jim Meyering  <meyering@lucent.com>
64483
64484         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64485         Suggestion from Bruno Haible.
64486
64487 2001-12-10  Jim Meyering  <meyering@lucent.com>
64488
64489         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64490         xrealloc, Instead, include "xalloc.h".
64491         (initbuffer): Don't cast xmalloc return value to char*.
64492         (readline): Reword comment.
64493         Don't cast xrealloc return value to char*
64494         Return NULL, not 0.
64495
64496 2001-12-09  Jim Meyering  <meyering@lucent.com>
64497
64498         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64499         about `signed and unsigned type in conditional expression'.
64500         * lib/posixtm.c (posix_time_parse): Likewise.
64501
64502         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64503
64504         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64505         to avoid a pedantic warning.
64506
64507         * lib/getstr.c: Don't include assert.h.
64508         (getstr): Remove warning-evoking assertions.
64509         Return -1 if offset parameter is out of bounds.
64510         Change the type of a local from int to size_t.
64511
64512         * lib/strftime.c (my_strftime_localtime_r): Include this function
64513         definition in the `#if ! HAVE_TM_GMTOFF' block.
64514
64515         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64516         Include xalloc.h instead.
64517
64518 2001-12-02  Jim Meyering  <meyering@lucent.com>
64519
64520         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64521         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64522         included.
64523
64524         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64525         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64526
64527 2001-11-30  Akim Demaille  <akim@epita.fr>
64528
64529         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64530         before being defined.
64531
64532 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64533
64534         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64535         First arg is int, not unsigned.
64536         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64537         (SIZE_MAX, UINT_MAX): New macros.
64538         (quotearg_n_options): Abort if N is negative.
64539         Avoid overflow check on hosts where size_t is 64 bits and int
64540         is 32 bits, as overflow is impossible there.
64541         Fix off-by-one typo that caused unnecessary reallocation.
64542
64543 2001-11-27  Jim Meyering  <meyering@lucent.com>
64544
64545         * lib/tempname.c: Merge with version from libc.
64546         * lib/regex.c: Likewise.
64547
64548         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64549         systems for which STDC_HEADERS is 0, it was not included, resulting in
64550         a warning about an integer-to-pointer conversion problem with getenv.
64551         Reported by Volker Borchert.
64552
64553 2001-11-26  Jim Meyering  <meyering@lucent.com>
64554
64555         * lib/gtod.h: Remove file.
64556         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64557         * lib/gettimeofday.c: Don't include gtod.h.
64558         (GTOD_init): Remove function.
64559         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64560         Suggestion from Volker Borchert.
64561
64562 2001-11-23  Jim Meyering  <meyering@lucent.com>
64563
64564         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64565         it.
64566         * lib/hash.c (struct hash_table): Define it here instead.
64567
64568 2001-11-22  Jim Meyering  <meyering@lucent.com>
64569
64570         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64571
64572 2001-11-20  Jim Meyering  <meyering@lucent.com>
64573
64574         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64575         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64576
64577 2001-11-19  Jim Meyering  <meyering@lucent.com>
64578
64579         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64580         directory.  Use "conftestXXXXXX" as the template.
64581         Suggestion from Paul Eggert.
64582
64583         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64584         immediately, so the test doesn't mistakenly hit the max-open-files
64585         limit.
64586
64587 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64588
64589         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64590         (TEMPORARIES): New macro.
64591         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64592         removes an artificial limitation (e.g. HP-UX 10.20, where
64593         TMP_MAX is 17576).
64594
64595 2001-11-18  Jim Meyering  <meyering@lucent.com>
64596
64597         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64598
64599 2001-11-18  Jim Meyering  <meyering@lucent.com>
64600
64601         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64602         on SunOS 4.
64603
64604         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64605         files will be created before anything else.
64606
64607 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64608
64609         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64610         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64611
64612 2001-11-17  Jim Meyering  <meyering@lucent.com>
64613
64614         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64615         Prompted by a report from Bob Proulx.
64616
64617         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64618         Instead, require UTILS_FUNC_MKSTEMP.
64619
64620 2001-11-17  Jim Meyering  <meyering@lucent.com>
64621
64622         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64623         Now, that's done as part of AC_FUNC_STRTOD.
64624
64625 2001-11-17  Jim Meyering  <meyering@lucent.com>
64626
64627         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64628         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64629         rather than group writable.  Patch by Juan F. Codagnone.
64630
64631         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64632         xrealloc, Instead, include "xalloc.h".
64633
64634         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64635         Remove explicit declarations of xmalloc, xrealloc,
64636         and xstrdup.  Instead, include "xalloc.h".
64637
64638         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64639         unlocked-io.h.
64640         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64641         Likewise.
64642         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64643
64644         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64645         Reported by Padraig Brady.
64646
64647         * lib/mkstemp.c: #undef mkstemp.
64648         Include config.h.
64649         (rpl_mkstemp): Rename from mkstemp.
64650         Protoize.
64651
64652 2001-11-16  Jim Meyering  <meyering@lucent.com>
64653
64654         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64655         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64656         determine the amount of total physical memory, use pstat_getstatic.
64657         HPUX-11 doesn't define _SC_PHYS_PAGES.
64658         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64659         If sysconf couldn't be used to determine the amount of available
64660         physical memory, use both pstat_getstatic and pstat_getdynamic.
64661         Based on a patch from Bob Proulx.
64662
64663 2001-11-10  Jim Meyering  <meyering@lucent.com>
64664
64665         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64666         (jm_PREREQ): Use it.
64667
64668 2001-11-09  Jim Meyering  <meyering@lucent.com>
64669
64670         * m4/jm-macros.m4: Require autoconf-2.52f.
64671         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64672         Use these AC_-prefixed names, not the AM_-prefixed ones.
64673
64674         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64675
64676 2001-11-05  Jim Meyering  <meyering@lucent.com>
64677
64678         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64679
64680 2001-11-04  Jim Meyering  <meyering@lucent.com>
64681
64682         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64683         $DEFS.
64684
64685 2001-11-03  Jim Meyering  <meyering@lucent.com>
64686
64687         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64688         of AC_DEFUN.
64689
64690         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64691         know the name of the variable in the macro definition.
64692
64693 2001-11-03  Jim Meyering  <meyering@lucent.com>
64694
64695         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64696         in argmatch_to_argument call.
64697
64698         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64699         argument.
64700
64701         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64702         e.g., a fault due to an attempt to free a NULL pointer.
64703
64704 2001-11-01  Jim Meyering  <meyering@lucent.com>
64705
64706         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64707         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64708
64709 2001-11-01  Jim Meyering  <meyering@lucent.com>
64710
64711         * lib/dirfd.c, lib/dirfd.h: New files.
64712         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64713
64714         * lib/hash.c (hash_print) [TESTING]: Clean up.
64715
64716 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64717
64718         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64719         to avoid a warning if -Wall.
64720
64721 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64722
64723         * README: New file
64724         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64725         (per RMS's instructions, this is now the canonical source)
64726         * lgpl/, gpl/: New directories.
64727
64728 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64729
64730         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64731
64732 2001-10-21  Jim Meyering  <meyering@lucent.com>
64733
64734         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64735         this code would end up calling gettext even in packages built
64736         with --disable-nls.
64737         * lib/getopt.c (_): Likewise.
64738         * lib/regex.c (_): Likewise.
64739
64740 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64741
64742         * m4/error.m4 (jm_PREREQ_ERROR):
64743         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64744         AC_FUNC_STRERROR_R does that.
64745         Check for strerror declaration.
64746
64747         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64748         are supposed to have them these days.
64749         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64750         Merge changes from latest Autoconf CVS.
64751         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64752         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64753         POSIX decided to standardize on the int flavor of strerror_r.
64754
64755 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64756
64757         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64758         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64759         Use strerror_r that is only a macro, even if it is not a function.
64760         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64761         (private_strerror): Use prototypes, not old-style function definition.
64762         (print_errno_message): New function.
64763         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64764         char*-flavored one.
64765         (error_tail, error, error_at_line): Use it.
64766
64767 2001-10-11  Jim Meyering  <meyering@lucent.com>
64768
64769         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64770         and quote_n (1, ... to avoid clobbering a buffer.
64771
64772 2001-10-05  Jim Meyering  <meyering@lucent.com>
64773
64774         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64775         hash-pjw.h.
64776         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64777         * lib/hash-pjw.h: New file.
64778
64779 2001-09-30  Jim Meyering  <meyering@lucent.com>
64780
64781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64782         `struct fsstat' has the `f_fstypename' member.
64783         Use that to define FS_TYPE, which is now used to make
64784         the getfsstat link test tighter.
64785
64786 2001-09-30  Jim Meyering  <meyering@lucent.com>
64787
64788         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64789         Include <sys/ucred.h>, for Apple Darwin.
64790         Include sys/mount.h and sys/fs_types.h only if available.
64791         (FS_TYPE): Define.
64792         (read_filesystem_list): Use FS_TYPE.
64793
64794 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64795
64796         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64797         a boolean context.
64798
64799 2001-09-29  Jim Meyering  <meyering@lucent.com>
64800
64801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64802         [one-argument getmntent function]): Include stdio.h before mntent.h.
64803         SunOS 4.1.x needs it for the declaration of `FILE'.
64804         Patch by Volker Borchert.
64805
64806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64807         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64808         sys/fs_types.h, and make the link-test for getfsstat guard #include
64809         directives with appropriate #if HAVE_*_H tests so that we can
64810         detect getfsstat on Apple Darwin1.3.7 systems.
64811         Reported by Nelson Beebe.
64812         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64813
64814 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64815
64816         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64817         #defines strtoimax.  Also treat the other strto* functions
64818         like strtoimax.
64819
64820         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64821         Check for strtoul and strtoumax,
64822         as those declarations are made even in the signed case.
64823         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64824         Likewise, for strtol and strtoimax.
64825
64826 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64827
64828         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64829         #defines strtoimax.  Also treat the other strto* functions
64830         like strtoimax.
64831
64832         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64833         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64834         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64835
64836 2001-09-26  Jim Meyering  <meyering@lucent.com>
64837
64838         Most macros in unlocked-io.h had the wrong number of arguments.
64839         * lib/gen-uio: New script.
64840         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64841         * lib/unlocked-io.hin: Remove file.
64842         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64843         rather than trying to embed it here.
64844         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64845         Reported by Padraig Brady.
64846
64847 2001-09-25  Volker Borchert  <bt@teknon.de>
64848
64849         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64850         `result'.
64851
64852 2001-09-24  Jim Meyering  <meyering@lucent.com>
64853
64854         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64855
64856 2001-09-23  Jim Meyering  <meyering@lucent.com>
64857
64858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64859         instead of the mere test for existence of mntent.h.  The latter
64860         would get a false-positive on AIX 3.4 systems.
64861         In the outer getmntent if-block, don't die if neither of the getmntent
64862         tests succeeds.  Instead, just fall through and continue with the
64863         remaining tests.
64864
64865 2001-09-23  Jim Meyering  <meyering@lucent.com>
64866
64867         * lib/mountlist.c: Remove useless parentheses in #if directives.
64868         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64869         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64870
64871 2001-09-22  Jim Meyering  <meyering@lucent.com>
64872
64873         * m4/gettext.m4: New file.  From gettext.
64874         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64875         * m4/progtest.m4: Likewise
64876         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
64877         * m4/glibc21.m4: Likewise.
64878
64879         * m4/libintl.m4: Remove.  No longer used.
64880
64881 2001-09-22  Jim Meyering  <meyering@lucent.com>
64882
64883         * lib/localcharset.c: Update from latest gettext.
64884         * lib/config.charset: Likewise.
64885
64886 2001-09-20  Jim Meyering  <meyering@lucent.com>
64887
64888         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
64889         strtoimax.
64890         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
64891         strtoumax.
64892
64893 2001-09-20  Jim Meyering  <meyering@lucent.com>
64894
64895         * lib/xstrtol.c (strtoimax): Guard declaration with
64896         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
64897         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
64898         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
64899         (strtoumax): Likewise, for completeness (it wasn't necessary).
64900
64901 2001-09-17  Paul Eggert  <eggert@twinsun.com>
64902
64903         * lib/strtoimax.c (HAVE_LONG_LONG):
64904         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
64905         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
64906         to work around bug in IBM C compiler.
64907
64908 2001-09-17  Jim Meyering  <meyering@lucent.com>
64909
64910         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
64911         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
64912         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
64913         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
64914         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
64915         whenever the right hand side need not be expanded by the shell.
64916
64917 2001-09-16  Paul Eggert  <eggert@twinsun.com>
64918
64919         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
64920         library.  It's not correct, as some older glibcs are buggy.
64921         fnmatch wasn't fixed until glibc 2.2.
64922
64923         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
64924         special shell magic here.
64925
64926 2001-09-16  Jim Meyering  <meyering@lucent.com>
64927
64928         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
64929         * m4/jm-macros.m4: Require it.
64930
64931 2001-09-16  Jim Meyering  <meyering@lucent.com>
64932
64933         * lib/mkdir.c: New file.
64934
64935 2001-09-15  Jim Meyering  <meyering@lucent.com>
64936
64937         * m4/jm-macros.m4: Check for help2man.
64938
64939 2001-09-11  Jim Meyering  <meyering@lucent.com>
64940
64941         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
64942         The body, by Paul Eggert, was moved here from configure.in.
64943         * m4/jm-macros.m4: Require UTILS_HOST_OS.
64944
64945 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64946
64947         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
64948         (jm_PREREQ): Use it.
64949
64950 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64951
64952         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
64953         Use ssize_t, not int, to store result of readlink.
64954         Check for ssize_t overflow as well as size_t overflow,
64955         as POSIX says the result of readlink is implementation-defined
64956         when ssize_t overflows.
64957         Remove unnecessary cast to char*.
64958         Use free+malloc instead of realloc, as the storage doesn't need
64959         to be preserved and it's clearer and can be more efficient that way.
64960         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
64961         * lib/xreadlink.h (xreadlink): Update prototype.
64962
64963 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64964
64965         * lib/xgetcwd.c: Revert some of the previous change; intead,
64966         fix the HAVE_GETCWD_NULL code to behave more like the
64967         !HAVE_GETCWD_NULL code used to.
64968
64969         Include "xalloc.h".
64970         (xgetcwd): Do not return NULL when memory is exhausted; instead,
64971         invoke xalloc_die.
64972
64973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64974
64975         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
64976         sys/param.h, as pathmax.h includes them.
64977
64978 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64979
64980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
64981         (jm_PREREQ_XGETCWD): New macro.
64982
64983         * m4/getcwd.m4: New file.
64984
64985 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64986
64987         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
64988         like the HAVE_GETCWD_NULL code.
64989         Include pathmax.h if not HAVE_GETCWD.
64990         Do not include xalloc.h.
64991         (INITIAL_BUFFER_SIZE): New symbol.
64992         Do not use xmalloc / xrealloc, since the caller is responsible for
64993         handling errors.  Preserve errno around `free' during failure.
64994         Do not overrun buffer when using getwd.
64995
64996 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64997
64998         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
64999         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65000         getcwd (NULL, 0).
65001
65002 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65003
65004         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65005         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65006         spotted by Jim Meyering.
65007
65008 2001-09-03  Jim Meyering  <meyering@lucent.com>
65009
65010         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65011         failure.
65012
65013 2001-09-02  Jim Meyering  <meyering@lucent.com>
65014
65015         * lib/error.c: Update from GNU libc.
65016
65017 2001-09-01  Jim Meyering  <meyering@lucent.com>
65018
65019         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65020         Used by df.
65021
65022 2001-09-01  Jim Meyering  <meyering@lucent.com>
65023
65024         * lib/xreadlink.c: New file.
65025         * lib/xreadlink.h: New file.
65026         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65027         xreadlink.h.
65028
65029         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65030         doesn't conflict with sparc Solaris 7's definition in
65031         /usr/include/sys/int_types.h.
65032
65033         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65034         files.
65035         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65036         and strncasecmp as r-values.  Unixware didn't have declarations.
65037
65038 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65039
65040         * lib/xstrtol.h: Add copyright notice.
65041         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65042         LONGINT_INVALID_SUFFIX_CHAR.
65043
65044 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65045
65046         * lib/xstrtol.c (strtoimax): New decl.
65047
65048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65049
65050         * lib/xgetcwd.c: Don't include pathmax.h.
65051         Include stdlib.h and unistd.h if available.
65052         Include xalloc.h.
65053         (xmalloc, xstrdup, free): Remove decls.
65054         (xgetcwd): Don't assume sizes fit in unsigned.
65055         Check for overflow when computing sizes.
65056         Simplify reallocation code.
65057
65058 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65059
65060         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65061         a directory's st_size can have an arbitrary value, so the old
65062         usage could waste an arbitrary amount of memory.  All uses
65063         changed.
65064         * lib/savedir.h: Update prototype.
65065
65066 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65067
65068         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65069
65070         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65071         old strtoimax.c.
65072
65073         Also, make the following further changes to make this file's
65074         configuration more similar to that of strtol.c:
65075         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65076         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65077         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65078         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65079         changed to signed values.
65080
65081         And make the following changes as well:
65082         Fix copyright notice, as 1999 was missing.
65083         (verify): New macro.
65084         (strtoimax): Check sizes at compile-time, not run-time.
65085         Prefer strtol to strtoll if both work.
65086         (main): Remove; it was not that useful and was a pain to maintain.
65087
65088         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65089
65090 2001-08-31  Jim Meyering  <meyering@lucent.com>
65091
65092         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65093         Use an initial, malloc'd, buffer of length 128 rather than
65094         a statically allocated one of length 1024.
65095
65096 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65097
65098         Simplify code, partly by assuming autoconf 2.52 semantics.
65099
65100         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65101
65102         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65103         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65104         All uses removed.
65105         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65106         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65107         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65108         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65109         jm_AC_HEADER_INTTYPES_H.
65110         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65111
65112         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65113
65114         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65115         Quote first arg of AC_DEFUN.
65116         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65117         since they are needed to parse the include file even if we need
65118         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65119         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65120         but with opposite signedness.
65121
65122 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65123
65124         Merge 'exclude' changes from tar 1.13.22.
65125         This fixes one or two unlikely storage allocation overflow bugs,
65126         but doesn't change user-visible behavior otherwise.
65127
65128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65129
65130         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65131         (jm_PREREQ_EXCLUDE): New macro.
65132
65133 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65134
65135         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65136         tm to be declared.
65137
65138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65139
65140         * lib/hash.c: Remove '2001' from copyright notice.
65141
65142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65143
65144         * lib/full-write.h: New file.
65145         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65146         * lib/full-write.c: Correct credits, as cccp.c no longer
65147         exists and anyway it was so heavily changed from the old cccp
65148         code as to be unrecognizable.  Include full-write.h.
65149         (full_write) Return size_t, with short writes meaning failure.
65150         All callers changed.  This fixes a bug with large buffers
65151         on 64-bit hosts.
65152         * lib/utime.c: Include full-write.h.
65153
65154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65155
65156         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65157         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65158         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65159         Include if available.
65160         (<xalloc.h>): Include
65161         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65162         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65163         collide with FNM macros.
65164         (struct patopts): New struct.
65165         (struct exclude): Use it, as exclude patterns now come with options.
65166         (new_exclude): Support above changes.
65167         (new_exclude, add_exclude_file):
65168         Initial size must now be a power of two to simplify overflow checking.
65169         (free_exclude, fnmatch_no_wildcards): New function.
65170         (excluded_filename): No longer requires options arg, as the options
65171         are determined by add_exclude.  Now returns bool, not int.
65172         (excluded_filename, add_exclude):
65173         Add support for the fancy new exclusion options.
65174         (add_exclude, add_exclude_file): Now takes int options arg.
65175         Check for arithmetic overflow when computing sizes.
65176         (add_exclude_file): xrealloc might modify errno, so don't
65177         realloc until after errno might be used.
65178
65179         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65180         New macros.
65181         (free_exclude): New decl.
65182         (add_exclude, add_exclude_file): Now takes int options arg.
65183         (excluded_filename): No longer requires options arg, as the options
65184         are determined by add_exclude.  Now returns bool, not int.
65185
65186 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65187
65188         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65189
65190 2001-08-27  Jim Meyering  <meyering@lucent.com>
65191
65192         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65193
65194         * lib/version-etc.c (N_): Remove definition.
65195         Revert most of last change.
65196         Instead, simply don't mark the `Copyright...' string for translation.
65197         Based on advice from Paul Eggert.
65198
65199         * lib/strtoxmax.c: Tweak comment.
65200
65201 2001-08-26  Jim Meyering  <meyering@lucent.com>
65202
65203         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65204
65205         * m4/xstrtoimax.m4: New file.
65206         * m4/xstrtoumax.m4: Add comments explaining why we
65207         AC_REPLACE_FUNCS(strtol).
65208
65209 2001-08-26  Jim Meyering  <meyering@lucent.com>
65210
65211         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65212         of copyright with `%s' so translators don't get an untranslated
65213         message in 2002.
65214         (COPYRIGHT_YEAR): Define.
65215         (version_etc): Use fprintf rather than fputs.
65216         Suggestion from Ulrich Drepper.
65217
65218         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65219
65220         * lib/strtoll.c: New file, from GNU libc.
65221         * lib/xstrtoimax.c: New file.
65222
65223         * lib/xstrtol.h: Add xstrtoimax.
65224         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65225         * lib/strtoimax.c: New file.  Likewise, but first define
65226         STRTOUXMAX_SIGNED.
65227
65228         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65229         ...
65230         * lib/strtoxmax.c: ... then renamed to this.
65231
65232 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65233
65234         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65235         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65236         (jm_AC_TYPE_INTMAX_T): New macro.
65237         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65238
65239         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65240
65241         * m4/longlong.m4: Renamed from ulonglong.m4.
65242         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65243         * m4/uintmax_t.m4: Removed.
65244
65245 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65246
65247         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65248         Port to Solaris 8, where 'sed' requires a space after the 'r'
65249         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65250         Redirect output to $tmp just once.
65251
65252 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65253
65254         * lib/addext.c (<errno.h>): Include.
65255         (errno): Declare if not defined.
65256         (addext): Work correctly when pathconf returns -1 and leaves
65257         errno alone because there is no limit.  Also, work even if
65258         pathconf returns a value greater than SIZE_MAX.
65259
65260 2001-08-12  Jim Meyering  <meyering@lucent.com>
65261
65262         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65263         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65264         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65265         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65266         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65267         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65268         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65269         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65270         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65271         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65272         utime.m4, utimes.m4, xstrtoumax.m4:
65273         Quote the first argument in each use of AC_DEFUN.
65274
65275 2001-08-12  Jim Meyering  <meyering@lucent.com>
65276
65277         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65278         Simply `return getcwd (NULL, 0);'.
65279         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65280         Use 1300 as initial value for length, not PATH_MAX.
65281
65282         * lib/pathmax.h: Clean up cpp syntax.
65283
65284 2001-08-12  Jim Meyering  <meyering@lucent.com>
65285
65286         * lib/gettimeofday.c: New file.
65287         * lib/gtod.h: New file.
65288         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65289
65290 2001-08-05  Jim Meyering  <meyering@lucent.com>
65291
65292         * m4/jm-macros.m4: Require autoconf-2.52.
65293
65294 2001-08-04  Jim Meyering  <meyering@lucent.com>
65295
65296         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65297         stmt, to get in sync with glibc.
65298
65299 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65300
65301         The following changes are from gettext 0.10.39 as maintained by
65302         Bruno Haible.
65303
65304         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65305         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65306         with inverted sense.  All uses changed.
65307
65308         * lib/mbswidth.c: Don't include <limits.h>.
65309         Include <stdlib.h> and <string.h> unconditionally.
65310         (iswcntrl, mbsinit, ISCNTRL): New macros.
65311         (mbsnwidth): Use K&R style function declarations.
65312         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65313         can optimize it when MB_CUR_MAX == 1.
65314         The width of control characters is zero, not 1.
65315
65316 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65317
65318         The following changes are from gettext 0.10.39 as maintained by
65319         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65320
65321         * m4/codeset.m4: Upgrade to serial AM1.
65322         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65323         all uses changed.  Quote first arg of AC_DEFUN.
65324         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65325
65326         * m4/iconv.m4: Upgrade to serial AM2.
65327         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65328         Add --with-libconv-prefix.
65329         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65330         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65331         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65332         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65333         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65334
65335         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65336         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65337         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65338         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65339         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65340         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65341         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65342         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65343         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65344
65345         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65346         string.h any more.
65347
65348         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65349         not the default value.
65350
65351         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65352         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65353         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65354         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65355         Also check for iswcntrl, used for wcwidth fallback.
65356         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65357         to Autoconf 2.13.
65358
65359 2001-08-03  Jim Meyering  <meyering@lucent.com>
65360
65361         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65362         as it was in the original.  Reported by Paul Eggert.
65363
65364 2001-07-16  Jim Meyering  <meyering@lucent.com>
65365
65366         * m4/gettimeofday.m4: New file.
65367         Prompted by a report from Bernhard Baehr.
65368
65369 2001-07-15  Jim Meyering  <meyering@lucent.com>
65370
65371         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65372         stuff. Now it's in ../Makefile.cfg.
65373
65374 2001-07-15  Jim Meyering  <meyering@lucent.com>
65375
65376         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65377         (BUILT_SOURCES): Add unlocked-io.h.
65378         (io_functions): Define.
65379         (unlocked-io.h): New rule.
65380         (DISTCLEANFILES): Add unlocked-io.h.
65381         (all-local): Depend on unlocked-io.h, to ensure it is created.
65382
65383         * lib/unlocked-io.hin: New file
65384
65385         * lib/regex.c: Update from glibc.
65386
65387 2001-07-05  Jim Meyering  <meyering@lucent.com>
65388
65389         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65390         recommendation.
65391         (libfetish_a_SOURCES): Put all .h files here instead.
65392         Remove a thus-exposed (better checks in automake) duplicate and
65393         two unnecessary .h files.
65394
65395 2001-07-04  Jim Meyering  <meyering@lucent.com>
65396
65397         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65398         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65399         distcheck failure.
65400
65401 2001-07-02  Jim Meyering  <meyering@lucent.com>
65402
65403         The following changes were prompted by suggestions from Bruno Haible.
65404
65405         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65406         is now generated.
65407         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65408         definition of EXTRA_DIST.
65409         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65410         ensure that the generated file is created/updated whenever the list
65411         of $(unlocked_functions) is changed.
65412         (jm-glibc-io.m4): New rule.
65413         (unlocked-io.h): New rule -- currently unused.
65414
65415 2001-06-24  Jim Meyering  <meyering@lucent.com>
65416
65417         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65418         unmatched right bracket, rather than kludging it with an extra,
65419         falsely-matching quote in a comment.  Patch by Akim Demaille.
65420
65421 2001-06-11  Jim Meyering  <meyering@lucent.com>
65422
65423         * lib/regex.c: Update from GNU libc.
65424
65425 2001-05-27  Jim Meyering  <meyering@lucent.com>
65426
65427         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65428         Check for ut_type in struct utmp.
65429
65430 2001-05-27  Jim Meyering  <meyering@lucent.com>
65431
65432         * lib/readutmp.h (UT_TYPE): Define.
65433
65434 2001-05-24  Jim Meyering  <meyering@lucent.com>
65435
65436         * lib/argmatch.c: Include "quote.h".
65437         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65438         quote function.  Reported by Göran Uddeborg.
65439
65440 2001-05-22  Jim Meyering  <meyering@lucent.com>
65441
65442         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65443         now that we use the package-supplied version unconditionally.
65444         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65445
65446 2001-05-21  Jim Meyering  <meyering@lucent.com>
65447
65448         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65449         shell syntax errors.
65450
65451 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65452
65453         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65454
65455 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65456
65457         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65458         Don't bother to check library strftime, since
65459         we'll be using our own my_strftime function anyway.
65460         Define my_strftime instead of strftime.
65461
65462 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65463
65464         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65465         which is not yet declared.
65466
65467 2001-05-15  Jim Meyering  <meyering@lucent.com>
65468
65469         * m4/regex.m4: Use proper quoting so brackets appear in the test
65470         program.
65471         Reported by, and with help from, Bruno Haible.
65472
65473 2001-05-13  Jim Meyering  <meyering@lucent.com>
65474
65475         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65476         undefined.
65477
65478 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65479
65480         dirname code cleanup.  base_name now behaves more compatibly
65481         with POSIX basename when given file names that have trailing
65482         slashes, and similarly for dir_name.  Add new primitives
65483         base_len and dir_len.  Put the directory-name-related decls
65484         into dirname.h.
65485
65486         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65487         * lib/backupfile.c (base_name): Likewise.
65488         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65489         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65490         * lib/makepath.c (strip_trailing_slashes): Likewise.
65491         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65492         ISSLASH): Likewise.
65493         * lib/rename.c (strip_trailing_slashes): Likewise.
65494         * lib/same.c (base_name): Likewise.
65495         * lib/stripslash.c (ISSLASH): Likewise.
65496
65497         * lib/addext.c: Include <dirname.h> after size_t is defined.
65498         * lib/backupfile.c: Likewise.
65499
65500         * lib/addext.c (addext): Use base_len to trim redundant
65501         trailing slashes instead of doing it ourselves.
65502         But do not trim the last slash if it is not redundant.
65503
65504         * lib/backupfile.c (find_backup_file_name,
65505         max_backup_version): Use base_len instead of rolling it ourselves.
65506         Handle the case of "" and (on DOS) "C:" correctly.
65507
65508         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65509         needed. Include <string.h>, <dirname.h>.
65510         (base_name): Allow file names ending in slashes, other than names
65511         that are all slashes.  In this case, return the basename followed
65512         by the slashes.  This is more general, and can be used in places
65513         where the original base_name purposely had an assertion failure.
65514         (base_len): New function.
65515
65516         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65517         Do not include <assert.h>; no longer needed.
65518         Include xalloc.h.
65519         (memrchr): Remove decl.
65520         (dir_name_r): Remove.
65521         (dir_len): Renamed from dirlen.  All callers changed.
65522         Rewrite in terms of base_name, for simplicity and consistency.
65523         (dir_name): Never return NULL.  All callers changed.
65524         Do not include <stdlib.h> in test program; no longer needed.
65525         return 0; is fine for test program.
65526
65527         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65528         New macros.
65529         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65530
65531         * lib/path-concat.c (path_concat): Use base_len to compute
65532         base length, not strlen; this means we cannot rely on memcpy
65533         to null-terminate.
65534
65535         * lib/same.c (STREQ): Remove.
65536         (same_name): Handle the case where the basename ends in trailing '/'.
65537
65538         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65539         a slash was stripped.  Do not strip the last slash after a
65540         file system prefix.
65541
65542 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65543
65544         * lib/Makefile.am (libfetish_a_SOURCES):
65545         Add strftime.c, since we now compile it on all hosts.
65546
65547         * lib/strftime.c (my_strftime):
65548         Define to nstrftime if emacs, but only if my_strftime is not defined.
65549         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65550         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65551         Add one more extra argument: a nanoseconds value.
65552         All uses changed.
65553         (ns): New macro.
65554         (my_strftime function): Add %N format.
65555         (emacs_strftimeu): Renamed from emacs_strftime,
65556         with extra ut argument.
65557
65558 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65559
65560         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65561
65562 2001-04-21  Jim Meyering  <meyering@lucent.com>
65563
65564         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65565         doesn't interfere.
65566
65567 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65568
65569         * m4/ftruncate.m4: Check for chsize.
65570         Link with ftruncate.o unconditionally if ftruncate is missing.
65571         This was required when cross-compiling to i586-mingw32msvc.
65572
65573 2001-04-08  Jim Meyering  <meyering@lucent.com>
65574
65575         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65576         recomputed; that's necessary when the offset spans a DST transition.
65577         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65578
65579 2001-04-02  Jim Meyering  <meyering@lucent.com>
65580
65581         * lib/regex.h, regex.c: Update from GNU libc.
65582
65583 2001-03-24  Jim Meyering  <meyering@lucent.com>
65584
65585         * m4/jm-macros.m4: Require autoconf-2.49d.
65586
65587 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65588
65589         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65590
65591 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65592
65593         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65594
65595 2001-03-17  Jim Meyering  <meyering@lucent.com>
65596
65597         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65598         now that the version in autoconf is equivalent.
65599         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65600
65601         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65602         Suggestion from Akim Demaille.
65603
65604         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65605         (jm_PREREQ_TEMPNAME): New function.
65606
65607 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65608
65609         * lib/tempname.c (uint64_t): Define to uintmax_t if
65610         not defined, and if UINT64_MAX is not defined.
65611         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65612         Reported by John David Anglin.
65613
65614 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65615
65616         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65617         resolve alias if codeset is empty.
65618         * lib/config.charset (BeOS): Use wildcard syntax.
65619
65620 2001-03-13  Jim Meyering  <meyering@lucent.com>
65621
65622         * lib/path-concat.c (path_concat)
65623         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65624         concatenating e.g., `C:' and `foo'.
65625         From Bruno Haible.
65626
65627 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65628
65629         * lib/localcharset.c (locale_charset): Don't use
65630         setlocale(LC_CTYPE,NULL). Don't return NULL.
65631         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65632
65633 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65634
65635         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65636         support for DOS/DJGPP.
65637
65638 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65639
65640         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65641         lacks mkstemp.  Compile our own tempname.c if we compile our own
65642         mkstemp.c, as mkstemp relies on tempname.
65643
65644 2001-03-01  Jim Meyering  <meyering@lucent.com>
65645
65646         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65647         AH_VERBATIM really does output its argument verbatim.
65648
65649 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65650
65651         * lib/Makefile.am (libfetish_a_SOURCES):
65652         Add dup-safer.c, fopen-safer.c.
65653         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65654
65655         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65656         * lib/unistd-safer.h: New files.
65657
65658 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65659
65660         The mkstemp replacement is taken from glibc 2.2.2, with some
65661         portability fixes for use outside glibc, as follows:
65662
65663         * lib/tempname.c (struct_stat64): New macro.
65664         (direxists, __gen_tempname): Use it.
65665         This avoids a portability problem with Solaris 8.
65666
65667         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65668         (<stddef.h>, <stdint.h>, <string.h>):
65669         Include only if STDC_HEADERS || _LIBC.
65670         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65671         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65672         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65673         (__set_errno): Define this macro if <errno.h> doesn't.
65674         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65675         Define these macros if <stdio.h> doesn't.
65676         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65677         Define these macros if <sys/stat.h>
65678         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65679         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65680         __xstat64): Define if not _LIBC.
65681         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65682         (__gen_tempname): Invoke gettimeofday only if
65683         HAVE_GETTIMEOFDAY || _LIBC;
65684         otherwise, fall back on plain "time".
65685         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65686
65687         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65688
65689         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65690
65691 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65692
65693         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65694
65695 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65696
65697         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65698         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65699         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65700         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65701
65702 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65703
65704         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65705         Remove workaround macros for hosts that have mbrtowc but not
65706         mbstate_t, as we now insist on proper declarations for both
65707         before using mbrtowc.
65708
65709 2001-02-17  Jim Meyering  <meyering@lucent.com>
65710
65711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65712         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65713         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65714         UnixWare 7.1.1.
65715
65716         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65717         rather than AC_CACHE_VAL.
65718
65719 2001-02-17  Jim Meyering  <meyering@lucent.com>
65720
65721         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65722         around included file name.
65723
65724         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65725
65726         * lib/strftime.c: Update from GNU libc (the only changes were to
65727         comments).
65728
65729 2001-02-17  Jim Meyering  <meyering@lucent.com>
65730
65731         * lib/regex.c: Update from libc.
65732
65733 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65734
65735         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65736         clash.
65737
65738 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65739
65740         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65741         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65742         Reported by Mark Hounschell via Paul Eggert.
65743
65744 2001-02-07  Jim Meyering  <meyering@lucent.com>
65745
65746         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65747
65748 2001-02-05  Jim Meyering  <meyering@lucent.com>
65749
65750         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65751         it includes the patch required for `large file' support with at least
65752         HP-UX's 10.20 /bin/cc.
65753
65754 2001-02-03  Jim Meyering  <meyering@lucent.com>
65755
65756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65757         AS_IF, now that it works once again (mysteriously).
65758         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65759
65760 2001-01-30  Jim Meyering  <meyering@lucent.com>
65761
65762         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65763         * m4/chown.m4: Rename conftestchown to conftest.chown.
65764         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65765         s/conftestdir2/conftest.d2/.
65766         * m4/utimes.m4: s/conftestdata/conftest.data/
65767         Inspired by Pavel Roskin's change in autoconf.
65768
65769 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65770
65771         * lib/config.charset: Update for FreeBSD 4.2.
65772
65773 2001-01-27  Jim Meyering  <meyering@lucent.com>
65774
65775         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65776         a use of AS_IF.
65777         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65778
65779 2001-01-26  Jim Meyering  <meyering@lucent.com>
65780
65781         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65782         quotearg.c includes it.
65783
65784 2001-01-26  Jim Meyering  <meyering@lucent.com>
65785
65786         * lib/quotearg.c: Include stddef.h.
65787         * lib/quote.c: Include stddef.h.
65788         Reported by Axel Kittenberger.
65789
65790         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65791         line in double quotes so that it evokes a better diagnostic.
65792         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65793         Reported by Axel Kittenberger.
65794
65795 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65796
65797         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65798         as if it was a `charset'.
65799
65800 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65801
65802         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65803         has const.
65804
65805 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65806
65807         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65808         to avoid a warning.  Add back 'const' to inptr.
65809
65810 2001-01-20  Jim Meyering  <meyering@lucent.com>
65811
65812         Be sure that headers are checked before used in code compiled
65813         for the type checks.
65814         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65815         In place of that, invoke jm_CHECK_ALL_TYPES.
65816         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65817         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65818         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65819         The check for ssize_t was mistakenly run before the test for unistd.h.
65820
65821         The configure-time check for stdbool.h was missing.
65822         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65823         (jm_PREREQ_HASH): New function.
65824
65825 2001-01-17  Jim Meyering  <meyering@lucent.com>
65826
65827         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65828         for autoconf-2.49c.
65829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65830
65831 2001-01-16  Jim Meyering  <meyering@lucent.com>
65832
65833         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65834         From Bruno Haible.
65835
65836 2001-01-14  Jim Meyering  <meyering@lucent.com>
65837
65838         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65839         foo and bar.  Create conftestdir/ in the script, not in the C code.
65840         Remove directories in the script, not in the C code.
65841         Remove conftestdir{,2} before trying to create the directory.
65842         Make the entire configure script fail if the mkdir fails.
65843
65844 2001-01-14  Jim Meyering  <meyering@lucent.com>
65845
65846         * lib/rename.c: New file.  From Volker Borchert.
65847         Include stdlib.h, string.h or strings.h, and xalloc.h.
65848         Use strip_trailing_slashes rather than open-coding it.
65849
65850 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65851
65852         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65853
65854 2001-01-03  Jim Meyering  <meyering@lucent.com>
65855
65856         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65857         of local `inptr' to avoid warning with some system declarations of
65858         iconv.
65859
65860 2001-01-02  Volker Borchert  <bt@teknon.de>
65861
65862         * m4/rename.m4: New file.
65863         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65864
65865 2001-01-01  Jim Meyering  <meyering@lucent.com>
65866
65867         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65868         even on systems with utmpx.h.  It's necessary for the declaration of
65869         utmp's ut_user member.  Reported by Andreas Jaeger.
65870
65871         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65872         available. They are required for the declarations of getgrgid and
65873         getpwuid resp.
65874         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65875         Reported by Andreas Jaeger.
65876
65877 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
65878
65879         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
65880         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
65881         so `make install' also works in VPATH builds.
65882
65883 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
65884
65885         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
65886         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
65887         can be used in subdirectories.
65888
65889 2000-12-29  Paul Eggert  <eggert@twinsun.com>
65890
65891         * lib/modechange.c: Do not assume that mode_t uses the
65892         traditional octal encoding.  E.g. "chmod 1 FOO" should set
65893         the other-execute bit of FOO even if S_IXOTH != 1.
65894
65895         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
65896         WOTH, XOTH, ALLM): New macros.
65897         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
65898          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
65899         Use them.
65900         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
65901         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
65902         (mode_compile):
65903         No need to use uintmax_t; unsigned long is long enough.
65904         Don't bother to get suffix since we don't use it.
65905
65906 2000-12-26  Jim Meyering  <meyering@lucent.com>
65907
65908         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
65909         better with autoheader.
65910
65911 2000-12-24  Jim Meyering  <meyering@lucent.com>
65912
65913         * lib/hash.c (is_prime): Return explicit boolean values.
65914         (hash_get_first): Return NULL to appease Irix5.6's 89.
65915         Reported by Nelson Beebe.
65916
65917 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
65918
65919         * lib/localcharset.c (locale_charset): Add support for Win32.
65920
65921 2000-12-18  Paul Eggert  <eggert@twinsun.com>
65922
65923         * lib/physmem.h, lib/physmem.c: New files.
65924
65925         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
65926         (noinst_HEADERS): Add physmem.h.
65927
65928         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
65929         't' for compatibility with Solaris 8 sort.
65930
65931 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
65932
65933         * lib/config.charset: Add support for BeOS.
65934
65935 2000-12-17  Jim Meyering  <meyering@lucent.com>
65936
65937         * m4/dos.m4 (jm_AC_DOS): New file and macro.
65938         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
65939
65940 2000-12-16  Jim Meyering  <meyering@lucent.com>
65941
65942         This bug had a serious impact on chown: `chown N:M FILE' (for integer
65943         N and M) would have treated it like `chown N:N FILE'.
65944
65945         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
65946
65947 2000-12-16  Jim Meyering  <meyering@lucent.com>
65948
65949         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
65950         SHELLS_FILE to a file name that's useful on djgpp systems.
65951         Include stdlib.h.
65952         (ADDITIONAL_DEFAULT_SHELLS): Define.
65953         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
65954         Based mostly on a patch from Prashant TR.
65955
65956 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
65957
65958         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
65959         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
65960         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
65961
65962 2000-12-08  Andreas Schwab  <schwab@suse.de>
65963
65964         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
65965         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
65966
65967 2000-12-07  Jim Meyering  <meyering@lucent.com>
65968
65969         * lib/stripslash.c (ISSLASH): Define.
65970         (strip_trailing_slashes): Use ISSLASH rather than comparing against
65971         `/'.
65972         From Prashant TR.
65973
65974         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
65975         (dir_name_r): Declare this function as static.
65976         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
65977         manifest itself on a name containing a mix of slashes and
65978         backslashes.
65979         Make this function work with names starting with a DOS-style
65980         drive letter and colon prefix.
65981         (dir_name): Append `.' if necessary.
65982         Based mostly on patches from Prashant TR and Eli Zaretskii.
65983
65984         * lib/dirname.h (dir_name_r): Remove prototype.
65985
65986 2000-12-06  Paul Eggert  <eggert@twinsun.com>
65987
65988         * m4/off_t-format.m4: Remove this file.
65989         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
65990
65991 2000-12-06  Jim Meyering  <meyering@lucent.com>
65992
65993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
65994         replacement strtoull, we may well need the replacement strtoul, too.
65995         Check for declarations of strtoul and strtoull.
65996         Check for strtol.  Mainly as a cue to cause automake to include
65997         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
65998         Check for limits.h -- strtol.c needs it.
65999
66000 2000-12-05  Jim Meyering  <meyering@lucent.com>
66001
66002         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66003
66004 2000-12-04  Jim Meyering  <meyering@lucent.com>
66005
66006         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66007         Also include memory.h, stdlib.h, unistd.h if appropriate.
66008         Reported by Andreas Jaeger (conflicting declaration of malloc).
66009
66010 2000-12-02  Jim Meyering  <meyering@lucent.com>
66011
66012         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66013         * m4/jm-macros.m4 (jm_MACROS): require it.
66014
66015 2000-12-02  Jim Meyering  <meyering@lucent.com>
66016
66017         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66018
66019 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66020
66021         * lib/memrchr.c: Include <config.h> before any system include file.
66022
66023 2000-11-30  Jim Meyering  <meyering@lucent.com>
66024
66025         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66026
66027 2000-11-30  Jim Meyering  <meyering@lucent.com>
66028
66029         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66030
66031 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66032
66033         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66034
66035 2000-11-26  Jim Meyering  <meyering@lucent.com>
66036
66037         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66038
66039 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66040
66041         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66042         size of (size_t) -1; it's not portable.
66043
66044 2000-11-17  Jim Meyering  <meyering@lucent.com>
66045
66046         * lib/strstr.c: Update from GNU libc.
66047
66048 2000-11-17  Akim Demaille  <akim@epita.fr>
66049
66050         * lib/obstack.h: Formatting changes.
66051         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66052         prevent type checking.
66053         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66054         cast the value to (void *): assigning a `foo *' to a `void *'
66055         variable is valid.
66056         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66057
66058 2000-11-16  Jim Meyering  <meyering@lucent.com>
66059
66060         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66061
66062 2000-11-11  Jim Meyering  <meyering@lucent.com>
66063
66064         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66065
66066 2000-11-10  Jim Meyering  <meyering@lucent.com>
66067
66068         * lib/obstack.h: Update from GNU libc.
66069         * lib/obstack.c: Likewise.
66070
66071 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66072
66073         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66074
66075 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66076
66077         * lib/getusershell.c (setusershell): Use rewind rather than
66078         fseek/fseeko, to avoid configuration hassles with fseeko.
66079         Don't bother opening SHELLS_FILE if shellstream is NULL;
66080         it's not necessary.
66081
66082 2000-11-05  Jim Meyering  <meyering@lucent.com>
66083
66084         * lib/makepath.h (make_dir): Declare.
66085         * lib/makepath.c (make_dir): Remove `static' attribute.
66086         Tweak a comment.
66087
66088 2000-11-04  Jim Meyering  <meyering@lucent.com>
66089
66090         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66091
66092 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66093
66094         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66095         last one in a bucket, advance to the next bucket.
66096
66097 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66098
66099         * lib/fnmatch.c: Do not comment out all the code if we are using
66100         the GNU C library, because in some cases we are replacing buggy
66101         code in the GNU C library itself.
66102
66103 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66104
66105         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66106         (regex_compile): Catch bogus \(\1\).
66107
66108 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66109
66110         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66111         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66112         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66113
66114 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66115
66116         * lib/error.h, getline.h, modechange.h:
66117         Remove "2000" from Copyright line, as the file hasn't been
66118         changed this year other than in the copyright notice.
66119
66120         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66121         was changed this year.
66122
66123 2000-10-29  Jim Meyering  <meyering@lucent.com>
66124
66125         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66126         renaming.
66127         * m4/ls-mntd-fs.m4: Likewise
66128
66129 2000-10-29  Jim Meyering  <meyering@lucent.com>
66130
66131         * lib/xstat.in: Fix grammar in comment.
66132
66133 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66134
66135         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66136         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66137         doesn't define __restrict_arr.
66138
66139 2000-10-28  Jim Meyering  <meyering@lucent.com>
66140
66141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66142         (jm_PREREQ_MEMCHR): New function.
66143
66144 2000-10-28  Jim Meyering  <meyering@lucent.com>
66145
66146         * lib/memchr.c: Update from libc.
66147         Adjust for portability:
66148         [HAVE_STDLIB_H]: Include stdlib.h.
66149         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66150         Undef __memchr, too.
66151         [!weak_alias]: Define __memchr to memchr.
66152
66153         * lib/regex.c: Update from libc.
66154         * lib/regex.h: Likewise.
66155         * lib/getopt1.c: Likewise.
66156         * lib/memcmp.c: Likewise.
66157
66158         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66159         Avoid using fseek, when possible -- it's broken by design.
66160         Patch by Ulrich Drepper.
66161
66162 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66163
66164         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66165         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66166         Giving in to popular pressure to shut up the compiler with casts.
66167
66168 2000-10-26  Jim Meyering  <meyering@lucent.com>
66169
66170         * lib/strftime.c: Update from libc.
66171
66172 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66173
66174         * regex.c: More `unsigned char' -> `re_char' changes.
66175         Also change several `int' into `re_wchar_t'.
66176         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66177         (PUSH_FAILURE_POINTER): Don't cast any more.
66178         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66179         We want GCC to complain, since this piece of code makes
66180         re_match non-reentrant, which *should* be fixed.
66181         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66182         (EXTEND_BUFFER): Use RETALLOC.
66183         (SET_LIST_BIT): Don't cast.
66184         (re_wchar_t): New type.
66185         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66186         that those two functions will always properly return.
66187         (IMMEDIATE_QUIT_CHECK): Cast to void.
66188         (analyse_first): Use recursion rather than an explicit stack.
66189         (re_compile_fastmap): Can't fail anymore.
66190         (re_search_2): Don't check re_compile_fastmap for failure.
66191         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66192         Now also sets the new value (passed in a new argument).
66193         (re_match_2_internal): Use it.
66194         Also, use a new var `reg' of type size_t when looping through regs
66195         rather than reuse the inappropriate `mcnt'.
66196
66197 2000-10-25  Jim Meyering  <meyering@lucent.com>
66198
66199         * lib/obstack.c: Update from libc.
66200
66201 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66202
66203         * regex.c (regex_compile): Change the way of handling a range from
66204         a char less than 256 to a char not less than 256.
66205
66206 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66207
66208         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66209         NT-Emacs only.
66210         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66211         so that re_search functions only quit when callers expect them to.
66212
66213 2000-10-23  Jim Meyering  <meyering@lucent.com>
66214
66215         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66216         wrong.  That set_locale call must not have any side effects.
66217         From Paul Eggert.
66218
66219 2000-10-22  Jim Meyering  <meyering@lucent.com>
66220
66221         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66222         [CYCLIC]: Remove now-unused definition.
66223
66224         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66225         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66226         Suggestion from Ulrich Drepper.
66227
66228 2000-10-21  Jim Meyering  <meyering@lucent.com>
66229
66230         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66231         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66232         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66233
66234 2000-10-21  Jim Meyering  <meyering@lucent.com>
66235
66236         * lib/dirname.c (memrchr): Declare if necessary.
66237         (dir_name): Remove the restriction that there be no
66238         trailing slashes.  Now, this code skips past them, effectively
66239         ignoring them.
66240         [TEST_DIRNAME] (main): New unit tests.
66241
66242         * lib/memrchr.c: New file from GNU libc.
66243         Undef __memrchr, too.
66244         [!weak_alias]: Define __memrchr to memrchr.
66245         Guard weak_alias use with `#ifdef weak_alias'.
66246
66247 2000-10-21  Jim Meyering  <meyering@lucent.com>
66248
66249         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66250         (dir_name): Use dir_name_r.
66251         * lib/dirname.h (dir_name_r): Declare it.
66252
66253 2000-10-17  Jim Meyering  <meyering@lucent.com>
66254
66255         * lib/quote.h (PARAMS): Define and use.
66256         Reported by Akim Demaille.
66257
66258         * lib/getopt.c: Update from libc.
66259
66260 2000-10-16  Jim Meyering  <meyering@lucent.com>
66261
66262         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66263         setlocale.
66264         From Jan Fedak.
66265
66266 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66267
66268         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66269
66270 2000-09-25  Jim Meyering  <meyering@lucent.com>
66271
66272         * lib/md5.h (rol): Define (from GnuPG).
66273
66274         * lib/sha.c: Give credit (GnuPG) where due.
66275         (M): Use rol rather than open-coding it.
66276         Add a FIXME comment.
66277
66278 2000-09-21  Jim Meyering  <meyering@lucent.com>
66279
66280         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66281         Reported by Michael Stone.
66282
66283 2000-09-20  Jim Meyering  <meyering@lucent.com>
66284
66285         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66286         (noinst_HEADERS): Add sha.h.
66287         Based on code from Scott G. Miller and from GnuPG.
66288
66289 2000-09-18  Jim Meyering  <meyering@lucent.com>
66290
66291         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66292         LIBS. Otherwise, everyone ends up linking with -lelf for some
66293         configurations.
66294         Reported by Mike Stone.
66295
66296 2000-09-15  Jim Meyering  <meyering@lucent.com>
66297
66298         * lib/regex.c: Update from libc.
66299
66300 2000-09-10  Jim Meyering  <meyering@lucent.com>
66301
66302         * lib/getopt.c (_getopt_internal): Update from glibc.
66303
66304 2000-09-09  Jim Meyering  <meyering@lucent.com>
66305
66306         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66307         think it should be used as a general replacement for isascii.
66308         * lib/fnmatch.c: Likewise.
66309         * lib/mbswidth.c: Likewise
66310         * lib/regex.c: Likewise.
66311
66312         Don't use atoi.
66313         * lib/userspec.c: Include sys/param.h and limits.h.
66314         Include xstrtol.h.
66315         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66316         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66317         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66318         UID, GID.  Check range.
66319
66320 2000-09-06  Jim Meyering  <meyering@lucent.com>
66321
66322         * lib/getopt.c (_getopt_internal): Update from glibc.
66323
66324 2000-08-30  Jim Meyering  <meyering@lucent.com>
66325
66326         * lib/strftime.c: Merge in changes from GNU libc.
66327
66328 2000-08-26  Jim Meyering  <meyering@lucent.com>
66329
66330         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66331         * m4/fpending.m4: New file.
66332
66333 2000-08-26  Jim Meyering  <meyering@lucent.com>
66334
66335         * lib/closeout.c: Include "__fpending.h".
66336         (close_stdout_status): Return right away if there's nothing to flush.
66337
66338         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66339         * lib/__fpending.c: New file.
66340         * lib/__fpending.h: New file.
66341
66342 2000-08-20  Jim Meyering  <meyering@lucent.com>
66343
66344         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66345         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66346         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66347
66348 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66349
66350         Improve fileutils installation on systems where running
66351         programs (like install) can't be unlinked.
66352         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66353         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66354
66355 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66356
66357         Standardize on "memory exhausted" instead of "Memory exhausted"
66358         or "virtual memory exhausted".
66359         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66360         "virtual memory exhausted".
66361         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66362         our own message.
66363         * lib/userspec.c (parse_user_spec): Likewise.
66364         * lib/bumpalloc.h: comment fix
66365         * lib/same.c, userspec.c: Include xalloc.h.
66366
66367         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66368         not char *const and pointing to a constant array.
66369         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66370         (xrealloc): Comment fix.
66371
66372         * lib/userspec.c (parse_user_spec):
66373         Don't translate a message until just before returning,
66374         to avoid unnecessary translation.
66375
66376 2000-08-07  Jim Meyering  <meyering@lucent.com>
66377
66378         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66379         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66380         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66381         getgroups.c, gethostname.c, getopt.h, group-member.c,
66382         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66383         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66384         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66385         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66386         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66387         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66388         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66389         yesno.c: Back out Copyright date changes for each file with no change
66390         this year.  This eases coordination with other programs using the same
66391         source code modules.  From Paul Eggert.
66392
66393 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66394
66395         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66396         not char, for compatibility with glibc 2.1.3 strftime.c.
66397
66398 2000-08-03  Greg McGary  <greg@mcgary.org>
66399
66400         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66401         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66402         (EXTEND_BUFFER): Use them.
66403
66404 2000-08-01  Jim Meyering  <meyering@lucent.com>
66405
66406         * lib/dirname.c (ISSLASH): Define.
66407         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66408         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66409         both `\' and `/' may be use as path separators.
66410         Based on a patch from Prashant TR.
66411
66412 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66413
66414         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66415         slot vector a constant, since it might get modified.
66416
66417 2000-07-31  Jim Meyering  <meyering@lucent.com>
66418
66419         * lib/xmalloc.c: Use `virtual memory exhausted', not
66420         `Memory exhausted'.
66421         * lib/obstack.c (print_and_abort): Likewise.
66422
66423 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66424
66425         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66426         buffer, so that the caller can always quote one small
66427         component of a "memory exhausted" message in slot 0.
66428         From a suggestion by Jim Meyering.
66429
66430 2000-07-30  Jim Meyering  <meyering@lucent.com>
66431
66432         * lib/makepath.c (make_path): Quote the other instance, too.
66433
66434         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66435         (STATIC_BUF_SIZE): Define.
66436         (quotearg_n_options): Use only statically allocated storage when
66437         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66438         than STATIC_BUF_SIZE.
66439
66440 2000-07-29  Jim Meyering  <meyering@lucent.com>
66441
66442         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66443         * lib/dirname.c (dir_name): Likewise.
66444
66445         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66446         `/'.
66447
66448         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66449         (dir_name): Assert that there are no trailing slashes.
66450
66451 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66452
66453         * lib/mbswidth.h (mbswidth): Add a flags argument.
66454         (mbswidth): New declaration.
66455         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66456         * lib/mbswidth.c (mbswidth): Add a flags argument.
66457         (mbsnwidth): New function.
66458
66459 2000-07-24  Jim Meyering  <meyering@lucent.com>
66460
66461         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66462
66463 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66464
66465         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66466
66467 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66468
66469         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66470         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66471         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66472         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66473         invoke multibyte primitives.
66474
66475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66476
66477         * lib/quotearg.c:
66478         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66479         so that mbstate_t is always defined.
66480
66481         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66482         be 1 in at least one GCC installation, and this configuration
66483         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66484         performance on hosts that have mbrtowc but have only unibyte
66485         locales, but I assume these hosts are rare.
66486
66487 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66488
66489         * lib/mbswidth.c (_XOPEN_SOURCE):
66490         Don't define; this causes problems on Solaris 7.
66491         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66492
66493 2000-07-23  Jim Meyering  <meyering@lucent.com>
66494
66495         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66496         too: getgrgid, getpwuid, getuid.
66497
66498 2000-07-23  Jim Meyering  <meyering@lucent.com>
66499
66500         * lib/basename.c (base_name): Add an assertion.
66501
66502 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66503
66504         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66505         shadow its mbsinit function.
66506
66507 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66508
66509         * lib/mbswidth.h: New file.
66510         * lib/mbswidth.c: New file.
66511         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66512         (noinst_HEADERS): Add mbswidth.h.
66513
66514 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66515
66516         * lib/config.charset: Add support for FreeBSD. Improve support for
66517         HP-UX and IRIX 6.
66518
66519 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66520
66521         * m4/mbswidth.m4: New file.
66522         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66523
66524 2000-07-15  Jim Meyering  <meyering@lucent.com>
66525
66526         * lib/makepath.c: Include quote.h.
66527         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66528         corresponding argument in a `quote (...)' call.
66529         Give better diagnostics.
66530
66531         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66532         (noinst_HEADERS): Add quote.h.
66533
66534         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66535         from tar's src/misc.c.
66536         * lib/quote.h: New file.  Prototypes for same.
66537
66538 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66539
66540         From a suggestion by Bruno Haible.
66541         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66542         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66543         to decide whether to define the BeOS workaround macro;
66544         this adjusts to the change to AC_MBSTATE_T.
66545
66546 2000-07-14  Jim Meyering  <meyering@lucent.com>
66547
66548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66549         jm_AC_TYPE_UINTMAX_T.
66550
66551 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66552
66553         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66554
66555         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66556         quotearg_buffer_restyled): Add support for
66557         clocale_quoting_style.  Undo previous change to
66558         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66559         and "{RIGHT QUOTATION MARK}" msgids.
66560
66561 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66562
66563         From a suggestion by Bruno Haible.
66564         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66565         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66566         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66567         and mbstate_t, to a single-part test that simply defines mbstate_t.
66568         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66569         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66570
66571 2000-07-10  Jim Meyering  <meyering@lucent.com>
66572
66573         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66574
66575         * m4/gnu-source.m4: Output to confdefs.h directly.
66576         Suggestion from Akim Demaille.
66577
66578 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66579
66580         The old behavior of quoting `like this' doesn't look good with
66581         newer, ISO-style fonts.  See:
66582         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66583
66584         Instead, quote "like this" by default.  Let the translator
66585         tailor the locale-specific quoting behavior by providing
66586         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66587
66588         * lib/quotearg.c (N_): New macro.
66589         (gettext_default): New function.
66590         (quotearg_buffer_restyled): Use
66591         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66592         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66593
66594 2000-07-09  Jim Meyering  <meyering@lucent.com>
66595
66596         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66597         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66598
66599         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66601
66602 2000-07-09  Jim Meyering  <meyering@lucent.com>
66603
66604         * lib/Most files: Update copyright dates to include 2000.
66605
66606 2000-07-08  Jim Meyering  <meyering@lucent.com>
66607
66608         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66609         if not defined.
66610         (xgethostname): Remove now-unnecessary #ifdef.
66611         Move declaration of `err' into loop where it's used.
66612
66613 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66614         and Bruno Haible  <haible@clisp.cons.org>
66615
66616         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66617         only if the test for an object-type mbstate_t fails.  This
66618         prevents us from mistakenly reporting that mbstate_t is a
66619         system object type after we "#define mbstate_t int" to work
66620         around its lack.
66621
66622 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66623         and Bruno Haible  <haible@clisp.cons.org>
66624
66625         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66626
66627 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66628
66629         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66630         to strerror_r.
66631         Include <ctype.h> for use of isalpha.
66632
66633 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66634
66635         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66636         by allocating a larger buffer. Test the gethostname return value for
66637         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66638         returns an error and ENAMETOOLONG isn't defined.
66639
66640 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66641
66642         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66643         dimension.
66644
66645 2000-07-04  Jim Meyering  <meyering@lucent.com>
66646
66647         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66648         of the deprecated AC_CHECKING.
66649
66650 2000-07-04  Jim Meyering  <meyering@lucent.com>
66651
66652         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66653         Reported by Bruno Haible.
66654
66655 2000-07-04  Jim Meyering  <meyering@lucent.com>
66656
66657         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66658         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66659         lacks mbrtowc.
66660
66661 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66662
66663         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66664         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66665
66666 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66667         and Bruno Haible  <haible@clisp.cons.org>
66668
66669         * lib/quotearg.c (mbrtowc):
66670         Assign to *pwc, and return 1 only if result is nonzero.
66671         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66672
66673 2000-07-03  Jim Meyering  <meyering@lucent.com>
66674
66675         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66676
66677 2000-07-03  Jim Meyering  <meyering@lucent.com>
66678
66679         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66680         This is necessary to get a definition of e.g., UTMP_FILE on
66681         HP-UX 10.20.
66682         From Bob Proulx.
66683
66684 2000-07-02  Jim Meyering  <meyering@lucent.com>
66685
66686         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66687
66688         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66689         AC_LIBOBJ(function_name).
66690         * m4/chown.m4: Likewise.
66691         * m4/fnmatch.m4: Likewise.
66692         * m4/ftruncate.m4: Likewise.
66693         * m4/getgroups.m4: Likewise.
66694         * m4/getline.m4: Likewise.
66695         * m4/group-member.m4: Likewise.
66696         * m4/jm-macros.m4: Likewise.
66697         * m4/lstat.m4: Likewise.
66698         * m4/malloc.m4: Likewise.
66699         * m4/memcmp.m4: Likewise.
66700         * m4/nanosleep.m4: Likewise.
66701         * m4/putenv.m4: Likewise.
66702         * m4/realloc.m4: Likewise.
66703         * m4/regex.m4: Likewise.
66704         * m4/stat.m4: Likewise.
66705         * m4/strftime.m4: Likewise.
66706
66707 2000-07-02  Jim Meyering  <meyering@lucent.com>
66708
66709         * lib/quotearg.c (mbstate_t): Don't define here.
66710
66711 2000-07-02  Jim Meyering  <meyering@lucent.com>
66712
66713         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66714
66715 2000-07-01  Jim Meyering  <meyering@lucent.com>
66716
66717         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66718
66719 2000-07-01  Jim Meyering  <meyering@lucent.com>
66720
66721         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66722         problem.
66723
66724 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66725
66726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66727         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66728
66729 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66730
66731         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66732         per change in ../m4/ls-mntd-fs.m4.
66733         (read_filesystem_list): Ignore symbolic links.
66734
66735 2000-06-29  Jim Meyering  <meyering@lucent.com>
66736
66737         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66738         for declaration of strcmp.
66739
66740         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66741
66742         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66743         Avoid warning by casting result to `char *' to remove `const'.
66744
66745 2000-06-28  Jim Meyering  <meyering@lucent.com>
66746
66747         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66748         included by quotearg.c, for which we perform this test.  From
66749         Bruno Haible.
66750
66751 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66752
66753         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66754         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66755         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66756
66757 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66758
66759         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66760
66761 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66762
66763         savedir now sets errno on failure and invokes xmalloc to get memory.
66764         Fix a couple of other minor bugs while we're at it.
66765
66766         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66767         (NAMLEN): Remove macro.
66768         (malloc, realloc): Remove decls.
66769         (stpcpy): Likewise.
66770         ("xalloc.h"): Include.
66771         (NAME_SIZE_DEFAULT): New macro.
66772         (savedir): Use xmalloc / xrealloc to allocate memory.
66773         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66774         Skip "" directory entries.
66775         Use strlen to calculate directory entry length, since the old method
66776         is rarely used these days and isn't worth supporting.
66777         Don't use a pointer after freeing it.
66778         Check for integer overflow when calculating allocation size.
66779         Use memcpy to copy entries, instead of stpcpy.
66780         Set errno properly when returning NULL.
66781         Check for readdir error.
66782
66783 2000-06-26  Jim Meyering  <meyering@lucent.com>
66784
66785         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66786
66787 2000-06-25  Jim Meyering  <meyering@lucent.com>
66788
66789         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66790         Linux header bug when _XOPEN_SOURCE is defined to 500.
66791
66792 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66793
66794         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66795         deficiency.
66796
66797 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66798
66799         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66800         Include xalloc.h.
66801         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66802
66803 2000-06-24  Jim Meyering  <meyering@lucent.com>
66804
66805         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66806         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66807         for which strerror does return char*, but which lacks a conveniently
66808         accessible declaration of the function.  If the compile-test says
66809         strerror_r doesn't work, then resort to a `run'-test that works on
66810         BeOS and segfaults on DEC Unix.
66811
66812 2000-06-24  Jim Meyering  <meyering@lucent.com>
66813
66814         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66815
66816 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66817
66818         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66819         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66820
66821 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66822
66823         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66824         (mbrtowc, mbstate_t): Define substitutes if
66825         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66826         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66827         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66828
66829 2000-06-23  Jim Meyering  <meyering@lucent.com>
66830
66831         * m4/afs.m4: Add missing AC_MSG_RESULT.
66832         Reported by Bruno Haible.
66833
66834         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66835         Suggestion from Bruno Haible.
66836
66837 2000-06-23  Jim Meyering  <meyering@lucent.com>
66838
66839         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66840
66841 2000-06-21  Jim Meyering  <meyering@lucent.com>
66842
66843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66844
66845 2000-06-21  Jim Meyering  <meyering@lucent.com>
66846
66847         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66848         (noinst_HEADERS): Add getstr.h.
66849
66850         * lib/getline.c (getstr): Move into a separate file.
66851         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66852         the following changes: new parameter, delim2; both delim[12]
66853         parameters have type `int', not `char'.  The latter would lose
66854         with 8-bit delimiters.
66855         * lib/getstr.h: New file.
66856
66857 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66858
66859         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66860         than 1024, return a memory chunk of least possible size, instead
66861         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66862         Use free/xmalloc instead of xrealloc to avoid copying for very long
66863         paths.
66864
66865 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66866
66867         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66868         the empty string.
66869
66870 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66871
66872         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66873         address, not strdup.  Include <stdlib.h> and don't declare free().
66874
66875 2000-06-19  Jim Meyering  <meyering@lucent.com>
66876
66877         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
66878
66879 2000-06-18  Jim Meyering  <meyering@lucent.com>
66880
66881         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
66882
66883         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
66884         `checking whether...' message to be consistent with that of the
66885         lstat test.
66886
66887 2000-06-18  Jim Meyering  <meyering@lucent.com>
66888
66889         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
66890         Besides, these days every porting target provides a mkdir function.
66891
66892         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
66893         needed. (this snippet comes from src/system.h).
66894
66895 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
66896
66897         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
66898
66899 2000-06-15  Paul Eggert  <eggert@twinsun.com>
66900
66901         * lib/human.c (adjust_value): New function.
66902         (human_readable_inexact): Apply rounding style even when
66903         printing approximate values.
66904
66905 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66906
66907         * lib/human.c (human_readable_inexact): Allow an input block
66908         size that is not a multiple of the output block size, and vice versa.
66909         Reported by Piergiorgio Sartor.
66910
66911 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66912
66913         * lib/getdate.y (get_date): Apply relative times after time
66914         zone indicator, not before.  Reported by Todd A. Jacobs.
66915
66916 2000-06-13  Jim Meyering  <meyering@lucent.com>
66917
66918         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
66919
66920         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
66921
66922 2000-06-12  Paul Eggert  <eggert@twinsun.com>
66923
66924         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
66925
66926 2000-06-12  Jim Meyering  <meyering@lucent.com>
66927
66928         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
66929         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
66930         optional argument.
66931         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
66932         the optional argument, `lib'.
66933
66934 2000-06-08  Jim Meyering  <meyering@lucent.com>
66935
66936         * m4/largefile.m4: Remove file (now that it's part of autoconf).
66937
66938 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66939
66940         Rewrite largefile configuration so that we don't need to run
66941         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
66942         AC_CANONICAL_HOST in configure.in -- jmm]
66943
66944         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
66945         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
66946         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
66947         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
66948         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
66949         All uses changed.
66950         Instead of inspecting the output of getconf, try to compile the
66951         test program without and with the macro definition.
66952         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
66953         for getconf.  Instead, check for the needed flags by compiling
66954         test programs.
66955
66956 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66957
66958         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
66959
66960 2000-06-04  Jim Meyering  <meyering@lucent.com>
66961
66962         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
66963         SunOS 4.1.4 for which gid_t is an unsigned type.
66964
66965 2000-06-03  Jim Meyering  <meyering@lucent.com>
66966
66967         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
66968         now that autoconf requires that.
66969
66970         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
66971         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
66972         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
66973
66974 2000-06-03  Jim Meyering  <meyering@lucent.com>
66975
66976         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
66977
66978 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66979
66980         * m4/glibc21.m4: New file.
66981         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
66982
66983 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66984
66985         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
66986         newer, don't install charset.alias.
66987         * lib/config.charset: Change the Linux/glibc rules so they become empty
66988         on glibc-2.1 or newer.
66989
66990 2000-06-02  Jim Meyering  <meyering@lucent.com>
66991
66992         * lib/mountlist.c: Back out last change.  Instead, do this...
66993         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
66994         me_dummy member using the same `ignore'-testing code.
66995         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
66996         fs_type strings.
66997         From Mark D. Roth.
66998
66999 2000-05-29  Jim Meyering  <meyering@lucent.com>
67000
67001         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67002         mounts with the `ignore' attribute.  Based on a patch from
67003         Mark D. Roth.
67004
67005 2000-05-28  Jim Meyering  <meyering@lucent.com>
67006
67007         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67008         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67009         * m4/stat.m4: Likewise.
67010         * m4/lstat.m4: Likewise.
67011         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67012
67013         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67014         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67015
67016 2000-05-26  Jim Meyering  <meyering@lucent.com>
67017
67018         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67019
67020 2000-05-24  Jim Meyering  <meyering@lucent.com>
67021
67022         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67023         autoconf requires that.
67024         * m4/lib-check.m4: Likewise.
67025         * m4/jm-macros.m4: Likewise.
67026         * m4/strftime.m4: Likewise.
67027
67028         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67029         AC_CHECK_DECLS, now that autoconf requires that.
67030
67031 2000-05-22  Jim Meyering  <meyering@lucent.com>
67032
67033         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67034         * m4/lstat.m4: Likewise.
67035
67036 2000-05-22  Jim Meyering  <meyering@lucent.com>
67037
67038         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67039
67040 2000-05-20  Jim Meyering  <meyering@lucent.com>
67041
67042         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67043         (jm_PREREQ): Use it.
67044
67045 2000-05-18  Jim Meyering  <meyering@lucent.com>
67046
67047         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67048         back, too, since it may have been modified by allocate_entry.
67049         (hash_delete): Rewrite to use neither the assignment operator
67050         nor the comma operator in an if-expression.
67051
67052 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67053
67054         * lib/closeout.c:
67055         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67056         Remove; no longer needed.
67057         "quotearg.h": Add include.
67058         (file_name): Do not bother to explicitly initialize to NULL; it's less
67059         efficient on some hosts.
67060         (close_stdout_status): Remove test as to whether stdout was already
67061         closed; it breaks for the case "echo x | sort >&-".
67062         Quote file name colons.
67063         Do not assume that _("write error") lacks format strings.
67064
67065 2000-05-15  Jim Meyering  <meyering@lucent.com>
67066
67067         * lib/version-etc.c (version_etc_copyright): Update the copyright
67068         string used in all --version output.
67069
67070 2000-05-14  Jim Meyering  <meyering@lucent.com>
67071
67072         * lib/closeout.c (close_stdout_set_file_name): New function.
67073         (close_stdout_status): Use new file-scoped global.
67074         Return right away if fstat says the stdout file descriptor is invalid.
67075         * lib/closeout.h (close_stdout_set_file_name): Declare.
67076
67077 2000-05-10  Jim Meyering  <meyering@lucent.com>
67078
67079         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67080         (close_stdout_set_status): New function.
67081         * lib/closeout.h (close_stdout_set_status): Declare.
67082
67083 2000-05-09  Jim Meyering  <meyering@lucent.com>
67084
67085         * m4/gettext.m4: Rename this...
67086         * m4/libintl.m4: ...to this.
67087
67088 2000-05-08  Jim Meyering  <meyering@lucent.com>
67089
67090         * lib/long-options.c: Don't include closeout.h.
67091         (parse_long_options): Don't call close_stdout for --version.
67092
67093 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67094
67095         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67096         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67097         2.1.3 bug.  This avoids a clash when files like regex.c define
67098         _GNU_SOURCE.
67099
67100 2000-05-06  Jim Meyering  <meyering@lucent.com>
67101
67102         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67103         (AC_REPLACE_FUNCS): Add strnlen.
67104
67105         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67106         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67107
67108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67109         AC_SEARCH_LIBS call for nanosleep.
67110         (LIB_NANOSLEEP): Set and AC_SUBST.
67111
67112 2000-05-06  Jim Meyering  <meyering@lucent.com>
67113
67114         * lib/strnlen.c: Undefine __strnlen and strnlen.
67115         [!weak_alias]: Define __strnlen to strnlen.
67116
67117         * lib/atexit.c: New file, from libiberty.
67118
67119 2000-05-06  Jim Meyering  <meyering@lucent.com>
67120
67121         * lib/closeout.c (close_stdout_status): Also check for errors on the
67122         stderr stream.
67123
67124 2000-05-05  Jim Meyering  <meyering@lucent.com>
67125
67126         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67127         AC_SEARCH_LIBS call for clock_gettime.
67128         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67129
67130         * m4/search-libs.m4: Update from autoconf.
67131
67132         su doesn't work on Solaris 2.6.
67133         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67134         <shadow.h>.  Reported by Dragos Harabor.
67135
67136 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67137
67138         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67139         memcpy instead of xmalloc, xrealloc, path_concat.
67140         (locale_charset): Treat empty environment variables as absent.
67141         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67142
67143 2000-05-04  Jim Meyering  <meyering@lucent.com>
67144
67145         * lib/getopt.c: Update from glibc.
67146         * lib/obstack.c: Likewise.
67147         * lib/obstack.h: Likewise.
67148         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67149         file
67150
67151         * lib/regex.h: Likewise.
67152         * lib/strndup.c: Likewise.
67153         * lib/strnlen.c: New file, from glibc.
67154
67155 2000-05-03  Jim Meyering  <meyering@lucent.com>
67156
67157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67158
67159 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67160
67161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67162         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67163         compile-time test, rather than inspecting host and OS, to
67164         decide whether to define _LARGEFILE_SOURCE.
67165
67166 2000-05-01  Jim Meyering  <meyering@lucent.com>
67167
67168         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67169
67170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67171         Based on a patch from Bruno Haible.
67172
67173 2000-05-01  Jim Meyering  <meyering@lucent.com>
67174
67175         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67176
67177 2000-04-29  Jim Meyering  <meyering@lucent.com>
67178
67179         * lib/path-concat.c: Declare strdup only if it's not defined.
67180         * lib/canon-host.c: Likewise.
67181
67182 2000-04-28  Jim Meyering  <meyering@lucent.com>
67183
67184         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67185         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67186         is included first, then limits.h is included by locale.h by libintl.h.
67187         From John David Anglin.
67188
67189 2000-04-25  Jim Meyering  <meyering@lucent.com>
67190
67191         * lib/makepath.c (S_IRWXUGO): Define.
67192         (make_path): Always perform explicit chmod if MODE specifies any
67193         of the `special' permission bits.  Prompted by a bug report against
67194         install from Mate Wierdl and Joost van Baal.
67195
67196 2000-04-18  Jim Meyering  <meyering@lucent.com>
67197
67198         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67199         (jm_PREREQ): Use it.
67200
67201 2000-04-18  Jim Meyering  <meyering@lucent.com>
67202
67203         * lib/README: New file.
67204
67205         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67206         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67207
67208 2000-04-17  Jim Meyering  <meyering@lucent.com>
67209
67210         Get it right :-)
67211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67212         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67213         Suggestion from Akim Demaille.
67214
67215 2000-04-17  Jim Meyering  <meyering@lucent.com>
67216
67217         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67218         the definition of it to rpl_strftime also defined-away the system's
67219         declaration.
67220
67221 2000-04-15  Jim Meyering  <meyering@lucent.com>
67222
67223         Use `C' to denote so-called `contiguous' files, the same way
67224         that tar does.
67225         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67226         (ftypelet): Use S_ISCTG.
67227         From Michael Deutschmann.
67228
67229 2000-04-14  Jim Meyering  <meyering@lucent.com>
67230
67231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67232         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67233         clobbered.
67234
67235 2000-04-14  Jim Meyering  <meyering@lucent.com>
67236
67237         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67238
67239 2000-04-13  Jim Meyering  <meyering@lucent.com>
67240
67241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67242         AH_VERBATIM to insert required #ifndef into config.h.in.
67243         Suggestion from Akim Demaille.
67244
67245 2000-04-12  Jim Meyering  <meyering@lucent.com>
67246
67247         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67248         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67249         Christian Krackowizer.
67250
67251         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67252         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67253         (AC_SYS_LARGEFILE): Require.
67254         (AM_C_PROTOTYPES): Require.
67255
67256 2000-04-08  Jim Meyering  <meyering@lucent.com>
67257
67258         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67259         names don't conflict.  Reported by Eli Zaretskii.
67260
67261 2000-04-07  Jim Meyering  <meyering@lucent.com>
67262
67263         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67264         sys/types.h, to work around system header problems on AIX 3.2.5.
67265         From Bruno Haible.
67266
67267 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67268
67269         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67270         bug.  Deal with the different error behavior of Irix iconv.
67271
67272 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67273
67274         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67275         IRIX if the installer said otherwise.
67276
67277 2000-04-05  Jim Meyering  <meyering@lucent.com>
67278
67279         Portability tweaks required for ultrix4.3.
67280         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67281         (jm_CHECK_DECLS): Add getutent to the list of functions.
67282         (_jm_DECL_HEADERS): Add utmpx.h.
67283         From John David Anglin.
67284
67285         * m4/strftime.m4: Back out the 2000-04-02 change.
67286         Instead of that change, simply undefine putenv in the test program.
67287
67288 2000-04-05  Jim Meyering  <meyering@lucent.com>
67289
67290         Portability tweaks required for ultrix4.3.
67291         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67292         getutent.
67293         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67294         * lib/canon-host.c: Declare strdup.
67295         * lib/path-concat.c: Likewise.
67296         From John David Anglin.
67297
67298 2000-04-04  Jim Meyering  <meyering@lucent.com>
67299
67300         Be more DOS 8.3-friendly.
67301         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67302         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67303         * lib/Makefile.am: Reflect renaming.
67304         Reported by Eli Zaretskii.
67305
67306         Use a temporary file name that won't clash with `charset.alias'
67307         in the DOS 8.3 name space.
67308         * lib/Makefile.am (charset_tmp): Define.
67309         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67310         (uninstall-local): Likewise.
67311         Reported by Eli Zaretskii.
67312
67313 2000-04-03  Jim Meyering  <meyering@lucent.com>
67314
67315         * m4/gettext.m4: Fix typo in comment.
67316
67317         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67318         textutils/configure.in).  Suggestion from Paul Eggert.
67319         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67320
67321 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67322
67323         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67324         variable in the shell rather than using putenv, which isn't
67325         portable.  This avoids the configure-time inter-test dependency
67326         on the potentially-renamed putenv function.
67327
67328 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67329
67330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67331         before checking struct stat.st_blksize, so that
67332         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67333
67334 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67335
67336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67337         since strftime.c uses HAVE_STRFTIME to decide whether to use
67338         the underlying strftime.
67339
67340 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67341
67342         * lib/time/strftime.c (my_strftime): Make sure we call the system
67343         strftime, not ourselves, when invoking the underlying strftime.
67344
67345 2000-03-24  Jim Meyering  <meyering@lucent.com>
67346
67347         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67348         (charset_alias): Define.
67349         (install-exec-local): Factor out common code.
67350         (uninstall-local): Split lines longer than 80.
67351         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67352         (SUFFIXES): Define.
67353         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67354         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67355
67356 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67357
67358         * lib/config.charset: Output a line containing "Packages using this
67359         file".
67360         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67361         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67362         ref-del.sed): New rules.
67363
67364 2000-03-17  Jim Meyering  <meyering@lucent.com>
67365
67366         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67367         Otherwise, include <strings.h>
67368
67369 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67370
67371         * lib/unicodeio.c (utf8_wctomb): New function.
67372         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67373         format instead of in UCS-4 with platform dependent endianness.
67374
67375 2000-03-10  Jim Meyering  <meyering@lucent.com>
67376
67377         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67378         From Marco Franzen.
67379
67380 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67381
67382         * lib/savedir.c (savedir): Work even if directory size is
67383         negative; this can happen with some screwy NFS configurations.
67384
67385 2000-03-06  Jim Meyering  <meyering@lucent.com>
67386
67387         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67388         if it's NULL (because we ran out of memory).  From Bruno Haible.
67389
67390 2000-03-05  Jim Meyering  <meyering@lucent.com>
67391
67392         * lib/localcharset.c ("path-concat.h"): Include.
67393         (get_charset_aliases): Use path_concat instead of ANSI string
67394         concatenation.
67395
67396         * lib/unicodeio.h (PARAMS): Define.
67397         Use it to guard prototype.
67398
67399 2000-03-04  Jim Meyering  <meyering@lucent.com>
67400
67401         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67402         for lib/localcharset.c.
67403
67404 2000-03-04  Jim Meyering  <meyering@lucent.com>
67405
67406         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67407         installing into it.
67408         (uninstall-local): Uncomment this rule so `make distcheck' works
67409         once again.
67410
67411         * lib/unicodeio.c (<errno.h>): Include it.
67412         (errno): Declare if not defined.
67413
67414         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67415
67416         * lib/config.charset: New version, incorporating remarks from a linux
67417         i18n mailing list.  From Bruno Haible.
67418
67419 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67420
67421         * m4/codeset.m4: New file.
67422         * m4/iconv.m4: New file.
67423         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67424
67425 2000-03-03  Jim Meyering  <meyering@lucent.com>
67426
67427         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67428
67429 2000-03-02  Jim Meyering  <meyering@lucent.com>
67430
67431         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67432         the messages come out on separate lines.
67433
67434         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67435         rather than jm_CHECK_DECLARATIONS.
67436         * m4/decl.m4: Remove now-unused file.
67437
67438         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67439         geteuid.
67440
67441 2000-03-02  Jim Meyering  <meyering@lucent.com>
67442
67443         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67444
67445 2000-03-01  Jim Meyering  <meyering@lucent.com>
67446
67447         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67448         * lib/unicodeio.c: Likewise.
67449
67450 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67451
67452         * lib/config.charset: New file.
67453         * lib/localcharset.c: New file.
67454         * lib/unicodeio.h, lib/unicodeio.c: New files.
67455         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67456         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67457         (noinst_HEADERS): Add unicodeio.h.
67458         (all-local, install-exec-local, charset.alias): New targets.
67459
67460 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67461
67462         * lib/quotearg.c (ALERT_CHAR): New macro.
67463         (quotearg_buffer_restyled): Use it.
67464
67465 2000-02-27  Jim Meyering  <meyering@lucent.com>
67466
67467         * m4/check-decl.m4: Add getenv to the list.
67468
67469 2000-02-27  Jim Meyering  <meyering@lucent.com>
67470
67471         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67472         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67473
67474         * lib/backupfile.c: Guard inclusion of stdlib.h with
67475         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67476         Declare malloc if needed.
67477
67478         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67479         `#ifndef HAVE_DECL..'
67480         now that autoconf always defines the HAVE_DECL_ symbols.
67481         * lib/human.c: Likewise.
67482         * lib/same.c: Likewise.
67483         * lib/strtoumax.c: Likewise.
67484
67485         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67486         declaration check was not run.
67487         * lib/hash.c: Likewise.
67488         * lib/human.c: Likewise.
67489         * lib/same.c: Likewise.
67490         * lib/strtoumax.c: Likewise.
67491
67492         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67493         `.', then first look up the entire `.'-containing string as a login
67494         name.
67495
67496 2000-02-23  Jim Meyering  <meyering@lucent.com>
67497
67498         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67499         in place of my hack.
67500
67501 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67502
67503         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67504         (textint): New typedef.
67505         (parser_control): Member year changed from int to textint.
67506         All uses changed.
67507         (YYSTYPE): Removed; replaced by %union with int and textint members.
67508         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67509         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67510         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67511         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67512         (date, number, to_year): Use width of number in digits, not its value,
67513         to determine whether it's a 2-digit year, or a 2-digit time.
67514         (yylex): Store number of digits of numeric tokens.
67515         Reported by John Kendall.
67516
67517         (parser_control): Changed from struct parser_control to typedef (for
67518         consistency).  All uses changed.
67519
67520         (tID): Removed; not used.
67521         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67522
67523 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67524
67525         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67526         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67527
67528 2000-02-12  Jim Meyering  <meyering@lucent.com>
67529
67530         * lib/userspec.c (ISDIGIT): Define it.
67531         (isdigit): Remove definition.
67532         (is_number): Use ISDIGIT, not isdigit.
67533         <libintl.h>: Include.
67534         (_ and N_): Define.
67535         (parse_user_spec): Mark translatable strings.
67536
67537 2000-02-10  Jim Meyering  <meyering@lucent.com>
67538
67539         With these changes, nanosleep.[ch] are finally enough like the other
67540         lib/* replacement files to compile on a few more losing systems.
67541
67542         * lib/nanosleep.h: Don't include config.h.
67543         Remove prototype from declaration of nanosleep.
67544         (PARAMS): Remove now-unneeded definition.
67545         * lib/nanosleep.c: #undef nanosleep.
67546         (rpl_nanosleep): Rename from nanosleep.
67547
67548 2000-02-10  Jim Meyering  <meyering@lucent.com>
67549
67550         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67551         gnu_nanosleep to rpl_nanosleep.
67552
67553 2000-02-09  Jim Meyering  <meyering@lucent.com>
67554
67555         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67556         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67557
67558 2000-02-08  Akim Demaille  <akim@epita.fr>
67559
67560         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67561         `[' and `]' and remove uses of `changequote'.
67562         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67563         (AC_SYS_LARGEFILE): Likewise.
67564         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67565         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67566         of changequote.
67567         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67568         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67569         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67570         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67571
67572 2000-02-05  Jim Meyering  <meyering@lucent.com>
67573
67574         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67575         Remove explicit use of AC_HEADER_TIME.  It is required by
67576         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67577         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67578         in autoconf whereby the expansion of the latter ended up preceding
67579         the expansion of its prerequisite, AC_HEADER_TIME.
67580         Reported by Volker Borchert.
67581
67582 2000-02-03  Jim Meyering  <meyering@lucent.com>
67583
67584         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67585
67586 2000-02-03  Jim Meyering  <meyering@lucent.com>
67587
67588         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67589         rather than with `#if HAVE_UTMPNAME'.
67590
67591 2000-02-02  Jim Meyering  <meyering@lucent.com>
67592
67593         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67594         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67595         Reported by Eli Zaretskii.
67596
67597 2000-02-01  Jim Meyering  <meyering@lucent.com>
67598
67599         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67600
67601 2000-01-31  Jim Meyering  <meyering@lucent.com>
67602
67603         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67604         functions.  Add the time.h and sys/time.h headers along with the
67605         AC_REQUIRE'ment of AC_HEADER_TIME.
67606
67607 2000-01-31  Jim Meyering  <meyering@lucent.com>
67608
67609         * lib/nanosleep.h (nanosleep): Guard declaration with
67610         `#if ! HAVE_DECL_NANOSLEEP'.
67611         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67612         the declaration in that vendor's sys/timers.h.
67613         Reported by Christian Krackowizer.
67614
67615         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67616         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67617         (ISPRINT): Likewise.
67618         Reported by Tom Tromey.
67619
67620 2000-01-30  Jim Meyering  <meyering@lucent.com>
67621
67622         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67623
67624         * m4/prereq.m4 (utmp_includes): Define.
67625         Check for ut_user and ut_name members in both struct utmpx
67626         and struct utmp.
67627
67628 2000-01-30  Jim Meyering  <meyering@lucent.com>
67629
67630         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67631         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67632         header files where only utmpx.ut_user is declared.
67633
67634         * lib/readutmp.h (UT_USER): Define.
67635
67636 2000-01-29  Jim Meyering  <meyering@lucent.com>
67637
67638         * m4/lib-check.m4: New file containing library-related checks from
67639         fileutils and sh-utils (textutils had none).
67640
67641 2000-01-28  Jim Meyering  <meyering@lucent.com>
67642
67643         * m4/perl.m4: Change format of warning message to look more like that
67644         from the missing script.  Suggestion from François Pinard.
67645
67646 2000-01-25  Jim Meyering  <meyering@lucent.com>
67647
67648         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67649         well as time.h in the compile check.
67650         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67651         Fix typo in cross-compiling case: s/yes/no/.
67652
67653 2000-01-23  Jim Meyering  <meyering@lucent.com>
67654
67655         * m4/jm-macros.m4: Move df-related tests here from
67656         fileutils/configure.in
67657
67658         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67659         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67660
67661         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67662         s/space/ac_fsusage_space/.
67663         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67664
67665         * m4/ftruncate.m4: New file (derived from part of
67666         fileutils/configure.in).
67667         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67668         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67669
67670         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67671         AC_SUBST these here, rather than just in sh-util/configure.in, so
67672         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67673         all the same.
67674         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67675         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67676         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67677         (AC_SUBST(POW_LIBM)): Likewise.
67678         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67679
67680 2000-01-23  Jim Meyering  <meyering@lucent.com>
67681
67682         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67683         obstack.c.
67684
67685 2000-01-22  Jim Meyering  <meyering@lucent.com>
67686
67687         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67688
67689         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67690
67691         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67692         configure.in
67693         (AC_CHECK_HEADERS): Likewise for sh-utils.
67694         (AC_CHECK_HEADERS): Likewise for textutils.
67695         Merge the three lists of headers.
67696
67697         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67698         from fileutils' configure.in.
67699
67700         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67701         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67702         check-decl.m4.
67703
67704         * m4/check-decl.m4: Use #if rather than #ifdef.
67705         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67706         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67707         (_jm_DECL_HEADERS): Define new function.
67708         (jm_CHECK_DECLARATIONS): Require it.
67709
67710 2000-01-22  Jim Meyering  <meyering@lucent.com>
67711
67712         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67713         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67714         Required for some AIX systems.  Reported by Christian Krackowizer.
67715         [TESTING] (main): New function.
67716
67717         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67718         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67719         letters.
67720
67721         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67722         iswprint.
67723
67724         * lib/strverscmp.c (ISDIGIT): Define.
67725         (strverscmp): Use ISDIGIT, not isdigit.
67726
67727 2000-01-19  Jim Meyering  <meyering@lucent.com>
67728
67729         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67730         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67731         defines `struct timespec' in <sys/time.h>
67732
67733         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67734         Thanks to Akim for explaining.
67735
67736 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67737
67738         * lib/nanosleep.c (nanosleep):
67739         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67740         POSIX.1 doesn't require SA_INTERRUPT and some systems
67741         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67742         it's been part of POSIX.1 since day 1 (in 1988).
67743
67744 2000-01-17  Jim Meyering  <meyering@lucent.com>
67745
67746         * lib/interlock: Remove unused file.  Reported by François Pinard.
67747
67748 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67749
67750         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67751         alert, backslash, formfeed, and vertical tab unnecessarily in
67752         shell quoting style.
67753
67754 2000-01-16  Jim Meyering  <meyering@lucent.com>
67755
67756         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67757         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67758         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67759         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67760
67761 2000-01-16  Jim Meyering  <meyering@lucent.com>
67762
67763         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67764         because the latter didn't work.
67765
67766 2000-01-15  Jim Meyering  <meyering@lucent.com>
67767
67768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67769         (AC_REPLACE_FUNCS): Add memcpy and memset.
67770         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67771         Add strpbrk.
67772         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67773
67774 2000-01-12  Jim Meyering  <meyering@lucent.com>
67775
67776         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67777         (jm_PREREQ): Use it.
67778         (jm_PREREQ_READUTMP): New macro.
67779         (jm_PREREQ): Use it.
67780
67781 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67782
67783         Quote multibyte characters correctly.
67784         * m4/c-bs-a.m4: New file.
67785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67786         (jm_PREREQ): Use it.
67787
67788 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67789
67790         * m4/uintmax_t.m4: Port to autoconf 2.13.
67791
67792 2000-01-08  Jim Meyering  <meyering@ascend.com>
67793
67794         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67795         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67796
67797 2000-01-04  Jim Meyering  <meyering@ascend.com>
67798
67799         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67800         jm_STRUCT_DIRENT_D_TYPE.
67801         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67802         jm_STRUCT_DIRENT_D_INO.
67803         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67804         jm_STRUCT_UTIMBUF.
67805         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67806         renamings.
67807         * m4/utime.m4: Likewise.
67808
67809         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67810         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67811
67812 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67813
67814         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67815         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67816
67817 2000-01-02  Jim Meyering  <meyering@ascend.com>
67818
67819         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67820         remember if this is necessary.
67821
67822 1999-12-26  Jim Meyering  <meyering@ascend.com>
67823
67824         * m4/jm-macros.m4: Use it here.
67825         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67826
67827 1999-12-23  Jim Meyering  <meyering@ascend.com>
67828
67829         * m4/jm-macros.m4: Check for clock_gettime (moved from
67830         fileutils/configure.in)
67831         Check for gettimeofday.
67832
67833 1999-12-20  Jim Meyering  <meyering@ascend.com>
67834
67835         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67836         autoconf-2.14a-1999-12-20.
67837
67838 1999-12-19  Jim Meyering  <meyering@ascend.com>
67839
67840         * m4/lstat-slash.m4: New file.
67841         * m4/jm-macros.m4: Use the new macro:
67842         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67843
67844 1999-12-07  Jim Meyering  <meyering@ascend.com>
67845
67846         * m4/perl.m4: Require that File::Compare be available, too.
67847         Too many systems seem to lack it.
67848
67849         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67850         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67851
67852 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67853
67854         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67855         problem with the QNX 4.25 shell, which doesn't propagate exit
67856         status of failed commands inside shell assignments.
67857
67858 1999-11-17  Jim Meyering  <meyering@ascend.com>
67859
67860         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67861
67862 1999-11-07  Jim Meyering  <meyering@ascend.com>
67863
67864         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67865
67866 1999-11-06  Jim Meyering  <meyering@ascend.com>
67867
67868         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67869         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67870
67871 1999-11-05  Jim Meyering  <meyering@ascend.com>
67872
67873         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67874         configure.in of textutils, fileutils, and sh-utils into this one
67875         (shared between those packages) file.
67876         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
67877         AC_STRUCT_ST_BLKSIZE.
67878
67879 1999-11-03  Jim Meyering  <meyering@ascend.com>
67880
67881         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
67882         of AC_CHECK_TYPE checks includes unistd.h.
67883         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
67884         Suggestion from Akim Demaille.
67885
67886 1999-10-30  Jim Meyering  <meyering@ascend.com>
67887
67888         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
67889         m4-quoted string.
67890         * m4/ls-mntd-fs.m4: Likewise.
67891         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
67892         * m4/jm-winsz1.m4: Likewise.
67893
67894         * m4/const.m4: Remove file, since the fix made it into the experimental
67895         version of autoconf.
67896         * m4/mktime.m4: Likewise.
67897
67898         * m4/check-type.m4: Remove file, now that the latest version of
67899         AC_CHECK_TYPE takes a third arg to specify additional #includes.
67900
67901         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
67902         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
67903         AC_CHECK_TYPE.
67904
67905 1999-10-04  Jim Meyering  <meyering@ascend.com>
67906
67907         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
67908
67909 1999-09-22  Paul Eggert  <eggert@twinsun.com>
67910
67911         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
67912         2.95.1 bug with HP-UX 10.20.
67913
67914 1999-09-17  Jim Meyering  <meyering@ascend.com>
67915
67916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
67917         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
67918         due to missing strdup (against sh-utils-2.0).
67919
67920 1999-08-29  Jim Meyering  <meyering@ascend.com>
67921
67922         * m4/jm-macros.m4: Require jm_BISON.
67923         * m4/bison.m4: New file.
67924
67925 1999-08-17  Paul Eggert  <eggert@twinsun.com>
67926
67927         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
67928         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
67929
67930 1999-08-05  Jim Meyering  <meyering@ascend.com>
67931
67932         * m4/getline.m4: Rename test file from conftestdata to conftest.data
67933         to avoid conflicts with `conftest' on 8+3 filesystems.
67934         Suggestion from Eli Zaretskii.
67935
67936 1999-08-04  Jim Meyering  <meyering@ascend.com>
67937
67938         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
67939         fileutils and sh-utils (textutils's getline test was inadequate).
67940         (AM_FUNC_GETLINE): Run this test.
67941         (AC_CHECK_FUNCS): Check for getdelim.
67942         Reported by Bob Proulx.
67943
67944 1999-08-02  Jim Meyering  <meyering@ascend.com>
67945
67946         * m4/jm-macros.m4: Add a comment.
67947
67948 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67949
67950         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
67951         <inttypes.h> defines strtoumax as a macro (and not as a
67952         function).
67953
67954 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67955
67956         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
67957         that we can shift, multiply and divide unsigned long long
67958         values; Ultrix cc can't do it.
67959
67960 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67961
67962         * m4/mktime.m4: New file, which is a preview of what should appear
67963         in the next public autoconf release.
67964
67965 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67966
67967         * m4/lfs.m4: Remove this file.
67968         * m4/largefile.m4: New file.  It contains the old contents of
67969         lfs.m4, except that all names with prefix AC_LFS have been
67970         changed to use the prefix AC_SYS_LARGEFILE instead, to be
67971         compatible with future autoconf versions.  Also, some minor m4
67972         quoting problems have been fixed.
67973
67974 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67975
67976         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
67977         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
67978         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
67979         and simplify the shell code.
67980
67981 1999-08-01  Jim Meyering  <meyering@ascend.com>
67982
67983         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
67984         m4.
67985
67986 1999-07-20  Jim Meyering  <meyering@ascend.com>
67987
67988         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
67989
67990 1999-07-15  Jim Meyering  <meyering@ascend.com>
67991
67992         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
67993
67994 1999-05-22  Jim Meyering  <meyering@ascend.com>
67995
67996         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
67997
67998 1999-05-20  Jim Meyering  <meyering@ascend.com>
67999
68000         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68001         Add a colon after each `then' in case $4 is empty.
68002
68003 1999-05-16  Jim Meyering  <meyering@ascend.com>
68004
68005         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68006
68007 1999-05-10  Jim Meyering  <meyering@ascend.com>
68008
68009         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68010
68011         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68012         AC_FUNC_MKTIME.
68013
68014 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68015
68016         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68017
68018 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68019
68020         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68021         not CPPFLAGS, so that linking works correctly in IRIX.
68022
68023 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68024
68025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68026
68027 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68028
68029         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68030         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68032         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68033         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68034
68035         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68036
68037 1999-04-20  Jim Meyering  <meyering@ascend.com>
68038
68039         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68040         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68041         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68042
68043 1999-04-18  Jim Meyering  <meyering@ascend.com>
68044
68045         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68046         * m4/jm-macros.m4: Use it.
68047
68048 1999-04-06  Jim Meyering  <meyering@ascend.com>
68049
68050         * m4/strftime.m4: Remove test for %f.
68051
68052 1999-03-29  Jim Meyering  <meyering@ascend.com>
68053
68054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68055         superset of the AC_TYPE_* checks in the textutils, fileutils,
68056         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68057         AC_TYPE_PID_T.
68058
68059 1999-03-28  Jim Meyering  <meyering@ascend.com>
68060
68061         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68062         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68063         replaced e.g., in the *.sh files of the sh-utils.
68064
68065 1999-03-20  Jim Meyering  <meyering@ascend.com>
68066
68067         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68068         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68069         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68070
68071 1999-03-19  Jim Meyering  <meyering@ascend.com>
68072
68073         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68074
68075 1999-03-12  Jim Meyering  <meyering@ascend.com>
68076
68077         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68078
68079 1999-03-07  Jim Meyering  <meyering@ascend.com>
68080
68081         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68082         declared.
68083
68084 1999-02-17  Jim Meyering  <meyering@ascend.com>
68085
68086         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68087         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68088
68089 1999-02-07  Jim Meyering  <meyering@ascend.com>
68090
68091         * m4/group-member.m4: New file -- extracted from sh-utils'
68092         configure.in.
68093
68094         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68095         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68096
68097 1999-02-06  Jim Meyering  <meyering@ascend.com>
68098
68099         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68100         * m4/fnmatch.m4: Likewise.
68101         * m4/getgroups.m4: Likewise.
68102         * m4/lstat.m4: Likewise.
68103         * m4/malloc.m4: Likewise.
68104         * m4/putenv.m4: Likewise.
68105         * m4/realloc.m4: Likewise.
68106         * m4/regex.m4: Likewise.
68107         * m4/stat.m4: Likewise.
68108         * m4/strftime.m4: Likewise.
68109         Suggestion from Alain Magloire.
68110
68111         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68112         * m4/fnmatch.m4: Likewise.
68113         * m4/getgroups.m4: Likewise.
68114         * m4/getline.m4: Likewise.
68115         * m4/lstat.m4: Likewise.
68116         * m4/malloc.m4: Likewise.
68117         * m4/memcmp.m4: Likewise.
68118         * m4/putenv.m4: Likewise.
68119         * m4/realloc.m4: Likewise.
68120         * m4/regex.m4: Likewise.
68121         * m4/stat.m4: Likewise.
68122         * m4/strftime.m4: Likewise.
68123         Suggestion from Alain Magloire.
68124
68125         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68126         an argument.
68127
68128         * m4/regex.m4: Add a run-time Test for proper operation of
68129         re_compile_pattern.
68130
68131 1999-01-31  Jim Meyering  <meyering@ascend.com>
68132
68133         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68134
68135 1999-01-30  Jim Meyering  <meyering@ascend.com>
68136
68137         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68138
68139         * m4/jm-mktime.m4: Make this a wrapper around the official
68140         AM_FUNC_MKTIME rather than my private copy, now that the official one
68141         is up to date.
68142         * m4/mktime.m4: Remove file.
68143
68144         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68145         * m4/uptime.m4: Likewise.
68146         * m4/uintmax_t.m4: Likewise.
68147
68148 1999-01-28  Jim Meyering  <meyering@ascend.com>
68149
68150         * m4/jm-macros.m4: Use jm_AFS.
68151         * m4/afs.m4: New file (from fileutils' configure.in).
68152
68153         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68154         * m4/chown.m4: Likewise.
68155         * m4/d-ino.m4: Likewise.
68156         * m4/d-type.m4: Likewise.
68157         * m4/fnmatch.m4: Likewise.
68158         * m4/getgroups.m4: Likewise.
68159         * m4/gettext.m4: Likewise.
68160         * m4/jm-mktime.m4: Likewise.
68161         * m4/jm-winsz2.m4: Likewise.
68162         * m4/lcmessage.m4: Likewise.
68163         * m4/ls-mntd-fs.m4: Likewise.
68164         * m4/malloc.m4: Likewise.
68165         * m4/memcmp.m4: Likewise.
68166         * m4/putenv.m4: Likewise.
68167         * m4/realloc.m4: Likewise.
68168         * m4/st_mtim.m4: Likewise.
68169         * m4/strftime.m4: Likewise.
68170
68171 1999-01-16  Jim Meyering  <meyering@ascend.com>
68172
68173         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68174         (ARGMATCH_DIE_DECL): Define.
68175
68176 1999-01-12  Jim Meyering  <meyering@ascend.com>
68177
68178         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68179         Reported by Lars Hecking.
68180
68181 1999-01-10  Jim Meyering  <meyering@ascend.com>
68182
68183         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68184         gross kludge.
68185         * m4/inttypes_h.m4: Likewise.
68186         * m4/lstat.m4: Likewise.
68187         * m4/malloc.m4: Likewise.
68188         * m4/readdir.m4: Likewise.
68189         * m4/realloc.m4: Likewise.
68190         * m4/st_dm_mode.m4: Likewise.
68191         * m4/stat.m4: Likewise.
68192         * m4/utimbuf.m4: Likewise.
68193         * m4/utimes.m4: Likewise.
68194
68195         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68196         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68197         comments in config.h.in are meaningful.
68198
68199         * m4/jm-macros.m4: Require autoconf-2.13 here.
68200
68201         * m4/regex.m4: By default, don't use the included regex.c on systems
68202         with glibc 2.  Suggestion from Uli Drepper.
68203
68204 1999-01-02  Jim Meyering  <meyering@ascend.com>
68205
68206         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68207
68208 1998-12-18  Jim Meyering  <meyering@ascend.com>
68209
68210         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68211         Based on a suggestion from Lars Hecking.
68212
68213 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68214
68215         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68216
68217 1998-11-16  Jim Meyering  <meyering@ascend.com>
68218
68219         * m4/lfs.m4: Double-quote the `uname...` expression.
68220
68221 1998-11-14  Jim Meyering  <meyering@ascend.com>
68222
68223         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68224         * m4/stat.m4: Likewise.
68225
68226 1998-11-03  Jim Meyering  <meyering@ascend.com>
68227
68228         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68229         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68230
68231 1998-10-18  Jim Meyering  <meyering@ascend.com>
68232
68233         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68234
68235 1998-10-17  Jim Meyering  <meyering@ascend.com>
68236
68237         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68238         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68239         calls for those previously hard-coded headers.  Instead, take a new
68240         parameter.
68241         (jm_CHECK_DECLARATIONS): Reflect interface change.
68242         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68243         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68244
68245         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68246
68247 1998-10-14  Jim Meyering  <meyering@ascend.com>
68248
68249         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68250         instead of "TZ=America/Vancouver".  From Paul Eggert.
68251
68252 1998-10-11  Jim Meyering  <meyering@ascend.com>
68253
68254         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68255         This adds a test for a recently added compatibility fix for mktime.c.
68256         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68257
68258 1998-09-27  Jim Meyering  <meyering@ascend.com>
68259
68260         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68261
68262         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68263         ../configure.in, including a change from Gordon Matzigkeit to allow
68264         cross-compiling for the Hurd.
68265
68266         * m4/glibc.m4: New file/macro to test for the GNU C Library
68267         versions 1 and 2.  From Gordon Matzigkeit.
68268         Indent.
68269
68270 1998-09-21  Jim Meyering  <meyering@ascend.com>
68271
68272         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68273
68274 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68275
68276         Port nanosecond-resolution times to UnixWare 2.1.2 and
68277         pedantic Solaris 2.6.
68278
68279         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68280         AC_STRUCT_ST_MTIM.
68281         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68282         Generate name of ns member, instead of just 1 or undef.
68283         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68284
68285 1998-08-15  Jim Meyering  <meyering@ascend.com>
68286
68287         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68288         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68289         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68290         instead of jm_TYPE_SSIZE_T.
68291
68292 1998-08-12  Jim Meyering  <meyering@ascend.com>
68293
68294         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68295
68296 1998-08-02  Jim Meyering  <meyering@ascend.com>
68297
68298         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68299         in acconfig.h manually.
68300
68301 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68302
68303         * m4/st_mtim.m4: New file.
68304
68305 1998-07-28  Jim Meyering  <meyering@ascend.com>
68306
68307         * m4/utimes.m4: Undef stat.
68308
68309 1998-07-25  Jim Meyering  <meyering@ascend.com>
68310
68311         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68312         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68313
68314 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68315
68316         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68317         uid and gid actually remain unchanged.
68318
68319 1998-07-07  Jim Meyering  <meyering@ascend.com>
68320
68321         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68322
68323 1998-07-04  Jim Meyering  <meyering@ascend.com>
68324
68325         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68326         to prove that this macro can be used in packages without regex.c.
68327
68328 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68329
68330         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68331         is to be used.
68332
68333 1998-07-03  Jim Meyering  <meyering@ascend.com>
68334
68335         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68336
68337         * m4/gettext.m4: New file -- from gettext-0.10.35.
68338         * m4/lcmessage.m4: Likewise.
68339         * m4/progtest.m4: Likewise.
68340
68341         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68342         * m4/jm-macros.m4: Require the new macro.
68343
68344 1998-06-29  Jim Meyering  <meyering@ascend.com>
68345
68346         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68347         for the definition of NGROUPS (used in a system header included
68348         by sys/mount.h).
68349
68350 1998-06-28  Jim Meyering  <meyering@ascend.com>
68351
68352         * m4/ls-mntd-fs.m4: New file.
68353         * m4/fstypename.m4: New file.
68354
68355         * m4/jm-macros.m4: Require the new macro.
68356         * m4/jm-glibc-io.m4: New file.
68357
68358 1998-05-19  Jim Meyering  <meyering@ascend.com>
68359
68360         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68361         * m4/lchown.m4: New file.
68362
68363         * m4/Makefile.am.in: New file.
68364         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68365
68366 1998-05-14  Jim Meyering  <meyering@ascend.com>
68367
68368         * m4/Makefile.am (EXTRA_DIST): Add them.
68369         * m4/jm-macros.m4: New file.
68370         * m4/utimbuf.m4: New file.
68371
68372 1998-05-12  Jim Meyering  <meyering@ascend.com>
68373
68374         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68375
68376 1998-05-11  Jim Meyering  <meyering@ascend.com>
68377
68378         * m4/isc-posix.m4: New file.
68379
68380 1998-05-10  Jim Meyering  <meyering@ascend.com>
68381
68382         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68383
68384 1998-05-09  Jim Meyering  <meyering@ascend.com>
68385
68386         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68387         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68388         with automake.
68389
68390         * m4/ssize_t.m4: New file.
68391         * m4/mktime.m4: Remove file -- the new automake has this now.
68392
68393 1998-04-26  Jim Meyering  <meyering@ascend.com>
68394
68395         * m4/assert.m4: New file.
68396         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68397
68398 1998-04-05  Jim Meyering  <meyering@ascend.com>
68399
68400         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68401         (jm_PREREQ): Use it here.
68402
68403 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68404
68405         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68406         in acconfig.h.
68407
68408 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68409
68410         * m4/prereq.m4: New file.
68411         * m4/error.m4: New file.
68412         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68413
68414 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68415
68416         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68417         cache-check for the same variable -- that defeated the purpose of
68418         the test; the test program was never run.  This was a problem only
68419         on systems with losing getline functions -- HP-UX 10.20 is one.
68420         Reported by Bjorn Helgaas.
68421
68422 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68423
68424         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68425
68426 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68427
68428         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68429
68430         * m4/const.m4: New file.  Use an initializer in this declaration
68431         typedef int charset[2]; const charset x;
68432         Reported by Bob Glickstein.
68433
68434 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68435
68436         * m4/chown.m4: Fix reversed types on -1 args to chown.
68437         From Kaveh Ghazi.
68438
68439 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68440
68441         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68442         Add lseek and memchr.
68443
68444         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68445         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68446         have a 20-character limit on names.
68447
68448 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68449
68450         * m4/inttypes_h.m4: New file.
68451         * m4/uintmax_t.m4: New file.
68452         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68453
68454
68455         -----
68456
68457         Local Variables:
68458         coding: utf-8
68459         End:
68460
68461         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68462
68463         Copying and distribution of this file, with or without
68464         modification, are permitted provided the copyright notice
68465         and this notice are preserved.