New module 'unlockpt'.
[gnulib.git] / ChangeLog
1 2010-03-21  Bruno Haible  <bruno@clisp.org>
2
3         New module 'unlockpt'.
4         * lib/unlockpt.c: New file, from glibc with modifications.
5         * m4/unlockpt.m4: New file.
6         * modules/unlockpt: New file.
7         * lib/stdlib.in.h (unlockpt): New declaration.
8         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
9         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11         HAVE_UNLOCKPT.
12         * doc/posix-functions/unlockpt.texi: Mention the new module.
13         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14         * config/srclist.txt: Add unlockpt.c (commented).
15
16 2010-03-21  Jim Meyering  <meyering@redhat.com>
17
18         maint.mk: prohibit inclusion of "intprops.h" without use
19         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20
21 2010-03-21  Bruno Haible  <bruno@clisp.org>
22
23         New module 'grantpt'.
24         * lib/grantpt.c: New file, from glibc with modifications.
25         * m4/grantpt.m4: New file.
26         * modules/grantpt: New file.
27         * lib/stdlib.in.h (grantpt): New declaration.
28         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
29         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31         HAVE_GRANTPT.
32         * doc/posix-functions/grantpt.texi: Mention the new module.
33         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34         * config/srclist.txt: Add grantpt.c (commented).
35
36 2010-03-21  Bruno Haible  <bruno@clisp.org>
37
38         New module 'pt_chown'.
39         * lib/pt_chown.c: New file, from glibc with modifications.
40         * lib/pty-private.h: New file, from glibc with modifications.
41         * modules/pt_chown: New file.
42         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
43
44 2010-03-21  Bruno Haible  <bruno@clisp.org>
45
46         Tests for module 'ptsname'.
47         * modules/ptsname-tests: New file.
48         * tests/test-ptsname.c: New file.
49
50         New module 'ptsname'.
51         * lib/ptsname.c: New file, from glibc with modifications.
52         * m4/ptsname.m4: New file.
53         * modules/ptsname: New file.
54         * lib/stdlib.in.h (ptsname): New declaration.
55         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
56         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
57         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
58         HAVE_PTSNAME.
59         * doc/posix-functions/ptsname.texi: Mention the new module.
60         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
61         * config/srclist.txt: Add ptsname.c (commented).
62
63 2010-03-21  Bruno Haible  <bruno@clisp.org>
64
65         Tests for module 'ttyname_r'.
66         * modules/ttyname_r-tests: New file.
67         * tests/test-ttyname_r.c: New file.
68
69         New module 'ttyname_r'.
70         * lib/ttyname_r.c: New file.
71         * m4/ttyname_r.m4: New file.
72         * modules/ttyname_r: New file.
73         * lib/unistd.in.h (ttyname_r): New declaration.
74         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
75         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
76         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
77         HAVE_TTYNAME_R.
78         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
79         * doc/posix-functions/ttyname_r.texi: Mention the new module.
80
81 2010-03-20  Bruno Haible  <bruno@clisp.org>
82
83         signal: Undefine macro definitions in C++ mode.
84         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
85         sigfillset): Undefine macro definitions from the system header in C++
86         mode.
87         Reported by John W. Eaton <jwe@gnu.org>.
88
89 2010-03-20  Bruno Haible  <bruno@clisp.org>
90
91         Ensure no #include statements inside extern "C" { ... }.
92         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
93         contain #include statements.
94         * lib/time.in.h: Likewise.
95
96 2010-03-20  Bruno Haible  <bruno@clisp.org>
97
98         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
99         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
100         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
101         Reported by John W. Eaton <jwe@gnu.org>.
102
103 2010-03-20  Bruno Haible  <bruno@clisp.org>
104
105         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
106         Reported by Jim Meyering.
107
108 2010-03-20  Bruno Haible  <bruno@clisp.org>
109
110         pipe: Set errno upon failure.
111         * lib/pipe.h: Specify that when -1 is returned, errno is set.
112         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
113         errno value in error message.
114
115 2010-03-20  Bruno Haible  <bruno@clisp.org>
116             Jim Meyering  <meyering@redhat.com>
117
118         lchown: Avoid "unused variable" warning.
119         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
120
121 2010-03-20  Bruno Haible  <bruno@clisp.org>
122
123         Work around unlink() bug on MacOS X 10.5.6.
124         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
125         attempting to unlink a parent directory.
126         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
127         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
128         activate for the replacement function.
129         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
130
131 2010-03-20  Bruno Haible  <bruno@clisp.org>
132
133         Fix link errors on Solaris 8.
134         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
135         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
136
137 2010-03-19  Jim Meyering  <meyering@redhat.com>
138
139         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
140         The _LIBC implementation of build_range_exp correctly honors the
141         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
142         However, the non-_LIBC implementation would ignore that syntax-bit
143         flag and return REG_ERANGE unconditionally.
144         This change makes it honor that flag.
145         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
146         Make two pointer parameters "const".
147         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
148         (parse_bracket_exp): Update caller.
149
150         regex.m4: correct the reversed range endpoint ([b-a]) test
151         * m4/regex.m4: When requiring that [b-a] evoke failure,
152         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
153         test pass once again for x86-based systems.
154
155 2010-03-19  Bruno Haible  <bruno@clisp.org>
156
157         scandir: Fix link error on Solaris 8.
158         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
159         macros.
160
161 2010-03-19  Bruno Haible  <bruno@clisp.org>
162
163         getusershell: Fix documentation.
164         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
165         module.
166         * doc/glibc-functions/setusershell.texi: Likewise.
167
168         getusershell: Provide declaration, missing on Solaris 9.
169         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
170         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
171         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
172         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
174         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
175         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
176         HAVE_GETUSERSHELL.
177         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
178
179 2010-03-19  Bruno Haible  <bruno@clisp.org>
180
181         wctype: Provide iswblank function.
182         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
183         exists and is fine.
184         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
185         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
186         * tests/test-wctype.c (main): Re-enable the iswblank tests.
187         * doc/posix-functions/iswblank.texi: Update.
188
189 2010-03-19  Bruno Haible  <bruno@clisp.org>
190
191         Tests of module 'pty' in C++ mode.
192         * modules/pty-tests: New file.
193         * tests/test-pty-c++.cc: New file.
194         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
195
196 2010-03-19  Eric Blake  <eblake@redhat.com>
197
198         logb: fix documentation
199         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
200         1.5 declaration bug.
201
202         forkpty, openpty: prefer glibc's const-safe prototype
203         * lib/forkpty.c (rpl_forkpty): New file.
204         * lib/openpty.c (rpl_openpty): Likewise.
205         * modules/forkpty (Files): Distribute it.
206         * modules/openpty (Files): Likewise.
207         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
208         check...
209         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
210         replacement for for non-const BSD signature.
211         * modules/pty (Makefile.am): Substitute witnesses.
212         * lib/pty.in.h (forkpty, openpty): Declare replacements.
213         * tests/test-forkpty.c: Update signature check.
214         * tests/test-openpty.c: Likewise.
215         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
216         * doc/glibc-functions/openpty.texi (openpty): Likewise.
217
218         forkpty, openpty: split functions into new modules
219         * modules/pty (Makefile.am): Substitute new witnesses.
220         (Libraries): Move library detection...
221         * modules/forkpty: ...into new module.
222         * modules/openpty: Another new module.
223         * modules/pty-tests: Rename and split...
224         * modules/forkpty-tests: ...to this...
225         * modules/openpty-tests: ...and this.
226         * tests/test-pty.c: Rename and split...
227         * tests/test-forkpty.c: ...to this...
228         * tests/test-openpty.c: ...and this.
229         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
230         (gl_PTY): Split library searching...
231         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
232         (gl_FORKPTY, gl_OPENPTY): New macros.
233         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
234         * NEWS: Mention the split.
235         * MODULES.html.sh (Misc): Document the modules.
236         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
237         * doc/glibc-functions/openpty.texi (openpty): Likewise.
238
239         pty: improve replacement header
240         * lib/pty.in.h: New file.
241         * modules/pty (Files): Ship it.
242         (Makefile.am): Always build replacement.
243         * m4/pty.m4: Rename...
244         * m4/pty_h.m4: ...to this.
245         (gl_PTY): Modernize setting of witness macros; update check of
246         forkpty to take proper advantage of cache.
247         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
248
249         getopt: avoid compiler warning
250         * lib/getopt.c (attribute_hidden): Remove unused macro.
251
252 2010-03-18  Bruno Haible  <bruno@clisp.org>
253
254         Fix link errors on Solaris 8.
255         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
256         * modules/search-tests (test_search_c___LDADD): Likewise.
257         * modules/signal-tests (test_signal_c___LDADD): Likewise.
258         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
259         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
260         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
261         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
262         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
263         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
264
265 2010-03-18  Bruno Haible  <bruno@clisp.org>
266
267         Fix bug introduced on 2010-03-14.
268         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
269         (gl_SPAWN_H): Require it.
270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
271         Reported by Simon Josefsson.
272
273 2010-03-18  Bruno Haible  <bruno@clisp.org>
274
275         Fix typo introduced on 2009-12-31.
276         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
277         posix_spawn_file_actions_adddup2.
278
279 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
280         and Eric Blake  <eblake@redhat.com>
281
282         test-vc-list-files-git: make more robust
283         * tests/test-vc-list-files-git.sh: Unset problematic environment
284         variables.  Chain commands together.
285
286 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
287
288         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
289         `AC_CHECK_DECL' invocation.
290
291 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
292
293         * lib/inttostr.c (inttostr): Make sure the invocation of verify
294         appears before executable statements. Suggested by Petr Sumbera
295         <Petr.Sumbera@Sun.COM>.
296
297 2010-03-14  Bruno Haible  <bruno@clisp.org>
298
299         * tests/test-flock.c (test_exclusive): Comment out a test that causes
300         portability problems. Instead use a simpler test.
301         (main): Check that invalid arguments are rejected only on Linux.
302
303 2010-03-14  Bruno Haible  <bruno@clisp.org>
304
305         Fix bug introduced on 2009-12-31.
306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
307         gl_PREREQ_SYS_H_WINSOCK2 always.
308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
309         SYS_SOCKET_H variable.
310         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
311         Update comments.
312         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
313         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
314         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
315         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
316         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
317
318 2010-03-14  Bruno Haible  <bruno@clisp.org>
319
320         Fix values returned by sinl, cosl.
321         * lib/trigl.h: Add specification comments.
322         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
323         that combines the values from the precomputed table with the values of
324         the Chebyshev polynomials.
325
326 2010-03-14  Bruno Haible  <bruno@clisp.org>
327
328         Fix compilation error when modules 'posix_spawn[p]' are not used.
329         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
331
332 2010-03-14  Bruno Haible  <bruno@clisp.org>
333
334         Fix compilation error on mingw when module 'time_r' is not used.
335         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
336         is 1.
337         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
338         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
339         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
340         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
341
342 2010-03-14  Bruno Haible  <bruno@clisp.org>
343
344         Fix compilation error with Sun C.
345         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
346         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
347         instead of GCC specific ULONG_LONG_MAX.
348         * lib/xstrtoll.c: Likewise.
349         * lib/xstrtoull.c: Likewise.
350
351 2010-03-13  Bruno Haible  <bruno@clisp.org>
352
353         Allow the user to disable C++ code and tests.
354         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
355         (gl_PROG_ANSI_CXX): Require it.
356
357 2010-03-13  Bruno Haible  <bruno@clisp.org>
358
359         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
360         cases.
361
362 2010-03-13  Bruno Haible  <bruno@clisp.org>
363
364         Test that gnulib does not break the standard C++ headers.
365         * tests/test-locale-c++2.cc: New file.
366         * modules/locale-tests (Files): Add it.
367         (Makefile.am): Compile it for test-locale-c++.
368         * tests/test-math-c++2.cc: New file.
369         * modules/math-tests (Files): Add it.
370         (Makefile.am): Compile it for test-math-c++.
371         * tests/test-signal-c++2.cc: New file.
372         * modules/signal-tests (Files): Add it.
373         (Makefile.am): Compile it for test-signal-c++.
374         * tests/test-stdio-c++2.cc: New file.
375         * modules/stdio-tests (Files): Add it.
376         (Makefile.am): Compile it for test-stdio-c++.
377         * tests/test-stdlib-c++2.cc: New file.
378         * modules/stdlib-tests (Files): Add it.
379         (Makefile.am): Compile it for test-stdlib-c++.
380         * tests/test-string-c++2.cc: New file.
381         * modules/string-tests (Files): Add it.
382         (Makefile.am): Compile it for test-string-c++.
383         * tests/test-time-c++2.cc: New file.
384         * modules/time-tests (Files): Add it.
385         (Makefile.am): Compile it for test-time-c++.
386         Reported by John W. Eaton <jwe@gnu.org>.
387
388 2010-03-13  Bruno Haible  <bruno@clisp.org>
389
390         * gnulib-tool (func_usage): Clarify which options are available for
391         --create-testdir and --create-megatestdir.
392
393 2010-03-13  Bruno Haible  <bruno@clisp.org>
394
395         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
396         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
397         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
398         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
399         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
400         when appropriate.
401         Reported by Jim Meyering.
402
403 2010-03-12  Simon Josefsson  <simon@josefsson.org>
404
405         * gnulib-tool (func_import): Explain origin of code.
406
407 2010-03-12  Bruno Haible  <bruno@clisp.org>
408
409         Fix problem with automake's definition of CXXLINK.
410         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
411         Reported by Simon Josefsson and Ludovic Courtès.
412
413 2010-03-12  Bruno Haible  <bruno@clisp.org>
414
415         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
416         stable releases.
417
418 2010-03-11  Bruno Haible  <bruno@clisp.org>
419
420         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
421         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
422         whether the system provides one variant or multiple variants of the
423         function.
424         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
425         C++ compilers.
426         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
427         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
428         Reported by Jim Meyering.
429
430 2010-03-09  Simon Josefsson  <simon@josefsson.org>
431
432         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
433
434 2010-03-08  Bruno Haible  <bruno@clisp.org>
435
436         gnulib-tool: Add support for --libtool in --create-testdir.
437         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
438         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
439
440 2010-03-08  Eric Blake  <eblake@redhat.com>
441
442         gnulib-tool.texi: mention possibility of git submodule
443         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
444         submodules.
445         * doc/.gitignore: Ignore another generated file.
446
447 2010-03-08  Karl Berry  <karl@gnu.org>
448
449         * doc/gnulib-tool.texi (VCS Issues): Mention third option
450         of committing gnulib files while skipping others.
451
452 2010-03-07  Bruno Haible  <bruno@clisp.org>
453
454         Tests of module 'wctype' in C++ mode.
455         * tests/test-wctype-c++.cc: New file.
456         * modules/wctype-tests (Files): Add it and tests/signature.h.
457         (Depends-on): Add ansi-c++-opt.
458         (Makefile.am): Arrange to compile and run test-wctype-c++.
459
460         Tests of module 'wchar' in C++ mode.
461         * tests/test-wchar-c++.cc: New file.
462         * modules/wchar-tests (Files): Add it and tests/signature.h.
463         (Depends-on): Add ansi-c++-opt.
464         (Makefile.am): Arrange to compile and run test-wchar-c++.
465         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
466         gl_MODULE_INDICATOR.
467
468         Tests of module 'unistd' in C++ mode.
469         * tests/test-unistd-c++.cc: New file.
470         * modules/unistd-tests (Files): Add it and tests/signature.h.
471         (Depends-on): Add ansi-c++-opt.
472         (Makefile.am): Arrange to compile and run test-unistd-c++.
473         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
474         gl_MODULE_INDICATOR.
475
476         Tests of module 'time' in C++ mode.
477         * tests/test-time-c++.cc: New file.
478         * modules/time-tests (Files): Add it and tests/signature.h.
479         (Depends-on): Add ansi-c++-opt.
480         (Makefile.am): Arrange to compile and run test-time-c++.
481         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
482
483         Tests of module 'sys_time' in C++ mode.
484         * tests/test-sys_time-c++.cc: New file.
485         * modules/sys_time-tests (Files): Add it and tests/signature.h.
486         (Depends-on): Add ansi-c++-opt.
487         (Makefile.am): Arrange to compile and run test-sys_time-c++.
488         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
489         gl_MODULE_INDICATOR.
490
491         Tests of module 'sys_stat' in C++ mode.
492         * tests/test-sys_stat-c++.cc: New file.
493         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
494         (Depends-on): Add ansi-c++-opt.
495         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
496         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
497         gl_MODULE_INDICATOR.
498
499         Tests of module 'sys_socket' in C++ mode.
500         * tests/test-sys_socket-c++.cc: New file.
501         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
502         (Depends-on): Add ansi-c++-opt.
503         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
504         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
505         gl_MODULE_INDICATOR.
506
507         Tests of module 'sys_select' in C++ mode.
508         * tests/test-sys_select-c++.cc: New file.
509         * modules/sys_select-tests (Files): Add it and tests/signature.h.
510         (Depends-on): Add ansi-c++-opt.
511         (Makefile.am): Arrange to compile and run test-sys_select-c++.
512         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
513         gl_MODULE_INDICATOR.
514
515         Tests of module 'sys_ioctl' in C++ mode.
516         * tests/test-sys_ioctl-c++.cc: New file.
517         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
518         (Depends-on): Add ansi-c++-opt.
519         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
521         gl_MODULE_INDICATOR.
522
523         Tests of module 'string' in C++ mode.
524         * tests/test-string-c++.cc: New file.
525         * modules/string-tests (Files): Add it and tests/signature.h.
526         (Depends-on): Add ansi-c++-opt.
527         (Makefile.am): Arrange to compile and run test-string-c++.
528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
529         gl_MODULE_INDICATOR.
530
531         Tests of module 'stdlib' in C++ mode.
532         * tests/test-stdlib-c++.cc: New file.
533         * modules/stdlib-tests (Files): Add it and tests/signature.h.
534         (Depends-on): Add ansi-c++-opt.
535         (Makefile.am): Arrange to compile and run test-stdlib-c++.
536         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
537         gl_MODULE_INDICATOR.
538
539         Tests of module 'stdio' in C++ mode.
540         * tests/test-stdio-c++.cc: New file.
541         * modules/stdio-tests (Files): Add it and tests/signature.h.
542         (Depends-on): Add ansi-c++-opt.
543         (Makefile.am): Arrange to compile and run test-stdio-c++.
544         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
545         gl_MODULE_INDICATOR.
546
547         Tests of module 'spawn' in C++ mode.
548         * tests/test-spawn-c++.cc: New file.
549         * modules/spawn-tests (Files): Add it and tests/signature.h.
550         (Depends-on): Add ansi-c++-opt.
551         (Makefile.am): Arrange to compile and run test-spawn-c++.
552         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
553         gl_MODULE_INDICATOR.
554
555         Tests of module 'signal' in C++ mode.
556         * tests/test-signal-c++.cc: New file.
557         * modules/signal-tests (Files): Add it and tests/signature.h.
558         (Depends-on): Add ansi-c++-opt.
559         (Makefile.am): Arrange to compile and run test-signal-c++.
560         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
561         gl_MODULE_INDICATOR.
562
563         Tests of module 'search' in C++ mode.
564         * tests/test-search-c++.cc: New file.
565         * modules/search-tests (Files): Add it and tests/signature.h.
566         (Depends-on): Add ansi-c++-opt.
567         (Makefile.am): Arrange to compile and run test-search-c++.
568         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
569         gl_MODULE_INDICATOR.
570
571         Tests of module 'math' in C++ mode.
572         * tests/test-math-c++.cc: New file.
573         * modules/math-tests (Files): Add it and tests/signature.h.
574         (Depends-on): Add ansi-c++-opt.
575         (Makefile.am): Arrange to compile and run test-math-c++.
576         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
577
578         Tests of module 'locale' in C++ mode.
579         * tests/test-locale-c++.cc: New file.
580         * modules/locale-tests (Files): Add it and tests/signature.h.
581         (Depends-on): Add ansi-c++-opt.
582         (Makefile.am): Arrange to compile and run test-locale-c++.
583         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
584         gl_MODULE_INDICATOR.
585
586         Tests of module 'langinfo' in C++ mode.
587         * tests/test-langinfo-c++.cc: New file.
588         * modules/langinfo-tests (Files): Add it and tests/signature.h.
589         (Depends-on): Add ansi-c++-opt.
590         (Makefile.am): Arrange to compile and run test-langinfo-c++.
591         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
592         gl_MODULE_INDICATOR.
593
594         Tests of module 'iconv-h' in C++ mode.
595         * tests/test-iconv-h-c++.cc: New file.
596         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
597         (Depends-on): Add ansi-c++-opt.
598         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
599
600         Tests of module 'glob' in C++ mode.
601         * tests/test-glob-c++.cc: New file.
602         * modules/glob-tests (Files): Add it.
603         (Depends-on): Add ansi-c++-opt.
604         (Makefile.am): Arrange to compile and run test-glob-c++.
605
606         Tests of module 'fcntl-h' in C++ mode.
607         * tests/test-fcntl-h-c++.cc: New file.
608         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
609         (Depends-on): Add ansi-c++-opt.
610         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
611         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
612         gl_MODULE_INDICATOR.
613
614         Tests of module 'dirent' in C++ mode.
615         * tests/test-dirent-c++.cc: New file.
616         * modules/dirent-tests (Files): Add it and tests/signature.h.
617         (Depends-on): Add ansi-c++-opt.
618         (Makefile.am): Arrange to compile and run test-dirent-c++.
619         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
620         gl_MODULE_INDICATOR.
621
622         New module 'ansi-c++-opt'.
623         * modules/ansi-c++-opt: New file.
624         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
625
626         Document C++ namespace mode.
627         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
628
629         wctype: Avoid #define replacements in C++ mode.
630         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
631         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
632         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
633         In C++, define a namespaced alias symbol.
634         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
635         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
636         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
637         rule.
638
639         wchar: Avoid #define replacements in C++ mode.
640         * lib/wchar.in.h: Include c++defs.h.
641         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
642         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
643         symbol.
644         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
645         * modules/wchar (Depends-on): Add c++defs.
646         (Makefile.am): Update wchar.h rule.
647
648         unistd: Avoid #define replacements in C++ mode.
649         * lib/unistd.in.h: Include c++defs.h.
650         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
651         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
652         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
653         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
654         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
655         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
656         symbol.
657         (environ): Update.
658         * modules/unistd (Depends-on): Add c++defs.
659         (Makefile.am): Update unistd.h rule.
660
661         time: Avoid #define replacements in C++ mode.
662         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
663         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
664         define a namespaced alias symbol.
665         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
666         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
667         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
668         * modules/time (Depends-on): Add c++defs, warn-on-use.
669         (Makefile.am): Update time.h rule.
670         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
671         * modules/nanosleep (configure.ac): Likewise.
672         * modules/strptime (configure.ac): Likewise.
673         * modules/timegm (configure.ac): Likewise.
674
675         sys_time: Avoid #define replacements in C++ mode.
676         * lib/sys_time.in.h: Include c++defs.h.
677         (gettimeofday): In C++, define a namespaced alias symbol.
678         * modules/sys_time (Depends-on): Add c++defs.
679         (Makefile.am): Update sys/time.h rule.
680
681         sys_stat: Avoid #define replacements in C++ mode.
682         * lib/sys_stat.in.h: Include c++defs.h.
683         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
684         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
685         namespaced alias symbol.
686         In C++, define a namespaced alias symbol.
687         * modules/sys_stat (Depends-on): Add c++defs.
688         (Makefile.am): Update sys/stat.h rule.
689
690         sys_socket: Avoid #define replacements in C++ mode.
691         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
692         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
693         definitions also when the system has a <sys/socket.h>.
694         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
695         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
696         In C++, define a namespaced alias symbol.
697         * modules/sys_socket (Depends-on): Add c++defs.
698         (Makefile.am): Update sys/socket.h rule.
699
700         sys_select: Avoid #define replacements in C++ mode.
701         * lib/sys_select.in.h: Include c++defs.h. Enable the function
702         definitions also when the system has a <sys/select.h>.
703         (select): In C++, define a namespaced alias symbol.
704         * modules/sys_select (Depends-on): Add c++defs.
705         (Makefile.am): Update sys/select.h rule.
706
707         sys_ioctl: Avoid #define replacements in C++ mode.
708         * lib/sys_ioctl.in.h: Include c++defs.h.
709         (ioctl): In C++, define a namespaced alias symbol.
710         * modules/sys_ioctl (Depends-on): Add c++defs.
711         (Makefile.am): Update sys/ioctl.h rule.
712
713         string: Avoid #define replacements in C++ mode.
714         * lib/string.in.h: Include c++defs.h.
715         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
716         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
717         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
718         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
719         strsignal, strverscmp): In C++, define a namespaced alias symbol.
720         * modules/string (Depends-on): Add c++defs.
721         (Makefile.am): Update string.h rule.
722
723         stdlib: Avoid #define replacements in C++ mode.
724         * lib/stdlib.in.h: Include c++defs.h.
725         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
726         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
727         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
728         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
729         symbol.
730         * modules/stdlib (Depends-on): Add c++defs.
731         (Makefile.am): Update stdlib.h rule.
732
733         stdio: Avoid #define replacements in C++ mode.
734         * lib/stdio.in.h: Include c++defs.h.
735         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
736         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
737         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
738         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
739         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
740         namespaced alias symbol.
741         * modules/stdio (Depends-on): Add c++defs.
742         (Makefile.am): Update stdio.h rule.
743
744         spawn: Avoid #define replacements in C++ mode.
745         * lib/spawn.in.h: Include c++defs.h.
746         (posix_spawn, posix_spawnp, posix_spawnattr_init,
747         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
748         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
749         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
750         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
751         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
752         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
753         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
754         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
755         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
756         In C++, define a namespaced alias symbol.
757         * modules/spawn (Depends-on): Add c++defs.
758         (Makefile.am): Update spawn.h rule.
759
760         signal: Avoid #define replacements in C++ mode.
761         * lib/signal.in.h: Include c++defs.h.
762         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
763         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
764         namespaced alias symbol.
765         * modules/signal (Depends-on): Add c++defs.
766         (Makefile.am): Update signal.h rule.
767
768         search: Avoid #define replacements in C++ mode.
769         * lib/search.in.h: Include c++defs.h.
770         (_gl_search_compar_fn, _gl_search_action_fn): New types.
771         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
772         symbol.
773         * modules/search (Depends-on): Add c++defs.
774         (Makefile.am): Update search.h rule.
775
776         math: Avoid #define replacements in C++ mode.
777         * lib/math.in.h: Include c++defs.h.
778         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
779         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
780         trunc, truncl): In C++, define a namespaced alias symbol.
781         * modules/math (Depends-on): Add c++defs.
782         (Makefile.am): Update math.h rule.
783
784         locale: Avoid #define replacements in C++ mode.
785         * lib/locale.in.h: Include c++defs.h.
786         (duplocale): In C++, define a namespaced alias symbol.
787         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
788         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
789         * modules/locale (Depends-on): Add c++defs.
790         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
791
792         langinfo: Avoid #define replacements in C++ mode.
793         * lib/langinfo.in.h: Include c++defs.h.
794         (nl_langinfo): In C++, define a namespaced alias symbol.
795         * modules/langinfo (Depends-on): Add c++defs.
796         (Makefile.am): Update langinfo.h rule.
797
798         iconv-h: Avoid #define replacements in C++ mode.
799         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
800         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
801         symbol.
802         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
803         whenever iconv is present.
804         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
805         (Makefile.am): Update iconv.h rule.
806
807         glob: Avoid #define replacements in C++ mode.
808         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
809         (_gl_glob_errfunc_fn): New type.
810         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
811         symbol.
812         * modules/glob (Depends-on): Add c++defs, warn-on-use.
813         (Makefile.am): Update glob.h rule.
814
815         fcntl-h: Avoid #define replacements in C++ mode.
816         * lib/fcntl.in.h: Include c++defs.h.
817         (fcntl, open, openat): In C++, define a namespaced alias symbol.
818         * modules/fcntl-h (Depends-on): Add c++defs.
819         (Makefile.am): Update fcntl.h rule.
820
821         dirent: Avoid #define replacements in C++ mode.
822         * lib/dirent.in.h: Include c++defs.h.
823         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
824         namespaced alias symbol.
825         (dirfd): Update declaration.
826         * modules/dirent (Depends-on): Add c++defs.
827         (Makefile.am): Update dirent.h rule.
828
829         ctype: Make it usable in C++ code.
830         * lib/ctype.in.h: Include c++defs.h.
831         (isblank): Declare as extern "C".
832         * modules/ctype (Depends-on): Add c++defs.
833         (Makefile.am): Update ctype.h rule.
834
835         New module 'c++defs'.
836         * modules/c++defs: New file.
837         * build-aux/c++defs.h: New file.
838         Reported by John W. Eaton <jwe@gnu.org>.
839
840 2010-03-07  Bruno Haible  <bruno@clisp.org>
841
842         logb: Provide missing declaration for Cygwin.
843         * lib/math.in.h (logb): New declaration.
844         * m4/logb.m4: New file.
845         * modules/logb (Files): Add m4/logb.m4.
846         (Depends-on): Add math.
847         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
848         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
850         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
851         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
852
853 2010-03-07  Bruno Haible  <bruno@clisp.org>
854
855         Fix test-cond link error.
856         * tests/test-cond.c: Include <stdio.h>.
857
858 2010-03-07  Bruno Haible  <bruno@clisp.org>
859
860         Fix test-dirent-safer link error.
861         * modules/dirent-safer-tests (Makefile.am): Define
862         test_dirent_safer_LDADD.
863
864 2010-03-07  Bruno Haible  <bruno@clisp.org>
865
866         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
867         among default module list.
868
869 2010-03-07  Bruno Haible  <bruno@clisp.org>
870
871         Fix link error on platforms with GNU libiconv.
872         * modules/unistr/u8-strcoll-tests (Makefile): Define
873         test_u8_strcoll_LDADD.
874         * modules/unistr/u16-strcoll-tests (Makefile): Define
875         test_u16_strcoll_LDADD.
876         * modules/unistr/u32-strcoll-tests (Makefile): Define
877         test_u32_strcoll_LDADD.
878
879 2010-03-07  Bruno Haible  <bruno@clisp.org>
880
881         Use POSIX declarations for socket functions.
882         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
883         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
884         rpl_sendto): Change declaration to match POSIX.
885         * lib/connect.c (rpl_connect): Likewise.
886         * lib/accept.c (rpl_accept): Likewise.
887         * lib/bind.c (rpl_bind): Likewise.
888         * lib/getpeername.c (rpl_getpeername): Likewise.
889         * lib/getsockname.c (rpl_getsockname): Likewise.
890         * lib/recv.c (rpl_recv): Likewise.
891         * lib/send.c (rpl_send): Likewise.
892         * lib/recvfrom.c (rpl_recvfrom): Likewise.
893         * lib/sendto.c (rpl_sendto): Likewise.
894
895 2010-03-06  Bruno Haible  <bruno@clisp.org>
896
897         Clarify access, euidaccess, faccessat.
898         * doc/posix-functions/faccessat.texi: Mention security problem under
899         "Other problems", not "Portability problems".
900         * doc/posix-functions/access.texi: Likewise. Mention a related security
901         problem.
902         * doc/glibc-functions/euidaccess.texi: Mention security problems.
903         * lib/euidaccess.c: Add comments about platforms.
904         * lib/unistd.in.h (access, euidaccess): Add warnings.
905
906 2010-03-07  Bruno Haible  <bruno@clisp.org>
907
908         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
909         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
910         (POSIX_SPAWN_SETSCHEDULER): Likewise.
911         (POSIX_SPAWN_USEVFORK): Define in a way that works when
912         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
913         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
914         declare when POSIX_SPAWN_SETSCHEDULER is zero.
915         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
916         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
917         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
918         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
919         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
920         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
921         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
922         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
923         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
924         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
925         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
926         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
927         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
928         Likewise.
929         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
930         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
931         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
932         Likewise.
933         * tests/test-spawn.c (main): Make it work when
934         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
935
936 2010-03-07  Bruno Haible  <bruno@clisp.org>
937
938         Fix incorrect Makefile.am generation in German locale.
939         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
940         Execute sed command with character range in C locale.
941
942 2010-03-06  Bruno Haible  <bruno@clisp.org>
943
944         Tests for module 'iconv-h'.
945         * modules/iconv-h-tests: New file.
946         * tests/test-iconv-h.c: New file.
947
948         New module 'iconv-h'.
949         * modules/iconv-h: New file.
950         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
951         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
952         (configure.ac): Remove gl_ICONV_H.
953         (Makefile.am): Remove rule for iconv.h.
954
955 2010-03-06  Bruno Haible  <bruno@clisp.org>
956
957         More consistent naming of *.m4 files.
958         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
959         * modules/wctype (Files): Update.
960
961         More consistent naming of *.m4 files.
962         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
963         * modules/wchar (Files): Update.
964
965 2010-03-06  Jim Meyering  <meyering@redhat.com>
966
967         euidaccess: relax license to LGPLv2+
968         * modules/euidaccess (License): Relax to LGPLv2+.
969
970 2010-03-06  Bruno Haible  <bruno@clisp.org>
971
972         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
973         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
974         (Makefile.am): Augment lib_SOURCES instead.
975
976 2010-03-04  Jim Meyering  <meyering@redhat.com>
977
978         utime: remove obsolete module
979         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
980         unnecessary for years, and has been marked as obsolete for 10 months.
981         * modules/utime: Remove file.
982         * lib/utime.c: Remove file.
983         * m4/utime.m4: Remove file.
984         * m4/utimes-null.m4: Remove file.
985         * doc/posix-functions/utime.texi (utime): Remove reference to
986         the module.  Move the sole "fixed by gnulib" item into the
987         "problems not fixed by Gnulib" list.
988         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
989
990 2010-03-05  Simon Josefsson  <simon@josefsson.org>
991
992         * modules/exit (License): Relax license to LGPLv2+.
993         (Status): Mark as obsolete.
994         * NEWS: Mention deprecated 'exit' module.
995         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
996         of now obsolete 'exit'.
997
998 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
999
1000         fts-lgpl: remove unused module
1001         * modules/fts-lgpl: Remove.
1002         * MODULES.html.sh (func_all_modules): Adjust.
1003         * check-module (find_included_lib_files): Adjust.
1004         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1005
1006 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1007
1008         copy-acl: enhance Solaris ACL error handling
1009         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1010         * lib/set-mode-acl.c (qset_acl): Likewise.
1011
1012 2010-03-02  Bruno Haible  <bruno@clisp.org>
1013
1014         spawn: Don't override the system defined values on FreeBSD 8.
1015         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1016         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1017         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1018         if HAVE_POSIX_SPAWN is 1.
1019         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1020
1021 2010-03-01  Bruno Haible  <bruno@clisp.org>
1022
1023         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1024         regarding Automake.
1025
1026 2010-02-25  Bruno Haible  <bruno@clisp.org>
1027
1028         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1029         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1030         setting, not afterwards.
1031         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1032
1033 2010-02-24  Eric Blake  <eblake@redhat.com>
1034
1035         bootstrap, git-version-gen: use timestamp
1036         * build-aux/git-version-gen (scriptversion): Force UTC.
1037         * build-aux/bootstrap (scriptversion): New variable.
1038
1039         bootstrap: allow older git
1040         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1041         older than 1.6.4.  Requested by the libvirt project.
1042
1043 2010-02-23  Eric Blake  <eblake@redhat.com>
1044
1045         warn-on-use: work with old autoconf
1046         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1047         AS_VAR semantics of autoconf 2.60.
1048         Reported by Bruno Haible.
1049
1050         bootstrap: improve some comments
1051         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1052         clarification comments.
1053
1054         gettimeofday: provide correct function
1055         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1056         when replacement is declared, otherwise provide gettimeofday.
1057         Reported by Michael Goffioul.
1058
1059 2010-02-23  Jim Meyering  <meyering@redhat.com>
1060
1061         lib-ignore: relax license to "unlimited", not LGPLv2+
1062         * modules/lib-ignore (License): Relax to "unlimited".
1063
1064 2010-02-23  Jim Meyering  <meyering@redhat.com>
1065
1066         lib-ignore: relax license to LGPLv2+
1067         * modules/lib-ignore (License): Relax to LGPLv2+.
1068
1069 2010-02-22  Eric Blake  <eblake@redhat.com>
1070
1071         lseek: avoid bash 3.2 broken pipe bug
1072         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1073         warning from bash 3.2.
1074         Reported by Ben Pfaff, with analysis from Bruno Haible.
1075
1076         bootstrap: support non-FSF copyright holder
1077         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1078         bootstrap.conf override of COPYRIGHT_HOLDER.
1079         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1080
1081         bootstrap: interoperate with gettext 0.14.1
1082         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1083
1084         bootstrap: allow for alternate submodule location
1085         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1086         hardcoding submodule location.
1087         (gnulib_mk): Allow direct use of Makefile.am.
1088
1089         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1090         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1091         rather than reconfiguring where the submodule points.
1092
1093         gettimeofday: restore support for platforms that lack function
1094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1095         replacement if function is missing.
1096         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1097         * modules/sys_time (Makefile.am): Substitute it.
1098         * lib/sys_time.in.h (gettimeofday): Check it.
1099         Reported by Michael Goffioul.
1100
1101 2010-02-21  Bruno Haible  <bruno@clisp.org>
1102
1103         * lib/stdio.in.h (obstack_printf): Fix typo.
1104
1105 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1106
1107         vc-list-files: use bzr ls's -R option
1108         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1109         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1110
1111 2010-02-21  Jim Meyering  <meyering@redhat.com>
1112
1113         init.sh: fix EXEEXT shims to work also for names like test-prog
1114         * tests/init.sh: Re-exec a better shell, when needed.
1115         If the current shell lacks support for posix $(...), an init.sh-using
1116         test will now try to find a shell that supports that.  If EXEEXT is
1117         nonempty, we also require support for hyphen-in-alias-name and shell
1118         substitutions like ${var#glob}.  Failure to find such a shell results
1119         in a skipped test.
1120
1121 2010-02-21  Bruno Haible  <bruno@clisp.org>
1122
1123         Really work around around "broken pipe" error message from bash 3.2.
1124         * gnulib-tool (func_reset_sigpipe): Remove function.
1125         (echo): In bash 3.2, define to a function that uses printf.
1126         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1127
1128 2010-02-20  Bruno Haible  <bruno@clisp.org>
1129
1130         Restore support for automake 1.9.6 with autoconf 2.61.
1131         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1132         Reported by James Youngman <jay@gnu.org>.
1133
1134 2010-02-20  Bruno Haible  <bruno@clisp.org>
1135
1136         Improve *printf warning condition.
1137         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1138         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1139         and the function is overridden due to SIGPIPE emulation.
1140
1141 2010-02-20  Bruno Haible  <bruno@clisp.org>
1142
1143         * lib/stdio.in.h: Tweak comments.
1144
1145 2010-02-19  Bruno Haible  <bruno@clisp.org>
1146
1147         Make it easier to find modules. New gnulib-tool option '--find'.
1148         * gnulib-tool: New option --find.
1149         (func_usage): Document it.
1150         (func_sanitize_modulelist): New function, extracted from
1151         func_all_modules.
1152         (func_all_modules): Invoke it.
1153         * doc/gnulib-tool.texi (Which modules?): New node.
1154
1155 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1156
1157         * lib/sys_select.in.h: Provide select replacement even if
1158         sys/select.h exists on a system, for Interix.
1159
1160 2010-02-18  Jim Meyering  <meyering@redhat.com>
1161
1162         init.sh: don't use $(...) just yet
1163         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1164         to accommodate e.g., Solaris' /bin/sh.
1165
1166 2010-02-17  Bruno Haible  <bruno@clisp.org>
1167
1168         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1169         Reported by Ludovic Courtès <ludo@gnu.org>.
1170
1171 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1172
1173         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1174         linking with -lintl.
1175
1176 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1177
1178         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1179         if not provided by the system's netdb.h.  Reported by
1180         ludo@gnu.org (Ludovic Courtès).
1181
1182 2010-02-15  Jim Meyering  <meyering@redhat.com>
1183
1184         init.sh: improve portability and efficiency
1185         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1186         "dummy" in a for loop.
1187         Use '!', not '^' to select the complement of a character set used
1188         in a "case" statement.
1189         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1190         Suggestions from Eric Blake.
1191
1192         init.sh: automatically accommodate programs with the .exe suffix
1193         Automatically arrange for an invocation of "prog" to execute the
1194         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1195         may use the simpler "prog", yet still work when built on a system
1196         that requires specifying the added suffix.
1197         Do this by constructing a function named "prog" that invokes
1198         "prog.exe" for each .exe file in selected directories.
1199         * tests/init.sh (find_exe_basenames_): New function.
1200         (create_exe_shim_functions_): New function.
1201         (path_prepend_): Use it.
1202
1203         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1204         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1205         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1206
1207 2010-02-14  Jim Meyering  <meyering@redhat.com>
1208
1209         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1210         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1211         (sc_prohibit_hash_pjw_without_use): New rule.
1212
1213         maint.mk: allow the default upload destination dir to be overridden
1214         * top/maint.mk (upload_dest_dir_): Define with a default that
1215         preserves the status quo.
1216         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1217         Reported by Peter Simons.
1218
1219         maint.mk: prohibit inclusion of "hash.h" without_use
1220         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1221
1222 2010-02-10  Jim Meyering  <meyering@redhat.com>
1223
1224         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1225         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1226
1227 2010-02-09  Eric Blake  <ebb9@byu.net>
1228         and Bruno Haible  <bruno@clisp.org>
1229
1230         obstack-printf-posix: ensure declaration
1231         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1232         extracted from gl_FUNC_OBSTACK_PRINTF.
1233         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1234         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1235         Likewise.
1236         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1237         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1238         0.
1239
1240 2010-02-08  Bruno Haible  <bruno@clisp.org>
1241
1242         gnulib-tool: Fix typo in 2010-02-07 commit.
1243         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1244         Reported by Eric Blake.
1245
1246 2010-02-07  Bruno Haible  <bruno@clisp.org>
1247
1248         gnulib-tool: Fix up caching patches.
1249         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1250         option --no-cache. Use associative arrays when supported by the shell.
1251         (sed_comments): New variable.
1252         (modcache): Renamed from do_cache.
1253         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1254         abbreviate unnecessarily.
1255         (have_associative): New variable.
1256         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1257         way also for ksh and zsh.
1258         (func_init_sed_convert_to_cache_statements): New function, extracted
1259         from func_cache_lookup_module. Add support for associative arrays.
1260         Don't set the c_MODULE_cached variable here. Ignore all lines before
1261         the first field header. Remove only the final newline, not all trailing
1262         newlines. Support empty fields correctly. Limit the use of 'eval' to
1263         assignments.
1264         (func_get_description, func_get_status, func_get_notice,
1265         func_get_applicability, func_get_filelist, func_get_dependencies,
1266         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1267         func_get_automake_snippet, func_get_include_directive,
1268         func_get_link_directive, func_get_license, func_get_maintainer):
1269         Update documentation. List the unoptimized code first. Add support for
1270         associative arrays. Limit the use of 'eval' to assignments.
1271         (func_get_applicability): Undo stylistic pessimisations.
1272         (func_get_automake_snippet, func_get_include_directive): Reduce code
1273         duplication.
1274         (func_modules_transitive_closure, func_modules_add_dummy,
1275         func_modules_notice, func_modules_to_filelist, func_add_file,
1276         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1277         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1278         func_create_testdir, func_create_megatestdir): Update documentation.
1279
1280 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1281
1282         * gnulib-tool (func_cache_lookup_module): Store the module name
1283         belonging to the cache variable; error out if two different
1284         module names map to the same cache variable name.
1285
1286 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1287
1288         gnulib-tool: Make caching optional.
1289         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1290         Update matching short versions of --no-changelog.
1291         (func_usage): Update.
1292         (sed_extract_cache_prog): Renamed from ...
1293         (sed_extract_prog): ... this; revert to old extraction script.
1294         (func_get_description, func_get_status)
1295         (func_get_notice, func_get_applicability, func_get_filelist)
1296         (func_get_dependencies, func_get_autoconf_early_snippet)
1297         (func_get_autoconf_snippet, func_get_automake_snippet)
1298         (func_get_include_directive, func_get_link_directive)
1299         (func_get_license, func_get_maintainer): If $do_cache is false,
1300         use old, non-caching extraction scripts.
1301         Suggestion by Bruno Haible.
1302
1303 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1304
1305         gnulib-tool: cache module metainformation.
1306         * gnulib-tool (sed_extract_prog): Match newline before each
1307         header, and rewrite header to a shell variable suffix.
1308         (func_cache_var, func_cache_lookup_module): New functions,
1309         to turn a module name into a cache variable prefix, and to
1310         look up and cache module metainformation.
1311         (func_get_description, func_get_status)
1312         (func_get_notice, func_get_applicability, func_get_filelist)
1313         (func_get_dependencies, func_get_autoconf_early_snippet)
1314         (func_get_autoconf_snippet, func_get_automake_snippet)
1315         (func_get_include_directive, func_get_link_directive)
1316         (func_get_license, func_get_maintainer): Use
1317         func_cache_lookup_module.
1318
1319 2010-02-07  Bruno Haible  <bruno@clisp.org>
1320
1321         fnctl: Fix missing dependency.
1322         * modules/fcntl (Depends-on): Add getdtablesize.
1323         Reported by John W. Eaton <jwe@gnu.org>.
1324
1325 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1326
1327         Argp: fix recognition of short alias options.
1328
1329         * lib/argp-parse.c (convert_options): Fix improper use of
1330         `|' between character values.
1331         * tests/test-argp.c (group1_option): New alias option
1332         --read (-r).
1333         (group1_parser): Special handling for 'r'.
1334         (test15): New test case.
1335         (test_fun): Add test15.
1336         * tests/test-argp-2.sh: Update expected --help and --usage
1337         outputs.
1338
1339 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1340
1341         * tests/test-argp.c: Fix indentation.
1342
1343 2010-02-04  Eric Blake  <ebb9@byu.net>
1344
1345         gettimeofday: expose type of second argument
1346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1347         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1348         * tests/test-gettimeofday.c: Use it to silence warning.
1349         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1350         the issue.
1351
1352 2010-02-03  Jim Meyering  <meyering@redhat.com>
1353
1354         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1355         * lib/regcomp.c (TYPE_SIGNED): Define.
1356         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1357
1358         regcomp.c: avoid a new -Wshadow warning
1359         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1360
1361 2010-02-01  Jim Meyering  <meyering@redhat.com>
1362
1363         removing useless parentheses in cpp #define directives
1364         For motivation, see commit c0221df4, "define STREQ(a,b)
1365         consistently, removing useless parentheses"
1366         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1367         * lib/mountlist.c (MNT_IGNORE): Likewise.
1368         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1369
1370 2010-02-01  Eric Blake  <ebb9@byu.net>
1371
1372         sys_time: use link-warning
1373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1374         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1375         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1376         * modules/sys_time (Depends-on): Add warn-on-use.
1377         (Makefile.am): Always build replacement.
1378         (configure.ac): Update substitutions.
1379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1380         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1381         bother with SYS_TIME_H.
1382         * modules/gettimeofday (configure.ac): Declare indicator.
1383         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1384         in use.
1385
1386         closein-tests: silence compiler warning
1387         * tests/test-closein.c (main): Ignore fread result.
1388         * modules/closein-tests (Depends-on): Add ignore-value.
1389
1390         tests: silence warning about system return
1391         * tests/test-areadlink-with-size.c (main): Ignore system result.
1392         * tests/test-areadlink.c (main): Likewise.
1393         * tests/test-areadlinkat-with-size.c (main): Likewise.
1394         * tests/test-areadlinkat.c (main): Likewise.
1395         * tests/test-canonicalize-lgpl.c (main): Likewise.
1396         * tests/test-canonicalize.c (main): Likewise.
1397         * tests/test-chown.c (main): Likewise.
1398         * tests/test-fchownat.c (main): Likewise.
1399         * tests/test-fdutimensat.c (main): Likewise.
1400         * tests/test-fstatat.c (main): Likewise.
1401         * tests/test-futimens.c (main): Likewise.
1402         * tests/test-lchown.c (main): Likewise.
1403         * tests/test-link.c (main): Likewise.
1404         * tests/test-linkat.c (main): Likewise.
1405         * tests/test-lstat.c (main): Likewise.
1406         * tests/test-mkdir.c (main): Likewise.
1407         * tests/test-mkdirat.c (main): Likewise.
1408         * tests/test-mkfifo.c (main): Likewise.
1409         * tests/test-mkfifoat.c (main): Likewise.
1410         * tests/test-mknod.c (main): Likewise.
1411         * tests/test-readlink.c (main): Likewise.
1412         * tests/test-remove.c (main): Likewise.
1413         * tests/test-rename.c (main): Likewise.
1414         * tests/test-renameat.c (main): Likewise.
1415         * tests/test-rmdir.c (main): Likewise.
1416         * tests/test-symlink.c (main): Likewise.
1417         * tests/test-symlinkat.c (main): Likewise.
1418         * tests/test-unlink.c (main): Likewise.
1419         * tests/test-unlinkat.c (main): Likewise.
1420         * tests/test-utimens.c (main): Likewise.
1421         * tests/test-utimensat.c (main): Likewise.
1422         * modules/areadlink-tests (Depends-on): Add ignore-value.
1423         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1424         * modules/areadlinkat-tests (Depends-on): Likewise.
1425         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1426         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1427         * modules/canonicalize-tests (Depends-on): Likewise.
1428         * modules/chown-tests (Depends-on): Likewise.
1429         * modules/fdutimensat-tests (Depends-on): Likewise.
1430         * modules/futimens-tests (Depends-on): Likewise.
1431         * modules/lchown-tests (Depends-on): Likewise.
1432         * modules/link-tests (Depends-on): Likewise.
1433         * modules/linkat-tests (Depends-on): Likewise.
1434         * modules/lstat-tests (Depends-on): Likewise.
1435         * modules/mkdir-tests (Depends-on): Likewise.
1436         * modules/mkfifo-tests (Depends-on): Likewise.
1437         * modules/mkfifoat-tests (Depends-on): Likewise.
1438         * modules/mknod-tests (Depends-on): Likewise.
1439         * modules/openat-tests (Depends-on): Likewise.
1440         * modules/readlink-tests (Depends-on): Likewise.
1441         * modules/remove-tests (Depends-on): Likewise.
1442         * modules/rename-tests (Depends-on): Likewise.
1443         * modules/renameat-tests (Depends-on): Likewise.
1444         * modules/rmdir-tests (Depends-on): Likewise.
1445         * modules/symlink-tests (Depends-on): Likewise.
1446         * modules/symlinkat-tests (Depends-on): Likewise.
1447         * modules/unlink-tests (Depends-on): Likewise.
1448         * modules/utimens-tests (Depends-on): Likewise.
1449         * modules/utimensat-tests (Depends-on): Likewise.
1450
1451 2010-01-31  Bruno Haible  <bruno@clisp.org>
1452
1453         Perform the same test for many <math.h> functions.
1454         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1455         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1456         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1457         of gl_MATHFUNC.
1458         * modules/acos (configure.ac): Likewise.
1459         * modules/asin (configure.ac): Likewise.
1460         * modules/atan (configure.ac): Likewise.
1461         * modules/atan2 (configure.ac): Likewise.
1462         * modules/cbrt (configure.ac): Likewise.
1463         * modules/copysign (configure.ac): Likewise.
1464         * modules/cos (configure.ac): Likewise.
1465         * modules/cosh (configure.ac): Likewise.
1466         * modules/erf (configure.ac): Likewise.
1467         * modules/erfc (configure.ac): Likewise.
1468         * modules/exp (configure.ac): Likewise.
1469         * modules/fmod (configure.ac): Likewise.
1470         * modules/hypot (configure.ac): Likewise.
1471         * modules/j0 (configure.ac): Likewise.
1472         * modules/j1 (configure.ac): Likewise.
1473         * modules/jn (configure.ac): Likewise.
1474         * modules/lgamma (configure.ac): Likewise.
1475         * modules/log (configure.ac): Likewise.
1476         * modules/log10 (configure.ac): Likewise.
1477         * modules/log1p (configure.ac): Likewise.
1478         * modules/pow (configure.ac): Likewise.
1479         * modules/remainder (configure.ac): Likewise.
1480         * modules/sin (configure.ac): Likewise.
1481         * modules/sinh (configure.ac): Likewise.
1482         * modules/tan (configure.ac): Likewise.
1483         * modules/tanh (configure.ac): Likewise.
1484         * modules/y0 (configure.ac): Likewise.
1485         * modules/y1 (configure.ac): Likewise.
1486         * modules/yn (configure.ac): Likewise.
1487         Suggested by Paolo Bonzini.
1488
1489 2010-01-31  Bruno Haible  <bruno@clisp.org>
1490
1491         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1492
1493 2010-01-31  Bruno Haible  <bruno@clisp.org>
1494
1495         Work around getdelim() bug on FreeBSD 8.0.
1496         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1497         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1498         not work.
1499         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1500         is 1.
1501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1502         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1503         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1504         a non-zero size.
1505         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1506
1507 2010-01-31  Bruno Haible  <bruno@clisp.org>
1508
1509         Work around getline() bug on FreeBSD 8.0.
1510         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1511         and a non-zero size.
1512         * tests/test-getline.c (main): Likewise.
1513         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1514         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1515
1516 2010-01-28  Eric Blake  <ebb9@byu.net>
1517
1518         regex: fix build failure
1519         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1520         platforms.
1521
1522 2010-01-28  Jim Meyering  <meyering@redhat.com>
1523
1524         regex: do not ignore memory allocation failure
1525         * lib/regex_internal.c (create_cd_newstate): Detect
1526         re_node_set_init_copy failure.   Extracted from glibc commit
1527         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1528
1529         regex: sync more white-space changes from libc
1530         * lib/regex_internal.c: White-space only changes.
1531         * lib/regexec.c: Likewise.
1532
1533         regex: add many uses of __attribute_warn_unused_result__
1534         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1535         * lib/regexec.c: Likewise.
1536         Extracted from a messy glibc commit.
1537
1538         regcomp.c: spelling and merge-artifact from glibc
1539         * lib/regcomp.c: Merge remainder of glibc's
1540         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1541
1542         regcomp.c: sync white-space changes from glibc
1543         * lib/regcomp.c: Merge to accommodate white space
1544         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1545
1546         regcomp.c: do not ignore internal return values
1547         * lib/regcomp.c: Do not ignore internal return values.
1548         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1549         but without its white-space changes and spelling fixes.
1550
1551         regex_internal.h: define __attribute_warn_unused_result__
1552         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1553
1554         maint: add a syntax-check rule to check for vulnerable Makefile.in
1555         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1556
1557 2010-01-27  Jim Meyering  <meyering@redhat.com>
1558
1559         ncftpput-ftp: clean up spaces
1560         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1561         Remove trailing blanks.
1562
1563 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1564
1565         * build-aux/git-version-gen: Fix copyright statement.
1566         * build-aux/gnupload: Likewise.
1567         * tests/test-arcfour.c: Likewise.
1568         * tests/test-arctwo.c: Likewise.
1569         * tests/test-count-one-bits.c: Likewise.
1570         * tests/test-crc.c: Likewise.
1571         * tests/test-des.c: Likewise.
1572         * tests/test-gc-arcfour.c: Likewise.
1573         * tests/test-gc-arctwo.c: Likewise.
1574         * tests/test-gc-des.c: Likewise.
1575         * tests/test-gc-hmac-md5.c: Likewise.
1576         * tests/test-gc-hmac-sha1.c: Likewise.
1577         * tests/test-gc-md2.c: Likewise.
1578         * tests/test-gc-md4.c: Likewise.
1579         * tests/test-gc-md5.c: Likewise.
1580         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1581         * tests/test-gc-rijndael.c: Likewise.
1582         * tests/test-gc-sha1.c: Likewise.
1583         * tests/test-gc.c: Likewise.
1584         * tests/test-gethostname.c: Likewise.
1585         * tests/test-gettimeofday.c: Likewise.
1586         * tests/test-hash.c: Likewise.
1587         * tests/test-hmac-md5.c: Likewise.
1588         * tests/test-hmac-sha1.c: Likewise.
1589         * tests/test-md2.c: Likewise.
1590         * tests/test-md4.c: Likewise.
1591         * tests/test-md5.c: Likewise.
1592         * tests/test-memchr.c: Likewise.
1593         * tests/test-memchr2.c: Likewise.
1594         * tests/test-memcmp.c: Likewise.
1595         * tests/test-memmem.c: Likewise.
1596         * tests/test-memrchr.c: Likewise.
1597         * tests/test-rawmemchr.c: Likewise.
1598         * tests/test-read-file.c: Likewise.
1599         * tests/test-rijndael.c: Likewise.
1600         * tests/test-sockets.c: Likewise.
1601         * tests/test-strchrnul.c: Likewise.
1602         * tests/test-strstr.c: Likewise.
1603         * tests/test-strtod.c: Likewise.
1604         * build-aux/ncftpput-ftp: Likewise.
1605
1606 2010-01-26  Eric Blake  <ebb9@byu.net>
1607
1608         ignore-value: update recommended header name
1609         * modules/ignore-value (Include): Only use <> for headers that
1610         exist in glibc.
1611
1612 2010-01-26  Jim Meyering  <meyering@redhat.com>
1613
1614         test-userspec.c: avoid compiler warnings
1615         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1616         and "initialization discards qualifiers..." warnings.
1617         Put the first "uid" in its own scope, and make char* members "const".
1618
1619 2010-01-25  Bruno Haible  <bruno@clisp.org>
1620
1621         gnulib-tool: Make warning diagnostics consistent.
1622         * gnulib-tool (func_warning): New function.
1623         Use it everywhere where gnulib-tool produces output to stderr and it is
1624         not a fatal error.
1625
1626 2010-01-25  Bruno Haible  <bruno@clisp.org>
1627
1628         Fix test dependencies.
1629         * modules/xstrtol-tests (Depends-on): Add inttypes.
1630         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1631
1632 2010-01-25 Pádraig Brady <P@draigBrady.com>
1633
1634         syntax-check: detect incorrect boolean macro values in config.h
1635         * modules/maintainer-makefile (configure.ac): Parameterize the location
1636         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1637         The logic is from Eric Blake and the location indicated by Jim Meyering.
1638         Note the more natural CONFIG_HEADER name is prohibited by automake
1639         for backwards compatibility reasons.
1640         * top/maint.mk (sc_Wundef_boolean): New rule.
1641
1642 2010-01-25  Jim Meyering  <meyering@redhat.com>
1643
1644         bootstrap: detect MacOS 10.6's shasum, too
1645         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1646         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1647
1648 2010-01-23  Jim Meyering  <meyering@redhat.com>
1649
1650         xstrtoll: new module
1651         * modules/xstrtoll: New file.
1652         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1653         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1654         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1655         ./configure fails if you use this module and lack "long long".
1656         * modules/xstrtoll-tests: New module.
1657         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1658         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1659         new init.sh-based test framework.
1660
1661 2010-01-24  Bruno Haible  <bruno@clisp.org>
1662
1663         Tests for module 'yn'.
1664         * modules/yn-tests: New file.
1665         * tests/test-yn.c: New file.
1666
1667         Tests for module 'y1'.
1668         * modules/y1-tests: New file.
1669         * tests/test-y1.c: New file.
1670
1671         Tests for module 'y0'.
1672         * modules/y0-tests: New file.
1673         * tests/test-y0.c: New file.
1674
1675         Tests for module 'tanh'.
1676         * modules/tanh-tests: New file.
1677         * tests/test-tanh.c: New file.
1678
1679         Tests for module 'tan'.
1680         * modules/tan-tests: New file.
1681         * tests/test-tan.c: New file.
1682
1683         Tests for module 'sqrt'.
1684         * modules/sqrt-tests: New file.
1685         * tests/test-sqrt.c: New file.
1686
1687         Tests for module 'sinh'.
1688         * modules/sinh-tests: New file.
1689         * tests/test-sinh.c: New file.
1690
1691         Tests for module 'sin'.
1692         * modules/sin-tests: New file.
1693         * tests/test-sin.c: New file.
1694
1695         Tests for module 'rint'.
1696         * modules/rint-tests: New file.
1697         * tests/test-rint.c: New file.
1698
1699         Tests for module 'remainder'.
1700         * modules/remainder-tests: New file.
1701         * tests/test-remainder.c: New file.
1702
1703         Tests for module 'pow'.
1704         * modules/pow-tests: New file.
1705         * tests/test-pow.c: New file.
1706
1707         Tests for module 'nextafter'.
1708         * modules/nextafter-tests: New file.
1709         * tests/test-nextafter.c: New file.
1710
1711         Tests for module 'modf'.
1712         * modules/modf-tests: New file.
1713         * tests/test-modf.c: New file.
1714
1715         Tests for module 'logb'.
1716         * modules/logb-tests: New file.
1717         * tests/test-logb.c: New file.
1718
1719         Tests for module 'log1p'.
1720         * modules/log1p-tests: New file.
1721         * tests/test-log1p.c: New file.
1722
1723         Tests for module 'log10'.
1724         * modules/log10-tests: New file.
1725         * tests/test-log10.c: New file.
1726
1727         Tests for module 'log'.
1728         * modules/log-tests: New file.
1729         * tests/test-log.c: New file.
1730
1731         Tests for module 'lgamma'.
1732         * modules/lgamma-tests: New file.
1733         * tests/test-lgamma.c: New file.
1734
1735         Tests for module 'ldexp'.
1736         * modules/ldexp-tests: New file.
1737         * tests/test-ldexp.c: New file.
1738
1739         Tests for module 'jn'.
1740         * modules/jn-tests: New file.
1741         * tests/test-jn.c: New file.
1742
1743         Tests for module 'j1'.
1744         * modules/j1-tests: New file.
1745         * tests/test-j1.c: New file.
1746
1747         Tests for module 'j0'.
1748         * modules/j0-tests: New file.
1749         * tests/test-j0.c: New file.
1750
1751         Tests for module 'hypot'.
1752         * modules/hypot-tests: New file.
1753         * tests/test-hypot.c: New file.
1754
1755         Tests for module 'fmod'.
1756         * modules/fmod-tests: New file.
1757         * tests/test-fmod.c: New file.
1758
1759         Tests for module 'fabs'.
1760         * modules/fabs-tests: New file.
1761         * tests/test-fabs.c: New file.
1762
1763         Tests for module 'exp'.
1764         * modules/exp-tests: New file.
1765         * tests/test-exp.c: New file.
1766
1767         Tests for module 'erfc'.
1768         * modules/erfc-tests: New file.
1769         * tests/test-erfc.c: New file.
1770
1771         Tests for module 'erf'.
1772         * modules/erf-tests: New file.
1773         * tests/test-erf.c: New file.
1774
1775         Tests for module 'cosh'.
1776         * modules/cosh-tests: New file.
1777         * tests/test-cosh.c: New file.
1778
1779         Tests for module 'cos'.
1780         * modules/cos-tests: New file.
1781         * tests/test-cos.c: New file.
1782
1783         Tests for module 'copysign'.
1784         * modules/copysign-tests: New file.
1785         * tests/test-copysign.c: New file.
1786
1787         Tests for module 'cbrt'.
1788         * modules/cbrt-tests: New file.
1789         * tests/test-cbrt.c: New file.
1790
1791         Tests for module 'atan2'.
1792         * modules/atan2-tests: New file.
1793         * tests/test-atan2.c: New file.
1794
1795         Tests for module 'atan'.
1796         * modules/atan-tests: New file.
1797         * tests/test-atan.c: New file.
1798
1799         Tests for module 'asin'.
1800         * modules/asin-tests: New file.
1801         * tests/test-asin.c: New file.
1802
1803         Tests for module 'acos'.
1804         * modules/acos-tests: New file.
1805         * tests/test-acos.c: New file.
1806
1807 2010-01-24  Bruno Haible  <bruno@clisp.org>
1808
1809         Fix tests for common <math.h> functions.
1810         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1811         code snippet that references the function pointer, rather than merely
1812         calling the function. Substitute the FUNC_LIBM variable.
1813         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1814         * modules/acos (configure.ac): Likewise.
1815         * modules/asin (configure.ac): Likewise.
1816         * modules/atan (configure.ac): Likewise.
1817         * modules/atan2 (configure.ac): Likewise.
1818         * modules/cbrt (configure.ac): Likewise.
1819         * modules/copysign (configure.ac): Likewise.
1820         * modules/cos (configure.ac): Likewise.
1821         * modules/cosh (configure.ac): Likewise.
1822         * modules/erf (configure.ac): Likewise.
1823         * modules/erfc (configure.ac): Likewise.
1824         * modules/exp (configure.ac): Likewise.
1825         * modules/fabs (configure.ac): Likewise.
1826         * modules/fmod (configure.ac): Likewise.
1827         * modules/hypot (configure.ac): Likewise.
1828         * modules/j0 (configure.ac): Likewise.
1829         * modules/j1 (configure.ac): Likewise.
1830         * modules/jn (configure.ac): Likewise.
1831         * modules/ldexp (configure.ac): Likewise.
1832         * modules/lgamma (configure.ac): Likewise.
1833         * modules/log (configure.ac): Likewise.
1834         * modules/log10 (configure.ac): Likewise.
1835         * modules/log1p (configure.ac): Likewise.
1836         * modules/logb (configure.ac): Likewise.
1837         * modules/modf (configure.ac): Likewise.
1838         * modules/nextafter (configure.ac): Likewise.
1839         * modules/pow (configure.ac): Likewise.
1840         * modules/remainder (configure.ac): Likewise.
1841         * modules/rint (configure.ac): Likewise.
1842         * modules/sin (configure.ac): Likewise.
1843         * modules/sinh (configure.ac): Likewise.
1844         * modules/tan (configure.ac): Likewise.
1845         * modules/tanh (configure.ac): Likewise.
1846         * modules/y0 (configure.ac): Likewise.
1847         * modules/y1 (configure.ac): Likewise.
1848         * modules/yn (configure.ac): Likewise.
1849
1850 2010-01-24  Bruno Haible  <bruno@clisp.org>
1851
1852         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1853         * tests/test-acosl.c (x): New variable.
1854         (main): Store argument in x and fetch it from x.
1855         * tests/test-asinl.c (x): New variable.
1856         (main): Store argument in x and fetch it from x.
1857         * tests/test-atanl.c (x): New variable.
1858         (main): Store argument in x and fetch it from x.
1859         * tests/test-cosl.c (x): New variable.
1860         (main): Store argument in x and fetch it from x.
1861         * tests/test-expl.c (x): New variable.
1862         (main): Store argument in x and fetch it from x.
1863         * tests/test-logl.c (x): New variable.
1864         (main): Store argument in x and fetch it from x.
1865         * tests/test-sinl.c (x): New variable.
1866         (main): Store argument in x and fetch it from x.
1867         * tests/test-sqrtl.c (x): New variable.
1868         (main): Store argument in x and fetch it from x.
1869         * tests/test-tanl.c (x): New variable.
1870         (main): Store argument in x and fetch it from x.
1871
1872 2010-01-24  Bruno Haible  <bruno@clisp.org>
1873
1874         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1875         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1876         assignments to the initial TESTS_ENVIRONMENT.
1877         * doc/gnulib.texi (Unit test modules): Document it.
1878         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1879         TESTS_ENVIRONMENT.
1880         * modules/btowc-tests (Makefile.am): Likewise.
1881         * modules/c-stack-tests (Makefile.am): Likewise.
1882         * modules/c-strcase-tests (Makefile.am): Likewise.
1883         * modules/copy-file-tests (Makefile.am): Likewise.
1884         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1885         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1886         * modules/mbrtowc-tests (Makefile.am): Likewise.
1887         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1888         * modules/mbscasestr-tests (Makefile.am): Likewise.
1889         * modules/mbschr-tests (Makefile.am): Likewise.
1890         * modules/mbscspn-tests (Makefile.am): Likewise.
1891         * modules/mbsinit-tests (Makefile.am): Likewise.
1892         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1893         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1894         * modules/mbspbrk-tests (Makefile.am): Likewise.
1895         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1896         * modules/mbsrchr-tests (Makefile.am): Likewise.
1897         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1898         * modules/mbsspn-tests (Makefile.am): Likewise.
1899         * modules/mbsstr-tests (Makefile.am): Likewise.
1900         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1901         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1902         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1903         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1904         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1905         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1906         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1907         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1908         * modules/wcrtomb-tests (Makefile.am): Likewise.
1909         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1910         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1911         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1912         assignments from TESTS_ENVIRONMENT.
1913         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1914         augmentation.
1915         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1916         * modules/atexit-tests (Makefile.am): Likewise.
1917         * modules/binary-io-tests (Makefile.am): Likewise.
1918         * modules/closein-tests (Makefile.am): Likewise.
1919         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1920         * modules/exclude-tests (Makefile.am): Likewise.
1921         * modules/fflush-tests (Makefile.am): Likewise.
1922         * modules/fpending-tests (Makefile.am): Likewise.
1923         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1924         * modules/freadahead-tests (Makefile.am): Likewise.
1925         * modules/freadptr-tests (Makefile.am): Likewise.
1926         * modules/freadseek-tests (Makefile.am): Likewise.
1927         * modules/fseek-tests (Makefile.am): Likewise.
1928         * modules/fseeko-tests (Makefile.am): Likewise.
1929         * modules/ftell-tests (Makefile.am): Likewise.
1930         * modules/ftello-tests (Makefile.am): Likewise.
1931         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1932         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1933         * modules/lseek-tests (Makefile.am): Likewise.
1934         * modules/parse-duration-tests (Makefile.am): Likewise.
1935         * modules/perror-tests (Makefile.am): Likewise.
1936         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1937         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1938         * modules/pipe-tests (Makefile.am): Likewise.
1939         * modules/pread-tests (Makefile.am): Likewise.
1940         * modules/printf-posix-tests (Makefile.am): Likewise.
1941         * modules/select-tests (Makefile.am): Likewise.
1942         * modules/sigpipe-tests (Makefile.am): Likewise.
1943         * modules/tsearch-tests (Makefile.am): Likewise.
1944         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1945         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1946         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1947         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1948         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1949         * modules/version-etc-tests (Makefile.am): Likewise.
1950         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1951         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1952         * modules/xalloc-die-tests (Makefile.am): Likewise.
1953         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1954         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1955         * modules/xstrtol-tests (Makefile.am): Likewise.
1956         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1957         * modules/yesno-tests (Makefile.am): Likewise.
1958         Suggested by Jim Meyering.
1959
1960 2010-01-24  Bruno Haible  <bruno@clisp.org>
1961
1962         More documentation.
1963         * doc/gnulib.texi (Writing modules): New chapter.
1964         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1965         the new chapter.
1966
1967 2010-01-24  Jim Meyering  <meyering@redhat.com>
1968
1969         maint.mk: do not prepend "./" after filtering
1970         * top/maint.mk (_prepend_srcdir_prefix): New variable
1971         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1972         "./" when $(srcdir) is ".".
1973
1974         define STREQ(a,b) consistently, removing useless parentheses
1975         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1976         since the only risk is that "a" or "b" contains an unparenthesized
1977         comma, but if either did that, STREQ would have 3 or more arguments.
1978         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1979         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1980         * lib/hash-triple.c (STREQ): Likewise.
1981         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1982         * lib/getugroups.c (STREQ): Likewise.
1983
1984 2010-01-23  Jim Meyering  <meyering@redhat.com>
1985
1986         maint.mk: fix syntax-check in a non-srcdir build directory
1987         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1988         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1989
1990 2010-01-22  Jim Meyering  <meyering@redhat.com>
1991
1992         userspec: add unit tests
1993         * tests/test-userspec.c: New file.
1994         * modules/userspec-tests: Likewise.
1995
1996 2010-01-21  Jim Meyering  <meyering@redhat.com>
1997
1998         maint.mk: handle source file names containing "." robustly
1999         * top/maint.mk (_dot_escaped_srcdir): Define.
2000         (VC_LIST): Use it in LHS of sed substitution.
2001
2002 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2003
2004         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2005         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2006         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2007         from a non-srcdir build.
2008
2009 2010-01-20  Eric Blake  <ebb9@byu.net>
2010
2011         warn-on-use: use instead of link-warning
2012         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2013         * modules/unistd (Depends-on, Makefile.am): Likewise.
2014         * modules/arpa_inet (Depends-on): Replace link-warning with
2015         warn-on-use.
2016         (Makefile.am): Update rules accordingly.
2017         * modules/ctype (Depends-on, Makefile.am): Likewise.
2018         * modules/dirent (Depends-on, Makefile.am): Likewise.
2019         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2020         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2021         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2022         * modules/locale (Depends-on, Makefile.am): Likewise.
2023         * modules/math (Depends-on, Makefile.am): Likewise.
2024         * modules/search (Depends-on, Makefile.am): Likewise.
2025         * modules/signal (Depends-on, Makefile.am): Likewise.
2026         * modules/spawn (Depends-on, Makefile.am): Likewise.
2027         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2028         * modules/string (Depends-on, Makefile.am): Likewise.
2029         * modules/strings (Depends-on, Makefile.am): Likewise.
2030         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2031         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2032         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2033         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2034         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2035         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2036         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2037         * modules/wchar (Depends-on, Makefile.am): Likewise.
2038         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2039         should be poisoned.
2040         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2041         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2042         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2043         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2044         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2045         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2046         * m4/math_h.m4 (gl_MATH_H): Likewise.
2047         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2048         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2049         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2050         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2051         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2052         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2053         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2054         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2057         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2058         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2059         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2060         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2061         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2062         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2063         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2064         GL_LINK_WARNING.
2065         * lib/ctype.in.h: Likewise.
2066         * lib/dirent.in.h: Likewise.
2067         * lib/fcntl.in.h: Likewise.
2068         * lib/inttypes.in.h: Likewise.
2069         * lib/langinfo.in.h: Likewise.
2070         * lib/locale.in.h: Likewise.
2071         * lib/math.in.h: Likewise.
2072         * lib/search.in.h: Likewise.
2073         * lib/signal.in.h: Likewise.
2074         * lib/spawn.in.h: Likewise.
2075         * lib/stdio.in.h: Likewise.
2076         * lib/stdlib.in.h: Likewise.
2077         * lib/string.in.h: Likewise.
2078         * lib/strings.in.h: Likewise.
2079         * lib/sys_file.in.h: Likewise.
2080         * lib/sys_ioctl.in.h: Likewise.
2081         * lib/sys_select.in.h: Likewise.
2082         * lib/sys_socket.in.h: Likewise.
2083         * lib/sys_stat.in.h: Likewise.
2084         * lib/sys_times.in.h: Likewise.
2085         * lib/sys_utsname.in.h: Likewise.
2086         * lib/unistd.in.h: Likewise.
2087         * lib/wchar.in.h: Likewise.
2088
2089 2010-01-20  Bruno Haible  <bruno@clisp.org>
2090
2091         Avoid duplicate -lm.
2092         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2093         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2096         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2097         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2098         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2099         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2100         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2101         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2102         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2103         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2104         Reported by Paolo Bonzini.
2105
2106 2010-01-19  Bruno Haible  <bruno@clisp.org>
2107
2108         langinfo, nl_langinfo: Relicense under LGPLv2+.
2109         * modules/langinfo (License): Change to LGPLv2+.
2110         * modules/nl_langinfo (License): Likewise.
2111         Patch by David Lutterkort <lutter@redhat.com>.
2112
2113 2010-01-19  Bruno Haible  <bruno@clisp.org>
2114
2115         Avoid compilation error with cc on OSF/1 5.1.
2116         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2117         statement, not before.
2118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2119
2120 2010-01-18  Bruno Haible  <bruno@clisp.org>
2121
2122         Avoid a link error due to the __printf__ symbol.
2123         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2124         and 2.6.x.
2125         (__format__, __printf__): Remove definitions.
2126         * lib/argp-fmtstream.h: Likewise.
2127         * lib/argp.h: Likewise.
2128         * lib/error.h: Likewise.
2129         * lib/vasnprintf.h: Likewise.
2130         * lib/xprintf.h: Likewise.
2131         * lib/xvasprintf.h: Likewise.
2132         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2133
2134 2010-01-18  Bruno Haible  <bruno@clisp.org>
2135
2136         Tests for module 'tanl'.
2137         * modules/tanl-tests: New file.
2138         * tests/test-tanl.c: New file.
2139
2140         Tests for module 'sqrtl'.
2141         * modules/sqrtl-tests: New file.
2142         * tests/test-sqrtl.c: New file.
2143
2144         Tests for module 'sinl'.
2145         * modules/sinl-tests: New file.
2146         * tests/test-sinl.c: New file.
2147
2148         Tests for module 'logl'.
2149         * modules/logl-tests: New file.
2150         * tests/test-logl.c: New file.
2151
2152         Tests for module 'expl'.
2153         * modules/expl-tests: New file.
2154         * tests/test-expl.c: New file.
2155
2156         Tests for module 'cosl'.
2157         * modules/cosl-tests: New file.
2158         * tests/test-cosl.c: New file.
2159
2160         Tests for module 'atanl'.
2161         * modules/atanl-tests: New file.
2162         * tests/test-atanl.c: New file.
2163
2164         Tests for module 'asinl'.
2165         * modules/asinl-tests: New file.
2166         * tests/test-asinl.c: New file.
2167
2168         Tests for module 'acosl'.
2169         * modules/acosl-tests: New file.
2170         * tests/test-acosl.c: New file.
2171
2172         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2173         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2174         tanl): Use the standard gnulib idiom.
2175         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2176         * lib/sinl.c: Likewise.
2177         * lib/tanl.c: Don't include trigl.c.
2178         (kernel_tanl): Make static.
2179         * lib/sincosl.c: Include trigl.h first.
2180         * lib/trigl.c: Likewise.
2181         * m4/acosl.m4: New file.
2182         * m4/asinl.m4: New file.
2183         * m4/atanl.m4: New file.
2184         * m4/cosl.m4: New file.
2185         * m4/expl.m4: New file.
2186         * m4/logl.m4: New file.
2187         * m4/sinl.m4: New file.
2188         * m4/sqrtl.m4: New file.
2189         * m4/tanl.m4: New file.
2190         * m4/mathl.m4: Remove file.
2191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2192         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2193         Don't initialize GNULIB_MATHL.
2194         * modules/acosl: New file.
2195         * modules/asinl: New file.
2196         * modules/atanl: New file.
2197         * modules/cosl: New file.
2198         * modules/expl: New file.
2199         * modules/logl: New file.
2200         * modules/sinl: New file.
2201         * modules/sqrtl: New file.
2202         * modules/tanl: New file.
2203         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2204         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2205         substitute GNULIB_MATHL.
2206         * modules/mathl: Rewritten.
2207         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2208         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2209         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2210         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2211         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2212         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2213         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2214         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2215         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2216
2217 2010-01-18  Bruno Haible  <bruno@clisp.org>
2218
2219         sqrt: Make gl_FUNC_SQRT requirable.
2220         * m4/sqrt.m4: New file.
2221         * modules/sqrt (Files): Add it.
2222         (configure.ac): Invoke gl_FUNC_SQRT.
2223
2224 2010-01-18  Bruno Haible  <bruno@clisp.org>
2225
2226         New modules for common <math.h> functions.
2227         * m4/mathfunc.m4: New file.
2228         * modules/acos: New file.
2229         * modules/asin: New file.
2230         * modules/atan: New file.
2231         * modules/atan2: New file.
2232         * modules/cbrt: New file.
2233         * modules/copysign: New file.
2234         * modules/cos: New file.
2235         * modules/cosh: New file.
2236         * modules/erf: New file.
2237         * modules/erfc: New file.
2238         * modules/exp: New file.
2239         * modules/fabs: New file.
2240         * modules/fmod: New file.
2241         * modules/hypot: New file.
2242         * modules/j0: New file.
2243         * modules/j1: New file.
2244         * modules/jn: New file.
2245         * modules/ldexp: New file.
2246         * modules/lgamma: New file.
2247         * modules/log: New file.
2248         * modules/log10: New file.
2249         * modules/log1p: New file.
2250         * modules/logb: New file.
2251         * modules/modf: New file.
2252         * modules/nextafter: New file.
2253         * modules/pow: New file.
2254         * modules/remainder: New file.
2255         * modules/rint: New file.
2256         * modules/sin: New file.
2257         * modules/sinh: New file.
2258         * modules/sqrt: New file.
2259         * modules/tan: New file.
2260         * modules/tanh: New file.
2261         * modules/y0: New file.
2262         * modules/y1: New file.
2263         * modules/yn: New file.
2264         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2265         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2266         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2267         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2268         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2269         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2270         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2271         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2272         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2273         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2274         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2275         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2276         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2277         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2278         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2279         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2280         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2281         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2282         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2283         * doc/posix-functions/log.texi: Mention the 'log' module.
2284         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2285         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2286         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2287         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2288         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2289         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2290         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2291         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2292         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2293         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2294         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2295         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2296         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2297         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2298         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2299         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2300
2301 2010-01-18  Jim Meyering  <meyering@redhat.com>
2302
2303         ignore-value: relax license to LGPLv2+
2304         * modules/ignore-value (License): Relax to LGPLv2+.
2305
2306         getdate: don't leak when TZ contains two or more '"'s
2307         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2308         double quote in TZ after the first one.
2309
2310         readtokens: do not leak internal token_lengths buffer
2311         * lib/readtokens.c (readtokens): Free the local, lengths,
2312         when the supplied "token_lengths" parameter is NULL.
2313
2314 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2315
2316         Fix a couple of missing LIBTHREAD link failures on AIX.
2317         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2318         $(LIBTHREAD).
2319         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2320
2321         Link test-poll against INET_PTON_LIB.
2322         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2323         for inet_pton on Solaris 10.
2324
2325 2010-01-17  Bruno Haible  <bruno@clisp.org>
2326
2327         unistdio/*-sprintf: Fix typo in module description.
2328         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2329         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2330         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2331         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2332         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2333         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2334         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2335         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2336
2337 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2338
2339         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2340         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2341         variables in shell case patterns, for AIX and HP-UX ksh.
2342
2343         Split large sed scripts, for HP-UX sed.
2344         * modules/stdio: Split sed scripts around 50 sed commands,
2345         to avoid HP-UX limit of 99 commands, in the near future.
2346         * modules/string: Likewise.
2347         * modules/unistd: Likewise.
2348
2349         gnulib-tool: avoid writing in the current directory.
2350         * gnulib-tool (func_emit_lib_Makefile_am)
2351         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2352         not in the current directory, so concurrent gnulib-tool
2353         instances do not interfere.
2354
2355 2010-01-16  Jim Meyering  <meyering@redhat.com>
2356
2357         doc: update users.txt
2358         * users.txt: Add grep.
2359         (diffutils, gzip): Update URLs.
2360
2361 2010-01-12  Bruno Haible  <bruno@clisp.org>
2362
2363         posix_spawn: Avoid test failure on Cygwin.
2364         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2365         characters.
2366         Reported by Simon Josefsson.
2367
2368 2010-01-12  Bruno Haible  <bruno@clisp.org>
2369
2370         * tests/test-cond.c (main): When skipping the test, show the reason.
2371
2372 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2373
2374         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2375
2376 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2377
2378         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2379         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2380
2381 2010-01-12  Eric Blake  <ebb9@byu.net>
2382
2383         build: guarantee AS_VAR_IF
2384         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2385         (gl_AS_VAR_IF): Move...
2386         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2387         Reported by Simon Josefsson.
2388
2389 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2390
2391         * lib/stdio.in.h: Fix typo.
2392
2393 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2394
2395         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2396         libgpg-error.
2397
2398 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2399
2400         * tests/test-xalloc-die.sh: Use $EXEEXT.
2401
2402 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2403             Bruno Haible  <bruno@clisp.org>
2404
2405         getlogin, getlogin_r: Avoid test failure.
2406         * tests/test-getlogin.c: Include <stdio.h>.
2407         (main): Skip the test when the function fails because stdin is not a
2408         tty.
2409         * tests/test-getlogin_r.c: Include <stdio.h>.
2410         (main): Skip the test when the function fails because stdin is not a
2411         tty.
2412
2413 2010-01-11  Eric Blake  <ebb9@byu.net>
2414
2415         tests: avoid more large file warnings
2416         * tests/test-fflush.c: Avoid warning about ftell use.
2417         * tests/test-fseek.c: Avoid warning about fseek use.
2418
2419 2010-01-10  Bruno Haible  <bruno@clisp.org>
2420
2421         nproc: Work better on Linux when /proc and /sys are not mounted.
2422         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2423         as lower bound when, on glibc/Linux systems,
2424         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2425         Suggested by Pádraig Brady <P@draigbrady.com>.
2426         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2427
2428         nproc: Refactor.
2429         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2430         extracted from num_processors.
2431         (num_processors): Call it.
2432
2433 2010-01-11  Jim Meyering  <meyering@redhat.com>
2434
2435         utimecmp: avoid new warning from upcoming gcc-4.5.0
2436         * lib/utimecmp.c (BILLION): Define using #define rather than an
2437         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2438
2439 2010-01-11  Eric Blake  <ebb9@byu.net>
2440
2441         math: add portability warnings for classification macros
2442         * modules/math (Depends-on): Add warn-on-use.
2443         (Makefile.am): Provide new substitutions.
2444         * m4/math_h.m4 (gl_MATH_H): Require inline.
2445         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2446         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2447         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2448         implement warnings.
2449
2450         unistd: warn on use of environ without module
2451         * modules/unistd (Depends-on): Add warn-on-use.
2452         (Makefile.am): Provide new substitutions.
2453         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2454         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2455
2456         stdio: warn on suspicious uses
2457         * modules/stdio (Depends-on): Add warn-on-use.
2458         (Makefile.am): Provide new substitutions.
2459         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2460         fseeko.
2461         * lib/stdio.in.h (gets): Always warn on use.
2462         (fseek, ftell): Adjust when warnings are issued, and honor
2463         _GL_NO_LARGE_FILES as a way to silence the warning.
2464         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2465         any warning about large file offsets.
2466         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2467         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2468         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2469         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2470         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2471         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2472         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2473         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2474
2475         warn-on-use: new module
2476         * modules/warn-on-use: New file.
2477         * build-aux/warn-on-use.h: Likewise.
2478         * m4/warn-on-use.m4: Likewise.
2479         * MODULES.html.sh (Support for building): Mention it.
2480
2481 2010-01-10  Bruno Haible  <bruno@clisp.org>
2482
2483         Tests for module 'unistr/u32-strdup'.
2484         * modules/unistr/u32-strdup-tests: New file.
2485         * tests/unistr/test-u32-strdup.c: New file.
2486
2487         Tests for module 'unistr/u16-strdup'.
2488         * modules/unistr/u16-strdup-tests: New file.
2489         * tests/unistr/test-u16-strdup.c: New file.
2490
2491         Tests for module 'unistr/u8-strdup'.
2492         * modules/unistr/u8-strdup-tests: New file.
2493         * tests/unistr/test-u8-strdup.c: New file.
2494         * tests/unistr/test-strdup.h: New file.
2495
2496         Tests for module 'unistr/u32-strncmp'.
2497         * modules/unistr/u32-strncmp-tests: New file.
2498         * tests/unistr/test-u32-strncmp.c: New file.
2499
2500         Tests for module 'unistr/u16-strncmp'.
2501         * modules/unistr/u16-strncmp-tests: New file.
2502         * tests/unistr/test-u16-strncmp.c: New file.
2503
2504         Tests for module 'unistr/u8-strncmp'.
2505         * modules/unistr/u8-strncmp-tests: New file.
2506         * tests/unistr/test-u8-strncmp.c: New file.
2507         * tests/unistr/test-strncmp.h: New file.
2508
2509         Tests for module 'unistr/u32-strcoll'.
2510         * modules/unistr/u32-strcoll-tests: New file.
2511         * tests/unistr/test-u32-strcoll.c: New file.
2512
2513         Tests for module 'unistr/u16-strcoll'.
2514         * modules/unistr/u16-strcoll-tests: New file.
2515         * tests/unistr/test-u16-strcoll.c: New file.
2516
2517         Tests for module 'unistr/u8-strcoll'.
2518         * modules/unistr/u8-strcoll-tests: New file.
2519         * tests/unistr/test-u8-strcoll.c: New file.
2520
2521         Tests for module 'unistr/u32-strcmp'.
2522         * modules/unistr/u32-strcmp-tests: New file.
2523         * tests/unistr/test-u32-strcmp.c: New file.
2524         * tests/unistr/test-u32-strcmp.h: New file.
2525
2526         Tests for module 'unistr/u16-strcmp'.
2527         * modules/unistr/u16-strcmp-tests: New file.
2528         * tests/unistr/test-u16-strcmp.c: New file.
2529         * tests/unistr/test-u16-strcmp.h: New file.
2530
2531         Tests for module 'unistr/u8-strcmp'.
2532         * modules/unistr/u8-strcmp-tests: New file.
2533         * tests/unistr/test-u8-strcmp.c: New file.
2534         * tests/unistr/test-u8-strcmp.h: New file.
2535         * tests/unistr/test-strcmp.h: New file.
2536
2537         Tests for module 'unistr/u32-strncat'.
2538         * modules/unistr/u32-strncat-tests: New file.
2539         * tests/unistr/test-u32-strncat.c: New file.
2540
2541         Tests for module 'unistr/u16-strncat'.
2542         * modules/unistr/u16-strncat-tests: New file.
2543         * tests/unistr/test-u16-strncat.c: New file.
2544
2545         Tests for module 'unistr/u8-strncat'.
2546         * modules/unistr/u8-strncat-tests: New file.
2547         * tests/unistr/test-u8-strncat.c: New file.
2548         * tests/unistr/test-strncat.h: New file.
2549
2550         Tests for module 'unistr/u32-strcat'.
2551         * modules/unistr/u32-strcat-tests: New file.
2552         * tests/unistr/test-u32-strcat.c: New file.
2553
2554         Tests for module 'unistr/u16-strcat'.
2555         * modules/unistr/u16-strcat-tests: New file.
2556         * tests/unistr/test-u16-strcat.c: New file.
2557
2558         Tests for module 'unistr/u8-strcat'.
2559         * modules/unistr/u8-strcat-tests: New file.
2560         * tests/unistr/test-u8-strcat.c: New file.
2561         * tests/unistr/test-strcat.h: New file.
2562
2563         Tests for module 'unistr/u32-stpncpy'.
2564         * modules/unistr/u32-stpncpy-tests: New file.
2565         * tests/unistr/test-u32-stpncpy.c: New file.
2566
2567         Tests for module 'unistr/u16-stpncpy'.
2568         * modules/unistr/u16-stpncpy-tests: New file.
2569         * tests/unistr/test-u16-stpncpy.c: New file.
2570
2571         Tests for module 'unistr/u8-stpncpy'.
2572         * modules/unistr/u8-stpncpy-tests: New file.
2573         * tests/unistr/test-u8-stpncpy.c: New file.
2574         * tests/unistr/test-stpncpy.h: New file.
2575
2576         Tests for module 'unistr/u32-strncpy'.
2577         * modules/unistr/u32-strncpy-tests: New file.
2578         * tests/unistr/test-u32-strncpy.c: New file.
2579
2580         Tests for module 'unistr/u16-strncpy'.
2581         * modules/unistr/u16-strncpy-tests: New file.
2582         * tests/unistr/test-u16-strncpy.c: New file.
2583
2584         Tests for module 'unistr/u8-strncpy'.
2585         * modules/unistr/u8-strncpy-tests: New file.
2586         * tests/unistr/test-u8-strncpy.c: New file.
2587         * tests/unistr/test-strncpy.h: New file.
2588
2589         Tests for module 'unistr/u32-stpcpy'.
2590         * modules/unistr/u32-stpcpy-tests: New file.
2591         * tests/unistr/test-u32-stpcpy.c: New file.
2592
2593         Tests for module 'unistr/u16-stpcpy'.
2594         * modules/unistr/u16-stpcpy-tests: New file.
2595         * tests/unistr/test-u16-stpcpy.c: New file.
2596
2597         Tests for module 'unistr/u8-stpcpy'.
2598         * modules/unistr/u8-stpcpy-tests: New file.
2599         * tests/unistr/test-u8-stpcpy.c: New file.
2600         * tests/unistr/test-stpcpy.h: New file.
2601
2602         Tests for module 'unistr/u32-strcpy'.
2603         * modules/unistr/u32-strcpy-tests: New file.
2604         * tests/unistr/test-u32-strcpy.c: New file.
2605
2606         Tests for module 'unistr/u16-strcpy'.
2607         * modules/unistr/u16-strcpy-tests: New file.
2608         * tests/unistr/test-u16-strcpy.c: New file.
2609
2610         Tests for module 'unistr/u8-strcpy'.
2611         * modules/unistr/u8-strcpy-tests: New file.
2612         * tests/unistr/test-u8-strcpy.c: New file.
2613         * tests/unistr/test-strcpy.h: New file.
2614
2615         Tests for module 'unistr/u32-strnlen'.
2616         * modules/unistr/u32-strnlen-tests: New file.
2617         * tests/unistr/test-u32-strnlen.c: New file.
2618
2619         Tests for module 'unistr/u16-strnlen'.
2620         * modules/unistr/u16-strnlen-tests: New file.
2621         * tests/unistr/test-u16-strnlen.c: New file.
2622
2623         Tests for module 'unistr/u8-strnlen'.
2624         * modules/unistr/u8-strnlen-tests: New file.
2625         * tests/unistr/test-u8-strnlen.c: New file.
2626         * tests/unistr/test-strnlen.h: New file.
2627
2628         Tests for module 'unistr/u32-strlen'.
2629         * modules/unistr/u32-strlen-tests: New file.
2630         * tests/unistr/test-u32-strlen.c: New file.
2631
2632         Tests for module 'unistr/u16-strlen'.
2633         * modules/unistr/u16-strlen-tests: New file.
2634         * tests/unistr/test-u16-strlen.c: New file.
2635
2636         Tests for module 'unistr/u8-strlen'.
2637         * modules/unistr/u8-strlen-tests: New file.
2638         * tests/unistr/test-u8-strlen.c: New file.
2639
2640         Tests for module 'unistr/u32-prev'.
2641         * modules/unistr/u32-prev-tests: New file.
2642         * tests/unistr/test-u32-prev.c: New file.
2643
2644         Tests for module 'unistr/u16-prev'.
2645         * modules/unistr/u16-prev-tests: New file.
2646         * tests/unistr/test-u16-prev.c: New file.
2647
2648         Tests for module 'unistr/u8-prev'.
2649         * modules/unistr/u8-prev-tests: New file.
2650         * tests/unistr/test-u8-prev.c: New file.
2651
2652         Tests for module 'unistr/u32-next'.
2653         * modules/unistr/u32-next-tests: New file.
2654         * tests/unistr/test-u32-next.c: New file.
2655
2656         Tests for module 'unistr/u16-next'.
2657         * modules/unistr/u16-next-tests: New file.
2658         * tests/unistr/test-u16-next.c: New file.
2659
2660         Tests for module 'unistr/u8-next'.
2661         * modules/unistr/u8-next-tests: New file.
2662         * tests/unistr/test-u8-next.c: New file.
2663
2664         Tests for module 'unistr/u32-strmbtouc'.
2665         * modules/unistr/u32-strmbtouc-tests: New file.
2666         * tests/unistr/test-u32-strmbtouc.c: New file.
2667
2668         Tests for module 'unistr/u16-strmbtouc'.
2669         * modules/unistr/u16-strmbtouc-tests: New file.
2670         * tests/unistr/test-u16-strmbtouc.c: New file.
2671
2672         Tests for module 'unistr/u8-strmbtouc'.
2673         * modules/unistr/u8-strmbtouc-tests: New file.
2674         * tests/unistr/test-u8-strmbtouc.c: New file.
2675
2676         Tests for module 'unistr/u32-strmblen'.
2677         * modules/unistr/u32-strmblen-tests: New file.
2678         * tests/unistr/test-u32-strmblen.c: New file.
2679
2680         Tests for module 'unistr/u16-strmblen'.
2681         * modules/unistr/u16-strmblen-tests: New file.
2682         * tests/unistr/test-u16-strmblen.c: New file.
2683
2684         Tests for module 'unistr/u8-strmblen'.
2685         * modules/unistr/u8-strmblen-tests: New file.
2686         * tests/unistr/test-u8-strmblen.c: New file.
2687
2688         Tests for module 'unistr/u32-cpy-alloc'.
2689         * modules/unistr/u32-cpy-alloc-tests: New file.
2690         * tests/unistr/test-u32-cpy-alloc.c: New file.
2691
2692         Tests for module 'unistr/u16-cpy-alloc'.
2693         * modules/unistr/u16-cpy-alloc-tests: New file.
2694         * tests/unistr/test-u16-cpy-alloc.c: New file.
2695
2696         Tests for module 'unistr/u8-cpy-alloc'.
2697         * modules/unistr/u8-cpy-alloc-tests: New file.
2698         * tests/unistr/test-u8-cpy-alloc.c: New file.
2699         * tests/unistr/test-cpy-alloc.h: New file.
2700
2701         Tests for module 'unistr/u32-mbsnlen'.
2702         * modules/unistr/u32-mbsnlen-tests: New file.
2703         * tests/unistr/test-u32-mbsnlen.c: New file.
2704
2705         Tests for module 'unistr/u16-mbsnlen'.
2706         * modules/unistr/u16-mbsnlen-tests: New file.
2707         * tests/unistr/test-u16-mbsnlen.c: New file.
2708
2709         Tests for module 'unistr/u8-mbsnlen'.
2710         * modules/unistr/u8-mbsnlen-tests: New file.
2711         * tests/unistr/test-u8-mbsnlen.c: New file.
2712
2713         Tests for module 'unistr/u32-chr'.
2714         * modules/unistr/u32-chr-tests: New file.
2715         * tests/unistr/test-u32-chr.c: New file.
2716
2717         Tests for module 'unistr/u16-chr'.
2718         * modules/unistr/u16-chr-tests: New file.
2719         * tests/unistr/test-u16-chr.c: New file.
2720
2721         Tests for module 'unistr/u8-chr'.
2722         * modules/unistr/u8-chr-tests: New file.
2723         * tests/unistr/test-u8-chr.c: New file.
2724         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2725
2726         Tests for module 'unistr/u32-cmp2'.
2727         * modules/unistr/u32-cmp2-tests: New file.
2728         * tests/unistr/test-u32-cmp2.c: New file.
2729
2730         Tests for module 'unistr/u16-cmp2'.
2731         * modules/unistr/u16-cmp2-tests: New file.
2732         * tests/unistr/test-u16-cmp2.c: New file.
2733
2734         Tests for module 'unistr/u8-cmp2'.
2735         * modules/unistr/u8-cmp2-tests: New file.
2736         * tests/unistr/test-u8-cmp2.c: New file.
2737         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2738
2739         Tests for module 'unistr/u32-cmp'.
2740         * modules/unistr/u32-cmp-tests: New file.
2741         * tests/unistr/test-u32-cmp.c: New file.
2742
2743         Tests for module 'unistr/u16-cmp'.
2744         * modules/unistr/u16-cmp-tests: New file.
2745         * tests/unistr/test-u16-cmp.c: New file.
2746
2747         Tests for module 'unistr/u8-cmp'.
2748         * modules/unistr/u8-cmp-tests: New file.
2749         * tests/unistr/test-u8-cmp.c: New file.
2750         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2751
2752         Tests for module 'unistr/u32-set'.
2753         * modules/unistr/u32-set-tests: New file.
2754         * tests/unistr/test-u32-set.c: New file.
2755
2756         Tests for module 'unistr/u16-set'.
2757         * modules/unistr/u16-set-tests: New file.
2758         * tests/unistr/test-u16-set.c: New file.
2759
2760         Tests for module 'unistr/u8-set'.
2761         * modules/unistr/u8-set-tests: New file.
2762         * tests/unistr/test-u8-set.c: New file.
2763         * tests/unistr/test-set.h: New file.
2764
2765         Tests for module 'unistr/u32-move'.
2766         * modules/unistr/u32-move-tests: New file.
2767         * tests/unistr/test-u32-move.c: New file.
2768
2769         Tests for module 'unistr/u16-move'.
2770         * modules/unistr/u16-move-tests: New file.
2771         * tests/unistr/test-u16-move.c: New file.
2772
2773         Tests for module 'unistr/u8-move'.
2774         * modules/unistr/u8-move-tests: New file.
2775         * tests/unistr/test-u8-move.c: New file.
2776         * tests/unistr/test-move.h: New file.
2777
2778         Tests for module 'unistr/u32-cpy'.
2779         * modules/unistr/u32-cpy-tests: New file.
2780         * tests/unistr/test-u32-cpy.c: New file.
2781
2782         Tests for module 'unistr/u16-cpy'.
2783         * modules/unistr/u16-cpy-tests: New file.
2784         * tests/unistr/test-u16-cpy.c: New file.
2785
2786         Tests for module 'unistr/u8-cpy'.
2787         * modules/unistr/u8-cpy-tests: New file.
2788         * tests/unistr/test-u8-cpy.c: New file.
2789         * tests/unistr/test-cpy.h: New file.
2790
2791 2010-01-09  Bruno Haible  <bruno@clisp.org>
2792
2793         Tests for module 'unistr/u32-uctomb'.
2794         * modules/unistr/u32-uctomb-tests: New file.
2795         * tests/unistr/test-u32-uctomb.c: New file.
2796
2797         Tests for module 'unistr/u16-uctomb'.
2798         * modules/unistr/u16-uctomb-tests: New file.
2799         * tests/unistr/test-u16-uctomb.c: New file.
2800
2801         Tests for module 'unistr/u8-uctomb'.
2802         * modules/unistr/u8-uctomb-tests: New file.
2803         * tests/unistr/test-u8-uctomb.c: New file.
2804
2805         Tests for module 'unistr/u32-mbtoucr'.
2806         * modules/unistr/u32-mbtoucr-tests: New file.
2807         * tests/unistr/test-u32-mbtoucr.c: New file.
2808
2809         Tests for module 'unistr/u16-mbtoucr'.
2810         * modules/unistr/u16-mbtoucr-tests: New file.
2811         * tests/unistr/test-u16-mbtoucr.c: New file.
2812
2813         Tests for module 'unistr/u8-mbtoucr'.
2814         * modules/unistr/u8-mbtoucr-tests: New file.
2815         * tests/unistr/test-u8-mbtoucr.c: New file.
2816
2817         Tests for module 'unistr/u32-mbtouc'.
2818         * modules/unistr/u32-mbtouc-tests: New file.
2819         * tests/unistr/test-u32-mbtouc.c: New file.
2820
2821         Tests for module 'unistr/u16-mbtouc'.
2822         * modules/unistr/u16-mbtouc-tests: New file.
2823         * tests/unistr/test-u16-mbtouc.c: New file.
2824
2825         Tests for module 'unistr/u8-mbtouc'.
2826         * modules/unistr/u8-mbtouc-tests: New file.
2827         * tests/unistr/test-u8-mbtouc.c: New file.
2828
2829         Tests for module 'unistr/u32-mbtouc-unsafe'.
2830         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2831         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2832         * tests/unistr/test-u32-mbtouc.h: New file.
2833
2834         Tests for module 'unistr/u16-mbtouc-unsafe'.
2835         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2836         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2837         * tests/unistr/test-u16-mbtouc.h: New file.
2838
2839         Tests for module 'unistr/u8-mbtouc-unsafe'.
2840         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2841         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2842         * tests/unistr/test-u8-mbtouc.h: New file.
2843
2844         Tests for module 'unistr/u32-mblen'.
2845         * modules/unistr/u32-mblen-tests: New file.
2846         * tests/unistr/test-u32-mblen.c: New file.
2847
2848         Tests for module 'unistr/u16-mblen'.
2849         * modules/unistr/u16-mblen-tests: New file.
2850         * tests/unistr/test-u16-mblen.c: New file.
2851
2852         Tests for module 'unistr/u8-mblen'.
2853         * modules/unistr/u8-mblen-tests: New file.
2854         * tests/unistr/test-u8-mblen.c: New file.
2855
2856         Tests for module 'unistr/u32-to-u16'.
2857         * modules/unistr/u32-to-u16-tests: New file.
2858         * tests/unistr/test-u32-to-u16.c: New file.
2859
2860         Tests for module 'unistr/u32-to-u8'.
2861         * modules/unistr/u32-to-u8-tests: New file.
2862         * tests/unistr/test-u32-to-u8.c: New file.
2863
2864         Tests for module 'unistr/u16-to-u32'.
2865         * modules/unistr/u16-to-u32-tests: New file.
2866         * tests/unistr/test-u16-to-u32.c: New file.
2867
2868         Tests for module 'unistr/u16-to-u8'.
2869         * modules/unistr/u16-to-u8-tests: New file.
2870         * tests/unistr/test-u16-to-u8.c: New file.
2871
2872         Tests for module 'unistr/u8-to-u32'.
2873         * modules/unistr/u8-to-u32-tests: New file.
2874         * tests/unistr/test-u8-to-u32.c: New file.
2875
2876         Tests for module 'unistr/u8-to-u16'.
2877         * modules/unistr/u8-to-u16-tests: New file.
2878         * tests/unistr/test-u8-to-u16.c: New file.
2879
2880         Tests for module 'unistr/u32-check'.
2881         * modules/unistr/u32-check-tests: New file.
2882         * tests/unistr/test-u32-check.c: New file.
2883
2884         Tests for module 'unistr/u16-check'.
2885         * modules/unistr/u16-check-tests: New file.
2886         * tests/unistr/test-u16-check.c: New file.
2887
2888         Tests for module 'unistr/u8-check'.
2889         * modules/unistr/u8-check-tests: New file.
2890         * tests/unistr/test-u8-check.c: New file.
2891
2892         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2893         (category_equals): New function.
2894         (main): Add more tests.
2895         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2896
2897         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2898
2899 2010-01-10  Bruno Haible  <bruno@clisp.org>
2900
2901         unistr/u*-strcoll: Try harder to distinguish different strings.
2902         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2903         compare s1 and s2 to see if they are different.
2904
2905 2010-01-10  Bruno Haible  <bruno@clisp.org>
2906
2907         unistr/u*-stpncpy: Fix the return value.
2908         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2909         description of the return value consistent with stpncpy in glibc.
2910         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2911         written non-NUL unit.
2912
2913 2010-01-10  Bruno Haible  <bruno@clisp.org>
2914
2915         unistr/u*-next: Add missing dependencies.
2916         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2917         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2918         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2919
2920 2010-01-10  Bruno Haible  <bruno@clisp.org>
2921
2922         unistr/u8-mbsnlen: Fix return value for incomplete character.
2923         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2924         u8_mblen.
2925         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2926         Remove unistr/u8-mblen.
2927         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2928         u16_mblen.
2929         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2930         Remove unistr/u16-mblen.
2931
2932 2010-01-10  Bruno Haible  <bruno@clisp.org>
2933
2934         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2935         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2936         Reported by Brian Gough <bjg@gnu.org> and
2937         Chris Clayton <chris2553@googlemail.com> via
2938         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2939
2940 2010-01-09  Bruno Haible  <bruno@clisp.org>
2941
2942         unistr/u16-to-u32: Reject invalid input.
2943         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2944         u16_mbtouc.
2945         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2946         Remove unistr/u16-mbtouc.
2947
2948         unistr/u16-to-u8: Reject invalid input.
2949         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2950         u16_mbtouc.
2951         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2952         Remove unistr/u16-mbtouc.
2953
2954         unistr/u8-to-u32: Reject invalid input.
2955         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2956         u8_mbtouc.
2957         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2958         Remove unistr/u8-mbtouc.
2959
2960         unistr/u8-to-u16: Reject invalid input.
2961         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2962         u8_mbtouc.
2963         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2964         Remove unistr/u8-mbtouc.
2965
2966 2010-01-09  Bruno Haible  <bruno@clisp.org>
2967
2968         Tests for module 'getlogin'.
2969         * modules/getlogin-tests: New file.
2970         * tests/test-getlogin.c: New file.
2971
2972         New module 'getlogin'.
2973         * lib/unistd.in.h (getlogin): New declaration.
2974         * lib/getlogin.c: New file.
2975         * m4/getlogin.m4: New file.
2976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2977         HAVE_GETLOGIN.
2978         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2979         HAVE_GETLOGIN.
2980         * modules/getlogin: New file.
2981         * doc/posix-functions/getlogin.texi: Mention the new module.
2982         Reported by John W. Eaton <jwe@gnu.org>.
2983
2984 2010-01-09  Bruno Haible  <bruno@clisp.org>
2985
2986         getlogin_r: Support for native Windows.
2987         * lib/getlogin_r.c: Include <windows.h>
2988         (getlogin_r): Implement for native Windows.
2989         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2990         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2991         via John W. Eaton <jwe@gnu.org>.
2992
2993 2010-01-09  Bruno Haible  <bruno@clisp.org>
2994
2995         getlogin_r: Small fixes.
2996         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2997         succeeds.
2998         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2999         before testing whether getlogin_r is declared. No need to set
3000         HAVE_DECL_GETLOGIN_R to 1.
3001         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3002
3003 2010-01-09  Bruno Haible  <bruno@clisp.org>
3004
3005         * lib/unistd.in.h (getlogin_r): Add comment.
3006
3007 2010-01-09  Bruno Haible  <bruno@clisp.org>
3008
3009         Tests for module 'getlogin_r'.
3010         * modules/getlogin_r-tests: New file.
3011         * tests/test-getlogin_r.c: New file.
3012
3013 2010-01-09  Jim Meyering  <meyering@redhat.com>
3014
3015         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3016         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3017         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3018
3019 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3020
3021         * lib/dup2.c (rpl_dup2): Improve comment.
3022
3023 2010-01-08  Eric Blake  <ebb9@byu.net>
3024
3025         maint.mk: allow packages to add makefile @@ exceptions
3026         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3027         (sc_makefile_check): Rename...
3028         (sc_makefile_at_at_check): ...to this, and use hook.
3029
3030         dup2: work around mingw bug
3031         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3032         Reported by Simon Josefsson.
3033
3034 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3035
3036         glob: Fix C++ compilation.
3037         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3038         C++.
3039
3040 2010-01-07  Bruno Haible  <bruno@clisp.org>
3041
3042         Fix indentation of wctype.in.h, broken since 2007-01-06.
3043         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3044
3045 2010-01-07  Bruno Haible  <bruno@clisp.org>
3046
3047         mbslen: Avoid collision with system function.
3048         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3049         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3050         * m4/mbslen.m4: New file.
3051         * modules/mbslen (Files): Add it.
3052         (configure.ac): Invoke gl_MBSLEN.
3053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3054         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3055         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3056         via Ian Beckwith <ianb@erislabs.net>.
3057
3058 2010-01-07  Bruno Haible  <bruno@clisp.org>
3059
3060         dirent: Document the last fix.
3061         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3062
3063 2010-01-07  Bruno Haible  <bruno@clisp.org>
3064
3065         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3066         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3067         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3068         va_list are defined.
3069         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3070         Reported by Eric Blake.
3071
3072 2010-01-07  Bruno Haible  <bruno@clisp.org>
3073
3074         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3075         * modules/xlist (Depends-on): Add 'list',
3076         * modules/xoset (Depends-on): Add 'oset'.
3077         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3078
3079 2010-01-07  Bruno Haible  <bruno@clisp.org>
3080
3081         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3082         * doc/posix-functions/strncasecmp.texi: Likewise.
3083
3084 2010-01-07  Bruno Haible  <bruno@clisp.org>
3085
3086         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3087
3088 2010-01-07  John W. Eaton  <jwe@octave.org>
3089
3090         wctype: allow C++ use
3091         * lib/wctype.in.h: Add extern "C" block for C++.
3092
3093 2010-01-06  Eric Blake  <ebb9@byu.net>
3094
3095         maint.mk: detect incorrect GFDL usage
3096         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3097
3098 2010-01-06  Jim Meyering  <meyering@redhat.com>
3099         and Eric Blake  <ebb9@byu.net>
3100
3101         maint.mk: ignore multi-line copyright in NEWS
3102         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3103
3104 2010-01-06  Eric Blake  <ebb9@byu.net>
3105
3106         select: add missing dependency
3107         * modules/select-tests (Depends-on): Move sockets dependency...
3108         * modules/select (Depends-on): ...here.
3109         Reported by Ian Beckwith.
3110
3111         doc: regenerate INSTALL
3112         * doc/INSTALL: Reflect recent autoconf update.
3113         * doc/INSTALL.ISO: Likewise.
3114         * doc/INSTALL.UTF-8: Likewise.
3115
3116         pread: fix compilation on glibc
3117         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3118         Reported by Ralf Wildenhues.
3119
3120         dirent: fix test failure
3121         * lib/dirent.in.h (includes): Guarantee ino_t.
3122         Reported by Ralf Wildenhues.
3123
3124 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3125
3126         linkat, renameat: avoid bad free
3127         * lib/at-func2.c (at_func2): Fix typo.
3128         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3129
3130 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3131
3132         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3133         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3134         to avoid failure of symlink test later.
3135
3136 2010-01-06  Eric Blake  <ebb9@byu.net>
3137
3138         stdio, unistd: guarantee ssize_t
3139         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3140         2008 are exposed when needed.
3141         * lib/stdio.in.h (includes): Likewise.
3142         Reported by Ralf Wildenhues.
3143
3144 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3145
3146         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3147         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3148         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3149
3150 2010-01-06  Jim Meyering  <meyering@redhat.com>
3151
3152         readtokens: this module *does* require xalloc.h
3153         It uses only functions that were omitted by the old syntax-check rule.
3154         * lib/readtokens.c: Include "xalloc.h" once again.
3155         * modules/readtokens (Depends-on): Add xalloc.
3156         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3157
3158 2010-01-05  Eric Blake  <ebb9@byu.net>
3159
3160         maint: support 'make announcement' from a VPATH build
3161         * top/maint.mk (announcement): Look for correct NEWS file.
3162
3163 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3164
3165         utimens (fdutimens): ignore a negative FD, per contract
3166         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3167         when we have a valid file descriptor.  Otherwise, using a brand
3168         new glibc (with just-patched futimens that now fails with EBADF)
3169         would cause this function to fail with ENOSYS.
3170         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3171         See also http://bugzilla.redhat.com/552320.
3172
3173 2010-01-05  Eric Blake  <ebb9@byu.net>
3174
3175         strcase: document what it provides
3176         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3177         gnulib module.
3178         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3179         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3180
3181 2010-01-05  Jim Meyering  <meyering@redhat.com>
3182
3183         maint: remove useless inclusions of "xalloc.h"
3184         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3185         * lib/readtokens.c: Likewise.
3186         * lib/same.c: Likewise.
3187         * modules/getloadavg (Depends-on): Remove xalloc.
3188         * modules/readtokens: Likewise.
3189         * modules/same: Likewise.
3190
3191         maint.mk: include 4 more function names in alloca.h-checking regexp
3192         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3193         regexp.  Before, we would give a false-positive (saying alloca.h
3194         is included unnecessarily) when the only uses involved omitted symbols.
3195
3196         xalloc.h: use consistent formatting
3197         * lib/xalloc.h: Move declarations to start in the first column.
3198
3199 2010-01-05  Eric Blake  <ebb9@byu.net>
3200
3201         mkdir: avoid xalloc
3202         * lib/mkdir.c (includes): Drop unused header.
3203         Reported by John W. Eaton.
3204
3205 2010-01-04  Jim Meyering  <meyering@redhat.com>
3206
3207         nl_langinfo: avoid configure-time syntax error
3208         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3209         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3210         the empty string.  Don't let that provoke a shell syntax error.
3211
3212         regcomp, regexec, fnmatch: avoid array bounds read error
3213         * lib/regcomp.c (build_equiv_class): From glibc:
3214         Use only the low 24 bits of a findidx return value as an index
3215         into the weights array.  Patch by Ulrich Drepper:
3216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3217         * lib/regexec.c (check_node_accept_bytes): Likewise.
3218         * lib/fnmatch_loop.c (FCT): Likewise.
3219
3220         regcomp: skip collseq lookup when there are no rules
3221         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3222         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3223
3224         regcomp: recognize ill-formed { } expressions
3225         * lib/regcomp.c (parse_dup_op): From glibc:
3226         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3227
3228         regcomp: fix typo in comment
3229         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3230         s/satisfy/satisfies/.
3231
3232         regcomp: sync from glibc: remove dead store
3233         * lib/regcomp.c (duplicate_node_closure): Remove useless
3234         search_duplicated_node call and dead store.
3235
3236         regcomp: sync from glibc; always use nl_langinfo
3237         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3238         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3239         * modules/regex (Depends-on): Add nl_langinfo.
3240
3241 2010-01-04  Eric Blake  <ebb9@byu.net>
3242
3243         fdopendir: fix configure test
3244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3245
3246 2010-01-01  Bruno Haible  <bruno@clisp.org>
3247
3248         wchar: Remove unused configure check.
3249         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3250
3251 2010-01-01  Eric Blake  <ebb9@byu.net>
3252
3253         headers: make check of system header explicit
3254         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3255         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3256         ourselves.
3257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3258         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3259         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3260         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3261         internals.
3262         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3263         missing.
3264         Suggested by Bruno Haible.
3265
3266 2010-01-01  Jim Meyering  <meyering@redhat.com>
3267
3268         ChangeLog: tweak to eliminate unnecessary copyright line
3269         * ChangeLog: Remove a copyright line that was mistakenly updated
3270         by today's update-copyright run.  Reported by Eric Blake.
3271
3272         test-update-copyright: don't let envvar setting cause test failure
3273         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3274
3275 2010-01-01  Bruno Haible  <bruno@clisp.org>
3276
3277         localename: Avoid gcc warning.
3278         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3279         function if it is not used.
3280
3281 2010-01-01  Jim Meyering  <meyering@redhat.com>
3282
3283         update nearly all FSF copyright year lists to include 2010
3284         Use the same procedure as for 2009, outlined in
3285         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3286
3287         version-etc: set COPYRIGHT_YEAR to 2010
3288         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3289
3290 2009-12-31  Eric Blake  <ebb9@byu.net>
3291
3292         doc: correct availability of cygwin 1.5.x getopt
3293         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3294         variables.
3295         * doc/posix-functions/opterr.texi (opterr): Likewise.
3296         * doc/posix-functions/optind.texi (optind): Likewise.
3297         * doc/posix-functions/optopt.texi (optopt): Likewise.
3298         * doc/posix-functions/tzname.texi (tzname): Likewise.
3299
3300         openat: update maintainer
3301         * modules/openat (Maintainer): Add myself.
3302
3303         utimens: avoid shadowing warning
3304         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3305         buffers into one, to avoid shadowing, as well as avoiding a
3306         redundant stat.
3307         Reported by Jim Meyering.
3308
3309         test-dup2: avoid compiler warning
3310         * tests/test-dup2.c (is_inheritable): Only define if used.
3311
3312 2010-01-01  Bruno Haible  <bruno@clisp.org>
3313
3314         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3315         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3316         defined, use wctomb instead of wcrtomb.
3317
3318 2010-01-01  Bruno Haible  <bruno@clisp.org>
3319
3320         iconv: Reject native Solaris iconv.
3321         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3322         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3323
3324 2009-12-31  Bruno Haible  <bruno@clisp.org>
3325
3326         * tests/test-signal.c (main): Remove test of 'SIG'.
3327
3328 2009-12-31  Bruno Haible  <bruno@clisp.org>
3329
3330         spawn: Fix incomplete fix.
3331         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3332         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3333         warnings for GNULIB_POSIXCHECK again.
3334         Reported by Eric Blake.
3335
3336 2009-12-31  Bruno Haible  <bruno@clisp.org>
3337
3338         Avoid namespace pollution on glibc systems.
3339         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3340         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3341         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3342         glibc systems.
3343
3344 2009-12-31  Bruno Haible  <bruno@clisp.org>
3345
3346         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3347         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3348         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3349         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3350         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3351         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3352         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3353
3354 2009-12-31  Bruno Haible  <bruno@clisp.org>
3355
3356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3357         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3358         afterwards.
3359
3360 2009-12-31  Bruno Haible  <bruno@clisp.org>
3361
3362         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3363         SYS_UTSNAME_H.
3364
3365 2009-12-31  Bruno Haible  <bruno@clisp.org>
3366
3367         spawn: Fix misapplied patch.
3368         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3369         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3370         warnings for GNULIB_POSIXCHECK.
3371
3372 2009-12-31  Bruno Haible  <bruno@clisp.org>
3373
3374         times: Update after sys_times changed.
3375         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3376         * modules/times (Files): Add it.
3377         (configure.ac): Invoke gl_FUNC_TIMES.
3378
3379 2009-12-31  Bruno Haible  <bruno@clisp.org>
3380
3381         Use AC_C_INLINE where necessary.
3382         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3383         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3385         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3386         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3387         * m4/mbiter.m4 (gl_MBITER): Likewise.
3388         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3389         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3390         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3391         * modules/u64 (configure.ac): Likewise.
3392
3393 2009-12-31  Bruno Haible  <bruno@clisp.org>
3394
3395         Use AC_C_INLINE instead of module 'inline' where possible.
3396         * modules/inline (Description): Clarify purpose.
3397         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3398         * modules/count-one-bits (Depends-on): Remove inline.
3399         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3400         * modules/openat (Depends-on): Remove inline.
3401         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3402         instead of depending on module 'inline'.
3403         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3404         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3405         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3406         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3407         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3408         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3409         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3410         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3411         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3412         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3413         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3414         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3415         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3416         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3417         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3418         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3419         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3420         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3421         Likewise.
3422         * modules/unictype/property-ascii-hex-digit (Depends-on,
3423         configure.ac): Likewise.
3424         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3425         configure.ac): Likewise.
3426         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3427         configure.ac): Likewise.
3428         * modules/unictype/property-bidi-block-separator (Depends-on,
3429         configure.ac): Likewise.
3430         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3431         configure.ac): Likewise.
3432         * modules/unictype/property-bidi-common-separator (Depends-on,
3433         configure.ac): Likewise.
3434         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3435         Likewise.
3436         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3437         configure.ac): Likewise.
3438         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3439         configure.ac): Likewise.
3440         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3441         configure.ac): Likewise.
3442         * modules/unictype/property-bidi-european-digit (Depends-on,
3443         configure.ac): Likewise.
3444         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3445         configure.ac): Likewise.
3446         * modules/unictype/property-bidi-left-to-right (Depends-on,
3447         configure.ac): Likewise.
3448         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3449         configure.ac): Likewise.
3450         * modules/unictype/property-bidi-other-neutral (Depends-on,
3451         configure.ac): Likewise.
3452         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3453         Likewise.
3454         * modules/unictype/property-bidi-segment-separator (Depends-on,
3455         configure.ac): Likewise.
3456         * modules/unictype/property-bidi-whitespace (Depends-on,
3457         configure.ac): Likewise.
3458         * modules/unictype/property-combining (Depends-on, configure.ac):
3459         Likewise.
3460         * modules/unictype/property-composite (Depends-on, configure.ac):
3461         Likewise.
3462         * modules/unictype/property-currency-symbol (Depends-on,
3463         configure.ac): Likewise.
3464         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3465         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3466         Likewise.
3467         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3468         configure.ac): Likewise.
3469         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3470         Likewise.
3471         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3472         Likewise.
3473         * modules/unictype/property-extender (Depends-on, configure.ac):
3474         Likewise.
3475         * modules/unictype/property-format-control (Depends-on, configure.ac):
3476         Likewise.
3477         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3478         Likewise.
3479         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3480         Likewise.
3481         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3482         Likewise.
3483         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3484         Likewise.
3485         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3486         Likewise.
3487         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3488         Likewise.
3489         * modules/unictype/property-id-start (Depends-on, configure.ac):
3490         Likewise.
3491         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3492         Likewise.
3493         * modules/unictype/property-ids-binary-operator (Depends-on,
3494         configure.ac): Likewise.
3495         * modules/unictype/property-ids-trinary-operator (Depends-on,
3496         configure.ac): Likewise.
3497         * modules/unictype/property-ignorable-control (Depends-on,
3498         configure.ac): Likewise.
3499         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3500         Likewise.
3501         * modules/unictype/property-join-control (Depends-on, configure.ac):
3502         Likewise.
3503         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3504         Likewise.
3505         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3506         Likewise.
3507         * modules/unictype/property-logical-order-exception (Depends-on,
3508         configure.ac): Likewise.
3509         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3510         Likewise.
3511         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3512         * modules/unictype/property-non-break (Depends-on, configure.ac):
3513         Likewise.
3514         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3515         Likewise.
3516         * modules/unictype/property-numeric (Depends-on, configure.ac):
3517         Likewise.
3518         * modules/unictype/property-other-alphabetic (Depends-on,
3519         configure.ac): Likewise.
3520         * modules/unictype/property-other-default-ignorable-code-point
3521         (Depends-on, configure.ac): Likewise.
3522         * modules/unictype/property-other-grapheme-extend (Depends-on,
3523         configure.ac): Likewise.
3524         * modules/unictype/property-other-id-continue (Depends-on,
3525         configure.ac): Likewise.
3526         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3527         Likewise.
3528         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3529         Likewise.
3530         * modules/unictype/property-other-math (Depends-on, configure.ac):
3531         Likewise.
3532         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3533         Likewise.
3534         * modules/unictype/property-paired-punctuation (Depends-on,
3535         configure.ac): Likewise.
3536         * modules/unictype/property-paragraph-separator (Depends-on,
3537         configure.ac): Likewise.
3538         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3539         Likewise.
3540         * modules/unictype/property-pattern-white-space (Depends-on,
3541         configure.ac): Likewise.
3542         * modules/unictype/property-private-use (Depends-on, configure.ac):
3543         Likewise.
3544         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3545         Likewise.
3546         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3547         Likewise.
3548         * modules/unictype/property-radical (Depends-on, configure.ac):
3549         Likewise.
3550         * modules/unictype/property-sentence-terminal (Depends-on,
3551         configure.ac): Likewise.
3552         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3553         Likewise.
3554         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3555         * modules/unictype/property-terminal-punctuation (Depends-on,
3556         configure.ac): Likewise.
3557         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3558         Likewise.
3559         * modules/unictype/property-unassigned-code-value (Depends-on,
3560         configure.ac): Likewise.
3561         * modules/unictype/property-unified-ideograph (Depends-on,
3562         configure.ac): Likewise.
3563         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3564         Likewise.
3565         * modules/unictype/property-variation-selector (Depends-on,
3566         configure.ac): Likewise.
3567         * modules/unictype/property-white-space (Depends-on, configure.ac):
3568         Likewise.
3569         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3570         Likewise.
3571         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3572         Likewise.
3573         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3574         Likewise.
3575         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3576         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3577         Likewise.
3578
3579 2009-12-31  Bruno Haible  <bruno@clisp.org>
3580
3581         Remove unnecessary AC_C_INLINE invocation.
3582         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3583         since 2009-08-21.
3584
3585 2009-12-31  Jim Meyering  <meyering@redhat.com>
3586
3587         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3588         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3589         With this change, we can all remove the gpg_key_ID = ... definition
3590         from our respective cfg.mk files.
3591
3592         maint.mk: create announcement template in ~/, not in /tmp
3593         * top/maint.mk (emit_upload_commands): Adjust.
3594         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3595         Remove temporary file, .ci-msg.
3596
3597 2009-12-31  Eric Blake  <ebb9@byu.net>
3598
3599         link-warning: always build headers with link warnings
3600         * modules/arpa_inet (Makefile.am): Always build replacement
3601         header.
3602         * modules/ctype (Makefile.am): Likewise.
3603         * modules/dirent (Makefile.am): Likewise.
3604         * modules/inttypes (Makefile.am): Likewise.
3605         * modules/langinfo (Makefile.am): Likewise.
3606         * modules/locale (Makefile.am): Likewise.
3607         * modules/spawn (Makefile.am): Likewise.
3608         * modules/sys_file (Makefile.am): Likewise.
3609         * modules/sys_ioctl (Makefile.am): Likewise.
3610         * modules/sys_select (Makefile.am): Likewise.
3611         * modules/sys_socket (Makefile.am): Likewise.
3612         * modules/sys_times (Makefile.am): Likewise.
3613         * modules/sys_utsname (Makefile.am): Likewise.
3614         * modules/sys_wait (Makefile.am): Likewise.
3615         * modules/wchar (Makefile.am): Likewise.
3616         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3617         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3618         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3619         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3620         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3621         Likewise.
3622         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3623         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3624         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3625         Likewise.
3626         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3627         Likewise.
3628         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3629         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3630         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3632         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3633         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3634         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3635         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3636         (gl_WCHAR_H_DEFAULTS): Likewise.
3637
3638 2009-12-31  Eric Blake  <ebb9@byu.net>
3639
3640         signal, spawn: use link warnings
3641         * lib/signal.in.h (sigset_t): Make unconditional.
3642         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3643         (sigpending, sigprocmask, sigaction): Add link warnings.
3644         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3645         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3646         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3647         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3648         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3649         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3650         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3651         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3652         (posix_spawn_file_actions_destroy)
3653         (posix_spawn_file_actions_addopen)
3654         (posix_spawn_file_actions_addclose)
3655         (posix_spawn_file_actions_adddup2): Likewise.
3656         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3657         * tests/test-signal.c (main): Enhance test.
3658
3659         spawn: improve wrapper support
3660         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3661         (gl_SPAWN_H_DEFAULTS): New defaults.
3662         * modules/spawn (Makefile.am): Substitute them.
3663         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3664         Only declare if missing or broken.
3665
3666         sys_times, sys_utsname: use include_next
3667         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3668         header.
3669         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3670         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3671         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3672         * modules/sys_times (Depends-on): Add include_next.
3673         (Makefile.am): Substitute additional values.
3674         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3675         * lib/sys_times.in.h (includes): Include native header, if
3676         available.
3677         * lib/sys_utsname.in.h (includes): Likewise.
3678         * tests/test-sys_times.c (main): Enhance test.
3679
3680         fdutimensat: revert prior patch
3681         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3682         utimens.h.
3683         Reported by Bruno Haible.
3684
3685 2009-12-30  Eric Blake  <ebb9@byu.net>
3686
3687         sys_wait: drop link-warning dependency
3688         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3689         link-warning efforts.
3690         * lib/sys_wait.in.h: Likewise.
3691
3692         fdutimensat: remove bogus dependency
3693         * modules/fdutimensat (Depends-on): Drop inline.
3694
3695         unistd: fix typo
3696         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3697
3698 2009-12-30  Bruno Haible  <bruno@clisp.org>
3699
3700         Fix compilation error with Solaris cc.
3701         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3702         * lib/unicase/u16-is-invariant.c: Likewise.
3703         * lib/unicase/u32-is-invariant.c: Likewise.
3704         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3705
3706 2009-12-30  Bruno Haible  <bruno@clisp.org>
3707
3708         Fix test crash.
3709         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3710         locales.
3711         Reported by Simon Josefsson <simon@josefsson.org>.
3712
3713 2009-12-30  Bruno Haible  <bruno@clisp.org>
3714
3715         Fix compilation error on most platforms.
3716         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3717         Reported by Simon Josefsson <simon@josefsson.org>
3718         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3719
3720 2009-12-30  Eric Blake  <ebb9@byu.net>
3721
3722         futimens, utimensat: work around ntfs-3g bug
3723         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3724         a ctime bug is present, and expand workaround to cover ntfs-3g.
3725         * lib/utimens.c (fdutimens, lutimens): Likewise.
3726         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3727         (validate_timespec): Adjust return value.
3728         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3729         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3730         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3731
3732 2009-12-29  Eric Blake  <ebb9@byu.net>
3733
3734         link-warning: make usage consistent
3735         * modules/ctype (Depends-on): Add link-warning.
3736         (Makefile.am): Update rules accordingly.
3737         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3738         * modules/locale (Depends-on, Makefile.am): Likewise.
3739         * modules/sys_file (Makefile.am): Likewise.
3740         * modules/getopt-posix (Makefile.am): Delete unused link warning
3741         efforts.
3742         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3743         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3744         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3745         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3746
3747         stdio: remove unused variables
3748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3750         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3751
3752         tests: test more substitute headers
3753         * modules/ctype-tests: New file.
3754         * modules/dirent-tests: Likewise.
3755         * modules/spawn-tests: Likewise.
3756         * modules/sys_file-tests: Likewise.
3757         * modules/sys_ioctl-tests: Likewise.
3758         * modules/sys_wait-tests: Likewise.
3759         * tests/test-ctype.c: Likewise.
3760         * tests/test-dirent.c: Likewise.
3761         * tests/test-spawn.c: Likewise.
3762         * tests/test-sys_file.c: Likewise.
3763         * tests/test-sys_ioctl.c: Likewise.
3764         * tests/test-sys_wait.c: Likewise.
3765         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3766         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3767         whether or not flock is in use.
3768
3769         tests: remove License section from module
3770         * modules/arpa_inet-tests: Remove unneeded section.
3771         * modules/byteswap-tests: Likewise.
3772         * modules/ceilf-tests: Likewise.
3773         * modules/ceill-tests: Likewise.
3774         * modules/crypto/des-tests: Likewise.
3775         * modules/crypto/gc-arcfour-tests: Likewise.
3776         * modules/crypto/gc-arctwo-tests: Likewise.
3777         * modules/crypto/gc-des-tests: Likewise.
3778         * modules/crypto/gc-hmac-md5-tests: Likewise.
3779         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3780         * modules/crypto/gc-md2-tests: Likewise.
3781         * modules/crypto/gc-md4-tests: Likewise.
3782         * modules/crypto/gc-md5-tests: Likewise.
3783         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3784         * modules/crypto/gc-rijndael-tests: Likewise.
3785         * modules/crypto/gc-sha1-tests: Likewise.
3786         * modules/crypto/gc-tests: Likewise.
3787         * modules/crypto/md2-tests: Likewise.
3788         * modules/crypto/md4-tests: Likewise.
3789         * modules/fcntl-h-tests: Likewise.
3790         * modules/floorf-tests: Likewise.
3791         * modules/floorl-tests: Likewise.
3792         * modules/frexp-nolibm-tests: Likewise.
3793         * modules/frexp-tests: Likewise.
3794         * modules/frexpl-nolibm-tests: Likewise.
3795         * modules/frexpl-tests: Likewise.
3796         * modules/getaddrinfo-tests: Likewise.
3797         * modules/inttypes-tests: Likewise.
3798         * modules/isfinite-tests: Likewise.
3799         * modules/isinf-tests: Likewise.
3800         * modules/ldexpl-tests: Likewise.
3801         * modules/locale-tests: Likewise.
3802         * modules/math-tests: Likewise.
3803         * modules/netdb-tests: Likewise.
3804         * modules/netinet_in-tests: Likewise.
3805         * modules/printf-frexp-tests: Likewise.
3806         * modules/printf-frexpl-tests: Likewise.
3807         * modules/priv-set-tests: Likewise.
3808         * modules/random_r-tests: Likewise.
3809         * modules/round-tests: Likewise.
3810         * modules/roundf-tests: Likewise.
3811         * modules/roundl-tests: Likewise.
3812         * modules/search-tests: Likewise.
3813         * modules/select-tests: Likewise.
3814         * modules/signal-tests: Likewise.
3815         * modules/stdbool-tests: Likewise.
3816         * modules/stddef-tests: Likewise.
3817         * modules/stdint-tests: Likewise.
3818         * modules/stdio-tests: Likewise.
3819         * modules/stdlib-tests: Likewise.
3820         * modules/string-tests: Likewise.
3821         * modules/strings-tests: Likewise.
3822         * modules/sys_select-tests: Likewise.
3823         * modules/sys_socket-tests: Likewise.
3824         * modules/sys_stat-tests: Likewise.
3825         * modules/sys_time-tests: Likewise.
3826         * modules/sys_utsname-tests: Likewise.
3827         * modules/sysexits-tests: Likewise.
3828         * modules/time-tests: Likewise.
3829         * modules/trunc-tests: Likewise.
3830         * modules/truncf-tests: Likewise.
3831         * modules/truncl-tests: Likewise.
3832         * modules/tsearch-tests: Likewise.
3833         * modules/unistd-tests: Likewise.
3834         * modules/wchar-tests: Likewise.
3835         * modules/wctype-tests: Likewise.
3836
3837         tests: fix license on several tests
3838         * tests/test-des.c: Update to GPLv3+.
3839         * tests/test-flock.c: Likewise.
3840         * tests/test-fsync.c: Likewise.
3841         * tests/test-futimens.h: Likewise.
3842         * tests/test-gc-arcfour.c: Likewise.
3843         * tests/test-gc-arctwo.c: Likewise.
3844         * tests/test-gc-des.c: Likewise.
3845         * tests/test-gc-hmac-md5.c: Likewise.
3846         * tests/test-gc-hmac-sha1.c: Likewise.
3847         * tests/test-gc-md2.c: Likewise.
3848         * tests/test-gc-md4.c: Likewise.
3849         * tests/test-gc-md5.c: Likewise.
3850         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3851         * tests/test-gc-rijndael.c: Likewise.
3852         * tests/test-gc-sha1.c: Likewise.
3853         * tests/test-gc.c: Likewise.
3854         * tests/test-getcwd.c: Likewise.
3855         * tests/test-link.c: Likewise.
3856         * tests/test-link.h: Likewise.
3857         * tests/test-lutimens.h: Likewise.
3858         * tests/test-md2.c: Likewise.
3859         * tests/test-md4.c: Likewise.
3860         * tests/test-mkdir.h: Likewise.
3861         * tests/test-rename.c: Likewise.
3862         * tests/test-rename.h: Likewise.
3863         * tests/test-safe-alloc.c: Likewise.
3864         * tests/test-utimens-common.h: Likewise.
3865         * tests/test-utimens.h: Likewise.
3866
3867         maint: sync license texts
3868         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3869         * doc/gpl-3.0.texi: Revert copyright year update.
3870         * doc/lgpl-3.0.texi: Likewise.
3871
3872 2009-12-29  Jim Meyering  <meyering@redhat.com>
3873
3874         update nearly all FSF copyright year lists to include 2009
3875         The files named by the following are exempted:
3876             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3877               test -f "$dst" && { echo "$dst"; continue; }
3878               test -d "$dst" || continue
3879               echo "$dst"/$(basename "$src")
3880             done > exempt
3881             git ls-files tests/unictype >> exempt
3882         In the remaining files, convert to all-interval notation if
3883         - there is already at least one year interval like 2000-2003
3884         - the file is maintained by me
3885         - the file is in lib/uni*/, where that style already prevails
3886         Otherwise, use update-copyright's default.
3887
3888 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3889         and Eric Blake  <ebb9@byu.net>
3890
3891         tests: don't require debug system() to pass
3892         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3893         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3894         * tests/test-unlink.h (test_unlink_func): Likewise.
3895         * tests/test-fstatat.c (main): ...into callers.
3896         * tests/test-lstat.c (main): Likewise.
3897         * tests/test-rmdir.c (main): Likewise.
3898         * tests/test-unlink.c (main): Likewise.
3899         * tests/test-unlinkat.c (main): Likewise.
3900         * tests/test-areadlink-with-size.c (main): Don't require a
3901         debug-only system call to pass, aiding cross-testing to mingw.
3902         * tests/test-areadlink.c (main): Likewise.
3903         * tests/test-areadlinkat-with-size.c (main): Likewise.
3904         * tests/test-areadlinkat.c (main): Likewise.
3905         * tests/test-canonicalize-lgpl.c (main): Likewise.
3906         * tests/test-canonicalize.c (main): Likewise.
3907         * tests/test-chown.c (main): Likewise.
3908         * tests/test-fchownat.c (main): Likewise.
3909         * tests/test-lchown.c (main): Likewise.
3910         * tests/test-fdutimensat.c (main): Likewise.
3911         * tests/test-futimens.c (main): Likewise.
3912         * tests/test-link.c (main): Likewise.
3913         * tests/test-linkat.c (main): Likewise.
3914         * tests/test-mkdir.c (main): Likewise.
3915         * tests/test-mkdirat.c (main): Likewise.
3916         * tests/test-mkfifo.c (main): Likewise.
3917         * tests/test-mkfifoat.c (main): Likewise.
3918         * tests/test-mknod.c (main): Likewise.
3919         * tests/test-readlink.c (main): Likewise.
3920         * tests/test-remove.c (main): Likewise.
3921         * tests/test-rename.c (main): Likewise.
3922         * tests/test-renameat.c (main): Likewise.
3923         * tests/test-symlink.c (main): Likewise.
3924         * tests/test-symlinkat.c (main): Likewise.
3925         * tests/test-utimens.c (main): Likewise.
3926         * tests/test-utimensat.c (main): Likewise.
3927
3928 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3929
3930         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3931         on $(UNUSED_PARAMETER_H) to avoid build failure.
3932
3933 2009-12-28  Jim Meyering  <meyering@redhat.com>
3934
3935         update-copyright: you may specify a max. line length other than 72
3936         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3937
3938         maint: use consistent FSF copyright line syntax
3939         * lib/posixtm.c: Add missing comma in FSF copyright line.
3940         * lib/posixtm.h: Likewise.
3941         * lib/getugroups.c: Add missing ", Inc.".
3942
3943         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3944         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3945         FSF copyright line.  Remove trailing blanks.
3946
3947 2009-12-28  Eric Blake  <ebb9@byu.net>
3948
3949         test-dup2: reduce dependencies
3950         * modules/cloexec (Configure.ac): Set witness.
3951         * modules/dup2-tests (Depends-on): Drop cloexec.
3952         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3953         not present.
3954         Suggested by Bruno Haible.
3955
3956 2009-12-26  Bruno Haible  <bruno@clisp.org>
3957
3958         Remove an unneeded dependency.
3959         * modules/fseterr (Depends-on): Remove dup2.
3960
3961 2009-12-26  Eric Blake  <ebb9@byu.net>
3962
3963         tests: use macros.h in more places
3964         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3965         (ASSERT_STREAM): Provide default of stderr.
3966         * tests/test-dirent-safer.c: Include macros.h, using alternate
3967         stream for assertions.
3968         * tests/test-dup-safer.c: Likewise.
3969         * tests/test-freopen-safer.c: Likewise.
3970         * tests/test-getopt.c: Likewise.
3971         * tests/test-openat-safer.c: Likewise.
3972         * tests/test-pipe.c: Likewise.
3973         * tests/test-popen-safer.c: Likewise.
3974         * modules/dirent-safer-tests (Files): Include macros.h.
3975         * modules/unistd-safer-tests (Files): Likewise.
3976         * modules/freopen-safer-tests (Files): Likewise.
3977         * modules/getopt-posix-tests (Files): Likewise.
3978         * modules/openat-safer-tests (Files): Likewise.
3979         * modules/pipe-tests (Files): Likewise.
3980
3981 2009-12-26  Bruno Haible  <bruno@clisp.org>
3982
3983         javacomp: Portability fix.
3984         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3985         that it also works on Solaris.
3986
3987 2009-12-26  Bruno Haible  <bruno@clisp.org>
3988
3989         localename: Fix storage allocation of gl_locale_name_thread's result.
3990         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3991         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3992         all platforms that have 'uselocale'.
3993         (gl_locale_name_thread_unsafe): New function, extracted from
3994         gl_locale_name_thread.
3995         (gl_locale_name_thread): Call struniq on all platforms that have
3996         'uselocale'.
3997         * tests/test-localename.c (test_locale_name_thread): Check that the
3998         resulting strings are permanently allocated.
3999         * modules/localename-tests (Depends-on): Add strdup.
4000
4001 2009-12-26  Bruno Haible  <bruno@clisp.org>
4002
4003         * tests/test-localename.c (categories): Fill in the strings.
4004
4005 2009-12-26  Jim Meyering  <meyering@redhat.com>
4006
4007         isdir: complete the removal of m4/isdir.m4
4008         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4009
4010         isdir: clean up, since at least grep still uses it
4011         * lib/isdir.c: Include "isdir.h".
4012         (S_ISDIR): Remove now-unneeded definition.
4013         * modules/isdir (Files): Add lib/isdir.h.
4014         * lib/isdir.h: New file, with declaration.
4015         * m4/isdir.m4: Remove file -- unneeded.
4016
4017 2009-12-25  Bruno Haible  <bruno@clisp.org>
4018
4019         selinux-h: Make generated .h files standalone.
4020         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4021         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4022         * lib/se-selinux.in.h: Likewise.
4023         * modules/selinux-h (Depends-on): Add unused-parameter.
4024         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4025         selinux/selinux.h and selinux/context.h.
4026         Suggested by Eric Blake.
4027
4028 2009-12-25  Bruno Haible  <bruno@clisp.org>
4029
4030         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4031         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4032         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4033         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4034         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4035
4036 2009-12-24  Bruno Haible  <bruno@clisp.org>
4037
4038         openat: Fix warning.
4039         * lib/openat-proc.c: Include <unistd.h>.
4040
4041 2009-12-24  Bruno Haible  <bruno@clisp.org>
4042
4043         New module 'unused-parameter'.
4044         * build-aux/unused-parameter.h: New file, extracted from earlier
4045         gnulib-common.m4.
4046         * modules/unused-parameter: New file.
4047         * lib/unistr.h: Include unused-parameter.h.
4048         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4049         _GL_UNUSED.
4050         * modules/unistr/base (Depends-on): Add unused-parameter.
4051
4052 2009-12-24  Bruno Haible  <bruno@clisp.org>
4053
4054         Add missing dependencies to 'extensions' module.
4055         * m4/extensions.m4: Add comment.
4056         * modules/accept4 (Depends-on): Add extensions.
4057         * modules/dup3 (Depends-on): Likewise.
4058         * modules/fcntl (Depends-on): Likewise.
4059         * modules/futimens (Depends-on): Likewise.
4060         * modules/mknod (Depends-on): Likewise.
4061         * modules/pipe2 (Depends-on): Likewise.
4062         * modules/stat-time (Depends-on): Likewise.
4063         * modules/strcasestr-simple (Depends-on): Likewise.
4064         * modules/strsignal (Depends-on): Likewise.
4065         * modules/utimensat (Depends-on): Likewise.
4066         * modules/localcharset (Depends-on): Likewise. Needed because of
4067         gl_FCNTL_O_FLAGS.
4068         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4069         AC_TYPE_MBSTATE_T.
4070         * modules/wcsnrtombs (Depends-on): Likewise.
4071         * modules/wcsrtombs (Depends-on): Likewise.
4072
4073 2009-12-24  Bruno Haible  <bruno@clisp.org>
4074
4075         binary-io: Avoid gcc warning due to SET_BINARY.
4076         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4077         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4078
4079 2009-12-24  Bruno Haible  <bruno@clisp.org>
4080
4081         Avoid future namespace pollution on glibc systems.
4082         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4083         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4084         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4085         glibc systems.
4086
4087 2009-12-24  Bruno Haible  <bruno@clisp.org>
4088
4089         Refactor common macros used in tests.
4090         * tests/macros.h: New file.
4091         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4092         and/or <stdlib.h>, if appropriate.
4093         (ASSERT, SIZEOF): Remove macros.
4094         * tests/test-areadlink-with-size.c: Likewise.
4095         * tests/test-areadlinkat.c: Likewise.
4096         * tests/test-areadlinkat-with-size.c: Likewise.
4097         * tests/test-argmatch.c: Likewise.
4098         * tests/test-argv-iter.c: Likewise.
4099         * tests/test-array-mergesort.c: Likewise.
4100         * tests/test-array_list.c: Likewise.
4101         * tests/test-array_oset.c: Likewise.
4102         * tests/test-avltree_list.c: Likewise.
4103         * tests/test-avltree_oset.c: Likewise.
4104         * tests/test-avltreehash_list.c: Likewise.
4105         * tests/test-base64.c: Likewise.
4106         * tests/test-binary-io.c: Likewise.
4107         * tests/test-bitrotate.c: Likewise.
4108         * tests/test-btowc.c: Likewise.
4109         * tests/test-byteswap.c: Likewise.
4110         * tests/test-c-ctype.c: Likewise.
4111         * tests/test-c-stack.c: Likewise.
4112         * tests/test-c-strcasecmp.c: Likewise.
4113         * tests/test-c-strcasestr.c: Likewise.
4114         * tests/test-c-strncasecmp.c: Likewise.
4115         * tests/test-c-strstr.c: Likewise.
4116         * tests/test-canonicalize-lgpl.c: Likewise.
4117         * tests/test-canonicalize.c: Likewise.
4118         * tests/test-carray_list.c: Likewise.
4119         * tests/test-ceilf1.c: Likewise.
4120         * tests/test-ceilf2.c: Likewise.
4121         * tests/test-ceill.c: Likewise.
4122         * tests/test-chown.c: Likewise.
4123         * tests/test-cloexec.c: Likewise.
4124         * tests/test-copy-acl.c: Likewise.
4125         * tests/test-copy-file.c: Likewise.
4126         * tests/test-count-one-bits.c: Likewise.
4127         * tests/test-dprintf-posix.c: Likewise.
4128         * tests/test-dup2.c: Likewise.
4129         * tests/test-dup3.c: Likewise.
4130         * tests/test-duplocale.c: Likewise.
4131         * tests/test-fbufmode.c: Likewise.
4132         * tests/test-fchdir.c: Likewise.
4133         * tests/test-fchownat.c: Likewise.
4134         * tests/test-fcntl-safer.c: Likewise.
4135         * tests/test-fcntl.c: Likewise.
4136         * tests/test-fdopendir.c: Likewise.
4137         * tests/test-fdutimensat.c: Likewise.
4138         * tests/test-fflush2.c: Likewise.
4139         * tests/test-file-has-acl.c: Likewise.
4140         * tests/test-filevercmp.c: Likewise.
4141         * tests/test-flock.c: Likewise.
4142         * tests/test-floorf1.c: Likewise.
4143         * tests/test-floorf2.c: Likewise.
4144         * tests/test-floorl.c: Likewise.
4145         * tests/test-fnmatch.c: Likewise.
4146         * tests/test-fopen.h: Likewise.
4147         * tests/test-fpending.c: Likewise.
4148         * tests/test-fprintf-posix.c: Likewise.
4149         * tests/test-fpurge.c: Likewise.
4150         * tests/test-freadable.c: Likewise.
4151         * tests/test-freadahead.c: Likewise.
4152         * tests/test-freading.c: Likewise.
4153         * tests/test-freadptr.c: Likewise.
4154         * tests/test-freadptr2.c: Likewise.
4155         * tests/test-freadseek.c: Likewise.
4156         * tests/test-freopen.c: Likewise.
4157         * tests/test-frexp.c: Likewise.
4158         * tests/test-frexpl.c: Likewise.
4159         * tests/test-fseek.c: Likewise.
4160         * tests/test-fseeko.c: Likewise.
4161         * tests/test-fstatat.c: Likewise.
4162         * tests/test-fstrcmp.c: Likewise.
4163         * tests/test-fsync.c: Likewise.
4164         * tests/test-ftell.c: Likewise.
4165         * tests/test-ftello.c: Likewise.
4166         * tests/test-func.c: Likewise.
4167         * tests/test-futimens.c: Likewise.
4168         * tests/test-fwritable.c: Likewise.
4169         * tests/test-fwriting.c: Likewise.
4170         * tests/test-getcwd.c: Likewise.
4171         * tests/test-getdate.c: Likewise.
4172         * tests/test-getdelim.c: Likewise.
4173         * tests/test-getdtablesize.c: Likewise.
4174         * tests/test-getgroups.c: Likewise.
4175         * tests/test-getline.c: Likewise.
4176         * tests/test-getndelim2.c: Likewise.
4177         * tests/test-glob.c: Likewise.
4178         * tests/test-hash.c: Likewise.
4179         * tests/test-i-ring.c: Likewise.
4180         * tests/test-iconv-utf.c: Likewise.
4181         * tests/test-iconv.c: Likewise.
4182         * tests/test-idpriv-drop.c: Likewise.
4183         * tests/test-idpriv-droptemp.c: Likewise.
4184         * tests/test-inet_ntop.c: Likewise.
4185         * tests/test-inet_pton.c: Likewise.
4186         * tests/test-isblank.c: Likewise.
4187         * tests/test-isfinite.c: Likewise.
4188         * tests/test-isinf.c: Likewise.
4189         * tests/test-isnan.c: Likewise.
4190         * tests/test-isnand.h: Likewise.
4191         * tests/test-isnanf.h: Likewise.
4192         * tests/test-isnanl.h: Likewise.
4193         * tests/test-lchown.c: Likewise.
4194         * tests/test-ldexpl.c: Likewise.
4195         * tests/test-link.c: Likewise.
4196         * tests/test-linkat.c: Likewise.
4197         * tests/test-linked_list.c: Likewise.
4198         * tests/test-linkedhash_list.c: Likewise.
4199         * tests/test-localename.c: Likewise.
4200         * tests/test-lseek.c: Likewise.
4201         * tests/test-lstat.c: Likewise.
4202         * tests/test-mbmemcasecmp.c: Likewise.
4203         * tests/test-mbmemcasecoll.c: Likewise.
4204         * tests/test-mbrtowc.c: Likewise.
4205         * tests/test-mbscasecmp.c: Likewise.
4206         * tests/test-mbscasestr1.c: Likewise.
4207         * tests/test-mbscasestr2.c: Likewise.
4208         * tests/test-mbscasestr3.c: Likewise.
4209         * tests/test-mbscasestr4.c: Likewise.
4210         * tests/test-mbschr.c: Likewise.
4211         * tests/test-mbscspn.c: Likewise.
4212         * tests/test-mbsinit.c: Likewise.
4213         * tests/test-mbsncasecmp.c: Likewise.
4214         * tests/test-mbsnrtowcs.c: Likewise.
4215         * tests/test-mbspbrk.c: Likewise.
4216         * tests/test-mbspcasecmp.c: Likewise.
4217         * tests/test-mbsrchr.c: Likewise.
4218         * tests/test-mbsrtowcs.c: Likewise.
4219         * tests/test-mbsspn.c: Likewise.
4220         * tests/test-mbsstr1.c: Likewise.
4221         * tests/test-mbsstr2.c: Likewise.
4222         * tests/test-mbsstr3.c: Likewise.
4223         * tests/test-memchr.c: Likewise.
4224         * tests/test-memchr2.c: Likewise.
4225         * tests/test-memcmp.c: Likewise.
4226         * tests/test-memmem.c: Likewise.
4227         * tests/test-memrchr.c: Likewise.
4228         * tests/test-mkdir.c: Likewise.
4229         * tests/test-mkdirat.c: Likewise.
4230         * tests/test-mkfifo.c: Likewise.
4231         * tests/test-mkfifoat.c: Likewise.
4232         * tests/test-mknod.c: Likewise.
4233         * tests/test-nanosleep.c: Likewise.
4234         * tests/test-nl_langinfo.c: Likewise.
4235         * tests/test-obstack-printf.c: Likewise.
4236         * tests/test-open.c: Likewise.
4237         * tests/test-openat.c: Likewise.
4238         * tests/test-pipe-filter-gi1.c: Likewise.
4239         * tests/test-pipe-filter-gi2-main.c: Likewise.
4240         * tests/test-pipe-filter-ii1.c: Likewise.
4241         * tests/test-pipe-filter-ii2-main.c: Likewise.
4242         * tests/test-pipe2.c: Likewise.
4243         * tests/test-popen.h: Likewise.
4244         * tests/test-posixtm.c: Likewise.
4245         * tests/test-pread.c: Likewise.
4246         * tests/test-printf-frexp.c: Likewise.
4247         * tests/test-printf-frexpl.c: Likewise.
4248         * tests/test-printf-posix.c: Likewise.
4249         * tests/test-priv-set.c: Likewise.
4250         * tests/test-quotearg.c: Likewise.
4251         * tests/test-random_r.c: Likewise.
4252         * tests/test-rawmemchr.c: Likewise.
4253         * tests/test-rbtree_list.c: Likewise.
4254         * tests/test-rbtree_oset.c: Likewise.
4255         * tests/test-rbtreehash_list.c: Likewise.
4256         * tests/test-readlink.c: Likewise.
4257         * tests/test-remove.c: Likewise.
4258         * tests/test-rename.c: Likewise.
4259         * tests/test-renameat.c: Likewise.
4260         * tests/test-rmdir.c: Likewise.
4261         * tests/test-round1.c: Likewise.
4262         * tests/test-roundf1.c: Likewise.
4263         * tests/test-roundl.c: Likewise.
4264         * tests/test-safe-alloc.c: Likewise.
4265         * tests/test-sameacls.c: Likewise.
4266         * tests/test-set-mode-acl.c: Likewise.
4267         * tests/test-setenv.c: Likewise.
4268         * tests/test-sigaction.c: Likewise.
4269         * tests/test-signbit.c: Likewise.
4270         * tests/test-sleep.c: Likewise.
4271         * tests/test-snprintf-posix.c: Likewise.
4272         * tests/test-snprintf.c: Likewise.
4273         * tests/test-sprintf-posix.c: Likewise.
4274         * tests/test-stat-time.c: Likewise.
4275         * tests/test-stat.c: Likewise.
4276         * tests/test-strcasestr.c: Likewise.
4277         * tests/test-strchrnul.c: Likewise.
4278         * tests/test-strerror.c: Likewise.
4279         * tests/test-striconv.c: Likewise.
4280         * tests/test-striconveh.c: Likewise.
4281         * tests/test-striconveha.c: Likewise.
4282         * tests/test-strsignal.c: Likewise.
4283         * tests/test-strstr.c: Likewise.
4284         * tests/test-strtod.c: Likewise.
4285         * tests/test-strverscmp.c: Likewise.
4286         * tests/test-symlink.c: Likewise.
4287         * tests/test-symlinkat.c: Likewise.
4288         * tests/test-trunc1.c: Likewise.
4289         * tests/test-trunc2.c: Likewise.
4290         * tests/test-truncf1.c: Likewise.
4291         * tests/test-truncf2.c: Likewise.
4292         * tests/test-truncl.c: Likewise.
4293         * tests/test-uname.c: Likewise.
4294         * tests/test-unlink.c: Likewise.
4295         * tests/test-unlinkat.c: Likewise.
4296         * tests/test-unsetenv.c: Likewise.
4297         * tests/test-usleep.c: Likewise.
4298         * tests/test-utimens.c: Likewise.
4299         * tests/test-utimensat.c: Likewise.
4300         * tests/test-vasnprintf-posix.c: Likewise.
4301         * tests/test-vasnprintf-posix2.c: Likewise.
4302         * tests/test-vasnprintf.c: Likewise.
4303         * tests/test-vasprintf-posix.c: Likewise.
4304         * tests/test-vasprintf.c: Likewise.
4305         * tests/test-vdprintf-posix.c: Likewise.
4306         * tests/test-vfprintf-posix.c: Likewise.
4307         * tests/test-vprintf-posix.c: Likewise.
4308         * tests/test-vsnprintf-posix.c: Likewise.
4309         * tests/test-vsnprintf.c: Likewise.
4310         * tests/test-vsprintf-posix.c: Likewise.
4311         * tests/test-wcrtomb.c: Likewise.
4312         * tests/test-wcsnrtombs.c: Likewise.
4313         * tests/test-wcsrtombs.c: Likewise.
4314         * tests/test-wctype.c: Likewise.
4315         * tests/test-wcwidth.c: Likewise.
4316         * tests/test-xfprintf-posix.c: Likewise.
4317         * tests/test-xmemdup0.c: Likewise.
4318         * tests/test-xprintf-posix.c: Likewise.
4319         * tests/test-xvasprintf.c: Likewise.
4320         * tests/unicase/test-locale-language.c: Likewise.
4321         * tests/unicase/test-mapping-part1.h: Likewise.
4322         * tests/unicase/test-predicate-part1.h: Likewise.
4323         * tests/unicase/test-u8-casecmp.c: Likewise.
4324         * tests/unicase/test-u8-casecoll.c: Likewise.
4325         * tests/unicase/test-u8-casefold.c: Likewise.
4326         * tests/unicase/test-u8-is-cased.c: Likewise.
4327         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4328         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4329         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4330         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4331         * tests/unicase/test-u8-tolower.c: Likewise.
4332         * tests/unicase/test-u8-totitle.c: Likewise.
4333         * tests/unicase/test-u8-toupper.c: Likewise.
4334         * tests/unicase/test-u16-casecmp.c: Likewise.
4335         * tests/unicase/test-u16-casecoll.c: Likewise.
4336         * tests/unicase/test-u16-casefold.c: Likewise.
4337         * tests/unicase/test-u16-is-cased.c: Likewise.
4338         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4339         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4340         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4341         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4342         * tests/unicase/test-u16-tolower.c: Likewise.
4343         * tests/unicase/test-u16-totitle.c: Likewise.
4344         * tests/unicase/test-u16-toupper.c: Likewise.
4345         * tests/unicase/test-u32-casecmp.c: Likewise.
4346         * tests/unicase/test-u32-casecoll.c: Likewise.
4347         * tests/unicase/test-u32-casefold.c: Likewise.
4348         * tests/unicase/test-u32-is-cased.c: Likewise.
4349         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4350         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4351         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4352         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4353         * tests/unicase/test-u32-tolower.c: Likewise.
4354         * tests/unicase/test-u32-totitle.c: Likewise.
4355         * tests/unicase/test-u32-toupper.c: Likewise.
4356         * tests/unicase/test-ulc-casecmp.c: Likewise.
4357         * tests/unicase/test-ulc-casecoll.c: Likewise.
4358         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4359         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4360         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4361         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4362         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4363         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4364         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4365         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4366         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4367         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4368         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4369         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4370         * tests/unictype/test-bidi_byname.c: Likewise.
4371         * tests/unictype/test-bidi_name.c: Likewise.
4372         * tests/unictype/test-bidi_of.c: Likewise.
4373         * tests/unictype/test-bidi_test.c: Likewise.
4374         * tests/unictype/test-block_list.c: Likewise.
4375         * tests/unictype/test-block_of.c: Likewise.
4376         * tests/unictype/test-block_test.c: Likewise.
4377         * tests/unictype/test-categ_and.c: Likewise.
4378         * tests/unictype/test-categ_and_not.c: Likewise.
4379         * tests/unictype/test-categ_byname.c: Likewise.
4380         * tests/unictype/test-categ_name.c: Likewise.
4381         * tests/unictype/test-categ_none.c: Likewise.
4382         * tests/unictype/test-categ_of.c: Likewise.
4383         * tests/unictype/test-categ_or.c: Likewise.
4384         * tests/unictype/test-categ_test_withtable.c: Likewise.
4385         * tests/unictype/test-combining.c: Likewise.
4386         * tests/unictype/test-decdigit.c: Likewise.
4387         * tests/unictype/test-digit.c: Likewise.
4388         * tests/unictype/test-mirror.c: Likewise.
4389         * tests/unictype/test-numeric.c: Likewise.
4390         * tests/unictype/test-pr_byname.c: Likewise.
4391         * tests/unictype/test-pr_test.c: Likewise.
4392         * tests/unictype/test-predicate-part1.h: Likewise.
4393         * tests/unictype/test-scripts.c: Likewise.
4394         * tests/unictype/test-sy_c_ident.c: Likewise.
4395         * tests/unictype/test-sy_java_ident.c: Likewise.
4396         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4397         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4398         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4399         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4400         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4401         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4402         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4403         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4404         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4405         * tests/uninorm/test-compat-decomposition.c: Likewise.
4406         * tests/uninorm/test-composition.c: Likewise.
4407         * tests/uninorm/test-decomposing-form.c: Likewise.
4408         * tests/uninorm/test-decomposition.c: Likewise.
4409         * tests/uninorm/test-u8-nfc.c: Likewise.
4410         * tests/uninorm/test-u8-nfd.c: Likewise.
4411         * tests/uninorm/test-u8-nfkc.c: Likewise.
4412         * tests/uninorm/test-u8-nfkd.c: Likewise.
4413         * tests/uninorm/test-u8-normcmp.c: Likewise.
4414         * tests/uninorm/test-u8-normcoll.c: Likewise.
4415         * tests/uninorm/test-u16-nfc.c: Likewise.
4416         * tests/uninorm/test-u16-nfd.c: Likewise.
4417         * tests/uninorm/test-u16-nfkc.c: Likewise.
4418         * tests/uninorm/test-u16-nfkd.c: Likewise.
4419         * tests/uninorm/test-u16-normcmp.c: Likewise.
4420         * tests/uninorm/test-u16-normcoll.c: Likewise.
4421         * tests/uninorm/test-u32-nfc.c: Likewise.
4422         * tests/uninorm/test-u32-nfd.c: Likewise.
4423         * tests/uninorm/test-u32-nfkc.c: Likewise.
4424         * tests/uninorm/test-u32-nfkd.c: Likewise.
4425         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4426         * tests/uninorm/test-u32-normcmp.c: Likewise.
4427         * tests/uninorm/test-u32-normcoll.c: Likewise.
4428         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4429         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4430         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4431         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4432         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4433         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4434         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4435         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4436         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4437         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4438         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4439         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4440         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4441         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4442         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4443         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4444         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4445         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4446         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4447         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4448         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4449         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4450         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4451         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4452         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4453         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4454         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4455         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4456         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4457         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4458         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4459         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4460         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4461         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4462         * tests/uniwidth/test-u8-width.c: Likewise.
4463         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4464         * tests/uniwidth/test-u16-width.c: Likewise.
4465         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4466         * tests/uniwidth/test-u32-width.c: Likewise.
4467         * tests/uniwidth/test-uc_width.c: Likewise.
4468         * tests/uniwidth/test-uc_width2.c: Likewise.
4469         * modules/acl-tests (Files): Add tests/macros.h.
4470         * modules/areadlink-tests (Files): Likewise.
4471         * modules/areadlink-with-size-tests (Files): Likewise.
4472         * modules/areadlinkat-tests (Files): Likewise.
4473         * modules/areadlinkat-with-size-tests (Files): Likewise.
4474         * modules/argmatch-tests (Files): Likewise.
4475         * modules/argv-iter-tests (Files): Likewise.
4476         * modules/array-list-tests (Files): Likewise.
4477         * modules/array-mergesort-tests (Files): Likewise.
4478         * modules/array-oset-tests (Files): Likewise.
4479         * modules/avltree-list-tests (Files): Likewise.
4480         * modules/avltree-oset-tests (Files): Likewise.
4481         * modules/avltreehash-list-tests (Files): Likewise.
4482         * modules/base64-tests (Files): Likewise.
4483         * modules/binary-io-tests (Files): Likewise.
4484         * modules/bitrotate-tests (Files): Likewise.
4485         * modules/btowc-tests (Files): Likewise.
4486         * modules/byteswap-tests (Files): Likewise.
4487         * modules/c-ctype-tests (Files): Likewise.
4488         * modules/c-stack-tests (Files): Likewise.
4489         * modules/c-strcase-tests (Files): Likewise.
4490         * modules/c-strcasestr-tests (Files): Likewise.
4491         * modules/c-strstr-tests (Files): Likewise.
4492         * modules/canonicalize-lgpl-tests (Files): Likewise.
4493         * modules/canonicalize-tests (Files): Likewise.
4494         * modules/carray-list-tests (Files): Likewise.
4495         * modules/ceilf-tests (Files): Likewise.
4496         * modules/ceill-tests (Files): Likewise.
4497         * modules/chown-tests (Files): Likewise.
4498         * modules/cloexec-tests (Files): Likewise.
4499         * modules/copy-file-tests (Files): Likewise.
4500         * modules/count-one-bits-tests (Files): Likewise.
4501         * modules/dprintf-posix-tests (Files): Likewise.
4502         * modules/dup2-tests (Files): Likewise.
4503         * modules/dup3-tests (Files): Likewise.
4504         * modules/duplocale-tests (Files): Likewise.
4505         * modules/fbufmode-tests (Files): Likewise.
4506         * modules/fchdir-tests (Files): Likewise.
4507         * modules/fcntl-safer-tests (Files): Likewise.
4508         * modules/fcntl-tests (Files): Likewise.
4509         * modules/fdopendir-tests (Files): Likewise.
4510         * modules/fdutimensat-tests (Files): Likewise.
4511         * modules/fflush-tests (Files): Likewise.
4512         * modules/filevercmp-tests (Files): Likewise.
4513         * modules/flock-tests (Files): Likewise.
4514         * modules/floorf-tests (Files): Likewise.
4515         * modules/floorl-tests (Files): Likewise.
4516         * modules/fnmatch-tests (Files): Likewise.
4517         * modules/fopen-safer-tests (Files): Likewise.
4518         * modules/fopen-tests (Files): Likewise.
4519         * modules/fpending-tests (Files): Likewise.
4520         * modules/fprintf-posix-tests (Files): Likewise.
4521         * modules/fpurge-tests (Files): Likewise.
4522         * modules/freadable-tests (Files): Likewise.
4523         * modules/freadahead-tests (Files): Likewise.
4524         * modules/freading-tests (Files): Likewise.
4525         * modules/freadptr-tests (Files): Likewise.
4526         * modules/freadseek-tests (Files): Likewise.
4527         * modules/freopen-tests (Files): Likewise.
4528         * modules/frexp-nolibm-tests (Files): Likewise.
4529         * modules/frexp-tests (Files): Likewise.
4530         * modules/frexpl-nolibm-tests (Files): Likewise.
4531         * modules/frexpl-tests (Files): Likewise.
4532         * modules/fseek-tests (Files): Likewise.
4533         * modules/fseeko-tests (Files): Likewise.
4534         * modules/fstrcmp-tests (Files): Likewise.
4535         * modules/fsync-tests (Files): Likewise.
4536         * modules/ftell-tests (Files): Likewise.
4537         * modules/ftello-tests (Files): Likewise.
4538         * modules/func-tests (Files): Likewise.
4539         * modules/futimens-tests (Files): Likewise.
4540         * modules/fwritable-tests (Files): Likewise.
4541         * modules/fwriting-tests (Files): Likewise.
4542         * modules/getcwd-tests (Files): Likewise.
4543         * modules/getdate-tests (Files): Likewise.
4544         * modules/getdelim-tests (Files): Likewise.
4545         * modules/getdtablesize-tests (Files): Likewise.
4546         * modules/getgroups-tests (Files): Likewise.
4547         * modules/getline-tests (Files): Likewise.
4548         * modules/getndelim2-tests (Files): Likewise.
4549         * modules/glob-tests (Files): Likewise.
4550         * modules/hash-tests (Files): Likewise.
4551         * modules/i-ring-tests (Files): Likewise.
4552         * modules/iconv-tests (Files): Likewise.
4553         * modules/iconv_open-utf-tests (Files): Likewise.
4554         * modules/idpriv-drop-tests (Files): Likewise.
4555         * modules/idpriv-droptemp-tests (Files): Likewise.
4556         * modules/inet_ntop-tests (Files): Likewise.
4557         * modules/inet_pton-tests (Files): Likewise.
4558         * modules/isblank-tests (Files): Likewise.
4559         * modules/isfinite-tests (Files): Likewise.
4560         * modules/isinf-tests (Files): Likewise.
4561         * modules/isnan-tests (Files): Likewise.
4562         * modules/isnand-nolibm-tests (Files): Likewise.
4563         * modules/isnand-tests (Files): Likewise.
4564         * modules/isnanf-nolibm-tests (Files): Likewise.
4565         * modules/isnanf-tests (Files): Likewise.
4566         * modules/isnanl-nolibm-tests (Files): Likewise.
4567         * modules/isnanl-tests (Files): Likewise.
4568         * modules/lchown-tests (Files): Likewise.
4569         * modules/ldexpl-tests (Files): Likewise.
4570         * modules/link-tests (Files): Likewise.
4571         * modules/linkat-tests (Files): Likewise.
4572         * modules/linked-list-tests (Files): Likewise.
4573         * modules/linkedhash-list-tests (Files): Likewise.
4574         * modules/localename-tests (Files): Likewise.
4575         * modules/lseek-tests (Files): Likewise.
4576         * modules/lstat-tests (Files): Likewise.
4577         * modules/mbmemcasecmp-tests (Files): Likewise.
4578         * modules/mbmemcasecoll-tests (Files): Likewise.
4579         * modules/mbrtowc-tests (Files): Likewise.
4580         * modules/mbscasecmp-tests (Files): Likewise.
4581         * modules/mbscasestr-tests (Files): Likewise.
4582         * modules/mbschr-tests (Files): Likewise.
4583         * modules/mbscspn-tests (Files): Likewise.
4584         * modules/mbsinit-tests (Files): Likewise.
4585         * modules/mbsncasecmp-tests (Files): Likewise.
4586         * modules/mbsnrtowcs-tests (Files): Likewise.
4587         * modules/mbspbrk-tests (Files): Likewise.
4588         * modules/mbspcasecmp-tests (Files): Likewise.
4589         * modules/mbsrchr-tests (Files): Likewise.
4590         * modules/mbsrtowcs-tests (Files): Likewise.
4591         * modules/mbsspn-tests (Files): Likewise.
4592         * modules/mbsstr-tests (Files): Likewise.
4593         * modules/memchr-tests (Files): Likewise.
4594         * modules/memchr2-tests (Files): Likewise.
4595         * modules/memcmp-tests (Files): Likewise.
4596         * modules/memmem-tests (Files): Likewise.
4597         * modules/memrchr-tests (Files): Likewise.
4598         * modules/mkdir-tests (Files): Likewise.
4599         * modules/mkfifo-tests (Files): Likewise.
4600         * modules/mkfifoat-tests (Files): Likewise.
4601         * modules/mknod-tests (Files): Likewise.
4602         * modules/nanosleep-tests (Files): Likewise.
4603         * modules/nl_langinfo-tests (Files): Likewise.
4604         * modules/obstack-printf-tests (Files): Likewise.
4605         * modules/open-tests (Files): Likewise.
4606         * modules/openat-tests (Files): Likewise.
4607         * modules/pipe-filter-gi-tests (Files): Likewise.
4608         * modules/pipe-filter-ii-tests (Files): Likewise.
4609         * modules/pipe2-tests (Files): Likewise.
4610         * modules/popen-safer-tests (Files): Likewise.
4611         * modules/popen-tests (Files): Likewise.
4612         * modules/posixtm-tests (Files): Likewise.
4613         * modules/pread-tests (Files): Likewise.
4614         * modules/printf-frexp-tests (Files): Likewise.
4615         * modules/printf-frexpl-tests (Files): Likewise.
4616         * modules/printf-posix-tests (Files): Likewise.
4617         * modules/priv-set-tests (Files): Likewise.
4618         * modules/quotearg-tests (Files): Likewise.
4619         * modules/random_r-tests (Files): Likewise.
4620         * modules/rawmemchr-tests (Files): Likewise.
4621         * modules/rbtree-list-tests (Files): Likewise.
4622         * modules/rbtree-oset-tests (Files): Likewise.
4623         * modules/rbtreehash-list-tests (Files): Likewise.
4624         * modules/readlink-tests (Files): Likewise.
4625         * modules/remove-tests (Files): Likewise.
4626         * modules/rename-tests (Files): Likewise.
4627         * modules/renameat-tests (Files): Likewise.
4628         * modules/rmdir-tests (Files): Likewise.
4629         * modules/round-tests (Files): Likewise.
4630         * modules/roundf-tests (Files): Likewise.
4631         * modules/roundl-tests (Files): Likewise.
4632         * modules/safe-alloc-tests (Files): Likewise.
4633         * modules/setenv-tests (Files): Likewise.
4634         * modules/sigaction-tests (Files): Likewise.
4635         * modules/signbit-tests (Files): Likewise.
4636         * modules/sleep-tests (Files): Likewise.
4637         * modules/snprintf-posix-tests (Files): Likewise.
4638         * modules/snprintf-tests (Files): Likewise.
4639         * modules/sprintf-posix-tests (Files): Likewise.
4640         * modules/stat-tests (Files): Likewise.
4641         * modules/stat-time-tests (Files): Likewise.
4642         * modules/strcasestr-tests (Files): Likewise.
4643         * modules/strchrnul-tests (Files): Likewise.
4644         * modules/strerror-tests (Files): Likewise.
4645         * modules/striconv-tests (Files): Likewise.
4646         * modules/striconveh-tests (Files): Likewise.
4647         * modules/striconveha-tests (Files): Likewise.
4648         * modules/strsignal-tests (Files): Likewise.
4649         * modules/strstr-tests (Files): Likewise.
4650         * modules/strtod-tests (Files): Likewise.
4651         * modules/strverscmp-tests (Files): Likewise.
4652         * modules/symlink-tests (Files): Likewise.
4653         * modules/symlinkat-tests (Files): Likewise.
4654         * modules/trunc-tests (Files): Likewise.
4655         * modules/truncf-tests (Files): Likewise.
4656         * modules/truncl-tests (Files): Likewise.
4657         * modules/uname-tests (Files): Likewise.
4658         * modules/unicase/cased-tests (Files): Likewise.
4659         * modules/unicase/ignorable-tests (Files): Likewise.
4660         * modules/unicase/locale-language-tests (Files): Likewise.
4661         * modules/unicase/tolower-tests (Files): Likewise.
4662         * modules/unicase/totitle-tests (Files): Likewise.
4663         * modules/unicase/toupper-tests (Files): Likewise.
4664         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4665         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4666         * modules/unicase/u8-casefold-tests (Files): Likewise.
4667         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4668         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4669         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4670         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4671         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4672         * modules/unicase/u8-tolower-tests (Files): Likewise.
4673         * modules/unicase/u8-totitle-tests (Files): Likewise.
4674         * modules/unicase/u8-toupper-tests (Files): Likewise.
4675         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4676         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4677         * modules/unicase/u16-casefold-tests (Files): Likewise.
4678         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4679         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4680         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4681         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4682         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4683         * modules/unicase/u16-tolower-tests (Files): Likewise.
4684         * modules/unicase/u16-totitle-tests (Files): Likewise.
4685         * modules/unicase/u16-toupper-tests (Files): Likewise.
4686         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4687         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4688         * modules/unicase/u32-casefold-tests (Files): Likewise.
4689         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4690         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4691         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4692         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4693         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4694         * modules/unicase/u32-tolower-tests (Files): Likewise.
4695         * modules/unicase/u32-totitle-tests (Files): Likewise.
4696         * modules/unicase/u32-toupper-tests (Files): Likewise.
4697         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4698         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4699         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4700         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4701         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4702         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4703         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4704         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4705         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4706         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4707         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4708         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4709         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4710         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4711         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4712         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4713         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4714         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4715         * modules/unictype/block-list-tests (Files): Likewise.
4716         * modules/unictype/block-of-tests (Files): Likewise.
4717         * modules/unictype/block-test-tests (Files): Likewise.
4718         * modules/unictype/category-C-tests (Files): Likewise.
4719         * modules/unictype/category-Cc-tests (Files): Likewise.
4720         * modules/unictype/category-Cf-tests (Files): Likewise.
4721         * modules/unictype/category-Cn-tests (Files): Likewise.
4722         * modules/unictype/category-Co-tests (Files): Likewise.
4723         * modules/unictype/category-Cs-tests (Files): Likewise.
4724         * modules/unictype/category-L-tests (Files): Likewise.
4725         * modules/unictype/category-Ll-tests (Files): Likewise.
4726         * modules/unictype/category-Lm-tests (Files): Likewise.
4727         * modules/unictype/category-Lo-tests (Files): Likewise.
4728         * modules/unictype/category-Lt-tests (Files): Likewise.
4729         * modules/unictype/category-Lu-tests (Files): Likewise.
4730         * modules/unictype/category-M-tests (Files): Likewise.
4731         * modules/unictype/category-Mc-tests (Files): Likewise.
4732         * modules/unictype/category-Me-tests (Files): Likewise.
4733         * modules/unictype/category-Mn-tests (Files): Likewise.
4734         * modules/unictype/category-N-tests (Files): Likewise.
4735         * modules/unictype/category-Nd-tests (Files): Likewise.
4736         * modules/unictype/category-Nl-tests (Files): Likewise.
4737         * modules/unictype/category-No-tests (Files): Likewise.
4738         * modules/unictype/category-P-tests (Files): Likewise.
4739         * modules/unictype/category-Pc-tests (Files): Likewise.
4740         * modules/unictype/category-Pd-tests (Files): Likewise.
4741         * modules/unictype/category-Pe-tests (Files): Likewise.
4742         * modules/unictype/category-Pf-tests (Files): Likewise.
4743         * modules/unictype/category-Pi-tests (Files): Likewise.
4744         * modules/unictype/category-Po-tests (Files): Likewise.
4745         * modules/unictype/category-Ps-tests (Files): Likewise.
4746         * modules/unictype/category-S-tests (Files): Likewise.
4747         * modules/unictype/category-Sc-tests (Files): Likewise.
4748         * modules/unictype/category-Sk-tests (Files): Likewise.
4749         * modules/unictype/category-Sm-tests (Files): Likewise.
4750         * modules/unictype/category-So-tests (Files): Likewise.
4751         * modules/unictype/category-Z-tests (Files): Likewise.
4752         * modules/unictype/category-Zl-tests (Files): Likewise.
4753         * modules/unictype/category-Zp-tests (Files): Likewise.
4754         * modules/unictype/category-Zs-tests (Files): Likewise.
4755         * modules/unictype/category-and-not-tests (Files): Likewise.
4756         * modules/unictype/category-and-tests (Files): Likewise.
4757         * modules/unictype/category-byname-tests (Files): Likewise.
4758         * modules/unictype/category-name-tests (Files): Likewise.
4759         * modules/unictype/category-none-tests (Files): Likewise.
4760         * modules/unictype/category-of-tests (Files): Likewise.
4761         * modules/unictype/category-or-tests (Files): Likewise.
4762         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4763         * modules/unictype/combining-class-tests (Files): Likewise.
4764         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4765         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4766         * modules/unictype/ctype-blank-tests (Files): Likewise.
4767         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4768         * modules/unictype/ctype-digit-tests (Files): Likewise.
4769         * modules/unictype/ctype-graph-tests (Files): Likewise.
4770         * modules/unictype/ctype-lower-tests (Files): Likewise.
4771         * modules/unictype/ctype-print-tests (Files): Likewise.
4772         * modules/unictype/ctype-punct-tests (Files): Likewise.
4773         * modules/unictype/ctype-space-tests (Files): Likewise.
4774         * modules/unictype/ctype-upper-tests (Files): Likewise.
4775         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4776         * modules/unictype/decimal-digit-tests (Files): Likewise.
4777         * modules/unictype/digit-tests (Files): Likewise.
4778         * modules/unictype/mirror-tests (Files): Likewise.
4779         * modules/unictype/numeric-tests (Files): Likewise.
4780         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4781         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4782         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4783         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4784         Likewise.
4785         * modules/unictype/property-bidi-block-separator-tests (Files):
4786         Likewise.
4787         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4788         Likewise.
4789         * modules/unictype/property-bidi-common-separator-tests (Files):
4790         Likewise.
4791         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4792         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4793         Likewise.
4794         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4795         Likewise.
4796         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4797         Likewise.
4798         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4799         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4800         Likewise.
4801         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4802         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4803         Likewise.
4804         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4805         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4806         * modules/unictype/property-bidi-segment-separator-tests (Files):
4807         Likewise.
4808         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4809         * modules/unictype/property-byname-tests (Files): Likewise.
4810         * modules/unictype/property-combining-tests (Files): Likewise.
4811         * modules/unictype/property-composite-tests (Files): Likewise.
4812         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4813         * modules/unictype/property-dash-tests (Files): Likewise.
4814         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4815         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4816         Likewise.
4817         * modules/unictype/property-deprecated-tests (Files): Likewise.
4818         * modules/unictype/property-diacritic-tests (Files): Likewise.
4819         * modules/unictype/property-extender-tests (Files): Likewise.
4820         * modules/unictype/property-format-control-tests (Files): Likewise.
4821         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4822         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4823         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4824         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4825         * modules/unictype/property-hyphen-tests (Files): Likewise.
4826         * modules/unictype/property-id-continue-tests (Files): Likewise.
4827         * modules/unictype/property-id-start-tests (Files): Likewise.
4828         * modules/unictype/property-ideographic-tests (Files): Likewise.
4829         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4830         * modules/unictype/property-ids-trinary-operator-tests (Files):
4831         Likewise.
4832         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4833         * modules/unictype/property-iso-control-tests (Files): Likewise.
4834         * modules/unictype/property-join-control-tests (Files): Likewise.
4835         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4836         * modules/unictype/property-line-separator-tests (Files): Likewise.
4837         * modules/unictype/property-logical-order-exception-tests (Files):
4838         Likewise.
4839         * modules/unictype/property-lowercase-tests (Files): Likewise.
4840         * modules/unictype/property-math-tests (Files): Likewise.
4841         * modules/unictype/property-non-break-tests (Files): Likewise.
4842         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4843         * modules/unictype/property-numeric-tests (Files): Likewise.
4844         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4845         * modules/unictype/property-other-default-ignorable-code-point-tests
4846         (Files): Likewise.
4847         * modules/unictype/property-other-grapheme-extend-tests (Files):
4848         Likewise.
4849         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4850         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4851         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4852         * modules/unictype/property-other-math-tests (Files): Likewise.
4853         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4854         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4855         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4856         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4857         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4858         * modules/unictype/property-private-use-tests (Files): Likewise.
4859         * modules/unictype/property-punctuation-tests (Files): Likewise.
4860         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4861         * modules/unictype/property-radical-tests (Files): Likewise.
4862         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4863         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4864         * modules/unictype/property-space-tests (Files): Likewise.
4865         * modules/unictype/property-terminal-punctuation-tests (Files):
4866         Likewise.
4867         * modules/unictype/property-test-tests (Files): Likewise.
4868         * modules/unictype/property-titlecase-tests (Files): Likewise.
4869         * modules/unictype/property-unassigned-code-value-tests (Files):
4870         Likewise.
4871         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4872         * modules/unictype/property-uppercase-tests (Files): Likewise.
4873         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4874         * modules/unictype/property-white-space-tests (Files): Likewise.
4875         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4876         * modules/unictype/property-xid-start-tests (Files): Likewise.
4877         * modules/unictype/property-zero-width-tests (Files): Likewise.
4878         * modules/unictype/scripts-tests (Files): Likewise.
4879         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4880         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4881         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4882         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4883         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4884         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4885         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4886         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4887         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4888         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4889         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4890         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4891         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4892         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4893         * modules/uninorm/composition-tests (Files): Likewise.
4894         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4895         * modules/uninorm/decomposition-tests (Files): Likewise.
4896         * modules/uninorm/filter-tests (Files): Likewise.
4897         * modules/uninorm/nfc-tests (Files): Likewise.
4898         * modules/uninorm/nfd-tests (Files): Likewise.
4899         * modules/uninorm/nfkc-tests (Files): Likewise.
4900         * modules/uninorm/nfkd-tests (Files): Likewise.
4901         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4902         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4903         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4904         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4905         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4906         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4907         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4908         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4909         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4910         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4911         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4912         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4913         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4914         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4915         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4916         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4917         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4918         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4919         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4920         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4921         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4922         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4923         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4924         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4925         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4926         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4927         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4928         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4929         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4930         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4931         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4932         * modules/uniwidth/u8-width-tests (Files): Likewise.
4933         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4934         * modules/uniwidth/u16-width-tests (Files): Likewise.
4935         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4936         * modules/uniwidth/u32-width-tests (Files): Likewise.
4937         * modules/uniwidth/width-tests (Files): Likewise.
4938         * modules/unlink-tests (Files): Likewise.
4939         * modules/unsetenv-tests (Files): Likewise.
4940         * modules/usleep-tests (Files): Likewise.
4941         * modules/utimens-tests (Files): Likewise.
4942         * modules/utimensat-tests (Files): Likewise.
4943         * modules/vasnprintf-posix-tests (Files): Likewise.
4944         * modules/vasnprintf-tests (Files): Likewise.
4945         * modules/vasprintf-posix-tests (Files): Likewise.
4946         * modules/vasprintf-tests (Files): Likewise.
4947         * modules/vdprintf-posix-tests (Files): Likewise.
4948         * modules/vfprintf-posix-tests (Files): Likewise.
4949         * modules/vprintf-posix-tests (Files): Likewise.
4950         * modules/vsnprintf-posix-tests (Files): Likewise.
4951         * modules/vsnprintf-tests (Files): Likewise.
4952         * modules/vsprintf-posix-tests (Files): Likewise.
4953         * modules/wcrtomb-tests (Files): Likewise.
4954         * modules/wcsnrtombs-tests (Files): Likewise.
4955         * modules/wcsrtombs-tests (Files): Likewise.
4956         * modules/wctype-tests (Files): Likewise.
4957         * modules/wcwidth-tests (Files): Likewise.
4958         * modules/xmemdup0-tests (Files): Likewise.
4959         * modules/xprintf-posix-tests (Files): Likewise.
4960         * modules/xvasprintf-tests (Files): Likewise.
4961
4962 2009-12-24  Eric Blake  <ebb9@byu.net>
4963
4964         test-nanosleep: fix typo
4965         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4966         patch.
4967         Reported by Bruno Haible.
4968
4969 2009-12-24  Bruno Haible  <bruno@clisp.org>
4970
4971         Reduce namespace pollution on glibc systems.
4972         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4973         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4974         systems.
4975         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4976         <getopt.h> on glibc systems.
4977         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4978         systems.
4979         * lib/fcntl.c: Include <unistd.h> here instead.
4980
4981 2009-12-24  Bruno Haible  <bruno@clisp.org>
4982
4983         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4984
4985 2009-12-24  Eric Blake  <ebb9@byu.net>
4986
4987         tests: add signature checks
4988         * tests/signature.h (SIGNATURE_CHECK): New file.
4989         * modules/atexit-tests (Files): Use it.
4990         * modules/btowc-tests (Files): Likewise.
4991         * modules/canonicalize-lgpl-tests (Files): Likewise.
4992         * modules/ceilf-tests (Files): Likewise.
4993         * modules/ceill-tests (Files): Likewise.
4994         * modules/chown-tests (Files): Likewise.
4995         * modules/dprintf-posix-tests (Files): Likewise.
4996         * modules/dup2-tests (Files): Likewise.
4997         * modules/dup3-tests (Files): Likewise.
4998         * modules/duplocale-tests (Files): Likewise.
4999         * modules/fchdir-tests (Files): Likewise.
5000         * modules/fcntl-tests (Files): Likewise.
5001         * modules/fdopendir-tests (Files): Likewise.
5002         * modules/fflush-tests (Files): Likewise.
5003         * modules/flock-tests (Files): Likewise.
5004         * modules/floorf-tests (Files): Likewise.
5005         * modules/floorl-tests (Files): Likewise.
5006         * modules/fnmatch-tests (Files): Likewise.
5007         * modules/fopen-tests (Files): Likewise.
5008         * modules/fprintf-posix-tests (Files): Likewise.
5009         * modules/freopen-tests (Files): Likewise.
5010         * modules/frexp-nolibm-tests (Files): Likewise.
5011         * modules/frexp-tests (Files): Likewise.
5012         * modules/frexpl-nolibm-tests (Files): Likewise.
5013         * modules/frexpl-tests (Files): Likewise.
5014         * modules/fseek-tests (Files): Likewise.
5015         * modules/fseeko-tests (Files): Likewise.
5016         * modules/fsync-tests (Files): Likewise.
5017         * modules/ftell-tests (Files): Likewise.
5018         * modules/ftello-tests (Files): Likewise.
5019         * modules/futimens-tests (Files): Likewise.
5020         * modules/getaddrinfo-tests (Files): Likewise.
5021         * modules/getcwd-tests (Files): Likewise.
5022         * modules/getdelim-tests (Files): Likewise.
5023         * modules/getdtablesize-tests (Files): Likewise.
5024         * modules/getgroups-tests (Files): Likewise.
5025         * modules/gethostname-tests (Files): Likewise.
5026         * modules/getline-tests (Files): Likewise.
5027         * modules/getopt-posix-tests (Files): Likewise.
5028         * modules/gettimeofday-tests (Files): Likewise.
5029         * modules/glob-tests (Files): Likewise.
5030         * modules/iconv-tests (Files): Likewise.
5031         * modules/inet_ntop-tests (Files): Likewise.
5032         * modules/inet_pton-tests (Files): Likewise.
5033         * modules/isblank-tests (Files): Likewise.
5034         * modules/lchown-tests (Files): Likewise.
5035         * modules/ldexpl-tests (Files): Likewise.
5036         * modules/link-tests (Files): Likewise.
5037         * modules/linkat-tests (Files): Likewise.
5038         * modules/lseek-tests (Files): Likewise.
5039         * modules/lstat-tests (Files): Likewise.
5040         * modules/mbrtowc-tests (Files): Likewise.
5041         * modules/mbsinit-tests (Files): Likewise.
5042         * modules/mbsnrtowcs-tests (Files): Likewise.
5043         * modules/mbsrtowcs-tests (Files): Likewise.
5044         * modules/memchr-tests (Files): Likewise.
5045         * modules/memcmp-tests (Files): Likewise.
5046         * modules/memmem-tests (Files): Likewise.
5047         * modules/memrchr-tests (Files): Likewise.
5048         * modules/mkdir-tests (Files): Likewise.
5049         * modules/mkfifo-tests (Files): Likewise.
5050         * modules/mkfifoat-tests (Files): Likewise.
5051         * modules/mknod-tests (Files): Likewise.
5052         * modules/nanosleep-tests (Files): Likewise.
5053         * modules/nl_langinfo-tests (Files): Likewise.
5054         * modules/obstack-printf-tests (Files): Likewise.
5055         * modules/open-tests (Files): Likewise.
5056         * modules/openat-tests (Files): Likewise.
5057         * modules/perror-tests (Files): Likewise.
5058         * modules/pipe2-tests (Files): Likewise.
5059         * modules/poll-tests (Files): Likewise.
5060         * modules/popen-tests (Files): Likewise.
5061         * modules/posix_spawn-tests (Files): Likewise.
5062         * modules/posix_spawnp-tests (Files): Likewise.
5063         * modules/pread-tests (Files): Likewise.
5064         * modules/printf-posix-tests (Files): Likewise.
5065         * modules/pty-tests (Files): Likewise.
5066         * modules/random_r-tests (Files): Likewise.
5067         * modules/rawmemchr-tests (Files): Likewise.
5068         * modules/readlink-tests (Files): Likewise.
5069         * modules/remove-tests (Files): Likewise.
5070         * modules/rename-tests (Files): Likewise.
5071         * modules/renameat-tests (Files): Likewise.
5072         * modules/rmdir-tests (Files): Likewise.
5073         * modules/round-tests (Files): Likewise.
5074         * modules/roundf-tests (Files): Likewise.
5075         * modules/roundl-tests (Files): Likewise.
5076         * modules/select-tests (Files): Likewise.
5077         * modules/setenv-tests (Files): Likewise.
5078         * modules/sigaction-tests (Files): Likewise.
5079         * modules/sleep-tests (Files): Likewise.
5080         * modules/snprintf-posix-tests (Files): Likewise.
5081         * modules/snprintf-tests (Files): Likewise.
5082         * modules/sprintf-posix-tests (Files): Likewise.
5083         * modules/stat-tests (Files): Likewise.
5084         * modules/strcasestr-tests (Files): Likewise.
5085         * modules/strchrnul-tests (Files): Likewise.
5086         * modules/strerror-tests (Files): Likewise.
5087         * modules/strsignal-tests (Files): Likewise.
5088         * modules/strstr-tests (Files): Likewise.
5089         * modules/strtod-tests (Files): Likewise.
5090         * modules/strverscmp-tests (Files): Likewise.
5091         * modules/symlink-tests (Files): Likewise.
5092         * modules/symlinkat-tests (Files): Likewise.
5093         * modules/times-tests (Files): Likewise.
5094         * modules/trunc-tests (Files): Likewise.
5095         * modules/truncf-tests (Files): Likewise.
5096         * modules/truncl-tests (Files): Likewise.
5097         * modules/tsearch-tests (Files): Likewise.
5098         * modules/uname-tests (Files): Likewise.
5099         * modules/unlink-tests (Files): Likewise.
5100         * modules/unsetenv-tests (Files): Likewise.
5101         * modules/usleep-tests (Files): Likewise.
5102         * modules/utimensat-tests (Files): Likewise.
5103         * modules/vasprintf-tests (Files): Likewise.
5104         * modules/vdprintf-posix-tests (Files): Likewise.
5105         * modules/vfprintf-posix-tests (Files): Likewise.
5106         * modules/vprintf-posix-tests (Files): Likewise.
5107         * modules/vsnprintf-posix-tests (Files): Likewise.
5108         * modules/vsnprintf-tests (Files): Likewise.
5109         * modules/vsprintf-posix-tests (Files): Likewise.
5110         * modules/wcrtomb-tests (Files): Likewise.
5111         * modules/wcsnrtombs-tests (Files): Likewise.
5112         * modules/wcsrtombs-tests (Files): Likewise.
5113         * modules/wcwidth-tests (Files): Likewise.
5114         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5115         * tests/test-isinf.c (isinf): Likewise.
5116         * tests/test-isnan.c (isnan): Likewise.
5117         * tests/test-signbit.c (signbit): Likewise.
5118         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5119         declaration, either as macro or with correct signature.
5120         (select): Ensure function under test is declared with correct
5121         signature in correct header.
5122         * tests/test-atexit.c (atexit): Likewise.
5123         * tests/test-btowc.c (btowc): Likewise.
5124         * tests/test-canonicalize-lgpl.c (realpath)
5125         (canonicalize_file_name): Likewise.
5126         * tests/test-ceilf1.c (ceilf): Likewise.
5127         * tests/test-ceill.c (ceill): Likewise.
5128         * tests/test-chown.c (chown): Likewise.
5129         * tests/test-dprintf-posix.c (dprintf): Likewise.
5130         * tests/test-dup2.c (dup2): Likewise.
5131         * tests/test-dup3.c (dup3): Likewise.
5132         * tests/test-duplocale.c (duplocale): Likewise.
5133         * tests/test-fchdir.c (fchdir): Likewise.
5134         * tests/test-fchownat.c (fchownat): Likewise.
5135         * tests/test-fcntl.c (fcntl): Likewise.
5136         * tests/test-fdopendir.c (fdopendir): Likewise.
5137         * tests/test-fflush.c (fflush): Likewise.
5138         * tests/test-flock.c (flock): Likewise.
5139         * tests/test-floorf1.c (floorf): Likewise.
5140         * tests/test-floorl.c (floorl): Likewise.
5141         * tests/test-fnmatch.c (fnmatch): Likewise.
5142         * tests/test-fopen.c (fopen): Likewise.
5143         * tests/test-fprintf-posix.c (fprintf): Likewise.
5144         * tests/test-freopen.c (freopen): Likewise.
5145         * tests/test-frexp.c (frexp): Likewise.
5146         * tests/test-frexpl.c (frexpl): Likewise.
5147         * tests/test-fseek.c (fseek): Likewise.
5148         * tests/test-fseeko.c (fseeko): Likewise.
5149         * tests/test-fstatat.c (fstatat): Likewise.
5150         * tests/test-fsync.c (fsync): Likewise.
5151         * tests/test-ftell.c (ftell): Likewise.
5152         * tests/test-ftello.c (ftello): Likewise.
5153         * tests/test-futimens.c (futimens): Likewise.
5154         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5155         (gai_strerror): Likewise.
5156         * tests/test-getcwd.c (getcwd): Likewise.
5157         * tests/test-getdelim.c (getdelim): Likewise.
5158         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5159         * tests/test-getgroups.c (getgroups): Likewise.
5160         * tests/test-gethostname.c (gethostname): Likewise.
5161         * tests/test-getline.c (getline): Likewise.
5162         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5163         Likewise.
5164         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5165         * tests/test-glob.c (glob, globfree): Likewise.
5166         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5167         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5168         * tests/test-inet_pton.c (inet_pton): Likewise.
5169         * tests/test-isblank.c (isblank): Likewise.
5170         * tests/test-lchown.c (lchown): Likewise.
5171         * tests/test-ldexpl.c (ldexpl): Likewise.
5172         * tests/test-link.c (link): Likewise.
5173         * tests/test-linkat.c (linkat): Likewise.
5174         * tests/test-lseek.c (lseek): Likewise.
5175         * tests/test-lstat.c (lstat): Likewise.
5176         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5177         * tests/test-mbsinit.c (mbsinit): Likewise.
5178         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5179         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5180         * tests/test-memchr.c (memchr): Likewise.
5181         * tests/test-memcmp.c (memcmp): Likewise.
5182         * tests/test-memmem.c (memmem): Likewise.
5183         * tests/test-memrchr.c (memrchr): Likewise.
5184         * tests/test-mkdir.c (mkdir): Likewise.
5185         * tests/test-mkdirat.c (mkdirat): Likewise.
5186         * tests/test-mkfifo.c (mkfifo): Likewise.
5187         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5188         * tests/test-mknod.c (mknod): Likewise.
5189         * tests/test-nanosleep.c (nanosleep): Likewise.
5190         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5191         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5192         Likewise.
5193         * tests/test-open.c (open): Likewise.
5194         * tests/test-openat.c (openat): Likewise.
5195         * tests/test-perror.c (perror): Likewise.
5196         * tests/test-pipe2.c (pipe2): Likewise.
5197         * tests/test-poll.c (poll): Likewise.
5198         * tests/test-popen.c (popen, pclose): Likewise.
5199         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5200         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5201         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5202         (posix_spawn_file_actions_destroy)
5203         (posix_spawn_file_actions_addclose)
5204         (posix_spawn_file_actions_addopen)
5205         (posix_spawn_file_actions_adddup2): Likewise.
5206         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5207         * tests/test-pread.c (pread): Likewise.
5208         * tests/test-printf-posix.c (printf): Likewise.
5209         * tests/test-pty.c (openpty, forkpty): Likewise.
5210         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5211         (random_r): Likewise.
5212         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5213         * tests/test-readlink.c (readlink): Likewise.
5214         * tests/test-remove.c (remove): Likewise.
5215         * tests/test-rename.c (rename): Likewise.
5216         * tests/test-renameat.c (renameat): Likewise.
5217         * tests/test-rmdir.c (rmdir): Likewise.
5218         * tests/test-round1.c (round): Likewise.
5219         * tests/test-roundf1.c (roundf): Likewise.
5220         * tests/test-roundl.c (roundl): Likewise.
5221         * tests/test-setenv.c (setenv): Likewise.
5222         * tests/test-sigaction.c (sigaction): Likewise.
5223         * tests/test-sleep.c (sleep): Likewise.
5224         * tests/test-snprintf.c (snprintf): Likewise.
5225         * tests/test-sprintf-posix.c (sprintf): Likewise.
5226         * tests/test-stat.c (stat): Likewise.
5227         * tests/test-stpncpy.c (stpncpy): Likewise.
5228         * tests/test-strcasestr.c (strcasestr): Likewise.
5229         * tests/test-strchrnul.c (strchrnul): Likewise.
5230         * tests/test-strerror.c (strerror): Likewise.
5231         * tests/test-strsignal.c (strsignal): Likewise.
5232         * tests/test-strstr.c (strstr): Likewise.
5233         * tests/test-strtod.c (strtod): Likewise.
5234         * tests/test-strverscmp.c (strverscmp): Likewise.
5235         * tests/test-symlink.c (symlink): Likewise.
5236         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5237         * tests/test-times.c (times): Likewise.
5238         * tests/test-trunc1.c (trunc): Likewise.
5239         * tests/test-truncf1.c (truncf): Likewise.
5240         * tests/test-truncl.c (truncl): Likewise.
5241         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5242         Likewise.
5243         * tests/test-uname.c (uname): Likewise.
5244         * tests/test-unlink.c (unlink): Likewise.
5245         * tests/test-unlinkat.c (unlinkat): Likewise.
5246         * tests/test-unsetenv.c (unsetenv): Likewise.
5247         * tests/test-usleep.c (usleep): Likewise.
5248         * tests/test-utimensat.c (utimensat): Likewise.
5249         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5250         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5251         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5252         * tests/test-vprintf-posix.c (vprintf): Likewise.
5253         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5254         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5255         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5256         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5257         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5258         * tests/test-wcwidth.c (wcwidth): Likewise.
5259
5260         build: pull in conditional headers during GNULIB_POSIXCHECK
5261         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5262         definitions from any conditionally-included headers.
5263         * lib/stdlib.in.h (includes): Likewise.
5264         * lib/unistd.in.h (includes): Likewise.
5265
5266 2009-12-24  Bruno Haible  <bruno@clisp.org>
5267
5268         * tests/test-argv-iter.c: Include header file being tested immediately
5269         after config.h.
5270         * tests/test-base64.c: Likewise.
5271         * tests/test-flock.c: Likewise.
5272         * tests/test-fsync.c: Likewise.
5273         * tests/test-getdate.c: Likewise.
5274         * tests/test-getndelim2.c: Likewise.
5275         * tests/test-isfinite.c: Likewise.
5276         * tests/test-isinf.c: Likewise.
5277         * tests/test-strerror.c: Likewise.
5278         * tests/test-strsignal.c: Likewise.
5279
5280 2009-12-23  Eric Blake  <ebb9@byu.net>
5281
5282         unistd: work around cygwin bug
5283         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5284         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5285         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5286
5287 2009-12-23  Bruno Haible  <bruno@clisp.org>
5288
5289         localename: More tests.
5290         * tests/test-localename.c (SIZEOF): New macro.
5291         (categories): New variable.
5292         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5293         test_locale_name_default): Add test w.r.t. thread locale.
5294         (test_locale_name_thread): New function.
5295         (main): Invoke it.
5296
5297         localename: Make aware of thread locale.
5298         * lib/localename.h (gl_locale_name_thread): New declaration.
5299         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5300         behaviour with respect to thread locale.
5301         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5302         <langinfo.h>, glthread/lock.h.
5303         (SIZE_BITS): New macro.
5304         (string_hash): New function.
5305         (struct hash_node): New type.
5306         (HASH_TABLE_SIZE): New macro.
5307         (struniq_hash_table, struniq_lock): New variables.
5308         (struniq): New function.
5309         (gl_locale_name_thread): New function.
5310         (gl_locale_name): Invoke it.
5311         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5312         * modules/localename (Depends-on): Add lock.
5313         Reported by Mike Gran <spk121@yahoo.com>.
5314
5315 2009-12-23  Eric Blake  <ebb9@byu.net>
5316
5317         va-args: new module
5318         * modules/va-args: New file.
5319         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5320         * MODULES.html.sh (Core language properties): Mention it.
5321
5322         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5323         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5324         named alias for __attribute__((__unused__)).
5325         * lib/chown.c: Update client.
5326         * lib/fchmodat.c: Likewise.
5327         * lib/fts.c: Likewise.
5328         * lib/getdate.y: Likewise.
5329         * lib/getgroups.c: Likewise.
5330         * lib/getopt.c: Likewise.
5331         * lib/getugroups.c: Likewise.
5332         * lib/mkdir.c: Likewise.
5333         * lib/mkfifo.c: Likewise.
5334         * lib/mkfifoat.c: Likewise.
5335         * lib/mknod.c: Likewise.
5336         * lib/mknodat.c: Likewise.
5337         * lib/readlink.c: Likewise.
5338         * lib/se-context.in.h: Likewise.
5339         * lib/se-selinux.in.h: Likewise.
5340         * lib/sockets.c: Likewise.
5341         * lib/symlink.c: Likewise.
5342         * lib/symlinkat.c: Likewise.
5343         * lib/unicodeio.c: Likewise.
5344         * lib/unistr.h: Likewise.
5345         * tests/test-areadlink.c: Likewise.
5346         * tests/test-areadlinkat.c: Likewise.
5347         * tests/test-filenamecat.c: Likewise.
5348         * tests/test-fseeko.c: Likewise.
5349         * tests/test-ftello.c: Likewise.
5350         * tests/test-getdate.c: Likewise.
5351         * tests/test-getgroups.c: Likewise.
5352         * tests/test-gethostname.c: Likewise.
5353         * tests/test-quotearg.c: Likewise.
5354         * tests/test-version-etc.c: Likewise.
5355         * tests/test-xalloc-die.c: Likewise.
5356         * tests/test-xfprintf-posix.c: Likewise.
5357         * tests/test-xprintf-posix.c: Likewise.
5358         * tests/test-xvasprintf.c: Likewise.
5359
5360         tests: avoid compiler warnings
5361         * tests/test-fcntl.c (main): Delete unused parameters.
5362         * tests/test-freopen-safer.c (main): Likewise.
5363         * tests/test-xalloc-die.c (main): Mark unused parameters.
5364         * tests/test-fseeko.c (main): Likewise.
5365         * tests/test-ftello.c (main): Likewise.
5366         * tests/test-nanosleep.c (main): Avoid declaration warning.
5367         * tests/test-sleep.c (main): Likewise.
5368         * tests/test-unsetenv.c (main): Silence warning about string
5369         literal.
5370         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5371
5372 2009-12-23  Bruno Haible  <bruno@clisp.org>
5373
5374         * tests/test-localename.c (test_locale_name): New function, extracted
5375         from main. Also test mixed situations.
5376         (test_locale_name_posix, test_locale_name_environ,
5377         test_locale_name_default): New functions.
5378         (main): Invoke them all.
5379         * modules/localename-tests (configure.ac): Test for newlocale.
5380
5381 2009-12-23  Bruno Haible  <bruno@clisp.org>
5382
5383         unistd: Ensure getcwd gets declared before being overridden.
5384         * lib/unistd.in.h: Conditionally include <io.h>.
5385
5386 2009-12-22  Bruno Haible  <bruno@clisp.org>
5387
5388         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5389         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5390         (gl_WCHAR_H): Invoke it.
5391         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5392         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5393         Reported by Karl Berry <karl@freefriends.org>.
5394
5395 2009-12-22  Eric Blake  <ebb9@byu.net>
5396
5397         math, unistd: avoid redundant includes
5398         * lib/math.in.h (isnan): No need to re-include <math.h>.
5399         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5400
5401         getsubopt: work around cygwin bug
5402         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5403         avoid conflicting with system getsubopt.
5404         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5405         bug.
5406
5407         getopt: synchronize from glibc
5408         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5409         parameter order.  Adjust all callers.
5410         (_getopt_internal_r, main): Adjust quoting in error messages.
5411         Drop considerations for outdated POSIX 1003.2 error message.
5412         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5413         callers.
5414         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5415
5416         test-getopt: test stderr behavior
5417         * modules/getopt-posix-tests (Depends-on): Add dup2.
5418         * tests/test-getopt.c (ASSERT): Avoid stderr.
5419         (main): Move stderr to a temporary file.
5420         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5421         Instead, add parameter to inform caller if output occurred.
5422         (test_getopt): Adjust all existing tests to expect silence, and
5423         add new tests of leading ":".
5424         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5425         glibc shortcomings with leading "-:" or "+:" in optstring.
5426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5427         Likewise.
5428         * doc/posix-functions/getopt.texi (getopt): Likewise.
5429
5430         test-getopt: enhance test
5431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5432         supports optind=0.
5433         * tests/test-getopt.c (OPTIND_MIN): Move...
5434         * tests/test-getopt.h (OPTIND_MIN): ...here.
5435         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5436         Require that optind=0 works, since modern BSD supports it in
5437         addition to optreset, and since coreutils expects it.
5438         (test_getopt_long_only): New test.
5439         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5440         glibc shortcomings with 'W;', and enforcement of optind=0.
5441         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5442         Likewise.
5443
5444 2009-12-21  Bruno Haible  <bruno@clisp.org>
5445
5446         localename: Improvements for MacOS X and Cygwin.
5447         * lib/localename.h (gl_locale_name_environ): New declaration.
5448         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5449         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5450         (gl_locale_name_posix): Invoke it.
5451         (gl_locale_name_default): Add comments. Use Windows native API also on
5452         Cygwin.
5453
5454 2009-12-21  Bruno Haible  <bruno@clisp.org>
5455
5456         Update list of Win32 locale ids.
5457         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5458         (LANG_SAMI): Renamed from LANG_SAAMI.
5459         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5460         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5461         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5462         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5463         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5464         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5465         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5466         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5467         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5468         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5469         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5470         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5471         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5472         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5473         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5474         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5475         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5476         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5477         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5478         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5479         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5480         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5481         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5482         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5483         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5484         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5485         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5486         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5487         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5488         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5489         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5490         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5491         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5492         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5493         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5494         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5495         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5496         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5497         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5498         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5499         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5500         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5501         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5502         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5503         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5504         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5505         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5506         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5507         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5508         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5509         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5510         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5511         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5512         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5513         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5514         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5515         Add more languages and countries for Sami, Sorbian. Add more countries
5516         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5517         for Pashto. Change country for Syriac, Tswana.
5518
5519 2009-12-21  Eric Blake  <ebb9@byu.net>
5520
5521         test-utimens: avoid spurious failure
5522         * tests/test-chown.h (nap): Factor...
5523         * tests/nap.h: ...into new file.
5524         * tests/test-lchown.h (nap): Avoid duplication.
5525         * tests/test-utimens-common.h (nap): Use shared implementation,
5526         necessary on file systems with 1-second resolution.
5527         * modules/chown-tests (Files): Include new file.
5528         * modules/fdutimensat-tests (Files): Likewise.
5529         * modules/futimens-tests (Files): Likewise.
5530         * modules/lchown-tests (Files): Likewise.
5531         * modules/openat-tests (Files): Likewise.
5532         * modules/utimens-tests (Files): Likewise.
5533         * modules/utimensat-tests (Files): Likewise.
5534
5535 2009-12-19  Eric Blake  <ebb9@byu.net>
5536
5537         futimens, utimensat: work around Linux bug
5538         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5540         * lib/utimensat.c (rpl_utimensat): Work around it.
5541         * lib/futimens.c (rpl_futimens): Adjust comment.
5542
5543         utimens: work around Linux ctime bug
5544         * lib/utimens.c (detect_ctime_bug): New helper function.
5545         (update_timespec): Differentiate between workaround needed for
5546         this bug vs. what is needed for systems that lack utimensat.
5547         (fdutimens, lutimens): Work around bug.
5548
5549         utimens: check for ctime update
5550         * tests/test-utimens-common.h (check_ctime): Define.
5551         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5552         * tests/test-futimens.h (test_futimens): Likewise.
5553         * tests/test-lutimens.h (test_lutimens): Likewise.
5554         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5555         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5556
5557 2009-12-19  Bruno Haible  <bruno@clisp.org>
5558
5559         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5560         * tests/test-dprintf-posix2.sh: New file.
5561         * tests/test-dprintf-posix2.c: New file.
5562         * modules/dprintf-posix-tests (Files): Add them.
5563         (configure.ac): Check for getrlimit and setrlimit.
5564         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5565
5566 2009-12-19  Bruno Haible  <bruno@clisp.org>
5567
5568         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5569         * tests/test-fprintf-posix3.sh: New file.
5570         * tests/test-fprintf-posix3.c: New file.
5571         * modules/fprintf-posix-tests (Files): Add them.
5572         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5573
5574 2009-12-19  Eric Blake  <ebb9@byu.net>
5575
5576         dirfd: fix prototype
5577         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5578         * lib/dirfd.c (dirfd): Likewise.
5579
5580         canonicalize: reduce memory usage
5581         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5582         allocation to size.
5583         Reported by Solar Designer <solar@openwall.com>.
5584
5585 2009-12-19  Bruno Haible  <bruno@clisp.org>
5586
5587         New module attribute 'Applicability'.
5588         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5589         * gnulib-tool: New option --extract-applicability.
5590         (func_usage): Document it.
5591         (sed_extract_prog): Recognize it.
5592         (func_get_applicability): New function.
5593         (func_import): Generalize handling of 'link-warning' module.
5594         * modules/link-warning (Applicability): New section.
5595         * modules/arg-nonnull (Applicability): New section.
5596         Repoted by Simon Josefsson <simon@josefsson.org>.
5597
5598 2009-12-19  Bruno Haible  <bruno@clisp.org>
5599
5600         fflush: tweak
5601         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5602         * lib/fseeko.c (rpl_fseeko): Likewise.
5603
5604 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5605
5606         * lib/gl_list.h: Fix typo in comment.
5607
5608 2009-12-16  Eric Blake  <ebb9@byu.net>
5609
5610         fcntl: use to simplify other modules
5611         * modules/cloexec (Depends-on): Add fcntl.
5612         * modules/fchdir (Depends-on): Likewise.
5613         * modules/fd-safer-flag (Depends-on): Likewise.
5614         * modules/unistd-safer (Depends-on): Likewise.
5615         * modules/dup3 (configure.ac): Set module indicator.
5616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5617         missing.
5618         * lib/fchdir.c (_gl_register_dup): Fix comment.
5619         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5620         * lib/dup-safer.c (dup_safer): Likewise.
5621         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5622         * lib/dup3.c (dup3): Likewise.
5623         * tests/test-fchdir.c (main): Enhance test.
5624         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
5625
5626         fcntl: port portions of fcntl to mingw
5627         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5628         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5629         replacement for mingw.
5630         * modules/fcntl (Description): Update.
5631         (Depends-on): Add dup2.
5632         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5633         * modules/fcntl-h (Makefile.am): Substitute it.
5634         * lib/fcntl.in.h (fcntl): Update declaration.
5635         (F_DUPFD, F_GETFD): New macros, when needed.
5636         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5637         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5638         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5639         we now guarantee.
5640
5641         fcntl: work around cygwin bug in F_DUPFD
5642         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5643         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5644         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5645         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5646         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5647
5648         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5649         * modules/fcntl (Files): List new files.
5650         (configure.ac): Run a test.
5651         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5652         * lib/fcntl.c (rpl_fcntl): Likewise.
5653         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5654         (gl_FCNTL_H): Always replace fcntl.h.
5655         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5656         * lib/fcntl.in.h (fcntl): Declare replacement.
5657         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5658         needed, plus a witness.
5659         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5660         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5661         * tests/test-fcntl.c: New file.
5662         * modules/fcntl-tests: Likewise.
5663
5664         binary-io: avoid potential compilation warning
5665         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5666         directives.
5667
5668         fflush: avoid compilation error on NetBSD
5669         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5670         between off_t and fpos_t, since the latter is sometimes a struct.
5671         * lib/fseeko.c (rpl_fseeko): Likewise.
5672         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5673
5674 2009-12-15  Eric Blake  <ebb9@byu.net>
5675
5676         fcntl-h, stdio, sys_ioctl: fix declarations
5677         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5678         function must not take arguments.
5679         * lib/sys_ioctl.in.h (ioctl): Likewise.
5680         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5681         (open): Add a link warning.
5682
5683 2009-12-15  Jim Meyering  <meyering@redhat.com>
5684
5685         areadlink, areadlink-with-size: relax license to LGPLv2+
5686         * modules/areadlink (License): Relax to LGPLv2+.
5687         * modules/areadlink-with-size (License): Likewise.
5688
5689 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5690             Bruno Haible  <bruno@clisp.org>
5691
5692         *printf: Fix memory leak.
5693         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5694         * lib/vfprintf.c (vfprintf): Likewise.
5695         * lib/dprintf.c (dprintf): Likewise.
5696         * lib/vdprintf.c (vdprintf): Likewise.
5697
5698 2009-12-14  Eric Blake  <ebb9@byu.net>
5699
5700         accept4: adjust module dependencies
5701         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5702
5703         utimens: one more try at avoiding compiler warning
5704         * lib/utimens.c (lutimens): Lower scope of result.
5705
5706 2009-12-13  Bruno Haible  <bruno@clisp.org>
5707
5708         Move the malloc checking from module 'list' to new module 'xlist'.
5709         * modules/xlist: New file.
5710         * lib/gl_xlist.h: New file.
5711         * lib/gl_xlist.c: New file.
5712         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5713         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5714         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5715         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5716         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5717         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5718         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5719         gl_sortedlist_nx_add): New declarations.
5720         (struct gl_list_implementation): Rename and change methods accordingly.
5721         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5722         (gl_list_nx_create): Renamed from gl_list_create.
5723         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5724         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5725         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5726         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5727         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5728         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5729         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5730         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5731         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5732         gl_list_create_empty.
5733         (gl_list_nx_create): Renamed from gl_list_create.
5734         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5735         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5736         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5737         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5738         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5739         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5740         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5741         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5742         * lib/gl_array_list.c: Don't include xalloc.h.
5743         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5744         NULL upon out-of-memory.
5745         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5746         out-of-memory.
5747         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5748         Change return type to 'int'.
5749         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5750         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5751         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5752         upon out-of-memory.
5753         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5754         upon out-of-memory.
5755         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5756         upon out-of-memory.
5757         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5758         upon out-of-memory.
5759         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5760         out-of-memory.
5761         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5762         Update.
5763         (gl_array_list_implementation): Update.
5764         * lib/gl_carray_list.c: Don't include xalloc.h.
5765         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5766         Return NULL upon out-of-memory.
5767         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5768         out-of-memory.
5769         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5770         Change return type to 'int'.
5771         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5772         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5773         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5774         upon out-of-memory.
5775         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5776         upon out-of-memory.
5777         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5778         out-of-memory.
5779         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5780         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5781         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5782         Update.
5783         (gl_carray_list_implementation): Update.
5784         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5785         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5786         gl_linked_create_empty. Return NULL upon out-of-memory.
5787         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5788         out-of-memory.
5789         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5790         Change return type to 'int'. Return -1 upon out-of-memory.
5791         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5792         out-of-memory.
5793         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5794         upon out-of-memory.
5795         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5796         upon out-of-memory.
5797         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5798         NULL upon out-of-memory.
5799         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5800         upon out-of-memory.
5801         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5802         out-of-memory.
5803         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5804         Update.
5805         * lib/gl_linked_list.c: Don't include xalloc.h.
5806         (gl_linked_list_implementation): Update.
5807         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5808         (add_to_bucket): Change return type to 'int'.
5809         (gl_linkedhash_list_implementation): Update.
5810         * lib/gl_anytree_list1.h (free_subtree): New function.
5811         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5812         gl_tree_create_empty. Return NULL upon out-of-memory.
5813         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5814         Change return type to 'int'. Return -1 upon out-of-memory.
5815         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5816         out-of-memory.
5817         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5818         (gl_tree_remove_node): New function, moved here from
5819         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5820         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5821         Update.
5822         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5823         malloc, not xmalloc. Return NULL upon out-of-memory.
5824         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5825         out-of-memory.
5826         (gl_tree_remove_node_from_tree): New function, extracted from
5827         gl_tree_remove_node.
5828         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5829         upon out-of-memory.
5830         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5831         out-of-memory.
5832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5833         upon out-of-memory.
5834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5835         upon out-of-memory.
5836         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5837         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5838         not xmalloc. Return NULL upon out-of-memory.
5839         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5840         out-of-memory.
5841         (gl_tree_remove_node_from_tree): New function, extracted from
5842         gl_tree_remove_node.
5843         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5844         upon out-of-memory.
5845         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5846         out-of-memory.
5847         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5848         upon out-of-memory.
5849         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5850         upon out-of-memory.
5851         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5852         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5853         gl_anytree_list1.h before gl_anyavltree_list2.h.
5854         (gl_avltree_list_implementation): Update.
5855         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5856         gl_anytree_list1.h before gl_anyavltree_list2.h.
5857         (gl_rbtree_list_implementation): Update.
5858         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5859         Change return type to 'int'. Return -1 upon out-of-memory. Use
5860         __builtin_expect.
5861         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5862         (gl_avltreehash_list_implementation): Update.
5863         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5864         (gl_rbtreehash_list_implementation): Update.
5865         * modules/array-list (Depends-on): Remove xalloc.
5866         * modules/carray-list (Depends-on): Likewise.
5867         * modules/linked-list (Depends-on): Likewise.
5868         * modules/linkedhash-list (Depends-on): Likewise.
5869         * modules/avltree-list (Depends-on): Likewise.
5870         * modules/rbtree-list (Depends-on): Likewise.
5871         * modules/avltreehash-list (Depends-on): Likewise.
5872         * modules/rbtreehash-list (Depends-on): Likewise.
5873
5874         * modules/xsublist: New file.
5875         * lib/gl_xsublist.h: New file.
5876         * lib/gl_xsublist.c: New file.
5877         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5878         (gl_sublist_nx_create): New declaration.
5879         * lib/gl_sublist.c: Don't include xalloc.h.
5880         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5881         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5882         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5883         Change return type to 'int'. Return -1 upon out-of-memory.
5884         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5885         upon out-of-memory.
5886         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5887         NULL upon out-of-memory.
5888         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5889         upon out-of-memory.
5890         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5891         NULL upon out-of-memory.
5892         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5893         NULL upon out-of-memory.
5894         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5895         upon out-of-memory.
5896         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5897         (gl_sublist_list_implementation): Update.
5898         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5899         upon out-of-memory.
5900         * modules/sublist (Depends-on): Remove xalloc.
5901
5902         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5903         * tests/test-carray_list.c: Likewise.
5904         * tests/test-linked_list.c: Likewise.
5905         * tests/test-linkedhash_list.c: Likewise.
5906         * tests/test-avltree_list.c: Likewise.
5907         * tests/test-rbtree_list.c: Likewise.
5908         * tests/test-avltreehash_list.c: Likewise.
5909         * tests/test-rbtreehash_list.c: Likewise.
5910         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5911         * modules/carray-list-tests (Makefile.am): Likewise.
5912         * modules/linked-list-tests (Makefile.am): Likewise.
5913         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5914         * modules/avltree-list-tests (Makefile.am): Likewise.
5915         * modules/rbtree-list-tests (Makefile.am): Likewise.
5916         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5917         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5918
5919         * NEWS: Mention the changes.
5920
5921         * lib/clean-temp.c: Include gl_xlist.h.
5922         * modules/clean-temp (Depends-on): Add xlist.
5923
5924         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5925         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5926
5927         * tests/test-array_oset.c: Include gl_xlist.h.
5928         * modules/array-oset-tests (Depends-on): Add xlist.
5929
5930         Reported by José E. Marchesi <jemarch@gnu.org>.
5931
5932 2009-12-13  Bruno Haible  <bruno@clisp.org>
5933
5934         Move the malloc checking from module 'oset' to new module 'xoset'.
5935         * modules/xoset: New file.
5936         * lib/gl_xoset.h: New file.
5937         * lib/gl_xoset.c: New file.
5938         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5939         declarations.
5940         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5941         (struct gl_oset_implementation): Rename and change methods accordingly.
5942         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5943         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5944         'int'. Mark as __warn_unused_result__.
5945         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5946         gl_oset_create_empty.
5947         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5948         'int'.
5949         * lib/gl_array_oset.c: Don't include xalloc.h.
5950         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5951         malloc, not xmalloc.
5952         (grow): Change return type to 'int'. Don't call xalloc_die.
5953         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5954         to 'int'.
5955         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5956         'int'.
5957         (gl_array_oset_implementation): Update.
5958         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5959         gl_tree_create_empty.
5960         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5961         'int'.
5962         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5963         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5964         xmalloc.
5965         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5966         not xmalloc.
5967         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5968         xmalloc.
5969         (gl_avltree_oset_implementation): Update.
5970         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5971         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5972         xmalloc.
5973         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5974         not xmalloc.
5975         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5976         xmalloc.
5977         (gl_rbtree_oset_implementation): Update.
5978         * modules/array-oset (Depends-on): Remove xalloc.
5979         * modules/avltree-oset (Depends-on): Likewise.
5980         * modules/rbtree-oset (Depends-on): Likewise.
5981         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5982         * tests/test-avltree_oset.c: Likewise.
5983         * tests/test-rbtree_oset.c: Likewise.
5984         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5985         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5986         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5987         * NEWS: Mention the change.
5988
5989 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5990
5991         maint.mk: allow a project to override release-prep commands
5992         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5993         commands into a new rule.
5994         (release-prep): New rule.
5995         (release-prep-hook): New overridable variable.
5996
5997 2009-12-13  Bruno Haible  <bruno@clisp.org>
5998
5999         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6000
6001 2009-12-13  Jim Meyering  <meyering@redhat.com>
6002
6003         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6004         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6005
6006 2009-12-12  Bruno Haible  <bruno@clisp.org>
6007
6008         duplocale: Tweak.
6009         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6010
6011 2009-12-12  Karl Berry  <karl@gnu.org>
6012
6013         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6014
6015 2009-12-12  Bruno Haible  <bruno@clisp.org>
6016
6017         * m4/po.m4: Undo incorrect untabification.
6018
6019 2009-12-12  Bruno Haible  <bruno@clisp.org>
6020
6021         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6022         * modules/c-strtod (Depends-on): Add locale.
6023         * modules/c-strtold (Depends-on): Likewise.
6024
6025 2009-12-12  Bruno Haible  <bruno@clisp.org>
6026
6027         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6028
6029 2009-12-11  Eric Blake  <ebb9@byu.net>
6030
6031         setenv: relax requirement in light of POSIX ruling
6032         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6033         not NULL.
6034         * tests/test-setenv.c (main): Relax test.
6035         * tests/test-unsetenv.c (main): Likewise.
6036         * doc/posix-functions/setenv.texi (setenv): Document this.
6037         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6038
6039 2009-12-11  Bruno Haible  <bruno@clisp.org>
6040
6041         New module 'fd-safer-flag'.
6042         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6043         * lib/dup-safer.c (dup_safer_flag): Remove function.
6044         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6045         * lib/fd-safer.c (fd_safer_flag): Remove function.
6046         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6047         * modules/cloexec (configure.ac): Drop indicator macro.
6048         * modules/fd-safer-flag: New file.
6049         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6050         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6051         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6052
6053 2009-12-11  Bruno Haible  <bruno@clisp.org>
6054
6055         Tests for module 'nl_langinfo'.
6056         * modules/nl_langinfo-tests: New file.
6057         * tests/test-nl_langinfo.sh: New file.
6058         * tests/test-nl_langinfo.c: New file.
6059
6060         New module 'nl_langinfo'.
6061         * lib/nl_langinfo.c: New file.
6062         * m4/nl_langinfo.m4: New file.
6063         * modules/nl_langinfo: New file.
6064         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6065
6066 2009-12-11  Bruno Haible  <bruno@clisp.org>
6067
6068         Tests for module 'langinfo'.
6069         * modules/langinfo-tests: New file.
6070         * tests/test-langinfo.c: New file.
6071
6072         New module 'langinfo'.
6073         * lib/langinfo.in.h: New file.
6074         * m4/langinfo_h.m4: New file.
6075         * modules/langinfo: New file.
6076         * doc/posix-headers/langinfo.texi: Mention the new module.
6077
6078 2009-12-11  Bruno Haible  <bruno@clisp.org>
6079
6080         * lib/config.charset: Untabify.
6081
6082 2009-12-11  Bruno Haible  <bruno@clisp.org>
6083
6084         * modules/unistd-safer (configure.ac): Drop indicator macro.
6085
6086 2009-12-11  Bruno Haible  <bruno@clisp.org>
6087
6088         Move pipe2-safer code to its own file.
6089         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6090         * lib/pipe-safer.c (pipe2_safer): Remove function.
6091         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6092         (Makefile.am): Add it to lib_SOURCES.
6093
6094 2009-12-10  Bruno Haible  <bruno@clisp.org>
6095
6096         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6097
6098 2009-12-10  Bruno Haible  <bruno@clisp.org>
6099
6100         Declare which arguments expect non-NULL values, for GCC and clang.
6101         * build-aux/arg-nonnull.h: New file.
6102         * modules/arg-nonnull: New file.
6103         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6104         (inet_ntop, inet_pton): Use it.
6105         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6106         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6107         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6108         (open, openat): Use it.
6109         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6110         (fnmatch): Use it.
6111         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6112         (getopt, getopt_long, getopt_long_only): Use it.
6113         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6114         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6115         Use it.
6116         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6117         (iconv_open): Use it.
6118         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6119         (strtoimax, strtoumax): Use it.
6120         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6121         (duplocale): Use it.
6122         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6123         (frexp, frexpl): Use it.
6124         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6125         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6126         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6127         (tsearch, tfind, tdelete, twalk): Use it.
6128         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6129         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6130         sigpending): Use it.
6131         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6132         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6133         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6134         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6135         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6136         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6137         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6138         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6139         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6140         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6141         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6142         Use it.
6143         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6144         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6145         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6146         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6147         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6148         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6149         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6150         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6151         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6152         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6153         strtoull, unsetenv): Use it.
6154         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6155         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6156         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6157         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6158         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6159         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6160         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6161         (strcasecmp, strncasecmp): Use it.
6162         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6163         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6164         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6165         rpl_setsockopt): Use it.
6166         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6167         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6168         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6169         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6170         (gettimeofday): Use it.
6171         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6172         (times): Use it.
6173         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6174         (uname): Use it.
6175         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6176         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6177         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6178         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6179         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6180         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6181         unlinkat, write): Use it.
6182         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6183         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6184         * lib/argv-iter.h: Include arg-nonnull.h.
6185         (_ATTRIBUTE_NONNULL_): Remove macro.
6186         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6187         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6188         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6189         optimization.
6190         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6191         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6192         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6193         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6194         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6195         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6196         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6197         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6198         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6199         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6200         * modules/dirent (Depends-on): Add arg-nonnull.
6201         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6202         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6203         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6204         * modules/fnmatch (Depends-on): Add arg-nonnull.
6205         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6206         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6207         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6208         * modules/glob (Depends-on): Add arg-nonnull.
6209         (Makefile.am): Insert arg-nonnull.h into glob.h.
6210         * modules/iconv_open (Depends-on): Add arg-nonnull.
6211         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6212         * modules/inttypes (Depends-on): Add arg-nonnull.
6213         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6214         * modules/locale (Depends-on): Add arg-nonnull.
6215         (Makefile.am): Insert arg-nonnull.h into locale.h.
6216         * modules/math (Depends-on): Add arg-nonnull.
6217         (Makefile.am): Insert arg-nonnull.h into math.h.
6218         * modules/netdb (Depends-on): Add arg-nonnull.
6219         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6220         * modules/search (Depends-on): Add arg-nonnull.
6221         (Makefile.am): Insert arg-nonnull.h into search.h.
6222         * modules/signal (Depends-on): Add arg-nonnull.
6223         (Makefile.am): Insert arg-nonnull.h into signal.h.
6224         * modules/spawn (Depends-on): Add arg-nonnull.
6225         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6226         * modules/stdio (Depends-on): Add arg-nonnull.
6227         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6228         * modules/stdlib (Depends-on): Add arg-nonnull.
6229         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6230         * modules/string (Depends-on): Add arg-nonnull.
6231         (Makefile.am): Insert arg-nonnull.h into string.h.
6232         * modules/strings (Depends-on): Add arg-nonnull.
6233         (Makefile.am): Insert arg-nonnull.h into strings.h.
6234         * modules/sys_socket (Depends-on): Add arg-nonnull.
6235         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6236         * modules/sys_stat (Depends-on): Add arg-nonnull.
6237         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6238         * modules/sys_time (Depends-on): Add arg-nonnull.
6239         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6240         * modules/sys_times (Depends-on): Add arg-nonnull.
6241         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6242         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6243         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6244         * modules/time (Depends-on): Add arg-nonnull.
6245         (Makefile.am): Insert arg-nonnull.h into time.h.
6246         * modules/unistd (Depends-on): Add arg-nonnull.
6247         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6248         * modules/wchar (Depends-on): Add arg-nonnull.
6249         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6250         * modules/argv-iter (Depends-on): Add arg-nonnull.
6251         * tests/test-canonicalize.c (null_ptr): New function.
6252         (main): Use it.
6253         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6254         (main): Use it.
6255         * tests/test-memmem.c (null_ptr): New function.
6256         (main): Use it.
6257         Reported by Jim Meyering.
6258
6259 2009-12-10  Bruno Haible  <bruno@clisp.org>
6260
6261         Use spaces for indentation, not tabs.
6262         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6263         * m4/*.m4: Untabify.
6264         * build-aux/*.h: Untabify.
6265         * tests/**/*.[hc]: Untabify.
6266         * README: New section "Indent with spaces, not TABs", based on
6267         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6268         * NEWS: Mention the change.
6269
6270 2009-12-10  Bruno Haible  <bruno@clisp.org>
6271
6272         pty test: Fix link error.
6273         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6274         test_pty_LDADD.
6275
6276 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6277
6278         * modules/pty: New file.
6279         * modules/pty-tests: New file.
6280         * m4/pty.m4: New file.
6281         * tests/test-pty.c: New file.
6282         * doc/glibc-headers/pty.texi: Modified.
6283         * doc/glibc-functions/forkpty.texi: Modified.
6284         * doc/glibc-functions/openpty.texi: Modified.
6285
6286 2009-12-10  Bruno Haible  <bruno@clisp.org>
6287
6288         Avoid syntax error in C++ mode.
6289         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6290
6291 2009-12-10  Bruno Haible  <bruno@clisp.org>
6292
6293         Use sed with option -e.
6294         * gnulib-tool (func_version, func_emit_copyright_notice,
6295         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6296         option -e to sed.
6297         * modules/link-warning (Makefile.am): Likewise.
6298
6299 2009-12-10  Jim Meyering  <meyering@redhat.com>
6300
6301         mgetgroups: do not write bytes beyond end of malloc'd buffer
6302         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6303         username, we call getgroups with a one-element-shorter buffer,
6304         but still told it the length was original, max_n_groups.
6305
6306 2009-12-09  Eric Blake  <ebb9@byu.net>
6307
6308         cloexec: relax license
6309         * modules/cloexec (Maintainer): Add myself.
6310         (License): Use LGPL, not GPL.
6311
6312         link-warning: optimize generation
6313         * modules/link-warning (Makefile.am): Reduce process usage.
6314
6315 2009-12-09  Bruno Haible  <bruno@clisp.org>
6316
6317         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6318         workaround was added on 2009-11-17.
6319
6320 2009-12-09  Jim Meyering  <meyering@redhat.com>
6321             Bruno Haible  <bruno@clisp.org>
6322
6323         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6324         * modules/link-warning (Makefile.am): Make the comment-removing sed
6325         command more robust in the face of bootstrap-prepended comment lines.
6326
6327 2009-12-09  Bruno Haible  <bruno@clisp.org>
6328
6329         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6330         most one group.
6331
6332 2009-12-09  Simon Josefsson <simon@josefsson.org>
6333             Bruno Haible  <bruno@clisp.org>
6334
6335         * build-aux/link-warning.h: Add copyright notice.
6336         * modules/link-warning (Makefile.am): Generate link-warning.h from
6337         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6338         * NEWS: Mention change in link-warning module.
6339         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6340         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6341         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6342         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6343         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6344         * modules/math (Makefile.am): Add dependency to math.h.
6345         * modules/search (Makefile.am): Add dependency to search.h.
6346         * modules/signal (Makefile.am): Add dependency to signal.h.
6347         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6348         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6349         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6350         * modules/string (Makefile.am): Add dependency to string.h.
6351         * modules/strings (Makefile.am): Add dependency to strings.h.
6352         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6353         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6354         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6355         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6356         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6357         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6358         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6359         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6360         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6361
6362 2009-12-09  Bruno Haible  <bruno@clisp.org>
6363
6364         fchdir: Optimize away rpl_fstat when possible.
6365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6366         REPLACE_OPEN_DIRECTORY.
6367         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6368
6369 2009-12-09  Bruno Haible  <bruno@clisp.org>
6370
6371         * lib/fchdir.c: Update comment.
6372
6373 2009-12-09  Bruno Haible  <bruno@clisp.org>
6374
6375         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6376
6377 2009-12-08  Eric Blake  <ebb9@byu.net>
6378
6379         fchdir: avoid memory leak on re-registration.
6380         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6381
6382 2009-12-08  Jim Meyering  <meyering@redhat.com>
6383
6384         init.sh: avoid Solaris 10 /bin/sh portability problem
6385         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6386         sourced script:
6387           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6388           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6389           bar
6390         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6391         and two tests used that idiom.
6392         * tests/init.sh: Update suggested usage comments.
6393         (path_prepend_): New function, to be used in place
6394         of the --src-path=DIR option.
6395         (setup_): Move PATH-prepending code into path_prepend_.
6396         * tests/test-pread.sh: Adapt to new usage.
6397         * tests/test-xalloc-die.sh: Likewise.
6398
6399 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6400
6401         * doc/gnulib.texi (Glibc pty.h): Add.
6402         * doc/glibc-functions/forkpty.texi: Add.
6403         * doc/glibc-functions/openpty.texi: Add.
6404         Suggested by Bruno Haible.
6405
6406 2009-12-08  Eric Blake  <ebb9@byu.net>
6407
6408         fchdir: fix logic bugs
6409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6410         * tests/test-fchdir.c (main): Enhance test.
6411         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6412         is in use.
6413
6414         dup2: fix logic bugs
6415         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6416         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6417         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6418         exists.
6419         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6420
6421 2009-12-07  Eric Blake  <ebb9@byu.net>
6422
6423         unlink: fix m4 detection
6424         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6425
6426         unistd-safer: add unit test
6427         * modules/unistd-safer-tests: New file.
6428         * tests/test-dup-safer.c: Likewise.
6429         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6430         * tests/test-dup2.c (setmode): Likewise.
6431         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6432
6433         cloexec: preserve text vs. binary across dup_cloexec
6434         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6435         mode.
6436         * modules/dup2-tests (Depends-on): Add binary-io.
6437         * modules/cloexec-tests (Depends-on): Likewise.
6438         * tests/test-dup2.c (setmode, is_mode): New helpers.
6439         (main): Add tests that translation mode is preserved.
6440         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6441         Reported by Bruno Haible.
6442
6443         mgetgroups: reduce duplicate listings
6444         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6445         resulting array.
6446         * tests/test-chown.h (test_chown): Simplify client.
6447         * tests/test-lchown.h (test_lchown): Likewise.
6448
6449 2009-12-06  Bruno Haible  <bruno@clisp.org>
6450
6451         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6452         value.
6453
6454 2009-12-06  Bruno Haible  <bruno@clisp.org>
6455
6456         * lib/progname.c: Include stdio.h, stdlib.h.
6457         (set_program_name): Reject a NULL argument.
6458
6459 2009-12-05  Eric Blake  <ebb9@byu.net>
6460
6461         pipe2-safer: new module
6462         * modules/pipe2-safer: New file.
6463         * lib/unistd-safer.h (pipe2_safer): New prototype.
6464         * lib/unistd--.h (pipe2): New wrapper.
6465         * lib/pipe-safer.c (pipe2_safer): New function.
6466         * modules/pipe (Depends-on): Add pipe2-safer.
6467         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6468
6469         stdlib-safer: preserve cloexec flag for mkostemp[s]
6470         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6471         fd_safer_flag.
6472
6473         unistd-safer: allow preservation of cloexec status via flag
6474         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6475         prototypes.
6476         * lib/dup-safer.c (dup_safer_flag): New function.
6477         * lib/fd-safer.c (fd_safer_flag): Likewise.
6478         * modules/cloexec (configure.ac): Set witness.
6479
6480         test-dup2: enhance test
6481         * modules/dup2-tests (Depends-on): Add cloexec.
6482         * tests/test-dup2.c (main): Enhance test.
6483
6484         cloexec: add dup_cloexec
6485         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6486         header and comments.
6487         * lib/cloexec.c (set_cloexec_flag): Add comments.
6488         (dup_cloexec): New function, with mingw implementation borrowed
6489         from...
6490         * lib/w32spawn.h (dup_noinherit): ...here.
6491         * modules/execute (Depends-on): Add cloexec.
6492         * modules/pipe (Depends-on): Likewise.
6493         * modules/cloexec (Depends-on): Add dup2.
6494         * modules/cloexec-tests (Files): New file.
6495         * tests/test-cloexec.c: Likewise.
6496
6497         test-xalloc-die: fix test for mingw
6498         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6499         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6500         directory and .exe suffix off argv[0] output.
6501
6502         test-fseeko: fix test for mingw
6503         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6504         than undefining fseek, so test will pass on mingw.
6505
6506 2009-12-05  Bruno Haible  <bruno@clisp.org>
6507
6508         * lib/progname.h (set_program_name): Clarify specification.
6509         * lib/progname.c (set_program_name): Likewise.
6510         Reported by Jim Meyering.
6511
6512 2009-12-05  Jim Meyering  <meyering@redhat.com>
6513
6514         maint.mk: backslash-escape parens in default regexp
6515         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6516         backslash-escape the literal parentheses.
6517
6518         maint.mk: news-date-check: use grep -E
6519         * top/maint.mk (today): Define a Make variable, not a...
6520         (news-date-check): ...shell variable.
6521         (news-date-regexp): Use the Make variable.
6522         Use grep's -E option.  Change the failing diagnostic to mention
6523         the variable, $(news-date-regexp).
6524
6525 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6526
6527         maintainer-makefile: allow customization of NEWS entry format
6528         * top/maint.mk (news-date-regexp): New overridable variable.
6529         (news-date-check): Use it.
6530
6531 2009-12-04  Eric Blake  <ebb9@byu.net>
6532
6533         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6534         * lib/mgetgroups.h (xgetgroups): New prototype.
6535         * lib/mgetgroups.c (xgetgroups): New wrapper.
6536         (mgetgroups): Handle ENOSYS.
6537         * modules/mgetgroups (Depends-on): Add realloc.
6538         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6539
6540         mgetgroups: avoid argument promotion issues with -1
6541         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6542         for invalid gid_t.
6543         * tests/test-chown.h (getegid, test_chown): Likewise.
6544         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6545
6546 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6547
6548         exclude: Fix header file problems.
6549         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6550
6551 2009-12-01  Jim Meyering  <meyering@redhat.com>
6552
6553         fts: fts_open: do not let an empty string cause immediate failure
6554         This is required in support of GNU rm, for which the command
6555         "rm A '' B" must process and remove both A and B, in spite of
6556         the empty string argument.
6557         * lib/fts.c (fts_open): Do not let the presence of an empty string
6558         cause fts_open to fail immediately.  Most fts-using tools must be
6559         able to process all arguments, in order, and can be expected to
6560         diagnose such arguments themselves.
6561
6562 2009-11-30  Eric Blake  <ebb9@byu.net>
6563
6564         utimens: fix compilation error
6565         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6566         Declare variable at right scope.
6567
6568 2009-11-29  Jim Meyering  <meyering@redhat.com>
6569
6570         bootstrap: handle perl-5.11's changed --version output
6571         * build-aux/bootstrap (get_version): Handle perl separately,
6572         since perl-5.11's --version output is different.
6573
6574 2009-11-28  Jim Meyering  <meyering@redhat.com>
6575
6576         userspec: depend on the inttostr module, too
6577         * modules/userspec (Depends-on): Add inttostr.
6578
6579         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6580         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6581         number of MAXUID when it evaluates to (uid_t) -1.
6582         Likewise for group ID.  Reported by Matt McCutchen in
6583         <http://savannah.gnu.org/bugs/?28113>
6584
6585         userspec: reformat to use spaces, not TABs
6586         * lib/userspec.c: Expand TABs to spaces.
6587         Add Emacs' "indent-tabs-mode: nil" hint.
6588
6589 2009-11-27  Eric Blake  <ebb9@byu.net>
6590
6591         getopt-gnu: flush out another BSD bug
6592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6593         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6594         flush out BSD bug.
6595         * tests/test-getopt.h (test_getopt): End lists with NULL.
6596         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6597         (test_getopt_long_posix): Enhance test.
6598         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6599         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6600         getopt-gnu.
6601         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6602         Likewise.
6603
6604 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6605
6606         * modules/idpriv-droptemp-tests (Notice): Fix text.
6607
6608 2009-11-27  Jim Meyering  <meyering@redhat.com>
6609
6610         test-xalloc-die: avoid spurious failure due to libtool argv difference
6611         In a libtool-enabled project, this test would fail due to a difference
6612         in the emitted program name, e.g.,
6613         -test-xalloc-die: memory exhausted
6614         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6615         Use program to avoid that.
6616         * modules/xalloc-die-tests (Depends-on): Add progname.
6617         * tests/test-xalloc-die.c: Include progname.h".
6618         (program_name): Remove decl.
6619         (main): Call set_program_name.
6620         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6621
6622 2009-11-26  Richard Jones  <rjones@redhat.com>
6623
6624         w32sock: leave win32 error in place.
6625         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6626
6627 2009-11-26  Eric Blake  <ebb9@byu.net>
6628
6629         init.sh: suggest to use skip_ and fail_ functions in comments
6630         * tests/init.sh: Add a sentence.
6631
6632 2009-11-25  Bruno Haible  <bruno@clisp.org>
6633
6634         init.sh: add documentation in comments
6635         * tests/init.sh: Add some developer and user documentation.
6636
6637 2009-11-26  Jim Meyering  <meyering@redhat.com>
6638
6639         init.sh: accommodate even those who specify bogus srcdir manually
6640         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6641         configure-time tests to be sanitized, so that there is no need to
6642         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6643         (with no double quotes) suffices.  However, since tests may be
6644         invoked manually, and since you may explicitly set srcdir to the
6645         name of a directory containing spaces, do quote its uses here.
6646         * tests/test-pread.sh: Likewise.
6647         Suggested by Bruno Haible.
6648
6649         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6650         * tests/test-pread.sh: Write no data into the pipe, because
6651         test-pread actually reads none.  This avoids a diagnostic,
6652         "bash: echo: write error: Broken pipe", that arises in the unusual
6653         event something is ignoring SIGPIPE, and might be interpreted
6654         as some sort of failure.  Reported by Bruno Haible.
6655
6656 2009-11-25  Jim Meyering  <meyering@redhat.com>
6657
6658         test-pread: cover failure with ESPIPE and EINVAL
6659         * tests/test-pread.c (main): Test for failure, too.
6660         * tests/test-pread.sh: Invoke with stdin on a pipe.
6661         Suggested by Eric Blake.
6662
6663         pread: improvement and fix
6664         * modules/pread (Depends-on): Depend on lseek, for portability to
6665         e.g., mingw.  Suggested by Eric Blake.
6666         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6667
6668         unistd.in.h: correct declaration of pread
6669         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6670         Reported by Richard W.M. Jones.
6671
6672         test-pread.sh: distribute the test script
6673         * modules/pread-tests (Files): Include test-pread.sh.
6674
6675         test-pread.sh: clean up
6676         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6677         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6678         That is unnecessary, since it's always ".".
6679         Suggestion from Eric Blake.
6680
6681         test-pread.sh: make executable
6682         * tests/test-pread.sh: Set executable bit.
6683         Reported by Eric Blake.
6684
6685         correct typo in test-pread.sh
6686         * tests/test-pread.sh: Add #! line.
6687
6688         test pread
6689         * tests/test-pread.c: New file.
6690         * tests/test-pread.sh: Likewise.
6691         * modules/pread-tests: Likewise.
6692
6693         pread: new module
6694         * modules/pread: New file.
6695         * lib/unistd.in.h (pread): Define/declare.
6696         * lib/pread.c (pread): New file.
6697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6698         * modules/unistd (Makefile.am): Substitute witnesses.
6699         * doc/posix-functions/pread.texi (pread): Update.
6700         * MODULES.html.sh: Add pread.
6701
6702 2009-11-25  Jim Meyering  <meyering@redhat.com>
6703
6704         tests/init.sh: new file to be used via most *.sh tests
6705         * tests/init.sh: New file.
6706
6707 2009-11-25  Eric Blake  <ebb9@byu.net>
6708
6709         utimens: work around older Linux failure with symlinks
6710         * lib/utimens.c (lutimensat_works_really): New variable.
6711         (fdutimens, lutimens): Use it to manage kernels that support
6712         nanosecond times on files, but not on symlinks.
6713         Reported by OndÅ™ej Vašík.
6714
6715         utimes: fix configure grammar
6716         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6717
6718 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6719
6720         regex: Fix fastmap for multibyte character ranges.
6721         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6722         characters when a multibyte character range is included.
6723
6724 2009-11-22  Andy Wingo  <wingo@pobox.com>
6725
6726         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6727         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6728
6729 2009-11-24  Bruno Haible  <bruno@clisp.org>
6730
6731         doc: Most *_l functions exist in MacOS X 10.5.
6732         * doc/posix-functions/duplocale.texi: Update platforms list.
6733         * doc/posix-functions/freelocale.texi: Likewise.
6734         * doc/posix-functions/newlocale.texi: Likewise.
6735         * doc/posix-functions/uselocale.texi: Likewise.
6736         * doc/posix-functions/isalnum_l.texi: Likewise.
6737         * doc/posix-functions/isalpha_l.texi: Likewise.
6738         * doc/posix-functions/isblank_l.texi: Likewise.
6739         * doc/posix-functions/iscntrl_l.texi: Likewise.
6740         * doc/posix-functions/isdigit_l.texi: Likewise.
6741         * doc/posix-functions/isgraph_l.texi: Likewise.
6742         * doc/posix-functions/islower_l.texi: Likewise.
6743         * doc/posix-functions/isprint_l.texi: Likewise.
6744         * doc/posix-functions/ispunct_l.texi: Likewise.
6745         * doc/posix-functions/isspace_l.texi: Likewise.
6746         * doc/posix-functions/isupper_l.texi: Likewise.
6747         * doc/posix-functions/iswalnum_l.texi: Likewise.
6748         * doc/posix-functions/iswalpha_l.texi: Likewise.
6749         * doc/posix-functions/iswblank_l.texi: Likewise.
6750         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6751         * doc/posix-functions/iswctype_l.texi: Likewise.
6752         * doc/posix-functions/iswdigit_l.texi: Likewise.
6753         * doc/posix-functions/iswgraph_l.texi: Likewise.
6754         * doc/posix-functions/iswlower_l.texi: Likewise.
6755         * doc/posix-functions/iswprint_l.texi: Likewise.
6756         * doc/posix-functions/iswpunct_l.texi: Likewise.
6757         * doc/posix-functions/iswspace_l.texi: Likewise.
6758         * doc/posix-functions/iswupper_l.texi: Likewise.
6759         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6760         * doc/posix-functions/isxdigit_l.texi: Likewise.
6761         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6762         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6763         * doc/posix-functions/strcoll_l.texi: Likewise.
6764         * doc/posix-functions/strfmon_l.texi: Likewise.
6765         * doc/posix-functions/strftime_l.texi: Likewise.
6766         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6767         * doc/posix-functions/strxfrm_l.texi: Likewise.
6768         * doc/posix-functions/tolower_l.texi: Likewise.
6769         * doc/posix-functions/toupper_l.texi: Likewise.
6770         * doc/posix-functions/towctrans_l.texi: Likewise.
6771         * doc/posix-functions/towlower_l.texi: Likewise.
6772         * doc/posix-functions/towupper_l.texi: Likewise.
6773         * doc/posix-functions/wcscoll_l.texi: Likewise.
6774         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6775         * doc/posix-functions/wctrans_l.texi: Likewise.
6776         * doc/posix-functions/wctype_l.texi: Likewise.
6777         * doc/glibc-functions/strptime_l.texi: Likewise.
6778         * doc/glibc-functions/strtod_l.texi: Likewise.
6779         * doc/glibc-functions/strtof_l.texi: Likewise.
6780         * doc/glibc-functions/strtol_l.texi: Likewise.
6781         * doc/glibc-functions/strtold_l.texi: Likewise.
6782         * doc/glibc-functions/strtoll_l.texi: Likewise.
6783         * doc/glibc-functions/strtoul_l.texi: Likewise.
6784         * doc/glibc-functions/strtoull_l.texi: Likewise.
6785         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6786         * doc/glibc-functions/wcstod_l.texi: Likewise.
6787         * doc/glibc-functions/wcstof_l.texi: Likewise.
6788         * doc/glibc-functions/wcstol_l.texi: Likewise.
6789         * doc/glibc-functions/wcstold_l.texi: Likewise.
6790         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6791         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6792         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6793
6794 2009-11-24  Bruno Haible  <bruno@clisp.org>
6795
6796         duplocale: Fix logic bug.
6797         * lib/duplocale.c: Don't include <langinfo.h>.
6798         (_NL_LOCALE_NAME): Remove macro.
6799         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6800         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6801
6802 2009-11-23  Jim Meyering  <meyering@redhat.com>
6803
6804         test-update-copyright: don't hard-code /usr/bin/perl
6805         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6806         perl to print the current year.  Gilles Espinasse reported that
6807         the replaced use of perl was hard-coded as /usr/bin/perl.
6808
6809 2009-11-23  Bruno Haible  <bruno@clisp.org>
6810
6811         duplocale: Add support for glibc 2.3.x.
6812         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6813
6814 2009-11-22  Bruno Haible  <bruno@clisp.org>
6815
6816         vasnprintf: Tiny optimization.
6817         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6818         MacOS X.
6819
6820 2009-11-22  Bruno Haible  <bruno@clisp.org>
6821
6822         Tests for module 'duplocale'.
6823         * modules/duplocale-tests: New file.
6824         * tests/test-duplocale.c: New file.
6825
6826         New module 'duplocale'.
6827         * m4/duplocale.m4: New file.
6828         * lib/locale.in.h (duplocale): New declaration.
6829         * lib/duplocale.c: New file.
6830         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6831         gl_LOCALE_H_DEFAULTS): New macros.
6832         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6833         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6834         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6835         REPLACE_DUPLOCALE.
6836         * modules/duplocale: New file.
6837         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6838
6839 2009-11-22  Bruno Haible  <bruno@clisp.org>
6840
6841         * modules/locale-tests (configure.ac): Test for newlocale function.
6842         * tests/test-locale.c: When the system has extended locale functions,
6843         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6844
6845         locale: Make locale_t available when possible.
6846         * lib/locale.in.h: Include <xlocale.h> when it exists.
6847         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6848         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6849         * modules/locale (Depends-on): Add extensions.
6850         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6851         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6852
6853 2009-11-22  Bruno Haible  <bruno@clisp.org>
6854
6855         Add comments.
6856         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6857         invocation.
6858         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6860         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6861
6862 2009-11-22  Bruno Haible  <bruno@clisp.org>
6863
6864         error: account for the possibility of freopen (stdout).
6865         * lib/error.c: Include <unistd.h>.
6866         (flush_stdout): New function, extracted from error and error_at_line.
6867         Determine stdout's fd dynamically.
6868         (error, error_at_line): Invoke flush_stdout.
6869         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6870         * modules/error (Depends-on): Add unistd.
6871
6872 2009-11-22  Bruno Haible  <bruno@clisp.org>
6873
6874         diffseq: Add comment.
6875         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6876
6877 2009-11-22  Jim Meyering  <meyering@redhat.com>
6878
6879         c-stack: avoid defining an unused static function
6880         * lib/c-stack.c (find_stack_direction): Do not define this function
6881         when it will not be used.
6882
6883         diffseq: avoid spurious gcc warnings
6884         * lib/diffseq.h (IF_LINT2): Define.
6885         (compareseq): Use it to initialize two members of "part".
6886         This avoids two used-uninitialized warnings.
6887
6888 2009-11-21  Jim Meyering  <meyering@redhat.com>
6889
6890         c-stack: avoid "ignoring return value of `write'" warning
6891         * lib/c-stack.c: Include "ignore-value.h".
6892         (die): Explicitly ignore each write return value.
6893         * modules/c-stack (Depends-on): Add ignore-value.
6894
6895 2009-11-21  Bruno Haible  <bruno@clisp.org>
6896
6897         diffseq: reduce scope of variable 'best'.
6898         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6899         variable, earlier used for two different purposes.
6900
6901 2009-11-21  Jim Meyering  <meyering@redhat.com>
6902
6903         diffseq: remove useless assignment to "best"
6904         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6905         assignment.  At that point "best" is already guaranteed to be zero.
6906
6907 2009-11-20  Eric Blake  <ebb9@byu.net>
6908
6909         build: mention ftp redirector in release announcements
6910         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6911         values that used to come from cfg.mk; mention FTP redirect URL.
6912         * build-aux/announce-gen: Mention the mirror list.
6913         Suggested by Karl Berry.
6914
6915         nanosleep: improve port to mingw
6916         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6918         LIB_NANOSLEEP, but only when needed.
6919         * modules/select (Link): Document LIBSOCKET.
6920         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6921         enough.
6922
6923         nanosleep: work around cygwin bug
6924         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6925         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6926         bug.
6927         (getnow): Delete, not needed.
6928         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6929         LIB_CLOCK_GETTIME.
6930         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6931         clock-time, gettime.
6932         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6933         bug.
6934         * modules/nanosleep-tests: New test.
6935         * tests/test-nanosleep.c: New file.
6936
6937         sleep: work around cygwin bug
6938         * lib/sleep.c (rpl_sleep): Work around the bug.
6939         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6940         (gl_PREREQ_SLEEP): Delete unused macro.
6941         * modules/sleep (Depends-on): Add verify.
6942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6943         * modules/unistd (Makefile.am): Substitute witness.
6944         * lib/unistd.in.h (sleep): Update prototype.
6945         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6946         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6947         * modules/sleep-tests (Depends-on): Check for alarm.
6948
6949 2009-11-20  Jim Meyering  <meyering@redhat.com>
6950
6951         maint.mk: improve sc_prohibit_magic_number_exit
6952         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6953         so it does not match uses like System.exit(1).
6954         Add comments showing how to correct all offenders.
6955
6956 2009-11-19  Eric Blake  <ebb9@byu.net>
6957
6958         xalloc-die-tests: add missing library
6959         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6960
6961         test-xvasprintf: silence compiler warnings
6962         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6963         empty string from gcc.
6964
6965 2009-11-19  Jim Meyering  <meyering@redhat.com>
6966
6967         xfreopen: new module, from coreutils
6968         * modules/xfreopen: New module.
6969         * lib/xfreopen.c: New file.
6970         * lib/xfreopen.h: New file.
6971         * MODULES.html.sh (File stream based Input/Output"): Add it.
6972
6973 2009-11-19  Eric Blake  <ebb9@byu.net>
6974
6975         manywarnings: depend on warnings
6976         * modules/manywarnings (Depends-on): Add warnings.
6977
6978         build: avoid compiler warnings
6979         * lib/select.c (rpl_select): Delete unused variable.
6980         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6981
6982 2009-11-18  Eric Blake  <ebb9@byu.net>
6983
6984         tests: avoid false negative with --with-packager
6985         * tests/test-version-etc.sh: Discard packager information.
6986         * tests/test-argp-version-etc-1.sh: Likewise.
6987         Reported by Mike Frysinger.
6988
6989         utimens: fix regression on Solaris
6990         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6991         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6992         can only change fd timestamps via futimesat.  Instead, use an
6993         additional witness macro to avoid BSD bug.
6994         Reported by Jim Meyering.
6995
6996 2009-11-17  Eric Blake  <ebb9@byu.net>
6997
6998         usleep: use it to simplify tests
6999         * modules/stat-time-tests (Depends-on): Add usleep.
7000         (configure.ac): Drop usleep check.
7001         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7002         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7003         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7004         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7005         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7006         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7007         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7008         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7009         Likewise.
7010         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7011         * tests/test-lchown.h (nap): Likewise.
7012         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7013         * tests/test-stat-time.c (nap): Likewise.
7014         * tests/test-utimens-common.h (nap): Update comments.
7015
7016         usleep: new module
7017         * modules/usleep: New file.
7018         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7019         * lib/usleep.c (usleep): Likewise.
7020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7021         * modules/unistd (Makefile.am): Substitute witnesses.
7022         * lib/unistd.in.h (usleep): Add declaration.
7023         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7024         * MODULES.html.sh (Date and time): Likewise.
7025         * modules/usleep-tests (Depends-on): New test.
7026         * tests/test-usleep.c: New file.
7027
7028         chown: work around OpenBSD bug
7029         * lib/chown.c (rpl_chown): Work around the bug.
7030         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7031         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7032         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7033         * modules/chown (Depends-on): Add stdbool.
7034         * modules/lchown (Depends-on): Likewise.
7035         * doc/posix-functions/chown.texi (chown): Document the bug.
7036         * doc/posix-functions/lchown.texi (lchown): Likewise.
7037         * tests/test-lchown.h (test_chown): Relax test.
7038
7039         mkstemp: avoid conflict with C++ keyword template
7040         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7041         * lib/mkostemp.c (mkostemp): Likewise.
7042         * lib/mkostemps.c (mkostemps): Likewise.
7043         * lib/mkstemp.c (mkstemp): Likewise.
7044         * lib/mkstemps.c (mkstemps): Likewise.
7045
7046         xalloc-die-tests: optimize
7047         * tests/test-xalloc-die.sh: Reduce number of processes.
7048
7049 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7050
7051         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7052         patch from ludo@gnu.org (Ludovic Courtès).
7053
7054 2009-11-17  Jim Meyering  <meyering@redhat.com>
7055
7056         version-etc: use proper license string
7057         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7058         * modules/version-etc-fsf: Likewise.
7059
7060 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7061
7062         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7063         printed to stdout.  Deal with EOL differences.
7064
7065 2009-11-17  Eric Blake  <ebb9@byu.net>
7066
7067         unsetenv: work around Solaris bug
7068         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7069         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7070         Reported by Jim Meyering.
7071
7072         vasnprintf: avoid compiler warnings
7073         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7074         variables.
7075         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7076
7077 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7078
7079         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7080         settings since xalloc-die is no longer the self test,
7081         xalloc-die.sh is.
7082
7083 2009-11-17  Jim Meyering  <meyering@redhat.com>
7084
7085         test-xalloc-die.sh: make the code agree with the commit log
7086         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7087         at the end, just in case you happen to have a test-xalloc-die
7088         program in some other PATH directory.
7089
7090         test-xalloc-die.sh: fix a portability bug
7091         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7092         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7093         Otherwise, argv[0] (as often seen in diagnostics) would be too
7094         system-dependent, sometimes with, and sometimes without the leading "./".
7095
7096         version-etc-fsf: relax license to LGPLv3+
7097         * modules/version-etc-fsf (License): Relax license.
7098
7099 2009-11-16  Eric Blake  <ebb9@byu.net>
7100
7101         xalloc-die-tests: avoid printing null pointer
7102         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7103         shell script.
7104         * tests/test-xalloc-die.c (program_name): Declare.
7105         * tests/test-xalloc-die.sh (tmpfiles): New file.
7106
7107         setenv, unsetenv: work around various bugs
7108         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7109         (setenv) [HAVE_SETENV]: Work around bugs.
7110         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7111         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7112         for bugs.
7113         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7114         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7116         * modules/stdlib (Makefile.am): Update substitutions.
7117         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7118         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7119         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7120         * modules/setenv-tests: New test.
7121         * modules/unsetenv-tests: Likewise.
7122         * tests/test-setenv.c: New file.
7123         * tests/test-unsetenv.c: Likewise.
7124
7125 2009-11-16  Jim Meyering  <meyering@redhat.com>
7126
7127         version-etc: relax license to LGPLv3+
7128         * modules/version-etc (License): Relax license.
7129
7130         better AC_REQUIRE expanded-before-required-warning avoidance
7131         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7132         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7133         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7134         which is no longer needed.
7135
7136 2009-11-16  Eric Blake  <ebb9@byu.net>
7137
7138         test-freading: clean up temporary file
7139         * tests/test-freading.c (main): Remove file on success, and use
7140         ASSERT more liberally.
7141         Reported by Jim Meyering.
7142
7143 2009-11-16  Jim Meyering  <meyering@redhat.com>
7144
7145         avoid new AC_REQUIRE expanded-before-required warnings
7146         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7147         merely using it.
7148         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7149         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7150
7151 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7152
7153         * tests/test-xalloc-die.c: New file.
7154         * modules/xalloc-die-tests: New file.
7155         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7156         XFAIL_TESTS so it can be appended by modules.
7157
7158 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7159
7160         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7161         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7162
7163 2009-11-14  Eric Blake  <ebb9@byu.net>
7164
7165         fnmatch: avoid compiler warning
7166         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7167         to silence compiler warning about mismatch signedness in ?:.
7168         Reported by Robert Millan.
7169
7170         intprops: add double-inclusion guard
7171         * lib/intprops.h: Allow idempotent includes.
7172         Suggested by Bruce Korb.
7173
7174         openat: detect Solaris fchownat bug
7175         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7176         penalizing glibc chownat when only lchownat is broken.
7177         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7178         trailing slash bugs.
7179         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7180         * modules/openat-tests (Files): Include more files.
7181         (Depends-on): Add mgetgroups, sleep, stat-time.
7182         (configure.ac): Add additional checks.
7183         (Makefile.am): Build new test.
7184         * tests/test-fchownat.c: New file.
7185
7186         lchown: detect Solaris and FreeBSD bug
7187         * lib/lchown.c (rpl_lchown): Work around bug.
7188         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7190         * modules/unistd (Makefile.am): Populate it.
7191         * lib/unistd.in.h (lchown): Update declaration.
7192         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7193         * modules/lchown-tests: New file.
7194         * tests/test-lchown.h (test_lchown): Likewise.
7195         * tests/test-lchown.c (main): Likewise.
7196
7197         chown: detect Solaris and FreeBSD bug
7198         * lib/chown.c (rpl_chown): Work around bug.
7199         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7200         (gl_PREREQ_CHOWN): Delete.
7201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7202         * modules/unistd (Makefile.am): Populate it.
7203         * lib/unistd.in.h (chown): Update declaration.
7204         * lib/lchown.c (chown): Update client.
7205         * modules/lchown (Depends-on): Add lstat.
7206         * doc/posix-functions/chown.texi (chown): Document the bug.
7207         * doc/posix-functions/getgroups.texi (getgroups): Document
7208         getgroups pitfall.
7209         * modules/chown-tests: New file.
7210         * tests/test-chown.h (test_chown): Likewise.
7211         * tests/test-chown.c (main): Likewise.
7212
7213 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7214
7215         gnulib-tool: correctly detect absence of m4 directories
7216         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7217
7218 2009-11-14  Jim Meyering  <meyering@redhat.com>
7219
7220         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7221         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7222
7223 2009-11-14  John W. Eaton  <jwe@gnu.org>
7224
7225         strftime.h: wrap funtion declaration in extern "C" block
7226         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7227
7228 2009-11-13  Eric Blake  <ebb9@byu.net>
7229
7230         getgroups: avoid compiler warning
7231         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7232
7233         getgroups: work around FreeBSD bug
7234         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7235         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7236         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7237         * tests/test-getgroups.c (main): Fix buffer overrun.
7238
7239         getgroups: avoid compilation failure
7240         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7241         * modules/getgroups (Depends-on): Add stdint.
7242
7243 2009-11-13  Jim Meyering  <meyering@redhat.com>
7244
7245         test-getgroups: avoid compilation failure
7246         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7247
7248 2009-11-13  Eric Blake  <ebb9@byu.net>
7249
7250         mgetgroups: new module, taken from coreutils
7251         * modules/mgetgroups: New file.
7252         * lib/mgetgroups.h: Likewise.
7253         * lib/mgetgroups.c (mgetgroups): Likewise.
7254         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7255         * MODULES.html.sh (Users and groups): Mention it.
7256
7257         getgroups: don't expose GETGROUPS_T to user
7258         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7259         an element at a time if GETGROUPS_T is wrong size.
7260         * lib/getugroups.h (getugroups): Change signature.
7261         * lib/unistd.in.h (getgroups): Likewise.
7262         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7263         signature needs fixing.
7264         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7265         AC_TYPE_GETGROUPS.
7266         * modules/group-member (Depends-on): Add getgroups.
7267         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7268         (group_member): Rely on getgroups replacement.
7269         * lib/getugroups.c (getugroups): Use gid_t.
7270         * tests/test-getgroups.c (main): Likewise.
7271         * NEWS: Mention the signature change.
7272         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7273         problem with signature.
7274         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7275         GETGROUPS_T is still useful for setgroups.
7276
7277         getgroups, getugroups: provide stubs for mingw
7278         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7279         * lib/getugroups.c (getugroups): Likewise.
7280         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7281         function.  Modernize replacement scheme.
7282         (gl_PREREQ_GETGROUPS): Delete.
7283         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7284         * modules/getgroups (configure.ac): Declare witness.
7285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7286         * modules/unistd (Depends-on): Substitute witness.
7287         * lib/unistd.in.h (getgroups): Declare replacement.
7288
7289         getgroups: avoid calling exit
7290         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7291         drop xalloc.
7292         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7293         dependencies.
7294         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7295         exiting, in the rare case of malloc failure.
7296
7297         getgroups: fix logic error
7298         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7299         has more than 20 groups.
7300         * modules/getgroups-tests: New test.
7301         * tests/test-getgroups.c: New file.
7302
7303 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7304
7305         * tests/test-base64.c: Improve.
7306
7307 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7308
7309         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7310         Blake <ebb9@byu.net>.
7311
7312 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7313
7314         * tests/test-xvasprintf.c: Add %s%s related checks.
7315
7316 2009-11-12  Eric Blake  <ebb9@byu.net>
7317
7318         version-etc: match standards.texi style
7319         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7320         and use <> only for URLs.
7321
7322 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7323
7324         fts: do not fail on a submount during traversal
7325         * lib/fts.c (fts_build): Read the stat info again after opening
7326         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7327         Original report at http://bugzilla.redhat.com/501848.
7328
7329 2009-11-12  Jim Meyering  <meyering@redhat.com>
7330
7331         bootstrap: sync from coreutils
7332         * build-aux/bootstrap (bootstrap_epilogue): New function.
7333         Use git_modules_config in one more place.  This make bootstrap's
7334         --gnulib-srcdir option more useful for testing.
7335
7336         bootstrap: generalize autoheader check
7337         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7338         AC_CONFIG_HEADERS.
7339
7340 2009-11-11  Eric Blake  <ebb9@byu.net>
7341
7342         mkfifoat: use new modules for Solaris and BSD bugs
7343         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7344         * lib/mkfifoat.c (mknodat): Split...
7345         * lib/mknodat.c (mknodat): ...into new file.
7346         * modules/mkfifoat (Files): Ship new file.
7347         (Depends-on): Add mkfifo, mknod.
7348         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7349         (Depends-on): Add symlink.
7350         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7351         redundant with test_mkfifo.h.
7352         (do_mkfifoat, do_mknodat): New helpers.
7353
7354         mknod: new module
7355         * modules/mknod: New file.
7356         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7357         * lib/mknod.c (mknod): Likewise.
7358         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7359         defaults.
7360         * modules/sys_stat (Makefile.am): Substitute them.
7361         * lib/sys_stat.in.h (mknod): Declare replacement.
7362         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7363         Document it.
7364         * doc/posix-functions/mknod.texi (mknod): Likewise.
7365         * modules/mknod-tests: New test.
7366         * tests/test-mknod.c: Likewise.
7367
7368         mkfifo: new module
7369         * modules/mkfifo: New file.
7370         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7371         * lib/mkfifo.c (mkfifo): Likewise.
7372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7373         defaults.
7374         * modules/sys_stat (Makefile.am): Substitute them.
7375         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7376         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7377         Document it.
7378         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7379         * modules/mkfifo-tests: New test.
7380         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7381         from test-mkfifoat.c.
7382         * tests/test-mkfifo.c: New file.
7383
7384         readlink: detect FreeBSD bug
7385         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7386         slash on symlink.
7387         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7388         * tests/test-readlink.h (test_readlink): Enhance test.
7389
7390         symlink: detect FreeBSD bug
7391         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7392         slash on symlink.
7393         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7394         * tests/test-symlink.h (test_symlink): Enhance test.
7395
7396 2009-11-10  Eric Blake  <ebb9@byu.net>
7397
7398         link: detect FreeBSD bug
7399         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7400         symlink.
7401         * doc/posix-functions/link.texi (link): Document the bug.
7402         * tests/test-link.h (test_link): Enhance test.
7403         * tests/test-linkat.c (main): Update caller.
7404
7405         unlink, remove: detect FreeBSD bug
7406         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7407         slash on symlink.
7408         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7409         * doc/posix-functions/remove.texi (remove): Likewise.
7410         * tests/test-unlink.h (test_unlink): Enhance test.
7411         * tests/test-remove.c (main): Likewise.
7412
7413 2009-11-09  Eric Blake  <ebb9@byu.net>
7414
7415         rename: detect FreeBSD bug
7416         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7417         slash on symlink.
7418         * modules/renameat-tests (Depends-on): Add filenamecat.
7419         * tests/test-rename.h (test_rename): Allow one more errno.
7420         * tests/test-renameat.c (main): Likewise.
7421         * doc/posix-functions/rename.texi (rename): Document the bug.
7422
7423         open: detect FreeBSD bug
7424         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7425         symlink.
7426         * doc/posix-functions/open.texi (open): Document the bug.
7427         * doc/posix-functions/utimes.texi (utimes): Likewise.
7428         * tests/test-open.h (test_open): Add parameters, and test symlink
7429         handling.
7430         * tests/test-open.c (main): Adjust caller.
7431         * tests/test-fcntl-safer.c (main): Likewise.
7432         * modules/open-tests (Depends-on): Add stdbool, symlink.
7433         * modules/fcntl-safer-tests (Depends-on): Likewise.
7434         * tests/test-openat.c (main): Add test-open tests.
7435
7436         stat: detect FreeBSD bug
7437         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7438         symlink.
7439         * doc/posix-functions/stat.texi (stat): Document the bug.
7440         * tests/test-stat.h (test_stat_func): Add argument.
7441         * tests/test-stat.c (main): Adjust caller.
7442         * tests/test-fstatat.c (main): Likewise.
7443         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7444         Reported by Jim Meyering.
7445
7446 2009-11-09  James Youngman  <jay@gnu.org>
7447
7448         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7449         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7450
7451 2009-11-08  Jim Meyering  <meyering@redhat.com>
7452
7453         utimens: remove invalid futimesat call
7454         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7455         It used the file descriptor of the target file as the DIR_FD
7456         parameter and NULL as the file name.  That caused failure with
7457         errno == EFAULT on FreeBSD-8.0-rc2
7458
7459 2009-11-07  Eric Blake  <ebb9@byu.net>
7460
7461         fflush, freadseek: use fseeko, not fseek
7462         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7463         (clear_ungetc_buffer): Avoid potential problems on large files.
7464         * lib/freadseek.c (freadseek): Likewise.
7465         * modules/freadseek (Depends-on): Add fseeko.
7466         * modules/fseek (configure.ac): Set a witness.
7467         * tests/test-fflush.c (main): Use fseeko.
7468         * tests/test-fpurge.c (fseek): Disable link warning.
7469         * tests/test-freadable.c (fseek): Likewise.
7470         * tests/test-freading.c (fseek): Likewise.
7471         * tests/test-fseeko.c (fseek): Likewise.
7472         * tests/test-ftell.c (fseek): Likewise.
7473         * tests/test-ftello.c (fseek): Likewise.
7474         * tests/test-fwritable.c (fseek): Likewise.
7475         * tests/test-fwriting.c (fseek): Likewise.
7476
7477 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7478
7479         * modules/memchr (Depends-on): Drop getpagesize dependency.
7480
7481 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7482
7483         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7484         Reported by Ludovic Courtès.
7485         * build-aux/pmccabe2html: Improve example usage.
7486         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7487
7488 2009-11-06  Jim Meyering  <meyering@redhat.com>
7489
7490         do-release-commit-and-tag: New module.
7491         Automate the release-commit and tag process.
7492         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7493         * modules/do-release-commit-and-tag: New file.
7494         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7495
7496 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7497
7498         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7499         because test-select.c uses inet_pton.
7500
7501 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7502
7503         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7504         GETADDRINFO_LIB.  Bump serial number.
7505         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7506         Suggested by Eric Blake <ebb9@byu.net>.
7507
7508 2009-11-05  Eric Blake  <ebb9@byu.net>
7509
7510         strtod: detect darwin bug
7511         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7512         Reported by Leo Davis.
7513
7514         freopen-safer: new module
7515         * modules/freopen-safer: New module.
7516         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7517         * lib/freopen-safer.c (freopen_safer): New file.
7518         * lib/stdio-safer.h (freopen_safer): New declaration.
7519         * lib/stdio--.h (freopen): New override.
7520         * MODULES.html.sh (File stream based Input/Output): Mention it.
7521         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7522         freopen-safer module.
7523         * doc/posix-functions/stderr.texi (stderr): Likewise.
7524         * doc/posix-functions/stdin.texi (stdin): Likewise.
7525         * doc/posix-functions/stdout.texi (stdout): Likewise.
7526         * modules/freopen-safer-tests: New test.
7527         * tests/test-reopen-safer.c: New file.
7528
7529 2009-11-05  Jim Meyering  <meyering@redhat.com>
7530
7531         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7532         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7533
7534 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7535
7536         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7537
7538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7539
7540         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7541
7542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7543
7544         Fix link error.
7545         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7546         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7547
7548 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7549
7550         * tests/test-func.c: Also test value of __func__.
7551
7552 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7553
7554         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7555         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7556
7557 2009-11-05  Bruno Haible  <bruno@clisp.org>
7558
7559         Fix link error.
7560         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7562         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7563
7564 2009-11-05  Bruno Haible  <bruno@clisp.org>
7565
7566         Tests for module 'inet_pton'.
7567         * modules/inet_pton-tests: New file.
7568         * tests/test-inet_pton.c: New file.
7569
7570 2009-11-05  Bruno Haible  <bruno@clisp.org>
7571
7572         Tests for module 'inet_ntop'.
7573         * modules/inet_ntop-tests: New file.
7574         * tests/test-inet_ntop.c: New file.
7575
7576 2009-11-04  Eric Blake  <ebb9@byu.net>
7577
7578         stdlib-safer: wrap all mkstemp variants
7579         * modules/mkostemp (configure.ac): Set witness.
7580         * modules/mkostemps (configure.ac): Likewise.
7581         * modules/mkstemps (configure.ac): Likewise.
7582         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7583         (mkstemps_safer): Wrap more functions.
7584         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7585         wrapping.
7586         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7587         (mkstemps_safer): Implement the wrappers.
7588
7589         mkstemps, mkostemps: new modules
7590         * modules/mkostemps: New module.
7591         * modules/mkstemps: Likewise.
7592         * lib/mkostemps.c (mkostemps): New file.
7593         * lib/mkstemps.c (mkstemps): Likewise.
7594         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7595         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7597         * modules/stdlib (Makefile.am): Substitute them.
7598         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7599         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7600         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7601         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7602         * MODULES.html.sh (File system functions): Mention them.
7603
7604         tempname: resync from glibc
7605         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7606         same values for __GT_FILE as glibc.  Abort even when assertions
7607         are disabled.
7608         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7609         match its value otherwise.  Allow idempotent inclusion.
7610         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7611         * lib/mkostemp.c (mkostemp): Likewise.
7612         * lib/mkstemp.c (mkstemp): Likewise.
7613         * lib/tmpfile.c (tmpfile): Likewise.
7614         * NEWS: Document this.
7615
7616         utimens: fix use of futimens on older Linux
7617         * lib/utimens.c (fdutimens): Use updated, rather than original,
7618         timespec to avoid bug in older Linux kernel.
7619         Reported by Simon Josefsson.
7620
7621 2009-11-04  Bruno Haible  <bruno@clisp.org>
7622
7623         Make num_processors more flexible and consistent.
7624         * lib/nproc.h (enum nproc_query): New type.
7625         (num_processors): Add a 'query' argument.
7626         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7627         (num_processors): Add a 'query' argument. Test the value of the
7628         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7629         mingw, count the number of CPUs available for the current process.
7630         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7631         Check for sched_getaffinity and sched_getaffinity_np.
7632         * modules/nproc (Depends-on): Add c-ctype, extensions.
7633         * NEWS: Mention the change.
7634
7635 2009-11-03  Bruno Haible  <bruno@clisp.org>
7636
7637         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7638
7639 2009-11-03  Jim Meyering  <meyering@redhat.com>
7640
7641         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7642         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7643         if it is defined.
7644
7645 2009-11-02  Eric Blake  <ebb9@byu.net>
7646
7647         mktime, timegm: share common declaration
7648         * lib/mktime-internal.h: New file.
7649         * lib/mktime.c: Use it rather than open-coding a declaration.
7650         * lib/timegm.c: Likewise.
7651         * modules/mktime (Files): Ship it.
7652         * modules/timegm (Files): Likewise.
7653         Suggested by Bruno Haible.
7654
7655         test-update-copyright: update test to match script changes
7656         * tests/test-update-copyright.sh: Avoid hard-coding perl
7657         location.  Don't update *.bak created by earlier runs.
7658
7659 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7660             Simon Josefsson  <simon@josefsson.org>
7661             Bruno Haible  <bruno@clisp.org>
7662
7663         Fix link error on Solaris 8.
7664         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7665         also in libnsl. Define also INET_PTON_LIB.
7666         * modules/inet_pton (Link): New section.
7667
7668 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7669             Bruno Haible  <bruno@clisp.org>
7670
7671         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7672         * modules/inet_ntop (Link): New section.
7673         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7674
7675 2009-11-02  Eric Blake  <ebb9@byu.net>
7676
7677         maint: avoid compiler warnings in m4 macros
7678         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7679         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7680
7681 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7682
7683         * m4/pmccabe2html.m4: Remove file.
7684         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7685         function.  Change maintainer.
7686         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7687         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7688         Courtès).
7689
7690 2009-10-31  Eric Blake  <ebb9@byu.net>
7691
7692         fseeko: fix m4 regression
7693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7694         regression from 2009-10-27.
7695         Reported by Ralf Wildenhues.
7696
7697 2009-10-31  Jim Meyering  <meyering@redhat.com>
7698
7699         inttostr: aesthetics and improved (compile-time) safety
7700         Define inttype_is_signed rather than inttype_is_unsigned,
7701         since the sole use is via "#if inttype_is_signed".
7702         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7703         inttype_is_unsigned.
7704         * lib/offtostr.c (inttype_is_signed): Likewise.
7705         * lib/uinttostr.c (inttype_is_signed): Likewise.
7706         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7707         * lib/inttostr.c (inttostr): Use verify to cross-check the
7708         inttype_is_signed value and the signedness of the actual type.
7709         * modules/inttostr (Depends-on): Add verify.
7710
7711 2009-10-30  Eric Blake  <ebb9@byu.net>
7712
7713         build: avoid compiler warnings
7714         * lib/fchmodat.c (lchmod): Mark unused variables.
7715         * lib/getopt.c (_getopt_initialize): Likewise.
7716         * lib/mktime.c (__mktime_internal): Provide prototype.
7717         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7718         older gcc that do not understand #pragma GCC diagnostic.
7719         * lib/uinttostr.c (inttype_is_unsigned): Define.
7720         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7721
7722 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7723
7724         stat: fix compilation on AIX
7725         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7726         only see struct stat64.
7727
7728 2009-10-30  Eric Blake  <ebb9@byu.net>
7729
7730         exclude: make more robust
7731         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7732         rather than masking a coding bug.
7733         Suggested by Bruno Haible.
7734
7735 2009-10-30  Jim Meyering  <meyering@redhat.com>
7736
7737         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7738         Rather than putting #!/usr/bin/perl on the first line,
7739         start with a variant of what's recommended by "man perlrun" that
7740         invokes the first "perl" program from your shell's search path.
7741         * build-aux/gitlog-to-changelog: Replace #!... as above.
7742         Add a "Local Variables" perl mode setting.
7743         Prompted by a patch from Ludovic Courtès.
7744         Improved by Eric Blake.
7745         * build-aux/useless-if-before-free: Likewise.
7746         * build-aux/announce-gen: Likewise.
7747         * build-aux/update-copyright: Likewise.
7748
7749 2009-10-29  Eric Blake  <ebb9@byu.net>
7750
7751         filenamecat-lgpl: adjust clients
7752         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7753         filenamecat.
7754         * modules/renameat (Depends-on): Likewise.
7755
7756         filenamecat: split into filenamecat-lgpl
7757         * modules/filenamecat-lgpl: New module.
7758         * modules/filenamecat (Files): Move library-safe files into
7759         filenamecat-lgpl.
7760         (Depends-on): Add filenamecat-lgpl.
7761         (configure.ac): Declare witness.
7762         * lib/filenamecat.h (file_name_concat): Only declare when using
7763         GPL module.
7764         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7765         Move...
7766         * lib/filenamecat-lgpl.c: ...into new file.
7767         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7768         (gl_FILE_NAME_CONCAT): Use it.
7769         * MODULES.html.sh (File system functions): Mention new module.
7770
7771         argp: avoid memory leak
7772         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7773         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7774         base_name, since the latter malloc()s and can call exit().
7775         Leak introduced 2006-07-03.
7776
7777         dirname-lgpl: adjust clients that don't need full dirname
7778         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7779         * modules/filenamecat (Depends-on): Likewise.
7780         * modules/linkat (Depends-on): Likewise.
7781         * modules/mkancesdirs (Depends-on): Likewise.
7782         * modules/mkdir (Depends-on): Likewise.
7783         * modules/openat (Depends-on): Likewise.
7784         * modules/savewd (Depends-on): Likewise.
7785         * modules/rename (Depends-on): Likewise.
7786         (License): Relax license.
7787         * modules/mkdir-tests (Depends-on): Drop progname.
7788         (Makefile.am): Delete unneeded LDADD.
7789         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7790
7791         dirname: split into dirname-lgpl
7792         * modules/dirname-lgpl: New module.
7793         * modules/dirname (Files): Move library-safe files into
7794         dirname-lgpl.
7795         (Depends-on): Add dirname-lgpl.
7796         (configure.ac): Declare witness.
7797         * modules/double-slash-root (License): Relax license.
7798         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7799         module.
7800         * lib/dirname.c (dir_len, mdir_name): Move...
7801         * lib/dirname-lgpl.c: ...into new file.
7802         * lib/basename.c (last_component, base_len): Move...
7803         * lib/basename-lgpl.c: ...into new file.
7804         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7805         (gl_DIRNAME): Use it.
7806         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7807         Mention new module.
7808         * modules/dirname-tests (Depends-on): Add progname.
7809         * tests/test-dirname.c (program_name): Delete.
7810
7811         mkdir: make safe for libraries
7812         * modules/mkdir (Depends-on): Drop xalloc.
7813         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7814         exit.
7815
7816         tests: avoid some compiler warnings
7817         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7818         literals.
7819         * tests/test-memchr.c (main): Avoid type mismatch.
7820         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7821         * tests/test-base64.c (main): Likewise.
7822         * tests/test-getdelim.c (main): Likewise.
7823         * tests/test-gethostname.c (main): Likewise.
7824         * tests/test-getline.c (main): Likewise.
7825         * tests/test-netinet_in.c (main): Likewise.
7826         * tests/test-select.c (open_server_socket, main): Likewise.
7827         * tests/test-select-stdin.c (main): Likewise.
7828         * tests/test-sockets.c (main): Likewise.
7829         * tests/test-strsignal.c (main): Likewise.
7830         * tests/test-sys_select.c (main): Likewise.
7831         * tests/test-sys_socket.c (main): Likewise.
7832         * tests/test-u64.c (main): Likewise.
7833         * tests/test-xfprintf-posix.c (main): Likewise.
7834         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7835
7836         sockets: avoid compiler warning
7837         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7838
7839         maint: detect usage(1) and other suspicious exits
7840         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7841
7842 2009-10-29  Jim Meyering  <meyering@redhat.com>
7843
7844         timespec: long-to-int truncation could make timespec_cmp malfunction
7845         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7846         a multiple of 2^32 nanoseconds as no difference.
7847
7848 2009-10-28  Jim Meyering  <meyering@redhat.com>
7849
7850         fprintftime: wrap macro code argument in "do {...} while(0)"
7851         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7852         cpy macro must be a statement that can be followed by a semicolon.
7853         Now that the else clause contains a comment and is hence longer
7854         than one line, I require curly braces.  That in turn requires
7855         that we wrap this code block in the standard do...while(0).
7856
7857         fprintftime: remove stray semicolon from previous change
7858         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7859
7860         fprintftime: avoid a warning about ignored fwrite return value
7861         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7862         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7863         that is unsafe.
7864         * modules/fprintftime (Depends-on): Add ignore-value.
7865
7866         exclude: avoid an unwarranted warning
7867         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7868
7869 2009-10-27  Eric Blake  <ebb9@byu.net>
7870
7871         fseek: avoid compilation failure when fflush is replaced
7872         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7873         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7874         module is in use.
7875         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7876         module is not in use; since REPLACE_FSEEK worked otherwise.
7877         (GNULIB_FTELLO): Likewise for ftell.
7878         Reported by Ian Beckwith and others.
7879
7880 2009-10-27  Bruno Haible  <bruno@clisp.org>
7881
7882         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7883         Reported by Jim Meyering.
7884
7885 2009-10-27  Jim Meyering  <jim@meyering.net>
7886             Bruno Haible  <bruno@clisp.org>
7887
7888         Avoid warning despite dropping the return value of fwrite.
7889         * lib/unicodeio.c: Include ignore-value.h.
7890         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7891         * modules/unicodeio (Depends-on): Add ignore-value.
7892
7893 2009-10-26  Eric Blake  <ebb9@byu.net>
7894
7895         areadlinkat: fix fallback path
7896         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7897         pointer and zero.
7898
7899 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7900
7901         Use a better IO block size for modern systems
7902         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7903         * lib/md2.c: Likewise.
7904         * lib/md4.c: Likewise.
7905         * lib/md5.c: Likewise.
7906         * lib/sha1.c: Likewise.
7907         * lib/sha256.c: Likewise.
7908         * lib/sha512.c: Likewise.
7909
7910 2009-10-22  Eric Blake  <ebb9@byu.net>
7911
7912         tests: avoid several compiler warnings
7913         * tests/test-getcwd.c (main): Avoid buffer underflow.
7914         * tests/test-getdate.c (main): String literals are not safe with
7915         putenv, so use setenv.  Declare unused argument.
7916         * modules/getdate-tests (Depends-on): Add setenv.
7917         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7918         problems with string literals in char *.
7919         * tests/test-hash.c (main): Avoid shadowing declaration.
7920         (insert_new): Treat string literals as char const *.
7921         * tests/test-getopt.h (test_getopt): Likewise.
7922         (getopt_loop): Alter types to minimize casting elsewhere.
7923         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7924         (test_getopt_long_posix): Likewise.
7925         (do_getopt_long): Add wrapper to minimize casting.
7926         * tests/test-atexit.c (clear_temp_file): Use void.
7927         * tests/test-areadlink-with-size.c (main): Declare unused
7928         arguments.
7929         * tests/test-areadlink.c (main): Likewise.
7930         * tests/test-areadlinkat-with-size.c (main): Likewise.
7931         * tests/test-areadlinkat.c (main): Likewise.
7932         * tests/test-canonicalize-lgpl.c (main): Likewise.
7933         * tests/test-canonicalize.c (main): Likewise.
7934         * tests/test-dirent-safer.c (main): Likewise.
7935         * tests/test-dirname.c (main): Likewise.
7936         * tests/test-dup2.c (main): Likewise.
7937         * tests/test-fchdir.c (main): Likewise.
7938         * tests/test-fcntl-h.c (main): Likewise.
7939         * tests/test-fcntl-safer.c (main): Likewise.
7940         * tests/test-fdopendir.c (main): Likewise.
7941         * tests/test-fdutimensat.c (main): Likewise.
7942         * tests/test-fflush.c (main): Likewise.
7943         * tests/test-filenamecat.c (main): Likewise.
7944         * tests/test-filevercmp.c (main): Likewise.
7945         * tests/test-fopen-safer.c (main): Likewise.
7946         * tests/test-fopen.c (main): Likewise.
7947         * tests/test-fpending.c (main): Likewise.
7948         * tests/test-fpurge.c (main): Likewise.
7949         * tests/test-freading.c (main): Likewise.
7950         * tests/test-fstatat.c (main): Likewise.
7951         * tests/test-fsync.c (main): Likewise.
7952         * tests/test-futimens.c (main): Likewise.
7953         * tests/test-getndelim2.c (main): Likewise.
7954         * tests/test-gettimeofday.c (main): Likewise.
7955         * tests/test-getopt.c (main): Likewise.
7956         * tests/test-i-ring.c (main): Likewise.
7957         * tests/test-inttypes.c (main): Likewise.
7958         * tests/test-link.c (main): Likewise.
7959         * tests/test-lstat.c (main): Likewise.
7960         * tests/test-math.c (main): Likewise.
7961         * tests/test-md5.c (main): Likewise.
7962         * tests/test-memchr2.c (main): Likewise.
7963         * tests/test-memrchr.c (main): Likewise.
7964         * tests/test-mkdir.c (main): Likewise.
7965         * tests/test-mkdirat.c (main): Likewise.
7966         * tests/test-mkfifoat.c (main): Likewise.
7967         * tests/test-open.c (main): Likewise.
7968         * tests/test-openat-safer.c (main): Likewise.
7969         * tests/test-openat.c (main): Likewise.
7970         * tests/test-quotearg.c (main): Likewise.
7971         * tests/test-rawmemchr.c (main): Likewise.
7972         * tests/test-readlink.c (main): Likewise.
7973         * tests/test-remove.c (main): Likewise.
7974         * tests/test-rename.c (main): Likewise.
7975         * tests/test-renameat.c (main): Likewise.
7976         * tests/test-rmdir.c (main): Likewise.
7977         * tests/test-sha1.c (main): Likewise.
7978         * tests/test-signal.c (main): Likewise.
7979         * tests/test-sigaction.c (main): Likewise.
7980         * tests/test-stat.c (main): Likewise.
7981         * tests/test-stat-time.c (main): Likewise.
7982         * tests/test-stddef.c (main): Likewise.
7983         * tests/test-stdint.c (main): Likewise.
7984         * tests/test-stdio.c (main): Likewise.
7985         * tests/test-stdlib.c (main): Likewise.
7986         * tests/test-strchrnul.c (main): Likewise.
7987         * tests/test-strerror.c (main): Likewise.
7988         * tests/test-string.c (main): Likewise.
7989         * tests/test-strtod.c (main): Likewise.
7990         * tests/test-strverscmp.c (main): Likewise.
7991         * tests/test-symlink.c (main): Likewise.
7992         * tests/test-symlinkat.c (main): Likewise.
7993         * tests/test-sys_stat.c (main): Likewise.
7994         * tests/test-sys_time.c (main): Likewise.
7995         * tests/test-time.c (main): Likewise.
7996         * tests/test-unistd.c (main): Likewise.
7997         * tests/test-unlink.c (main): Likewise.
7998         * tests/test-unlinkat.c (main): Likewise.
7999         * tests/test-utimens.c (main): Likewise.
8000         * tests/test-utimensat.c (main): Likewise.
8001         * tests/test-version-etc.c (main): Likewise.
8002         * tests/test-wchar.c (main): Likewise.
8003         * tests/test-wctype.c (main): Likewise.
8004         * tests/test-xprintf-posix.c (main): Likewise.
8005         * tests/test-posixtm.c (main): Likewise.
8006         (STREQ): Delete unused macro.
8007         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8008         shadowed variables.
8009         * tests/test-memchr.c (main): Likewise.
8010
8011 2009-10-21  Eric Blake  <ebb9@byu.net>
8012
8013         areadlinkat: avoid failure on older glibc
8014         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8015         rather than mis-comparing 0 against FUNC_RESULT of char*.
8016
8017 2009-10-21  Bruno Haible  <bruno@clisp.org>
8018
8019         * modules/stpncpy (License): Relicense under LGPLv2+.
8020         Reported by David Lutterkort <lutter@redhat.com>.
8021
8022 2009-10-20  Eric Blake  <ebb9@byu.net>
8023
8024         utimensat: work around Solaris 9 bug
8025         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8026         has trailing slash bugs.
8027         * tests/test-lutimens.h (test_lutimens): Enhance test.
8028         * tests/test-utimens.h (test_utimens): Likewise.
8029         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8030         * doc/posix-functions/utimes.texi (utimes): Likewise.
8031         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8032         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8033         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8034         * doc/posix-functions/futimens.texi (futimens): Likewise.
8035
8036         fdutimensat: new module
8037         * modules/fdutimensat: New file.
8038         * lib/fdutimensat.c (fdutimensat): Likewise.
8039         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8040         * MODULES.html.sh (File system functions): Mention module.
8041         * modules/fdutimensat-tests: New test.
8042         * tests/test-fdutimensat.c: Likewise.
8043
8044         doc: regenerate INSTALL
8045         * doc/INSTALL: Reflect recent autoconf update.
8046         * doc/INSTALL.ISO: Likewise.
8047         * doc/INSTALL.UTF-8: Likewise.
8048
8049 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8050
8051         acl: warn if ACL support is not detected
8052         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8053
8054 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8055
8056         * lib/nproc.h: Add extern "C" block for C++.
8057
8058 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8059             Bruno Haible  <bruno@clisp.org>
8060
8061         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8062         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8063         * doc/posix-functions/isalpha.texi: Likewise.
8064         * doc/posix-functions/isblank.texi: Likewise.
8065         * doc/posix-functions/iscntrl.texi: Likewise.
8066         * doc/posix-functions/isdigit.texi: Likewise.
8067         * doc/posix-functions/isgraph.texi: Likewise.
8068         * doc/posix-functions/islower.texi: Likewise.
8069         * doc/posix-functions/isprint.texi: Likewise.
8070         * doc/posix-functions/ispunct.texi: Likewise.
8071         * doc/posix-functions/isspace.texi: Likewise.
8072         * doc/posix-functions/isupper.texi: Likewise.
8073         * doc/posix-functions/isxdigit.texi: Likewise.
8074
8075 2009-10-18  Bruno Haible  <bruno@clisp.org>
8076
8077         Tests for module 'isblank'.
8078         * modules/isblank-tests: New file.
8079         * tests/test-isblank.c: New file.
8080
8081         New module 'isblank'.
8082         * lib/isblank.c: New file.
8083         * m4/isblank.m4: New file.
8084         * modules/isblank: New file.
8085         * doc/posix-functions/isblank.texi: Mention the new module.
8086
8087 2009-10-18  Bruno Haible  <bruno@clisp.org>
8088
8089         New module 'ctype'.
8090         * lib/ctype.in.h: New file.
8091         * m4/ctype.m4: New file.
8092         * modules/ctype: New file.
8093         * doc/posix-headers/ctype.texi: Mention the new module.
8094
8095 2009-10-18  Jim Meyering  <meyering@redhat.com>
8096
8097         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8098         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8099         right after its initialization, rather than farther down.
8100         Keeping these in close proximity makes it easier to ensure
8101         that each such variable is initialized.  E.g.,
8102
8103             LIB_CLOCK_GETTIME=
8104             AC_SUBST([LIB_CLOCK_GETTIME])
8105
8106         This change also increments these serial numbers.
8107         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8108         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8110
8111 2009-10-18  Bruno Haible  <bruno@clisp.org>
8112
8113         Don't let environment variables perturb build.
8114         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8115         (gl_PREREQ_GETHRXTIME): ... not here.
8116
8117 2009-10-18  Bruno Haible  <bruno@clisp.org>
8118
8119         Avoid symlink attack in localcharset module.
8120         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8121         (O_NOFOLLOW): Define fallback.
8122         (get_charset_aliases): Don't open the file if it is a symbolic link.
8123         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8124         gl_FCNTL_H.
8125         (gl_FCNTL_H): Require it.
8126         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8127         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8128         Reported by Fergal Glynn <fglynn@veracode.com>.
8129
8130 2009-10-18  Bruno Haible  <bruno@clisp.org>
8131
8132         Implement nproc for mingw.
8133         * lib/nproc.c: Include <windows.h>
8134         (num_processors): On native Windows platforms, try GetSystemInfo.
8135
8136 2009-10-18  Bruno Haible  <bruno@clisp.org>
8137
8138         Implement nproc for IRIX.
8139         * lib/nproc.c: Include <sys/sysmp.h>.
8140         (num_processors): On IRIX systems, try sysmp.
8141         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8142
8143 2009-10-18  Bruno Haible  <bruno@clisp.org>
8144
8145         Implement nproc for HP-UX.
8146         * lib/nproc.c: Include <sys/pstat.h>
8147         (num_processors): On HP-UX systems, try pstat_getdynamic.
8148         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8149         pstat_getdynamic.
8150
8151 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8152             Bruno Haible  <bruno@clisp.org>
8153
8154         Implement nproc for NetBSD, OpenBSD.
8155         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8156         (ARRAY_SIZE): New macro.
8157         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8158         * m4/nproc.m4: New file.
8159         * modules/nproc (Files): Add m4/nproc.m4.
8160         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8161         (Makefile.am): Instead, augment lib_SOURCES.
8162
8163 2009-10-18  Bruno Haible  <bruno@clisp.org>
8164
8165         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8166         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8167         sys/param.h.
8168
8169 2009-10-16  Eric Blake  <ebb9@byu.net>
8170
8171         utimensat: new module
8172         * modules/utimensat: New file.
8173         * lib/utimensat.c (utimensat): Likewise.
8174         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8175         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8176         so we can work around Linux bugs.
8177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8178         * modules/sys_stat (Makefile.am): Substitute them.
8179         * lib/sys_stat.in.h (utimensat): Declare it.
8180         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8181         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8182         * modules/utimensat-tests: New test.
8183         * tests/test-utimensat.c: Likewise.
8184
8185         utimens: let lutimens work on non-symlinks
8186         * lib/utimens.c (lutimens): Fall back to utimens rather than
8187         failing with ENOSYS, when file is not a symlink.
8188         (utimens): Reduce redirection.
8189         * tests/test-lutimens.h (test_lutimens): Update test to cover
8190         non-symlinks.
8191         * tests/test-utimens.h (test_utimens): Update test to cover
8192         symlinks.
8193         * tests/test-utimens.c (main): Update caller.
8194
8195         utimens: cache whether utimensat syscall works
8196         * lib/utimens.c (utimensat_works_really): New cache variable.
8197         (fdutimens, lutimens): Use it to avoid failing syscall.
8198
8199         test-stat-time, test-utimens: improve portability
8200         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8201         ext4 on alpha, and for cygwin.
8202         * tests/test-utimens-common.h: New file.
8203         (nap): Factor delays into single function.
8204         * tests/test-lutimens.h (test_lutimens): Use new header.
8205         * tests/test-futimens.h (test_futimens): Likewise.
8206         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8207         timestamps to occur from same machine, as was done previously for
8208         test_utimens.
8209         * modules/utimens-tests (Files): Ship new file.
8210         * modules/futimens-tests (Files): Likewise.
8211         Reported in part by Jim Meyering.
8212
8213         sys_stat: sort replacement declarations
8214         * lib/sys_stat.in.h: Sort declarations.
8215         * lib/futimens.c (futimens): Fix typo.
8216
8217 2009-10-15  Jim Meyering  <meyering@redhat.com>
8218
8219         don't let environment settings perturb build
8220         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8221         could cause a configure-time and/or build-time malfunction.
8222         Typically, a configure-time function-in-library test is performed
8223         via code like this:
8224
8225           LIB_VAR=
8226           AC_SUBST([LIB_VAR])
8227           prefix_saved_LIBS=$LIBS
8228             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8229                        [test "$ac_cv_search_FUNC" = "none required" ||
8230                         LIB_VAR=$ac_cv_search_FUNC])
8231           LIBS=$prefix_saved_LIBS
8232
8233         However, in each of the files affected by this change, the LIB_VAR=
8234         initialization was omitted.  Thus, when set in the environment, its
8235         value would propagate into generated Makefiles when FUNC is not found
8236         in LIB_NAME.
8237         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8240
8241 2009-10-14  Eric Blake  <ebb9@byu.net>
8242
8243         fchdir: avoid infinite recursion in mingw
8244         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8245         recursing.
8246
8247         test-stat-time: port to mingw
8248         * tests/test-stat-time.c (force_unlink): Return a value.
8249         (test_ctime) [W32]: Fix compilation error.
8250         (nap): Don't call usleep with too large an argument.  Use
8251         force_unlink.
8252         * doc/pastposix-functions/usleep.texi (usleep): Document the
8253         portability issue.
8254
8255 2009-10-13  Jim Meyering  <meyering@redhat.com>
8256
8257         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8258         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8259         * modules/pipe-filter-ii: Likewise.
8260         * modules/sys_socket-tests: Likewise.
8261         * modules/tsearch-tests: Likewise.
8262         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8263         (check): Depend on it.
8264
8265 2009-10-12  Eric Blake  <ebb9@byu.net>
8266
8267         utimens-tests: port to NFS file systems
8268         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8269         comparisons to avoid spurious failures from timestamp drift
8270         between NFS machines.
8271
8272 2009-10-12  Eric Blake  <ebb9@byu.net>
8273
8274         stat-time-tests: minor cleanups
8275         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8276         * tests/test-stat-time.c (nap): Separate assignment from call.
8277         Suggested by Paolo Bonzini and Bruno Haible.
8278
8279         sys_stat: guarantee struct timespec
8280         * lib/sys_stat.in.h (includes): Always include <time.h>
8281         * modules/sys_stat (Depends-on): Add time.
8282         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8283         mode_t permission values.
8284         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8285         get at subsecond timestamps.
8286
8287 2009-10-10  Eric Blake  <ebb9@byu.net>
8288
8289         futimens: new module
8290         * modules/futimens: New file.
8291         * lib/futimens.c (futimens): Likewise.
8292         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8293         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8294         we can work around Linux bugs.
8295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8296         * modules/sys_stat (Makefile.am): Substitute them.
8297         * lib/sys_stat.in.h (futimens): Declare it.
8298         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8299         * doc/posix-functions/futimens.texi (futimens): Likewise.
8300         * modules/futimens-tests: New test.
8301         * tests/test-futimens.c: Likewise.
8302
8303         utimens: introduce fdutimens
8304         * lib/utimens.h (fdutimens): New prototype.
8305         * lib/utimens.c (gl_futimens): Move guts...
8306         (fdutimens): ...to new interface.
8307         * tests/test-utimens.c (do_fdutimens): Use it.
8308
8309         utimens: add UTIME_NOW and UTIME_OMIT support
8310         * lib/utimens.c (validate_timespec, update_timespec): New helper
8311         functions.
8312         (gl_futimens, lutimens): Use them.
8313         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8314         stdbool, sys_stat.
8315         (Link): Mention resulting library dependency.
8316         * modules/utimecmp (Link): Likewise.
8317         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8318         (Makefile.am): Pick up library dependency.
8319         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8320         definition.
8321         * tests/test-sys_stat.c: Test the definitions.
8322         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8323         * NEWS: Document library dependency.
8324
8325         utimecmp: support symlink timestamps
8326         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8327         hashing when possible.  Use pathconf when available.
8328         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8329         * modules/utimecmp (Depends-on): Add lstat.
8330
8331         utimens: add lutimens interface
8332         * lib/utimens.c (lutimens): New function.
8333         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8334         * lib/utimens.h (lutimens): Declare new interface.
8335         * tests/test-utimens.c (main): Enhance test.
8336         * tests/test-lutimens.h (test_lutimens): New file.
8337         * modules/utimens-tests (Files): Distribute it.
8338         (Depends-on): Add symlink.
8339         (configure.ac): Check for usleep.
8340
8341         utimens: validate futimens usage
8342         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8343         fewer syscalls on failure later on.  Avoid compiler warning on
8344         mingw.
8345         * modules/utimens (Depends-on): Add dup2.
8346
8347         utimens: add test
8348         * modules/utimens-tests: New test.
8349         * tests/test-utimens.h: New file.
8350         * tests/test-futimens.h: Likewise.
8351         * tests/test-utimens.c: Likewise.
8352
8353         doc: mention timestamp portability issues
8354         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8355         instead.
8356         * doc/posix-functions/utime.texi (utime): Likewise.
8357         * doc/posix-functions/utimes.texi (utimes): Likewise.
8358         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8359         instead.
8360         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8361         module.
8362         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8363         Mention weakness with symlink timestamps.
8364         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8365         to utimensat/futimens instead.
8366         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8367
8368         test-dup2: enhance test
8369         * tests/test-dup2.c (main): Also check AT_FDCWD.
8370
8371         test-stat-time: avoid more spurious failures
8372         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8373         xfs; and avoid race if the two timestamps cross quantization edge.
8374
8375         relocatable: prefer 'file system' over 'filesystem'
8376         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8377         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8378         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8379         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8380         * lib/relocatable.c (compute_curr_prefix): Likewise.
8381
8382 2009-10-10  Jim Meyering  <meyering@redhat.com>
8383
8384         stat-time-tests: check for the usleep function
8385         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8386
8387 2009-10-10  Bruno Haible  <bruno@clisp.org>
8388
8389         * modules/xnanosleep: Put the Link section after the Include section.
8390
8391 2009-10-09  Eric Blake  <ebb9@byu.net>
8392
8393         dup2: work around FreeBSD 6.1 bug
8394         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8395         * doc/posix-functions/dup2.texi (dup2): Document it.
8396         Reported by Nelson H. F. Beebe and Jim Meyering.
8397
8398         test-stat-time: port to buggy NFS clients
8399         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8400         (test_ctime): Also skip test if mtime and ctime are skewed.
8401
8402         maint: prefer 'file system' over 'filesystem'
8403         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8404         * doc/posix-functions/lstat.texi (lstat): Likewise.
8405         * lib/file-has-acl.c (file_has_acl): Likewise.
8406         * lib/fwriteerror.c [TEST]: Likewise.
8407         * tests/test-areadlink.h (test_areadlink): Likewise.
8408         * tests/test-areadlinkat-with-size.c (main): Likewise.
8409         * tests/test-areadlinkat.c (main): Likewise.
8410         * tests/test-canonicalize-lgpl.c (main): Likewise.
8411         * tests/test-canonicalize.c (main): Likewise.
8412         * tests/test-fstatat.c (main): Likewise.
8413         * tests/test-linkat.c (main): Likewise.
8414         * tests/test-lstat.h (test_lstat_func): Likewise.
8415         * tests/test-mkdir.h (test_mkdir): Likewise.
8416         * tests/test-readlink.h (test_readlink): Likewise.
8417         * tests/test-remove.c (main): Likewise.
8418         * tests/test-rename.h (test_rename): Likewise.
8419         * tests/test-renameat.c (main): Likewise.
8420         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8421         * tests/test-symlink.h (test_symlink): Likewise.
8422         * tests/test-symlinkat.c (main): Likewise.
8423         * tests/test-unlink.h (test_unlink_func): Likewise.
8424         * tests/test-unlinkat.c (main): Likewise.
8425
8426         maint: make realtime library usage explicit
8427         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8428         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8429         * modules/settime (Link): Likewise.
8430         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8431
8432         test-stat-time: speed up execution
8433         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8434         warning on mingw.
8435         (nap): New helper function.
8436         (prepare_test): Use it to reduce sleep time.
8437         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8438         execution.
8439         * modules/stat-time-tests (configure.ac): Check for usleep.
8440
8441 2009-10-09  Jim Meyering  <meyering@redhat.com>
8442
8443         selinux-h: always use getfilecon wrappers
8444         * lib/getfilecon.c: New file.
8445         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8446         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8447         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8448         (fgetfilecon): Provide a stub.
8449         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8450         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8451         file unconditionally.
8452         When <selinux/selinux.h> is found, arrange to use wrappers.
8453         * modules/selinux-h (Files): Add getfilecon.c.
8454         (Makefile.am): Substitute include-next-related bits
8455         into the now-always-generated selinux/selinux.h file.
8456         * doc/glibc-functions/lgetfilecon.texi: New file.
8457         * doc/glibc-functions/fgetfilecon.texi: New file.
8458         * doc/glibc-functions/getfilecon.texi: New file.
8459         * doc/glibc-functions/getfilecon-desc.texi: New file.
8460         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8461         which to pull in the new files.
8462         * MODULES.html.sh (Misc): Add selinux-h.
8463
8464 2009-10-08  Jim Meyering  <meyering@redhat.com>
8465
8466         unistd: fix comment typo
8467         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8468
8469 2009-10-08  Eric Blake  <ebb9@byu.net>
8470
8471         areadlink: use SIZE_MAX consistently
8472         * modules/areadlink (Depends-on): Add stdint.
8473         * modules/areadlink-with-size (Depends-on): Likewise.
8474         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8475         gives NULL; drop sys/types, since unistd gives size_t; and add
8476         stdint for SIZE_MAX.
8477         (SIZE_MAX): Rely on headers.
8478         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8479         and add stdint.
8480         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8481         (SIZE_MAX): Likewise.
8482         (INITIAL_BUF_SIZE): Turn into enum.
8483         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8484
8485 2009-10-08  Jim Meyering  <meyering@redhat.com>
8486
8487         areadlinkat: avoid compilation failure
8488         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8489         Fix typo in comment.
8490
8491 2009-10-07  Eric Blake  <ebb9@byu.net>
8492
8493         areadlinkat-with-size: new module
8494         * modules/areadlinkat-with-size: New module.
8495         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8496         * lib/areadlink.h (areadlinkat): Declare it.
8497         * MODULES.html.sh (File system functions): Mention it.
8498         * modules/areadlinkat-with-size-tests: New test.
8499         * tests/test-areadlinkat-with-size.c: New file.
8500
8501         xreadlinkat: new module
8502         * modules/xreadlinkat: New module.
8503         * lib/xreadlinkat.c (xreadlinkat): New file.
8504         * lib/xreadlink.h (xreadlinkat): Declare it.
8505         * MODULES.html.sh (File system functions): Mention it.
8506
8507         areadlinkat: new module
8508         * lib/at-func.c (FUNC_FAIL): New define.
8509         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8510         * modules/areadlinkat: New module.
8511         * lib/linkat.c (areadlinkat): Move...
8512         * lib/areadlinkat.c (areadlinkat): ...to new file.
8513         * lib/areadlink.h (areadlinkat): Declare it.
8514         * modules/linkat (Depends-on): Add areadlinkat.
8515         * MODULES.html.sh (File system functions): Mention it.
8516         * modules/areadlinkat-tests: New test.
8517         * tests/test-areadlinkat.c: New file.
8518
8519         areadlink, areadlink-with-size: add tests
8520         * modules/areadlink-tests: New test.
8521         * modules/areadlink-with-size-tests: Likewise.
8522         * tests/test-areadlink.h: New file.
8523         * tests/test-areadlink.c: Likewise.
8524         * tests/test-areadlink-with-size.c: Likewise.
8525
8526         maint: minor cleanups
8527         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8528         _UNUSED_PARAMETER_ instead.
8529         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8530         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8531         * modules/linkat-tests (Files): Distribute test-link.h.
8532
8533         openat, utimens: whitespace cleanup
8534         * lib/openat.c: Prefer space throughout, rather than mix of 8
8535         spaces vs. tabs.
8536         * lib/at-func.c: Likewise.
8537         * lib/utimens.c: Likewise.
8538
8539         openat: avoid using wrong fd
8540         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8541         working directory chooses same fd.
8542         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8543
8544         mkdir, mkdirat: fix cygwin 1.5.x bug
8545         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8546         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8547         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8548         bug.
8549         (gl_PREREQ_MKDIR): Delete unused macro.
8550         * modules/mkdir (Files): Track file rename.
8551         (configure.ac): Update macro name.
8552         * modules/openat (Depends-on): Add mkdir.
8553         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8554
8555         mkdir, mkdirat: add tests
8556         * modules/mkdir-tests: New test.
8557         * tests/test-mkdir.h: New file.
8558         * tests/test-mkdir.c: Likewise.
8559         * tests/test-mkdirat.c: Likewise.
8560         * modules/openat-tests (Files): Add new files.
8561         (Makefile.am): Run new test.
8562
8563 2009-10-06  Eric Blake  <ebb9@byu.net>
8564
8565         doc: tweak *at function documentation
8566         * doc/posix-functions/faccessat.texi (faccessat): Mention
8567         known issue with replacement.
8568         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8569         * doc/posix-functions/linkat.texi (linkat): Likewise.
8570         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8571         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8572         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8573         * doc/posix-functions/renameat.texi (renameat): Likewise.
8574         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8575
8576         openat: fix GNU/Hurd bug in unlinkat
8577         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8578         broken.
8579         * doc/posix-functions/unlink.texi (unlink): Document this.
8580         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8581
8582         fdopendir: fix GNU/Hurd bug
8583         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8584         allowing non-directory fds.
8585         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8586         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8587         * modules/dirent (Makefile.am): Substitute it.
8588         * lib/dirent.in.h (fdopendir): Declare replacement.
8589         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8590         * tests/test-fdopendir.c (main): Test something other than
8591         /dev/null, since on Hurd that behaves like a directory.
8592
8593         test-symlink: port to GNU/Hurd
8594         * tests/test-symlink.h (test_symlink): Relax expected errno.
8595
8596         doc: tweak more cygwin information
8597         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8598         now compatible with glibc.
8599         * doc/posix-functions/getopt.texi (getopt): Likewise.
8600
8601         getopt-gnu: add another test
8602         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8603         guarantee behavior relied on by m4.
8604         * tests/test-getopt.c (main): Use it.
8605         * modules/getopt-posix-tests (Depends-on): Add setenv.
8606         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8607
8608         getopt: fix compilation on darwin
8609         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8610         include.
8611         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8612         Reported by Ludovic Courtès.
8613
8614 2009-10-06  Bruno Haible  <bruno@clisp.org>
8615
8616         * modules/size_max (Description): Discourage its use.
8617         Reported by Simon Josefsson.
8618
8619 2009-10-06  Jim Meyering  <meyering@redhat.com>
8620
8621         linkat: avoid compilation failure
8622         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8623
8624 2009-10-05  Eric Blake  <ebb9@byu.net>
8625
8626         linkat: support Linux 2.6.17
8627         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8628         linkat on Linux, but allow cache variable override.
8629         * lib/linkat.c (rpl_linkat): Define override.
8630         * modules/linkat (Depends-on): Add symlinkat.
8631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8632         * modules/unistd (Makefile.am): Substitute it.
8633         * lib/unistd.in.h (linkat): Declare replacement.
8634         Reported by Pádraig Brady.
8635
8636         quotearg: port test to systems with C.UTF-8 locale
8637         * tests/test-quotearg.c (struct result_strings): Add another
8638         member, differentiating between C.ASCII and C.UTF-8 handling.
8639         (compare_strings): Add parameter.
8640         (main): Adjust all callers.
8641
8642         getopt: avoid clash with FreeBSD _getopt_internal
8643         * lib/getopt.in.h (_getopt_internal): Override the name.
8644         * lib/getopt_int.h (includes): Pick up any overrides.
8645         Reported by Reuben Thomas.
8646
8647         hash: allow C89 compilation
8648         * lib/hash.c (check_tuning): Move declaration before statement.
8649         Reported by Reuben Thomas.
8650
8651 2009-10-05  Karl Berry  <karl@gnu.org>
8652
8653         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8654
8655 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8656             Bruno Haible  <bruno@clisp.org>
8657
8658         * lib/uname.c (uname): Use a table-driven algorithm to compute
8659         Windows NT versions.
8660
8661 2009-10-04  Bruno Haible  <bruno@clisp.org>
8662
8663         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8664         program_invocation_short_name.
8665         * modules/progname (configure.ac): Test for presence of
8666         program_invocation_short_name.
8667         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8668
8669 2009-10-04  Bruno Haible  <bruno@clisp.org>
8670
8671         * lib/progname.c (set_program_name): Fix comment.
8672         Reported by Jim Meyering.
8673
8674 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8675             Bruno Haible  <bruno@clisp.org>
8676
8677         * lib/uname.c: Include <string.h>.
8678         (uname): Do only one call to GetVersionEx in the common case.
8679
8680 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8681             Bruno Haible  <bruno@clisp.org>
8682
8683         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8684         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8685         (uname): Add support for Windows CE and various non-x86 CPU types.
8686
8687 2009-10-03  Bruno Haible  <bruno@clisp.org>
8688
8689         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8690         invocation to tests/configure.ac.
8691         Reported by Ian Beckwith <ianb@erislabs.net>.
8692
8693 2009-10-02  Eric Blake  <ebb9@byu.net>
8694
8695         fchdir: avoid compiler warning
8696         * lib/fchdir.c (canonicalize_file_name)
8697         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8698
8699         test-open: support mingw errno values
8700         * tests/test-open.h (test_open): Relax test.
8701         * tests/test-fopen.h (test_fopen): Likewise.
8702         * tests/test-openat-safer.c (main): Likewise.
8703
8704         open: fix opening directory on mingw
8705         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8706
8707         test-open: on GNU/Hurd, /dev/null is a directory
8708         * tests/test-fopen.h (main): Rename...
8709         (test_fopen): ...to this.  Use a guaranteed non-directory when
8710         confirming open behavior on trailing slash.
8711         * tests/test-openat-safer.c (main): Likewise.
8712         * tests/test-open.h (main): Likewise....
8713         (test_open): ...to this.
8714         * tests/test-fopen.c (main): Adjust caller.
8715         * tests/test-fopen-safer.c (main): Likewise.
8716         * tests/test-open.c (main): Likewise.
8717         * tests/test-fcntl-safer.c (main): Likewise.
8718         Reported by Samuel Thibault.
8719
8720         rename, fchdir: don't ignore chdir failure
8721         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8722         * lib/rename.c (rpl_rename) [W32]: Likewise.
8723         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8724         an empty destination directory if source cannot be renamed,
8725         although there is still possibility for failure.
8726         * doc/posix-functions/rename.texi (rename): Document the race.
8727         Reported by Jim Meyering.
8728
8729         maint: cleanup whitespace in recent commits
8730         * lib/rename.c (rpl_rename): Remove tabs.
8731         * tests/test-link.h (test_link): Likewise.
8732         * lib/fchdir.c (get_name): Likewise.
8733         Reported by Jim Meyering.
8734
8735 2009-10-02  Ben Pfaff  <blp@gnu.org>
8736
8737         relocatable-prog-wrapper: Add missing dependency on
8738         double-slash-root.
8739         * modules/relocatable-prog-wrapper: Add dependency.
8740         Reported by Ian Beckwith <ianb@erislabs.net>.
8741
8742 2009-10-02  Eric Blake  <ebb9@byu.net>
8743
8744         renameat: fix Solaris bugs
8745         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8746         needed fixing.
8747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8748         * modules/stdio (Makefile.am): Substitute it.
8749         * lib/stdio.in.h (renameat): Declare replacement.
8750         * lib/renameat.c (rpl_renameat): Implement fix.
8751
8752         renameat: new module
8753         * modules/renameat: New file.
8754         * lib/renameat.c (renameat): Likewise.
8755         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8757         * modules/stdio (Makefile.am): Substitute them.
8758         * lib/stdio.in.h (renameat): Declare it.
8759         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8760         * doc/posix-functions/renameat.texi (renameat): Likewise.
8761         * modules/renameat-tests: New test.
8762         * tests/test-renameat.c: Likewise.
8763
8764         rename: fix mingw bugs
8765         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8766         directory overwrite bugs.
8767
8768         rename: fix another cygwin 1.5 bug
8769         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8770         checks.
8771         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8772         unnecessary cygwin workarounds.  Also work around bug with moving
8773         full directory onto an empty one.
8774         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8775
8776         rename-dest-slash: merge into rename module
8777         * modules/rename-dest-slash (Status): Mark obsolete.
8778         (Depends-on): Add rename.
8779         (Files): Let rename do it all.
8780         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8781         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8782         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8783         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8784         * lib/rename.c (rpl_rename): Update comments.
8785
8786         rename: fix cygwin 1.5.x bugs
8787         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8788         * lib/rename.c (rpl_rename): Work around them.
8789         * modules/rename (Depends-on): Add same-inode.
8790
8791         rename: fix Solaris 10 bug
8792         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8793         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8794         was the only bug.
8795
8796         rename: fix Solaris 9 bug
8797         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8798         on non-directory.  Avoid calling exit.
8799         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8800         strdup.
8801         * modules/rename-tests (Depends-on): Drop lstat.
8802         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8803         (gl_PREREQ_RENAME): Delete unused macro.
8804
8805         rename-dest-slash: fix NetBSD bug
8806         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8807         links.
8808         * modules/rename-dest-slash (Depends-on): Add same-inode.
8809
8810         rename-tests: new test, exposes several platform bugs
8811         * modules/rename-tests: New file.
8812         * tests/test-rename.h: Likewise.
8813         * tests/test-rename.c: Likewise.
8814         * doc/posix-functions/rename.texi (rename): Improve documentation,
8815         including bugs that will eventually be fixed in gnulib.
8816
8817 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8818
8819         * lib/uname.c: Include <stdlib.h>
8820         (uname): Assume version info is available.
8821
8822 2009-10-02  Jim Meyering  <meyering@redhat.com>
8823
8824         gnu-web-doc-update: correct --help output
8825         * build-aux/gnu-web-doc-update: Make --help output relevant.
8826
8827         gnu-web-doc-update: add standard options
8828         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8829
8830         gnu-web-doc-update: New module.
8831         Use this script to automatically update the on-line web documentation
8832         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8833         * modules/gnu-web-doc-update: New file, from coreutils.
8834         * build-aux/gnu-web-doc-update: New script.
8835
8836 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8837
8838         link: LoadLibrary is not needed.
8839         * lib/link.c: Use GetModuleHandle.
8840
8841 2009-10-01  Eric Blake  <ebb9@byu.net>
8842
8843         getopt: bump serial number
8844         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8845         change.
8846
8847         tests: tighten link, rmdir, and remove tests
8848         * tests/test-link.h (includes): No need to use <config.h> here.
8849         Clean up if directory hard link was created, otherwise test for
8850         trailing '.'.
8851         * tests/test-linkat.c (main): Simplify.
8852         * tests/test-remove.c (main): Enhance test for trailing '.'.
8853         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8854
8855 2009-10-01  Jim Meyering  <meyering@redhat.com>
8856
8857         maint.mk: requiring "make major" was annoying, for a "minor" release.
8858         What is intended is "stable", to contrast with alpha and beta,
8859         so require "make stable", not "make major".
8860         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8861         (get_tool_versions): Likewise.
8862         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8863
8864 2009-09-30  Ben Pfaff  <blp@gnu.org>
8865
8866         Fix broken build of replacement for Windows tmpfile().
8867         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8868         flags argument added along with the 'mkostemp' module.
8869
8870 2009-09-28  Bruno Haible  <bruno@clisp.org>
8871
8872         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8873         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8874         to 'remove_elt'.
8875         (gl_list_remove): Update.
8876         * lib/gl_list.c (gl_list_remove): Update.
8877         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8878         to 'remove_elt'.
8879         (gl_oset_remove): Update.
8880         * lib/gl_list.c (gl_oset_remove): Update.
8881         Reported by Eric Blake.
8882
8883 2009-09-28  Eric Blake  <ebb9@byu.net>
8884
8885         doc: mention yet more cygwin 1.7 status
8886         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8887         cygwin.
8888         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8889         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8890
8891         argp: fix test failure
8892         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8893         that are not upper-case.  Pass correct range to tolower.
8894
8895 2009-09-27  Jim Meyering  <meyering@redhat.com>
8896
8897         test-yesno: work around sparc-dash here-document infelicity
8898         Without this change, the literal \177 byte in a here document
8899         would make dash 0.5.5.1-3 access uninitialized memory.
8900         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8901         Instead, use a marker, "@", and filter through tr to create the desired
8902         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8903
8904 2009-09-27  Bruno Haible  <bruno@clisp.org>
8905
8906         Disable untested support for new flavours of ACLs on AIX.
8907         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8908         progress.
8909         * lib/set-mode-acl.c (qset_acl): Likewise.
8910
8911 2008-12-07  Bruno Haible  <bruno@clisp.org>
8912
8913         Add support for new flavours of ACLs on AIX. (Untested.)
8914         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8915         (file_has_acl): Add support for newer AIX.
8916         * lib/set-mode-acl.c (qset_acl): Likewise.
8917         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8918         Rainer Tammer <tammer@tammer.net>.
8919
8920 2009-09-26  Eric Blake  <ebb9@byu.net>
8921
8922         argp: fix compilation of getopt
8923         * lib/getopt.in.h (includes): Use different guard than glibc.
8924         Reported by Sergey Poznyakoff.
8925
8926         doc: mention more cygwin 1.7 status
8927         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8928         bug.
8929         * doc/posix-functions/execl.texi (execl): Likewise.
8930         * doc/posix-functions/execle.texi (execle): Likewise.
8931         * doc/posix-functions/execlp.texi (execlp): Likewise.
8932         * doc/posix-functions/execv.texi (execv): Likewise.
8933         * doc/posix-functions/execve.texi (execve): Likewise.
8934         * doc/posix-functions/execvp.texi (execvp): Likewise.
8935         * doc/glibc-functions/canonicalize_file_name.texi
8936         (canonicalize_file_name): Cygwin 1.7 now provides this.
8937         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8938         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8939         on AT_SYMLINK_NOFOLLOW.
8940
8941 2009-09-24  Eric Blake  <ebb9@byu.net>
8942
8943         test-linkat: make test more robust
8944         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8945
8946         getopt: fix inclusion guards for cygwin
8947         * modules/getopt-posix (Depends-on): Add include-next.
8948         (Makefile.am): Substitute more items in replacement header.
8949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8950         <getopt.h>.
8951         * lib/getopt.in.h (includes): Use split inclusion guard, and
8952         prefer <getopt.h> over include <unistd.h> when one is present.
8953         (option): Also override name of 'struct option'.
8954
8955         same-inode: revert prior change; it is not yet ready
8956         * NEWS: Undo mention of this change.
8957         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8958         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8959         * lib/cycle-check.c (cycle_check): Likewise.
8960         * lib/same.c (same_name): Likewise.
8961         * lib/at-func2.c (at_func2): Likewise.
8962
8963 2009-09-23  Eric Blake  <ebb9@byu.net>
8964
8965         linkat: new module
8966         * modules/linkat: New file.
8967         * lib/at-func2.c (at_func2): Likewise.
8968         * lib/linkat.c (linkat): Likewise.
8969         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8970         * lib/openat-priv.h (at_func2): Add declaration.
8971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8972         * modules/unistd (Makefile.am): Substitute them.
8973         * lib/unistd.in.h (linkat): Declare it.
8974         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8975         * doc/posix-functions/linkat.texi (linkat): Likewise.
8976         * doc/posix-functions/link.texi (link): Tweak wording.
8977         * tests/test-link.c (main): Move guts...
8978         * tests/test-link.h (test_link): ...into new file.
8979         * modules/linkat-tests: New test.
8980         * tests/test-linkat.c: Likewise.
8981         * modules/link-tests (Files): Ship new file.
8982         (Depends-on): Add stdbool.
8983
8984         dirname: add library-safe mdir_name
8985         * lib/dirname.h (mdir_name): New prototype.
8986         * lib/dirname.c (dir_name): Move guts...
8987         (mdir_name): ...to new function that avoids xalloc_die.
8988
8989         fchdir: another mingw fix
8990         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8991         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8992         on mingw (where it has not yet been ported), and make it optional
8993         elsewhere.
8994         (_gl_register_fd): Use it.
8995
8996         same-inode: make SAME_INODE tri-state, to port to mingw
8997         * NEWS: Mention this change.
8998         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8999         st_ino always being 0.
9000         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9001         * lib/cycle-check.c (cycle_check): Likewise.
9002         * lib/same.c (same_name): Likewise.
9003
9004         lstat: avoid mingw compilation error
9005         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9006         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9007         lstat ourselves.
9008         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9009         was adequate.
9010         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9011         the checks for lstat.
9012         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9013
9014         link: fix test failure on Solaris 9
9015         * lib/link.c (rpl_link): Don't assume link will catch bogus
9016         trailing slash on source.
9017
9018         test-symlinkat: enhance test
9019         * tests/test-readlink.c (main): Move guts...
9020         * tests/test-readlink.h (test_readlink): ...into new file.
9021         * tests/test-symlink.c (main): Move guts...
9022         * tests/test-symlink.h (test_symlink): ...into new file.
9023         * tests/test-symlinkat.c (main): Use new files for further
9024         coverage.
9025         (do_symlink, do_readlink): New helper functions.
9026         * modules/symlink-tests (Files): Ship new file.
9027         (Depends-on): Add stdbool.
9028         * modules/readlink-tests (Files): Ship new file.
9029         (Depends-on): Add stdbool.
9030         * modules/symlinkat-tests (Files): Use new files.
9031
9032 2009-09-23  Eric Blake  <ebb9@byu.net>
9033
9034         readlink: document portability issue with symlink length
9035         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9036         systems have bogus st_size on symlinks, and mention the
9037         areadlink-with-size module.
9038         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9039         * doc/posix-functions/readlink.texi (readlink): Mention the
9040         areadlink module, and ERANGE failure.
9041         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9042         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9043
9044         readlink: fix Solaris 9 bug with trailing slash
9045         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9046         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9047         * doc/posix-functions/readlink.texi (readlink): Document this.
9048         * modules/readlink-tests: New test.
9049         * tests/test-readlink.c: Likewise.
9050
9051         readlink: fix cygwin 1.5.x bug with return type
9052         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9053         * lib/unistd.in.h (readlink): Use ssize_t.
9054         * lib/readlink.c (readlink): Likewise.
9055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9056         * modules/unistd (Makefile.am): Substitute it.
9057         * lib/unistd.in.h (readlink): Declare replacement.
9058         * doc/posix-functions/readlink.texi (readlink): Document this.
9059
9060         symlink: use throughout gnulib
9061         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9062         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9063         symlink is not used.
9064         * modules/symlinkat (Depends-on): Add symlink.
9065         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9066         * modules/canonicalize-tests (Depends-on): Likewise.
9067         * modules/lstat-tests (Depends-on): Likewise.
9068         * modules/openat-tests (Depends-on): Likewise.
9069         * modules/remove-tests (Depends-on): Likewise.
9070         * modules/rmdir-tests (Depends-on): Likewise.
9071         * modules/unlink-tests (Depends-on): Likewise.
9072         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9073         * tests/test-canonicalize.c (symlink): Likewise.
9074         * tests/test-fstatat.c (symlink): Likewise.
9075         * tests/test-lstat.c (symlink): Likewise.
9076         * tests/test-remove.c (symlink): Likewise.
9077         * tests/test-rmdir.c (symlink): Likewise.
9078         * tests/test-unlink.c (symlink): Likewise.
9079         * tests/test-unlinkat.c (symlink): Likewise.
9080
9081         symlink: new module, for Solaris 9 bug
9082         * modules/symlink: New file.
9083         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9084         * lib/symlink.c: Likewise.
9085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9086         * modules/unistd (Makefile.am): Substitute them.
9087         * lib/unistd.in.h (symlink): Declare replacement.
9088         * MODULES.html.sh (File system functions): Mention it.
9089         * doc/posix-functions/symlink.texi (symlink): Likewise.
9090         * modules/symlink-tests: New test.
9091         * tests/test-symlink.c: Likewise.
9092
9093 2009-09-23  Bruno Haible  <bruno@clisp.org>
9094
9095         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9096         when needed.
9097         Test case: gnulib-tool --import --with-tests atexit inttypes.
9098         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9099
9100 2009-09-23  Bruno Haible  <bruno@clisp.org>
9101
9102         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9103         subcommand, not in a subshell.
9104
9105 2009-09-22  Eric Blake  <ebb9@byu.net>
9106
9107         unistd: sort replacement declarations
9108         * lib/unistd.in.h: Sort declarations.
9109
9110         open, openat: minor optimization
9111         * lib/open.c (open): If open succeeded, len is non-zero.
9112         * lib/openat.c (rpl_openat): Likewise.
9113
9114         link-follow: ensure correct result
9115         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9116         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9117         distinguish between possible failures.
9118
9119 2009-09-21  Eric Blake  <ebb9@byu.net>
9120
9121         fts: avoid compiler warning
9122         * lib/fts.c (dirent_inode_sort_may_be_useful)
9123         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9124
9125 2009-09-19  Bruno Haible  <bruno@clisp.org>
9126
9127         * lib/progreloc.c (canonicalize_file_name): New declaration.
9128
9129 2009-09-19  Eric Blake  <ebb9@byu.net>
9130
9131         link: fix quoting
9132         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9133
9134         openat: fix openat bugs on Solaris 9
9135         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9136         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9137         * modules/openat (Depends-on): Add open.
9138         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9139         * modules/fcntl-h (Makefile.am): Substitute it.
9140         * lib/fcntl.in.h (openat): Declare replacement.
9141         * doc/posix-functions/openat.texi (openat): Document this.
9142
9143         openat: move fstatat and unlinkat into correct files
9144         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9145         compiled.
9146         * lib/openat.c (fstatat, unlinkat): Move...
9147         * lib/fstatat.c (fstatat): ...into correct files.
9148         * lib/unlinkat.c (unlinkat): Likewise.
9149
9150         openat: fix unlinkat bugs on Solaris 9
9151         * lib/unlinkat.c (unlinkat): New file.
9152         * modules/openat (Depends-on): Add unlink.
9153         (Files): Distribute it.
9154         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9155         trailing slash behavior is broken.
9156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9157         * modules/unistd (Makefile.am): Substitute it.
9158         * lib/unistd.in.h (unlinkat): Declare replacement.
9159         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9160
9161         openat: fix fstatat bugs on Solaris 9
9162         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9163         stat.
9164         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9165
9166         test-unlinkat: enhance test, to expose Solaris 9 bug
9167         * tests/test-unlink.c (main): Factor guts...
9168         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9169         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9170         * tests/test-rmdir.c (main): Adjust caller.
9171         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9172         (unlinker): New helper function.
9173         (rmdirat): Enhance check.
9174         * modules/rmdir-tests (Depends-on): Add stdbool.
9175         * modules/unlink-tests (Depends-on): Likewise.
9176         (Files): Add test-unlink.h.
9177         * modules/openat-tests (Files): Likewise.
9178         (Depends-on): Add unlinkdir.
9179
9180         test-fstatat: new test, to expose Solaris 9 bugs
9181         * tests/test-stat.c (main): Factor guts...
9182         * tests/test-stat.h (test_stat_func): ...into new file.
9183         * tests/test-lstat.c (main): Factor guts...
9184         * tests/test-lstat.h (test_lstat_func): ...into new file.
9185         * tests/test-fstatat.c: New file.
9186         * modules/stat-tests (Files): Add test-stat.h.
9187         * modules/lstat-tests (Files): Add test-lstat.h.
9188         (Depends-on): Add stdbool.
9189         * modules/openat-tests (Depends-on): Add pathmax.
9190         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9191         (Makefile.am): Run new test.
9192
9193         remove: new module, for mingw and Solaris 9 bugs
9194         * modules/remove: New file.
9195         * lib/remove.c: Likewise.
9196         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9198         * modules/stdio (Makefile.am): Use them.
9199         * lib/stdio.in.h (remove): Declare replacement.
9200         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9201         * doc/posix-functions/remove.texi (remove): Likewise.
9202         * modules/remove-tests: New test.
9203         * tests/test-remove.c: Likewise.
9204
9205         unlink: new module, for Solaris 9 bug
9206         * modules/unlink: New file.
9207         * lib/unlink.c: Likewise.
9208         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9210         * modules/unistd (Makefile.am): Use them.
9211         * lib/unistd.in.h (stat): Declare replacement.
9212         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9213         * doc/posix-functions/unlink.texi (unlink): Likewise.
9214         * modules/unlink-tests: New test.
9215         * tests/test-unlink.c: Likewise.
9216
9217         lstat: fix Solaris 9 bug
9218         * lib/lstat.c (lstat): Also check for trailing slash on
9219         non-symlink, non-directories.  Use stat module to simplify logic.
9220         * doc/posix-functions/lstat.texi (lstat): Document it.
9221         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9222         (configure.ac): Check for symlink.
9223         * tests/test-lstat.c (main): Add more tests.
9224
9225         stat: add as dependency to other modules
9226         * modules/chown (Depends-on): Add stat.
9227         * modules/euidaccess (Depends-on): Likewise.
9228         * modules/fchdir (Depends-on): Likewise.
9229         * modules/isdir (Depends-on): Likewise.
9230         * modules/link (Depends-on): Likewise.
9231         * modules/lstat (Depends-on): Likewise.
9232         * modules/mkdir-p (Depends-on): Likewise.
9233         * modules/modechange (Depends-on): Likewise.
9234         * modules/open (Depends-on): Likewise.
9235         * modules/readlink (Depends-on): Likewise.
9236         * modules/same (Depends-on): Likewise.
9237
9238         stat: fix Solaris 9 bug
9239         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9240         slash.
9241         * lib/stat.c (rpl_stat): Work around it.
9242         * doc/posix-functions/stat.texi (stat): Update documentation.
9243
9244         stat: new module, for mingw bug
9245         * modules/stat: New file.
9246         * lib/stat.c: Likewise.
9247         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9249         * modules/sys_stat (Makefile.am): Use them.
9250         * lib/sys_stat.in.h (stat): Declare replacement.
9251         * lib/openat.c (fstatat): Deal with lstat and stat being function
9252         macros.
9253         * modules/openat (Depends-on): Add inline.
9254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9255         * doc/posix-functions/stat.texi (stat): Likewise.
9256         * modules/stat-tests: New test.
9257         * tests/test-stat.c: Likewise.
9258
9259 2009-09-19  Jim Meyering  <meyering@redhat.com>
9260
9261         syntax-check: detect unnecessary inclusion of canonicalize.h
9262         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9263
9264 2009-09-19  Eric Blake  <ebb9@byu.net>
9265
9266         canonicalize-lgpl: adjust clients to use correct header
9267         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9268         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9269         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9270         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9271         * lib/progreloc.c (includes): Likewise.
9272
9273 2009-09-19  Jim Meyering  <meyering@redhat.com>
9274
9275         test-posixtm.c: correct a comment
9276         * tests/test-posixtm.c: Correct first-line comment.
9277         Spotted by Eric Blake.
9278
9279 2009-09-16  Jim Meyering  <meyering@redhat.com>
9280
9281         posixtm-tests: make T const-correct; add a test case
9282         * tests/test-posixtm.c (T): Declare const.
9283         Add a test for -(2^31+1).
9284         Remove useless can-succeed-only-in-2002 test.
9285
9286         posixtm-tests: adjust the sole failing test
9287         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9288         expected output matches what mktime now produces.  Cross-checked via
9289         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9290
9291         posixtm: move #ifdef'd tests into a new module
9292         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9293         * tests/test-posixtm.c: ... this new file.
9294         * modules/posixtm-tests: New module.
9295
9296 2009-09-19  Eric Blake  <ebb9@byu.net>
9297
9298         openat: simplify use of at-func.c
9299         * lib/at-func.c (includes): Include prerequisites here, to
9300         simplify requirements on client files.
9301         * lib/openat-priv.h: Add double-inclusion guard.
9302         * lib/faccessat.c (includes): Simplify.
9303         * lib/fchmodat.c (includes): Likewise.
9304         * lib/fchownat.c (includes): Likewise.
9305         * lib/mkdirat.c (includes): Likewise.
9306         * lib/mkfifoat.c (includes): Likewise.
9307         * lib/symlinkat.c (includes): Likewise.
9308
9309         openat: allow return of fd 0
9310         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9311         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9312         unistd-safer.
9313         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9314         <fcntl.h>; this module does not leak fds.
9315         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9316         must be allowed to return 0, leaving openat_safer to add the
9317         safety.
9318         (openat_permissive): Avoid writing to just-opened fd 2 if
9319         restoring the current directory fails.
9320         * lib/openat-die.c (openat_restore_fail): Add comment.
9321         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9322         (save_cwd): Guarantee safe fd, but without use of open_safer.
9323         * tests/test-openat.c: New test.
9324         * modules/openat-tests (Files, Makefile.am): Distribute and build
9325         new file.
9326
9327         relocatable-prog-wrapper: fix build
9328         * modules/relocatable-prog-wrapper (Files): Update name of
9329         canonicalize m4 file, broken on 2009-09-17.
9330         Reported by emad hajjar <aleppos@hotmail.com>.
9331
9332 2009-09-19  Bruno Haible  <bruno@clisp.org>
9333
9334         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9335         * lib/safe-alloc.c: Likewise.
9336         Reported by Ian Beckwith <ianb@erislabs.net>.
9337
9338 2009-09-18  Bruno Haible  <bruno@clisp.org>
9339
9340         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9341         Reported by <erobles@sensacd.com.mx>.
9342
9343 2009-09-17  Eric Blake  <ebb9@byu.net>
9344
9345         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9346         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9347         slashes when checking if last component is missing.
9348         * tests/test-canonicalize.c (main): Test this.
9349
9350         canonicalize, canonicalize-lgpl: honor // if distinct from /
9351         * modules/canonicalize (Files): Add double-slash-root.m4.
9352         * modules/canonicalize-lgpl (Files): Likewise.
9353         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9354         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9355         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9356         fallback definition.
9357         (canonicalize_filename_mode): Use it to protect //.
9358         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9359         (__realpath): Likewise.
9360         * tests/test-canonicalize.c (main): Test this.
9361         * tests/test-canonicalize-lgpl.c (main): Likewise.
9362         * modules/canonicalize-tests (Depends-on): Add same-inode.
9363         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9364
9365         canonicalize-lgpl: fix glibc bug with trailing slash
9366         * m4/canonicalize-lgpl.m4: Move contents...
9367         * m4/canonicalize.m4: ...here.
9368         (gl_CANONICALIZE_LGPL): Factor realpath check...
9369         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9370         glibc 2.3.5 bug, fixed 2005-04-27.
9371         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9372         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9373         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9374         * modules/canonicalize-lgpl (Files): Manage file rename.
9375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9376         * modules/stdlib (Makefile.am): Substitute witness.
9377         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9378         is needed.
9379         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9380         replacement is required.
9381         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9382         * doc/glibc-functions/canonicalize_file_name.texi
9383         (canonicalize_file_name): Document this.
9384         * doc/posix-functions/realpath.texi (realpath): Likewise.
9385
9386         canonicalize-lgpl: reject non-directory with trailing slash
9387         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9388         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9389         catches failures in glibc 2.3.5.
9390         * tests/test-canonicalize.c (main): Likewise.
9391
9392         canonicalize-lgpl: use native realpath if it works
9393         * lib/canonicalize-lgpl.c (realpath): Guard with
9394         FUNC_REALPATH_WORKS.
9395         * lib/stdlib.in.h (realpath): Make declaration optional based on
9396         HAVE_REALPATH.
9397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9398         native realpath works.
9399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9400         * modules/stdlib (Makefile.am): Substitute witness.
9401
9402         canonicalize, canonicalize-lgpl: use <stdlib.h>
9403         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9404         (Include): Mention <stdlib.h>.
9405         (configure.ac): Mention functions we provide.
9406         * modules/canonicalize (configure.ac): Likewise.
9407         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9408         realpath if canonicalize_file_name is missing.
9409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9410         * modules/stdlib (Makefile.am): Substitute witnesses.
9411         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9412         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9413         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9414         * NEWS: Document this.
9415         * doc/glibc-functions/canonicalize_file_name.texi
9416         (canonicalize_file_name): Likewise.
9417         * doc/posix-functions/realpath.texi (realpath): Likewise.
9418         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9419
9420         test-canonicalize: consolidate into single C program
9421         * tests/test-canonicalize.sh: Delete; move setup into...
9422         * tests/test-canonicalize.c (main): ...the program, making it
9423         easier to run in debugger.  Add some tests.
9424         * modules/canonicalize-tests (Files): Remove unused file.
9425         (Depends-on): Add progname.
9426         (configure.ac, Makefile.am): Simplify.
9427
9428         test-canonicalize-lgpl: consolidate into single C program
9429         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9430         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9431         easier to run in debugger.  Add some tests.
9432         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9433         (configure.ac, Makefile.am): Simplify.
9434
9435         canonicalize: avoid resolvepath
9436         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9437         unnecessary checks.
9438         * lib/canonicalize.c (includes): Simplify.
9439         (canonicalize_file_name): Drop resolvepath implementation.
9440         * modules/canonicalize (Depends-on): Drop filenamecat.
9441
9442         canonicalize: don't lose errno
9443         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9444         over calls to free.
9445
9446         canonicalize: simplify errno handling
9447         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9448         assignment.
9449
9450         canonicalize, canonicalize-lgpl: update module dependencies
9451         * modules/canonicalize (Depends-on): Add extensions, lstat,
9452         pathmax, stdlib.
9453         (Files): Drop pathmax.h.
9454         (configure.ac): Adjust macro name.
9455         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9456         lstat, stdlib, sys_stat.
9457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9458         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9459         extensions.
9460         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9461         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9462         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9463         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9464         declaration, if available.
9465         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9466         we can rely on the readlink module.
9467         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9468         (includes): Use <unistd.h> unconditionally.
9469
9470 2009-09-17  Eric Blake  <ebb9@byu.net>
9471
9472         maint: make Include sections of modules consistent
9473         * modules/alloca: Use only header name; no need to list #include.
9474         * modules/alloca-opt: Likewise.
9475         * modules/arpa_inet: Likewise.
9476         * modules/canon-host: Likewise.
9477         * modules/configmake: Likewise.
9478         * modules/dirent: Likewise.
9479         * modules/eealloc: Likewise.
9480         * modules/environ: Likewise.
9481         * modules/fchdir: Likewise.
9482         * modules/fcntl: Likewise.
9483         * modules/fcntl-h: Likewise.
9484         * modules/gethrxtime: Likewise.
9485         * modules/gettime: Likewise.
9486         * modules/ignore-value: Likewise.
9487         * modules/inet_ntop: Likewise.
9488         * modules/inet_pton: Likewise.
9489         * modules/inttypes: Likewise.
9490         * modules/isnand-nolibm: Likewise.
9491         * modules/isnanf-nolibm: Likewise.
9492         * modules/mbchar: Likewise.
9493         * modules/mbfile: Likewise.
9494         * modules/mbiter: Likewise.
9495         * modules/mbuiter: Likewise.
9496         * modules/netdb: Likewise.
9497         * modules/netinet_in: Likewise.
9498         * modules/nproc: Likewise.
9499         * modules/pagealign_alloc: Likewise.
9500         * modules/poll: Likewise.
9501         * modules/printf-frexp: Likewise.
9502         * modules/pthread: Likewise.
9503         * modules/putenv: Likewise.
9504         * modules/random_r: Likewise.
9505         * modules/relocatable-prog: Likewise.
9506         * modules/search: Likewise.
9507         * modules/select: Likewise.
9508         * modules/selinux-h: Likewise.
9509         * modules/settime: Likewise.
9510         * modules/signal: Likewise.
9511         * modules/size_max: Likewise.
9512         * modules/socklen: Likewise.
9513         * modules/ssize_t: Likewise.
9514         * modules/stdarg: Likewise.
9515         * modules/stdbool: Likewise.
9516         * modules/stddef: Likewise.
9517         * modules/stdint: Likewise.
9518         * modules/stdio: Likewise.
9519         * modules/stdlib: Likewise.
9520         * modules/string: Likewise.
9521         * modules/strings: Likewise.
9522         * modules/sys_file: Likewise.
9523         * modules/sys_ioctl: Likewise.
9524         * modules/sys_select: Likewise.
9525         * modules/sys_socket: Likewise.
9526         * modules/sys_stat: Likewise.
9527         * modules/sys_time: Likewise.
9528         * modules/sys_times: Likewise.
9529         * modules/sys_utsname: Likewise.
9530         * modules/sys_wait: Likewise.
9531         * modules/sysexits: Likewise.
9532         * modules/time: Likewise.
9533         * modules/times: Likewise.
9534         * modules/tmpfile: Likewise.
9535         * modules/trim: Likewise.
9536         * modules/unistd: Likewise.
9537         * modules/wchar: Likewise.
9538         * modules/wctype: Likewise.
9539
9540 2009-09-17  Bruno Haible  <bruno@clisp.org>
9541
9542         Make getdate.y compile on QNX and NetBSD 5 / i386.
9543         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9544         TIME_T_FITS_IN_LONG_INT.
9545         * lib/getdate.y (long_time_t): New type.
9546         (relative_time): Change type of 'seconds' field to long_time_t.
9547         (get_date): Update types of local variables. Check against overflow
9548         during conversion from long_time_t to time_t.
9549         Reported by Matt Kraai <kraai@ftbfs.org>
9550         and Hasso Tepper <hasso@netbsd.org>.
9551
9552 2009-09-17  Bruno Haible  <bruno@clisp.org>
9553
9554         * modules/COPYING: Update copyright years.
9555         * modules/README: Likeiwse.
9556         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9557         Reported by Ian Beckwith <ianb@erislabs.net>.
9558
9559 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9560
9561         * users.txt: Update references for gnuit package.
9562
9563 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9564
9565         * m4/getdelim.m4: Fix typo in copyright line.
9566
9567 2009-09-17  Bruno Haible  <bruno@clisp.org>
9568
9569         * lib/atoll.c: Use the standard header with GPL copyright.
9570         * lib/argz.in.h: Likewise.
9571         * lib/glob.c: Likewise.
9572         * lib/glob-libc.h: Likewise.
9573         * lib/random_r.c: Likewise.
9574         * lib/siglist.h: Likewise.
9575         * lib/strsignal.c: Likewise.
9576         Reported by Ian Beckwith <ianb@erislabs.net>.
9577
9578 2009-09-17  Eric Blake  <ebb9@byu.net>
9579
9580         rmdir: ensure correct dependency order
9581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9582
9583 2009-09-17  Bruno Haible  <bruno@clisp.org>
9584
9585         Disable assertion that fails on NetBSD 5 / i386.
9586         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9587         Reported by Sam Steingold <sds@gnu.org>
9588         and Hasso Tepper <hasso@netbsd.org>.
9589
9590 2009-09-16  Eric Blake  <ebb9@byu.net>
9591
9592         unlinkdir: port to mingw
9593         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9594         on which no one can unlink a directory.
9595
9596         stdlib: sort witness names
9597         * modules/stdlib (Makefile.am): Sort replacements.
9598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9599         * lib/stdlib.in.h: Likewise.
9600
9601         parse-duration-tests: avoid link failure
9602         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9603         LIBINTL.
9604         Reported by Tom G. Christensen.
9605
9606         openat-tests: ensure unlinkat behaves like rmdir
9607         * tests/test-rmdir.c (main): Factor guts...
9608         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9609         * modules/rmdir-tests (Files): Ship new file.
9610         * modules/openat-tests: New test.
9611         * tests/test-unlinkat.c: Likewise.
9612
9613         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9614         * modules/rmdir-errno (Status, Notice): Now obsolete.
9615
9616         rmdir: work around cygwin 1.5.x and mingw bugs
9617         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9618         * lib/rmdir.c (rmdir): Work around it.
9619         * modules/rmdir (Status, Notice): No longer obsolete.
9620         (Files): Add dos.m4.
9621         (Depends-on): Add unistd.
9622         (configure.ac): Set witnesses.
9623         (License): Relax to LGPLv2+.
9624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9625         * modules/unistd (Makefile.am): Substitute witnesses.
9626         * lib/unistd.in.h (rmdir): Declare replacement.
9627         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9628         * modules/rmdir-tests: New tests.
9629         * tests/test-rmdir.c: Likewise.
9630
9631 2009-09-15  Eric Blake  <ebb9@byu.net>
9632
9633         fchdir: improve use of replacement functions
9634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9635         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9636         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9637         REPLACE_CLOSEDIR.
9638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9639         * modules/sys_stat (Makefile.am): Substitute correct witness.
9640         * modules/dirent (Makefile.am): Likewise.
9641         * modules/unistd (Makefile.am): Likewise.
9642         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9643         * lib/unistd.in.h (dup): Likewise.
9644         * lib/sys_stat.in.h (fstat): Likewise.
9645
9646         maint: ignore gnulib-tool temp files
9647         * .gitignore: Ignore files created during gnulib-tool --test.
9648
9649 2009-09-13  Jim Meyering  <meyering@redhat.com>
9650
9651         posixtm: don't reject a time that specify "60" as the number of seconds
9652         * lib/posixtm.c (posixtime): The code to reject invalid dates
9653         would also reject a time specified with the .60 suffix.
9654         But POSIX allows that, in order to accommodate leap seconds.
9655         So don't reject it.
9656         (main): Adjust tests accordingly.
9657         * modules/posixtm (Depends-on): Add stpcpy.
9658
9659 2009-09-11  Jim Meyering  <meyering@redhat.com>
9660
9661         announce-gen: include [$release_type] in emitted Subject:
9662         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9663         e.g., [stable] in the emitted Subject: line.
9664
9665 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9666
9667         Remove obsolete macros from several modules.
9668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9669         obsolete Autoconf macros with their modern counterparts.
9670         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9671         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9674         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9675         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9678         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9679         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9680         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9682         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9683         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9684         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9685         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9686         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9687         * m4/time_r.m4 (gl_TIME_R): Likewise.
9688         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9689         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9690         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9691
9692         Fix copyright header in build-aux scripts.
9693         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9694         recommendation.
9695         * build-aux/ncftpput-ftp: Likewise.
9696         * build-aux/update-copyright: Likewise.
9697
9698 2009-09-09  Eric Blake  <ebb9@byu.net>
9699
9700         test-link: allow Linux choice of errno
9701         * tests/test-link.c (main): Relax test for alternate error.
9702
9703         strndup: fix improper m4 caching
9704         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9705         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9706         (gl_PREREQ_STRNDUP): Delete.
9707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9708         * modules/string (Makefile.am): Substitute it.
9709         * lib/string.in.h (strndup): Modernize prototype.
9710
9711         getcwd: port to mingw
9712         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9713         different from the POSIX assumptions made throughout the getcwd
9714         module; fortunately, the mingw getcwd does not need replacement.
9715         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9716         * modules/getcwd-tests: New test.
9717         * tests/test-getcwd.c: Likewise.
9718
9719         link: fix platform bugs
9720         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9721         * lib/link.c (link): Work around them.  Fix related mingw bug.
9722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9723         * modules/unistd (Makefile.am): Substitute it.
9724         * lib/unistd.in.h (link): Declare replacement.
9725         * doc/posix-functions/link.texi (link): Document this.
9726         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9727
9728         test-link: consolidate into single C program, test more cases
9729         * tests/test-link.sh: Delete.
9730         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9731         at least Cygwin and Solaris.
9732         * modules/link-tests (Files): Remove unused file.
9733         (Depends-on): Add errno, sys_stat.
9734         (Makefile.am): Simplify.
9735
9736 2009-09-08  Bruno Haible  <bruno@clisp.org>
9737
9738         Work around towlower, towupper bug on mingw.
9739         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9740         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9741         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9742         * doc/posix-functions/towupper.texi: Likewise.
9743         Reported by Eric Blake.
9744
9745 2009-09-08  Jim Meyering  <meyering@redhat.com>
9746
9747         build: don't try to run autoheader if we don't use it
9748         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9749         is not used in configure.ac.
9750
9751 2009-09-08  Eric Blake  <ebb9@byu.net>
9752
9753         euidaccess: fix compilation error
9754         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9755
9756         rawmemchr: relax license
9757         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9758         okay.
9759         Reported by Jim Meyering.
9760
9761         mkfifoat: new module
9762         * modules/mkfifoat: New file.
9763         * lib/mkfifoat.c: Likewise.
9764         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9766         * modules/sys_stat (Makefile.am): Use them.
9767         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9768         * MODULES.html.sh (File system functions): Mention module.
9769         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9770         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9771         * modules/mkfifoat-tests: New test.
9772         * tests/test-mkfifoat.c: Likewise.
9773
9774         strchrnul: relax license
9775         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9776         okay.
9777         Reported by Jim Meyering.
9778
9779 2009-09-08  Eric Blake  <ebb9@byu.net>
9780
9781         fstatat: fix compilation on Solaris
9782         * lib/fstatat.c (includes): Add fcntl.h.
9783         Reported by Pádraig Brady.
9784
9785 2009-09-07  Eric Blake  <ebb9@byu.net>
9786
9787         rename: modernize replacement
9788         * modules/rename (Depends-on): Add stdio.
9789         (configure.ac): Declare witness.
9790         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9791         stdio take care of replacement.
9792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9793         * modules/stdio (Makefile.am): Substitute them.
9794         * lib/stdio.in.h (rename): Declare replacement.
9795         * lib/rename.c (includes): Allow cross-compilation to non-windows
9796         machines.
9797         * doc/posix-functions/rename.texi (rename): Improve
9798         documentation.
9799
9800         stdio: sort witness names
9801         * modules/stdio (Makefile.am): Sort replacements.
9802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9803         * lib/stdio.in.h: Likewise.
9804
9805         getcwd: minor cleanups
9806         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9807         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9808
9809         openat: provide more convenience names
9810         * modules/faccessat (configure.ac): Add C witness.
9811         * lib/unistd.in.h (readlinkat): Fix typo.
9812         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9813         convenience wrappers.
9814         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9815         wrappers in syntax checks.
9816
9817 2009-09-06  Eric Blake  <ebb9@byu.net>
9818
9819         doc: fix comments in recent patches
9820         * lib/faccessat.c: Mention correct function.
9821         * lib/fchmodat.c: Likewise.
9822         * lib/fchownat.c: Likewise.
9823         * lib/symlinkat.c: Likewise.
9824         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9825         constants.
9826
9827         faccessat, symlinkat: continue cleanup of previous patch
9828         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9829         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9830         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9832         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9833         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9834         set.
9835
9836 2009-09-06  Bruno Haible  <bruno@clisp.org>
9837
9838         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9839         (fstatat): Declare if GNULIB_FSTATAT is set.
9840         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9841         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9842         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9843         * modules/fcntl-h (Files): Remove m4/openat.m4.
9844         * modules/sys_stat (Files): Remove m4/openat.m4.
9845         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9846         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9847         * modules/unistd (Files): Remove m4/openat.m4.
9848         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9849         GNULIB_OPENAT.
9850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9851         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9852         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9853         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9854         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9855         gl_OPENAT_DEFAULTS.
9856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9857         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9858         Don't require gl_OPENAT_DEFAULTS.
9859         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9860         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9861         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9862         (gl_OPENAT_DEFAULTS): Remove macro.
9863
9864 2009-09-06  Bruno Haible  <bruno@clisp.org>
9865
9866         * modules/openat (configure.ac): Remove unneeded witness.
9867
9868 2009-09-06  Bruno Haible  <bruno@clisp.org>
9869
9870         Set errno to ENOSYS when a function is entirely unsupported.
9871         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9872         EOPNOTSUPP.
9873         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9874         * modules/chown (Depends-on): Remove errno.
9875
9876 2009-09-06  Bruno Haible  <bruno@clisp.org>
9877
9878         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9879
9880 2009-09-06  Bruno Haible  <bruno@clisp.org>
9881
9882         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9883
9884 2009-09-06  Ben Pfaff  <blp@gnu.org>
9885             Bruno Haible  <bruno@clisp.org>
9886
9887         Work around a glibc bug in strtok_r.
9888         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9889         Undefine if UNDEFINE_STRTOK_R is set.
9890         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9892         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9893         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9894         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9895         UNDEFINE_STRTOK_R.
9896         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9897
9898 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9899
9900         exclude: minor fix
9901         * lib/exclude.c: Include wctype.h
9902
9903 2009-09-06  Akim Demaille  <demaille@gostai.com>
9904
9905         bootstrap: improve error message
9906         * build-aux/bootstrap (find_tool): Upon failure, report the list
9907         of candidates.
9908         Honor the initial value of the envvar.
9909
9910 2009-09-05  Eric Blake  <ebb9@byu.net>
9911
9912         symlinkat: new module
9913         * modules/symlinkat: New file.
9914         * lib/symlinkat.c: Likewise.
9915         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9917         * modules/unistd (Makefile.am): Use them.
9918         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9919         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9920         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9921         * MODULES.html.sh (File system functions): Mention module.
9922         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9923         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9924         * modules/symlinkat-tests: New test.
9925         * tests/test-symlinkat.c: Likewise.
9926
9927         test-openat-safer: add more checks
9928         * tests/test-openat-safer.c (main): Check more code paths.
9929
9930 2009-09-05  Jim Meyering  <meyering@redhat.com>
9931
9932         syntax-check: detect unnecessary inclusion of openat.h
9933         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9934
9935 2009-09-05  Bruno Haible  <bruno@clisp.org>
9936
9937         Support towlower, towupper.
9938         * doc/posix-functions/towlower.texi: Mention module wctype.
9939         * doc/posix-functions/towupper.texi: Likewise.
9940         * lib/wctype.in.h (towlower, towupper): New functions.
9941         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9942         (ASSERT): New macro.
9943         (e): New variable.
9944         (main): Test also towlower, towupper. Test WEOF argument.
9945         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9946
9947 2009-09-05  Bruno Haible  <bruno@clisp.org>
9948
9949         Fix conversion behaviour when the input is invalid.
9950         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9951         mark occurring in first pass of indirect conversion.
9952         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9953         input.
9954         Found by clang's static analyzer.
9955
9956 2009-09-05  Bruno Haible  <bruno@clisp.org>
9957
9958         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9959         where direct conversion is possible.
9960
9961 2009-09-04  Eric Blake  <ebb9@byu.net>
9962
9963         openat: fail with ENOENT on empty name
9964         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9965         buffer.
9966
9967         link-follow: fix logic bug in prior patch
9968         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9969         reversed sense of yes and no in prior patch.  Avoid confusing
9970         compilation failure with desired semantics.
9971
9972         link-follow: accomodate mingw and cross-compilation
9973         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9974         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9975         cross-compilation results to -1, to make linkat easier to
9976         implement when cross-compiling.  Trivially support mingw.
9977         * modules/link-follow (configure.ac): Call new name.
9978         * NEWS: Mention this.
9979
9980 2009-09-03  Eric Blake  <ebb9@byu.net>
9981
9982         faccessat: compile replacement
9983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9984         needed.
9985
9986         fts: fix compilation error
9987         * lib/fts.c (includes): Re-add "openat.h", for
9988         openat_needs_fchdir.
9989
9990         faccessat: new module
9991         * modules/faccessat: New file.
9992         * lib/faccessat.c: Likewise.
9993         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9995         * modules/unistd (Makefile.am): Use it.
9996         * lib/unistd.in.h (faccessat): Declare it.
9997         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9998         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9999         * MODULES.html.sh (File system functions): Mention it.
10000         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10001         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10002
10003         euidaccess: prefer POSIX over non-standard implementation
10004         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10005         * lib/euidaccess.c (euidaccess): Use it if available.
10006
10007         openat: make template easier to use
10008         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10009         AT_FUNC_F2 to be undefined.
10010         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10011         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10012         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10013         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10014         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10015         Likewise.
10016         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10017         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10018         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10019         Likewise.
10020
10021         openat: declare in POSIX headers
10022         * NEWS: Mention this.
10023         * modules/openat (configure.ac): Declare witnesses.
10024         (Depends-on): Add fcntl-h, sys_stat, unistd.
10025         (Include): Mention correct headers.
10026         * modules/fcntl-h (Depends-on): Add link-warning.
10027         (Files): Add openat.m4.
10028         (Makefile.am): Substitute witnesses.
10029         * modules/sys_stat (Files, Makefile.am): Likewise.
10030         * modules/unistd (Files, Makefile.am): Likewise.
10031         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10032         (gl_OPENAT_DEFAULTS): New macro.
10033         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10036         (SYS_STAT_H): Remove unused variable.
10037         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10038         * lib/fcntl--.h (includes): Remove unneeded header.
10039         * lib/openat-safer.c (includes): Likewise.
10040         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10041         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10042         appropriate headers.
10043         (__OPENAT_PREFIX): Delete.
10044         * lib/fcntl.in.h (openat): Provide declaration.
10045         (AT_FDCWD): Fix Solaris bug.
10046         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10047         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10048         * lib/fchmodat.c (includes):  Adjust to find declaration.
10049         * lib/fchownat.c (includes): Likewise.
10050         * lib/mkdirat.c (includes): Likewise.
10051         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10052         still visible.
10053
10054 2009-09-02  Eric Blake  <ebb9@byu.net>
10055
10056         errno: use consistently
10057         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10058         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10059         * lib/canonicalize.c (ELOOP): Likewise.
10060         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10061         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10062         * lib/lchown.c (EOPNOTSUPP): Likewise.
10063         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10064         * lib/savewd.c (ESTALE): Likewise.
10065         * lib/settime.c (ENOSYS): Likewise.
10066         * lib/utimens.c (ENOSYS): Likewise.
10067         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10068         * lib/chdir-safer.c (ELOOP): Likewise.
10069         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10070         * modules/c-stack (Depends-on): Add errno.
10071         * modules/canonicalize (Depends-on): Likewise.
10072         * modules/chdir-safer (Depends-on): Likewise.
10073         * modules/fdopendir (Depends-on): Likewise.
10074         * modules/inet_ntop (Depends-on): Likewise.
10075         * modules/inet_pton (Depends-on): Likewise.
10076         * modules/lchown (Depends-on): Likewise.
10077         * modules/openat (Depends-on): Likewise.
10078         * modules/savewd (Depends-on): Likewise.
10079         * modules/settime (Depends-on): Likewise.
10080         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10081
10082         fts: avoid leaking fds
10083         * modules/fts (Depends-on): Add cloexec.
10084         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10085         flag.
10086
10087         fts: make directory fds more robust
10088         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10089         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10090
10091         backupfile, chdir-long, fts, savedir: make safer
10092         * lib/backupfile.c (includes): Use "dirent--.h", since
10093         numbered_backup can write to stderr during readdir.
10094         * lib/savedir.c (includes): Likewise.
10095         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10096         emulation can write to stderr on failure.
10097         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10098         * lib/getcwd.c: Document why opendir_safer is unused.
10099         * lib/glob.c: Likewise.
10100         * lib/scandir.c: Likewise.
10101         * lib/openat-proc.c: Likewise, for open_safer.
10102         * modules/backupfile (Depends-on): Add dirent-safer.
10103         * modules/savedir (Depends-on): Likewise.
10104         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10105         * modules/chdir-long (Depends-on): Add openat-safer.
10106
10107         openat-safer: new module
10108         * modules/openat-safer: New file.
10109         * lib/openat-safer.c: Likewise.
10110         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10111         * lib/fcntl-safer.h (openat_safer): Declare.
10112         * lib/fcntl--.h (openat): Override.
10113         * MODULES.html.sh (File descriptor based I/O): Mention it.
10114         * lib/openat.h: Add double-inclusion guards.
10115         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10116         "fcntl--.h", so we can implement openat.
10117         * modules/openat-safer-tests: New test.
10118         * tests/test-openat-safer.c: New file.
10119
10120         dirent-safer: new module
10121         * modules/dirent-safer: New file.
10122         * lib/dirent--.h: Likewise.
10123         * lib/dirent-safer.h: Likewise.
10124         * lib/opendir-safer.c: Likewise.
10125         * m4/dirent-safer.m4: Likewise.
10126         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10127         * modules/dirent-safer-tests: New test.
10128         * tests/test-dirent-safer.c: New file.
10129         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10130
10131         fdopendir: optimize on mingw
10132         * lib/unistd.in.h (_gl_directory_name): New prototype.
10133         * lib/fchdir.c (_gl_directory_name): Implement it.
10134         (fchdir): Use it to simplify implementation.
10135         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10136         fchdir, when available, to avoid calling [f]chdir().
10137
10138         fdopendir: split into its own module
10139         * lib/openat.c (fdopendir): Move...
10140         * lib/fdopendir.c: ...into new file.
10141         * modules/fdopendir: New module.
10142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10143         * modules/openat (Depends-on): Add fdopendir.
10144         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10145         fdopendir here.
10146         * modules/savedir (Depends-on): Only need fdopendir, not full
10147         openat.
10148         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10149         * lib/openat.h (fdopendir): Drop prototype.
10150         * lib/dirent.in.h (fdopendir): Provide prototype.
10151         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10152         * modules/dirent (Makefile.am): Substitute them.
10153         * MODULES.html.sh (File system functions): Mention it.
10154         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10155         * modules/fdopendir-tests: New file.
10156         * tests/test-fdopendir.c: Likewise.
10157
10158         fchdir: use more consistent macro convention
10159         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10160         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10161         REPLACE_FCHDIR, rather than relying on config.h macros.
10162         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10163         inside a single make-time REPLACE_FCHDIR block, rather than using
10164         the config.h FCHDIR_REPLACEMENT.
10165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10166         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10167         Manage fstat replacement.
10168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10169         REPLACE_FCHDIR.
10170         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10171         (Makefile.am): Substitute REPLACE_FCHDIR.
10172         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10173         FCHDIR_REPLACEMENT.
10174         * lib/dup-safer.c (dup_safer): Likewise.
10175         * lib/dup2.c (rpl_dup2): Likewise.
10176         * lib/dup3.c (rpl_dup3): Likewise.
10177         * lib/open.c (rpl_open): Likewise.
10178
10179         fchdir: simplify error handling, and support dup3
10180         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10181         stdbool, malloc-posix, realloc-posix.
10182         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10183         (ensure_dirs_slot): Return false on allocation failure.
10184         (rpl_dup2): Delete.
10185         (_gl_register_dup): New function.
10186         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10187         (_gl_register_fd): Close fd on allocation failure.
10188         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10189         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10190         prototype.
10191         (rpl_dup2_fchdir): Delete prototype.
10192         * lib/open.c (open): Update caller.
10193         * lib/dup2.c (dup2): Track fchdir metadata.
10194         * lib/dup3.c (dup3): Likewise.
10195         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10197
10198 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10199
10200         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10201         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10202         don't pass arguments to AC_OUTPUT.
10203
10204 2009-09-02  Bruno Haible  <bruno@clisp.org>
10205
10206         * modules/mkdtemp (License): Relicense under LGPLv2+.
10207         Reported by Paolo Bonzini.
10208
10209 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10210
10211         Replace uses of obsolete autoconf macros in Jim's modules.
10212         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10213         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10214         can evoke a warning from autoconf when run with -Wobsolete
10215         enabled.  They were declared obsolete for good reasons (see
10216         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10217         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10218         should not continue using the deprecated macros.
10219         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10220         obsolete Autoconf macros with modern counterparts.
10221         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10222         * m4/dos.m4 (gl_AC_DOS): Likewise.
10223         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10225         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10226         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10227         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10228         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10229         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10230         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10231         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10232         Likewise.
10233         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10234         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10235         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10236         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10237         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10238         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10239
10240 2009-09-01  Eric Blake  <ebb9@byu.net>
10241
10242         fchdir: fix off-by-one bug in previous patch
10243         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10244         (_gl_unregister_fd): Delete useless if.
10245
10246 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10247
10248         maint.mk: sort the list of syntax-check rules
10249         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10250         easier to get a sense of progress when the rules are run sequentially
10251         and take a long time.
10252
10253 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10254
10255         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10256         * modules/netinet_in: Likewise.
10257         * modules/sys_file: Likewise.
10258         * modules/sys_ioctl: Likewise.
10259         * modules/sys_select: Likewise.
10260         * modules/sys_socket: Likewise.
10261         * modules/sys_stat: Likewise.
10262         * modules/sys_time: Likewise.
10263         * modules/sys_times: Likewise.
10264         * modules/sys_utsname: Likewise.
10265         * modules/sys_wait: Likewise.
10266
10267 2009-09-01  Jim Meyering  <meyering@redhat.com>
10268
10269         fts: help ensure that return values are not ignored
10270         * lib/fts_.h (__GNUC_PREREQ): Define.
10271         (__attribute_warn_unused_result__): Define.
10272         (fts_children, fts_close, fts_open, fts_read): Declare with
10273         __attribute_warn_unused_result__.
10274
10275         fts: fts_close now fails also when closing a dir file descriptor fails
10276         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10277         and propagate to caller, along with errno.
10278
10279         announce-gen: correct formatting in --help output
10280         * build-aux/announce-gen (usage): Move the one-line description in
10281         --help output "up", to where it belongs, just after Usage:.
10282
10283 2009-08-31  Eric Blake  <ebb9@byu.net>
10284
10285         fchdir: port to mingw
10286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10287         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10288         opened, then use a substitute.
10289         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10290         replacement.
10291         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10292         (_gl_register_fd): No need to check stat if open already filters
10293         all directories.
10294         (fchdir): Fix error condition to match POSIX.
10295         * modules/fchdir (Depends-on): Add sys_stat.
10296         * doc/posix-functions/open.texi (open): Document the limitation.
10297         * modules/fchdir-tests: New file.
10298         * tests/test-fchdir.c: Likewise.
10299
10300         canonicalize: allow cross-testing from cygwin to mingw
10301         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10302         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10303         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10304         Likewise.
10305         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10306         target does not support symlinks.
10307         * tests/test-canonicalize-lgpl.sh: Likewise.
10308
10309         chown: avoid compilation warning on mingw
10310         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10311         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10312         mingw.
10313         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10314         * modules/chown (Depends-on): Add errno.
10315
10316 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10317
10318         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10319         command.
10320
10321 2009-08-31  Jim Meyering  <meyering@redhat.com>
10322
10323         canonicalize: remove useless initialization
10324         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10325         initialization of local, "end".
10326
10327 2009-08-30  Bruno Haible  <bruno@clisp.org>
10328
10329         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10330         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10331         ENOSYS.
10332
10333 2009-08-30  Bruno Haible  <bruno@clisp.org>
10334
10335         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10336         /usr/xpg4/bin/tr when it exists.
10337         * tests/test-pipe-filter-gi1.sh: Likewise.
10338
10339 2009-08-30  Bruno Haible  <bruno@clisp.org>
10340
10341         Work around deficient /usr/bin/id program on Solaris.
10342         * tests/test-file-has-acl.sh (ID): New variable.
10343         * tests/test-set-mode-acl.sh (ID): Likewise.
10344         * tests/test-copy-acl.sh (ID): Likewise.
10345         * tests/test-copy-file.sh (ID): Likewise.
10346
10347 2009-08-30  Bruno Haible  <bruno@clisp.org>
10348
10349         New module 'xstriconveh'.
10350         * lib/xstriconveh.h: New file.
10351         * lib/xstriconveh.c: New file.
10352         * modules/xstriconveh: New file.
10353
10354 2009-08-30  Bruno Haible  <bruno@clisp.org>
10355
10356         Make it easier to use mem_cd_iconveh.
10357         * lib/striconveh.h (iconveh_t): New type.
10358         (iconveh_open, iconveh_close): New declarations.
10359         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10360         with a single 'const iconveh_t *' argument.
10361         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10362         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10363         with a single 'const iconveh_t *' argument.
10364         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10365         * tests/test-striconveh.c (main): Update.
10366         * NEWS: Mention the change.
10367
10368 2009-08-30  Bruno Haible  <bruno@clisp.org>
10369
10370         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10371         problem.
10372
10373 2009-08-30  Bruno Haible  <bruno@clisp.org>
10374
10375         Work around iconv_open problem on Solaris.
10376         * lib/iconv_open-solaris.gperf: New file.
10377         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10378         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10379         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10380         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10381         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10382         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10383
10384 2009-08-29  Jim Meyering  <meyering@redhat.com>
10385
10386         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10387         * top/maint.mk (cvs-check): Remove target; it was just an alias
10388         to the better-named vc-diff-check.
10389         (maintainer-distcheck): Remove rule.  It was used only from
10390         the (alpha/beta/major) target, and all of its commands but one
10391         were coreutils-specific.
10392         (vc-dist): Remove rule.
10393         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10394         Run vc-diff-check, not vc-dist.
10395         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10396
10397 2009-08-27  Bruno Haible  <bruno@clisp.org>
10398
10399         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10400         of 0.
10401
10402 2009-08-27  Bruno Haible  <bruno@clisp.org>
10403
10404         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10405         compilers.
10406         * doc/func.texi: Document the SunPRO C bug.
10407
10408 2009-08-27  Bruno Haible  <bruno@clisp.org>
10409
10410         Fix link error on Solaris.
10411         * tests/test-parse-duration.c (xstrdup): Remove function.
10412
10413 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10414
10415         ignore-value: handle pointer types, too
10416         * lib/ignore-value.h (__attribute__): Remove definition.
10417         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10418         of a more concise and more-often effective "(void) i" statement.
10419         (ignore_ptr): New function to suppress warnings from functions that
10420         return pointers, and to make it explicit that one function doesn't
10421         handle all cases.
10422
10423 2009-08-25  Bruno Haible  <bruno@clisp.org>
10424
10425         dup2: work around a Linux bug.
10426         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10427         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10428         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10429         Reported by Simon Josefsson.
10430
10431 2009-08-25  Jim Meyering  <meyering@redhat.com>
10432
10433         libguestfs uses gnulib
10434         * users.txt: Add libguestfs.
10435
10436 2009-08-24  Eric Blake  <ebb9@byu.net>
10437
10438         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10439         * lib/pipe2.c (includes): Add binary-io.h.
10440         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10441
10442 2009-08-24  Bruno Haible  <bruno@clisp.org>
10443
10444         Tolerate declared but missing accept4 syscall.
10445         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10446         available.
10447         * lib/sys_socket.in.h (accept4): If the function is already present,
10448         override it.
10449         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10450         * modules/accept4 (Makefile.am): Compile accept4.c always.
10451         Reported by Paolo Bonzini and Eric Blake.
10452
10453 2009-08-23  Bruno Haible  <bruno@clisp.org>
10454
10455         New module 'accept4'.
10456         * lib/sys_socket.in.h (accept4): New declaration.
10457         * lib/accept4.c: New file.
10458         * m4/accept4.m4: New file.
10459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10460         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10461         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10462         HAVE_ACCEPT4.
10463         * modules/accept4: New file.
10464         * doc/glibc-functions/accept4.texi: Mention the new module.
10465
10466 2009-08-24  Jim Meyering  <meyering@redhat.com>
10467
10468         progname: also set global program_invocation_name, when possible
10469         Before this change, a libtool-enabled program that calls glibc's
10470         error function would report the program name as
10471         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10472         * modules/progname (configure.ac): Check for a declaration of
10473         program_invocation_name.
10474         * lib/progname.c:  Include <errno.h>.
10475         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10476         Set program_invocation_name.
10477
10478 2009-08-23  Bruno Haible  <bruno@clisp.org>
10479
10480         * lib/dup3.c: Include <string.h>.
10481
10482 2009-08-23  Bruno Haible  <bruno@clisp.org>
10483
10484         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10485         * lib/pipe2.c (pipe2): Likewise.
10486         Suggested by Eric Blake.
10487
10488 2009-08-23  Bruno Haible  <bruno@clisp.org>
10489
10490         Tolerate declared but missing dup3 syscall.
10491         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10492         * lib/unistd.in.h (dup3): If the function is already present,
10493         override it.
10494         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10495         * modules/dup3 (Makefile.am): Compile dup3.c always.
10496         Reported by Paolo Bonzini.
10497
10498 2009-08-23  Bruno Haible  <bruno@clisp.org>
10499
10500         Tolerate declared but missing pipe2 syscall.
10501         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10502         available.
10503         * lib/unistd.in.h (pipe2): If the function is already present,
10504         override it.
10505         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10506         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10507         Reported by Paolo Bonzini.
10508
10509 2009-08-23  Bruno Haible  <bruno@clisp.org>
10510
10511         * lib/pipe2.c (pipe2): Move #ifs inside function.
10512
10513 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10514
10515         quotearg: document limitations of quote_these_too
10516         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10517         those limitations are created.
10518         * lib/quotearg.h (set_char_quoting): Document that digits and
10519         letters that are special after backslash are not permitted.
10520         (quotearg_char): Cross-reference set_char_quoting documentation.
10521
10522 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10523
10524         quotearg: implement custom_quoting_style
10525         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10526         right_quote fields.
10527         (set_custom_quoting): New public function.
10528         (quotearg_buffer_restyled): Add left_quote and right_quote
10529         arguments, handle them very much like locale quoting, and update
10530         all uses.
10531         (quotearg_n_custom): New public function.
10532         (quotearg_n_custom_mem): New public function.
10533         (quotearg_custom): New public function.
10534         (quotearg_custom_mem): New public function.
10535         * lib/quotearg.h: Prototype and document new public functions.
10536         (enum quoting_style): For escape_quoting_style and
10537         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10538         ignored even though they're otherwise like c_quoting_style.
10539         Add custom_quoting_style member and document with comparison to
10540         clocale_quoting_style.
10541         * tests/test-quotearg.c (custom_quotes): New array.
10542         (custom_results): New array.
10543         (main): Extend to test custom quoting.
10544
10545 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10546
10547         quotearg: fix right quote escaping when it's in quote_these_too
10548         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10549         quote, be sure to prepend only one backslash.
10550         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10551         (main): Test it.
10552
10553 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10554
10555         quotearg-tests: test escaping of embedded locale quotes
10556         * tests/test-quotearg.c (struct result_strings): Add member for
10557         new input.
10558         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10559         (inputs): Add new input.
10560         (results_g): Add expected results.
10561         (flag_results): Likewise.
10562         (locale_results): Likewise.
10563         (compare_strings): Check those.
10564
10565 2009-08-23  Bruno Haible  <bruno@clisp.org>
10566
10567         Tests for module 'dup3'.
10568         * modules/dup3-tests: New file.
10569         * tests/test-dup3.c: New file.
10570
10571         New module 'dup3'.
10572         * lib/unistd.in.h (dup3): New declaration.
10573         * lib/dup3.c: New file.
10574         * m4/dup3.m4: New file.
10575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10576         HAVE_DUP3.
10577         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10578         * modules/dup3: New file.
10579         * doc/glibc-functions/dup3.texi: Mention the new module.
10580
10581 2009-08-23  Bruno Haible  <bruno@clisp.org>
10582
10583         Tweak the dup2 test.
10584         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10585         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10586         the test file is still empty. Fix argument order of lseek.
10587
10588 2009-08-23  Bruno Haible  <bruno@clisp.org>
10589
10590         Avoid test link errors when the modules getopt-gnu, gettext are used.
10591         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10593
10594 2009-08-23  Bruno Haible  <bruno@clisp.org>
10595
10596         Fix getdtablesize() on mingw.
10597         * lib/getdtablesize.c (getdtablesize): Implement differently.
10598         * lib/unistd.in.h (getdtablesize): Improve comment.
10599
10600 2009-08-23  Bruno Haible  <bruno@clisp.org>
10601
10602         New module 'mkostemp'.
10603         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10604         * lib/stdlib.in.h (mksotemp): New declaration.
10605         * lib/mkostemp.c: New file, from glibc with modifications.
10606         * lib/tempname.h (GT_FILE): Remove outdated comment.
10607         (gen_tempname): Add flags argument.
10608         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10609         (__GT_FILE): Map to 1.
10610         (small_open, large_open): Remove macros.
10611         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10612         * lib/mkstemp.c (mkstemp): Update.
10613         * lib/mkdtemp.c (mkdtemp): Likewise.
10614         * m4/mkostemp.m4: New file.
10615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10616         HAVE_MKOSTEMP.
10617         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10618         HAVE_MKOSTEMP.
10619         * modules/mkostemp: New file, based on modules/mkstemp.
10620         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10621         * NEWS: Mention the change.
10622
10623 2009-08-23  Bruno Haible  <bruno@clisp.org>
10624
10625         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10626         Reported by Eric Blake.
10627
10628 2009-08-23  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10631         Reported by Eric Blake.
10632
10633 2009-08-23  Bruno Haible  <bruno@clisp.org>
10634
10635         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10636         * modules/pipe2 (Depends-on): Likewise.
10637
10638 2009-08-23  Eric Blake  <ebb9@byu.net>
10639
10640         fcntl-h: add O_TTY_INIT support
10641         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10642         * tests/test-fcntl-h.c (o): Test it.
10643         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10644
10645         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10646         * modules/fcntl: Move <fcntl.h> header replacement...
10647         * modules/fcntl-h: ...to new name, so as not to collide with
10648         like-named function.
10649         * tests/test-fcntl.c: Rename...
10650         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10651         * modules/fcntl-tests: Rename...
10652         * modules/fcntl-h-tests: ...to this.  Update test file name.
10653         * modules/chdir-long (Depends-on): Update clients.
10654         * modules/chdir-safer (Depends-on): Likewise.
10655         * modules/fcntl-safer (Depends-on): Likewise.
10656         * modules/fts (Depends-on): Likewise.
10657         * modules/mkancesdirs (Depends-on): Likewise.
10658         * modules/mkdir-p (Depends-on): Likewise.
10659         * modules/open (Depends-on): Likewise.
10660         * modules/savewd (Depends-on): Likewise.
10661         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10662         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10663
10664 2009-08-22  Bruno Haible  <bruno@clisp.org>
10665
10666         * modules/binary-io (License): Relicense under LGPL.
10667         * modules/pipe2 (License): Likewise.
10668
10669 2009-08-22  Bruno Haible  <bruno@clisp.org>
10670
10671         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10672         return value.
10673         * lib/pipe-filter-gi.c (filter_init): Likewise.
10674         Reported by Eric Blake.
10675
10676 2009-08-22  Bruno Haible  <bruno@clisp.org>
10677
10678         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10679         * modules/pipe (Depends-on): Add pipe2.
10680
10681 2009-08-22  Bruno Haible  <bruno@clisp.org>
10682
10683         Tests for module 'pipe2'.
10684         * modules/pipe2-tests: New file.
10685         * tests/test-pipe2.c: New file.
10686
10687         New module 'pipe2'.
10688         * lib/unistd.in.h (pipe2): New declaration.
10689         * lib/pipe2.c: New file.
10690         * m4/pipe2.m4: New file.
10691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10692         HAVE_PIPE2.
10693         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10694         * modules/pipe2: New file.
10695         * doc/glibc-functions/pipe2.texi: Mention the new module.
10696
10697 2009-08-22  Bruno Haible  <bruno@clisp.org>
10698
10699         Reference some new glibc functions.
10700         * doc/glibc-functions/accept4.texi: New file.
10701         * doc/glibc-functions/dup3.texi: New file.
10702         * doc/glibc-functions/mkostemp.texi: New file.
10703         * doc/glibc-functions/pipe2.texi: New file.
10704         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10705         (Glibc sys/socket.h): Refer to accept4.
10706         (Glibc unistd.h): Refer to dup3, pipe2.
10707         Reported by Eric Blake.
10708
10709 2009-08-22  Jim Meyering  <meyering@redhat.com>
10710             Bruno Haible  <bruno@clisp.org>
10711
10712         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10713         This makes it so packages using automake-1.11's silent-rules option
10714         can print e.g., a single "GEN    configmake.h" line, rather than
10715         the 30+ statements that perform the job.  If you want to see the
10716         actual commands, you can still run "make V=1".
10717         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10718         so that make output is abbreviated when those variables are defined
10719         appropriately.
10720         * modules/argz: Likewise.
10721         * modules/arpa_inet: Likewise.
10722         * modules/byteswap: Likewise.
10723         * modules/configmake: Likewise.
10724         * modules/dirent: Likewise.
10725         * modules/errno: Likewise.
10726         * modules/fcntl: Likewise.
10727         * modules/float: Likewise.
10728         * modules/fnmatch: Likewise.
10729         * modules/getopt-posix: Likewise.
10730         * modules/glob: Likewise.
10731         * modules/iconv_open: Likewise.
10732         * modules/inttypes: Likewise.
10733         * modules/localcharset: Likewise.
10734         * modules/locale: Likewise.
10735         * modules/math: Likewise.
10736         * modules/netdb: Likewise.
10737         * modules/netinet_in: Likewise.
10738         * modules/poll: Likewise.
10739         * modules/posix_spawnp-tests: Likewise.
10740         * modules/sched: Likewise.
10741         * modules/search: Likewise.
10742         * modules/selinux-h: Likewise.
10743         * modules/signal: Likewise.
10744         * modules/spawn: Likewise.
10745         * modules/stdarg: Likewise.
10746         * modules/stdbool: Likewise.
10747         * modules/stddef: Likewise.
10748         * modules/stdint: Likewise.
10749         * modules/stdio: Likewise.
10750         * modules/stdlib: Likewise.
10751         * modules/string: Likewise.
10752         * modules/strings: Likewise.
10753         * modules/sys_file: Likewise.
10754         * modules/sys_ioctl: Likewise.
10755         * modules/sys_select: Likewise.
10756         * modules/sys_socket: Likewise.
10757         * modules/sys_stat: Likewise.
10758         * modules/sys_time: Likewise.
10759         * modules/sys_times: Likewise.
10760         * modules/sys_utsname: Likewise.
10761         * modules/sys_wait: Likewise.
10762         * modules/sysexits: Likewise.
10763         * modules/time: Likewise.
10764         * modules/unistd: Likewise.
10765         * modules/wchar: Likewise.
10766         * modules/wctype: Likewise.
10767
10768 2009-08-22  Jim Meyering  <meyering@redhat.com>
10769
10770         announce-gen: detect write failure
10771         * build-aux/announce-gen: Add Coda at end.
10772         Remove equivalent-but-more-verbose block at top.
10773
10774 2009-08-19  Akim Demaille  <demaille@gostai.com>
10775
10776         bootstrap: --help to stdout.
10777         * bootstrap (usage): Don't send --help to stderr.
10778         Use a here doc instead of a long string.
10779
10780 2009-08-21  Eric Blake  <ebb9@byu.net>
10781
10782         test-popen-safer: split from test-popen
10783         * tests/test-popen.c (main): Move...
10784         * tests/test-popen.h: ...into new file.
10785         * tests/test-popen-safer2.c: New file.
10786         * modules/popen-tests (Files): Add test-popen.h.
10787         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10788         Suggested by Bruno Haible.
10789
10790         test-fcntl-safer: split from test-open
10791         * tests/test-open.c (main): Move...
10792         * tests/test-open.h: ...into new file.
10793         * tests/test-fcntl-safer.c: New file.
10794         * modules/open-tests (Files): Add test-open.h.
10795         * modules/fcntl-safer-tests: New file.
10796         Suggested by Bruno Haible.
10797
10798         test-fopen-safer: split from test-fopen
10799         * tests/test-fopen.c (main): Move...
10800         * tests/test-fopen.h: ...into new file.
10801         * tests/test-fopen-safer.c: New file.
10802         * modules/fopen-tests (Files): Add test-fopen.h.
10803         * modules/fopen-safer-tests: New file.
10804         Suggested by Bruno Haible.
10805
10806 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10807
10808         popen-safer: test O_CLOEXEC at run-time.
10809         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10810
10811 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10812
10813         fcntl: move more flags to the header
10814         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10815         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10816         * lib/fcntl.in.h: Do both things here.
10817
10818 2009-08-21  Jim Meyering  <meyering@redhat.com>
10819
10820         consistently remove $@-t before redirecting to it
10821         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10822         * modules/alloca-opt: Likewise.
10823         * modules/byteswap: Likewise.
10824         * modules/fnmatch: Likewise.
10825         * modules/getopt-posix: Likewise.
10826         * modules/glob: Likewise.
10827         * modules/poll: Likewise.
10828         * modules/posix_spawnp-tests: Likewise.
10829         * modules/sys_socket: Likewise.
10830         * modules/sysexits: Likewise.
10831
10832 2009-08-21  Eric Blake  <ebb9@byu.net>
10833
10834         popen: simplify access to original popen
10835         * lib/popen.c (rpl_popen): No need to worry about popen being a
10836         macro.
10837         Reported by Bruno Haible.
10838
10839 2009-08-20  Eric Blake  <ebb9@byu.net>
10840
10841         build: avoid some compiler warnings
10842         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10843         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10844         type.
10845         (new_exclude_segment, excluded_file_pattern_p)
10846         (excluded_file_name_p): Reduce scope.
10847         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10848         old-style declaration.
10849
10850 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10851
10852         * tests/test-exclude1.sh: Handle Windows EOL.
10853         * tests/test-exclude2.sh: Likewise.
10854         * tests/test-exclude3.sh: Likewise.
10855         * tests/test-exclude4.sh: Likewise.
10856         * tests/test-exclude5.sh: Likewise.
10857         * tests/test-exclude6.sh: Likewise.
10858         * tests/test-exclude7.sh: Likewise.
10859
10860 2009-08-19  Akim Demaille  <demaille@gostai.com>
10861
10862         bootstrap: find sha1sum when named gsha1sum.
10863         * bootstrap (find_tool): New.
10864         ($SHA1SUM): New.
10865         Use it.
10866
10867 2009-08-20  Jim Meyering  <meyering@redhat.com>
10868
10869         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10870         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10871         expression that converts "." in a file name to "\." in the resulting
10872         regexp.  Start with a dummy statement, so that prior shell variable
10873         definitions are expanded portably.  Reported by Simon Josefsson.
10874
10875 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10876
10877         Fix polling for writeability of a screen buffer.
10878         * lib/poll.c: Distinguish input and screen buffers for the
10879         Win32 implementation.
10880         * lib/select.c: Likewise.
10881
10882 2009-08-19  Eric Blake  <ebb9@byu.net>
10883
10884         popen-safer: prevent popen from clobbering std descriptors
10885         * modules/popen-safer: New file.
10886         * lib/popen-safer.c: Likewise.
10887         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10888         * lib/stdio--.h (popen): Provide override.
10889         * lib/stdio-safer.h (popen_safer): Provide declaration.
10890         * tests/test-popen.c (includes): Partially test this.
10891         * modules/popen-safer-tests: New file, for more tests.
10892         * tests/test-popen-safer.c: Likewise.
10893         * MODULES.html.sh (file stream based Input/Output): Mention it.
10894
10895         tests: test some of the *-safer modules
10896         * modules/fopen-safer (Depends-on): Add fopen.
10897         * modules/fcntl-safer (Depends-on): Add fcntl.
10898         * modules/stdlib-safer (Depends-on): Add stdlib.
10899         (configure.ac): Set indicator.
10900         * modules/unistd-safer (configure.ac): Likewise.
10901         * modules/tmpfile-safer (configure.ac): Likewise.
10902         (Depends-on): Add tmpfile.
10903         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10904         active.
10905         * tests/test-fopen.c (includes): Test safer versions when they are
10906         in use.
10907         * tests/test-open.c (includes): Likewise.
10908
10909         popen: fix cygwin 1.5 bug when stdin closed
10910         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10911         * modules/popen: New file.
10912         * modules/popen-tests: Likewise.
10913         * tests/test-popen.c: Likewise.
10914         * m4/popen.m4: Likewise.
10915         * lib/popen.c: Likewise.
10916         * lib/stdio.in.h (popen): New declaration.
10917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10918         * modules/stdio (Makefile.am): Likewise.
10919         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10920
10921 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10922
10923         maint.mk: give full control over update-copyright exclusions
10924         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10925         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10926         (update-copyright): Don't force inclusion of top-level
10927         ChangeLog.  Don't force exclusion of all COPYING files, but make
10928         them the default exclusion instead.
10929
10930 2009-08-16  Bruno Haible  <bruno@clisp.org>
10931
10932         Fix test failures on Solaris 10.
10933         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10934         tests when Solaris iconv() is used.
10935         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10936         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10937         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10938         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10939         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10940
10941 2009-08-16  Bruno Haible  <bruno@clisp.org>
10942
10943         Fix test failures on Solaris 10.
10944         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10945         'tr' program and pass it as first argument.
10946         * tests/test-pipe-filter-gi1.sh: Likewise.
10947         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10948         program as first argument.
10949         * tests/test-pipe-filter-gi1.c (main): Likewise.
10950
10951 2009-08-16  Eric Blake  <ebb9@byu.net>
10952
10953         fpurge: fix previous commits
10954         * modules/fpurge (Makefile.am): Make replacement conditional,
10955         partially reverting 2007-04-29 change; missed in previous
10956         attempt.
10957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10958         is missing.
10959
10960 2009-08-16  Bruno Haible  <bruno@clisp.org>
10961
10962         Clarify fpurge's effect on the file position.
10963         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10964         * tests/test-fpurge.c (main): Make a second pass for checking the file
10965         position.
10966
10967 2009-08-16  Bruno Haible  <bruno@clisp.org>
10968
10969         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10970         declaration of fpurge is missing.
10971         * tests/test-fpurge.c (main): Check that the file has not more contents
10972         than expected. Close the file before removing it.
10973
10974 2009-08-15  Eric Blake  <ebb9@byu.net>
10975
10976         fpurge: don't wrap working cygwin implementation
10977         * lib/fpurge.c (fpurge): Fix comment typo.
10978         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10979         1.7 to avoid replacement.
10980         * tests/test-fpurge.c (main): Enhance test.
10981
10982 2009-08-15  Eric Blake  <ebb9@byu.net>
10983         and Jim Meyering  <meyering@redhat.com>
10984
10985         test-update-copyright: skip if perl is insufficient
10986         * tests/test-update-copyright.sh: Failure to run maintainer tool
10987         should not cause testsuite failure on cygwin 1.5.
10988
10989 2009-08-14  Eric Blake  <ebb9@byu.net>
10990
10991         doc: mention more functions added in cygwin 1.7.0
10992         * doc/posix-headers/limits.texi (limits.h): Update for recent
10993         cygwin additions.
10994         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10995         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10996         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10997         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10998         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10999
11000 2009-08-14  Eric Blake  <ebb9@byu.net>
11001
11002         maint.mk: simplify update-copyright rule
11003         * top/maint.mk (update-copyright-local): Delete, and document how
11004         to do it in cfg.mk instead.
11005         (update-copyright-exclude-regexp): Delete, and document how to do
11006         it in .x-update-copyright instead.
11007         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11008         exclude ChangeLog.
11009
11010 2009-08-14  Bruno Haible  <bruno@clisp.org>
11011
11012         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11013
11014 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11015
11016         maint.mk: support update-copyright-env
11017         * top/maint.mk (update-copyright-env): Define place-holder.
11018         (update-copyright): Expand $(update-copyright-env) before
11019         invoking update-copyright.
11020
11021 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11022
11023         update-copyright: implement forced reformatting
11024         * build-aux/update-copyright: Implement and document
11025         UPDATE_COPYRIGHT_FORCE.
11026         * tests/test-update-copyright.sh: Test it.
11027
11028 2009-08-14  Eric Blake  <ebb9@byu.net>
11029         and Bruno Haible  <bruno@clisp.org>
11030
11031         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11032         * tests/test-locale.c: Revert previous patch related to NULL.
11033         * tests/test-stdio.c: Likewise.
11034         * tests/test-stdlib.c: Likewise.
11035         * tests/test-string.c: Likewise.
11036         * tests/test-unistd.c: Likewise.
11037         * modules/time-tests (Depends-on): Add verify.
11038         * modules/wchar-tests (Depends-on): Likewise.
11039         * tests/test-time.c: Test for NULL compliance.
11040         * tests/test-wchar.c: Likewise.
11041         * modules/locale (Depends-on): Add stddef.
11042         * modules/stdio (Depends-on): Likewise.
11043         * modules/stdlib (Depends-on): Likewise.
11044         * modules/string (Depends-on): Likewise.
11045         * modules/time (Depends-on): Likewise.
11046         * modules/unistd (Depends-on): Likewise.
11047         * modules/wchar (Depends-on): Likewise.
11048         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11049         * lib/stdlib.in.h (includes): Likewise.
11050         * lib/string.in.h (includes): Likewise.
11051         * lib/time.in.h (includes): Likewise.
11052         * lib/unistd.in.h (includes): Likewise.
11053         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11054         replaced.
11055         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11056         * m4/stddef_h.m4: New file.
11057         * modules/stddef: Likewise.
11058         * lib/stddef.in.h: Likewise.
11059         * modules/stddef-tests: Likewise.
11060         * tests/test-stddef.c: Likewise.
11061         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11062         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11063         * doc/posix-headers/locale.texi (locale.h): Likewise.
11064         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11065         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11066         * doc/posix-headers/string.texi (string.h): Likewise.
11067         * doc/posix-headers/time.texi (time.h): Likewise.
11068         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11069         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11070
11071 2009-08-14  Eric Blake  <ebb9@byu.net>
11072
11073         doc: improve git diff of texinfo files
11074         * .gitattributes: Add rule for *.texi files, with hint on how to
11075         use it.
11076         Copied from m4, and based on a report by Bruno Haible.
11077
11078 2009-08-14  Bruno Haible  <bruno@clisp.org>
11079
11080         Disable multithread support by default on Cygwin 1.5.x for real.
11081         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11082
11083 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11084
11085         update-copyright: much ado about intervals
11086         * build-aux/update-copyright: Implement and document
11087         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11088         of copyright year intervals.
11089         Also, document UPDATE_COPYRIGHT_YEAR.
11090         * tests/test-update-copyright.sh: Test it.
11091
11092         update-copyright: convert 2-digit to 4-digit years
11093         * build-aux/update-copyright: Implement and document.
11094         * tests/test-update-copyright.sh: Update.
11095
11096 2009-08-14  Jim Meyering  <meyering@redhat.com>
11097
11098         test-exclude: avoid coreutils "make check" failure
11099         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11100         just as in test-argmatch.c.
11101
11102 2009-08-13  Eric Blake  <ebb9@byu.net>
11103
11104         test-dup2: fix bad assumption
11105         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11106         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11107
11108         test-version-etc: fix CRLF portability issue
11109         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11110         recognize \r.
11111         * tests/test-argp-version-etc-1.sh: Likewise.
11112
11113         getopt: update client modules
11114         * modules/argp (Depends-on): Use getopt-gnu.
11115         * modules/git-merge-changelog (Depends-on): Likewise.
11116         * modules/long-options (Depends-on): Likewise.
11117         * modules/xstrtol (Depends-on): Likewise.
11118
11119 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11120
11121         * tests/test-version-etc.sh: Don't fail on different
11122         project/version.  Don't fail on CRLF differences.  Rewrite to use
11123         multiple -e instead of multiple sed forks, suggested by Eric Blake
11124         <ebb9@byu.net>.
11125         * tests/test-argp-version-etc-1.sh: Likewise.
11126
11127 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11128
11129         * tests/test-version-etc.sh: Don't fail on different
11130         project/version.
11131
11132 2009-08-12  Bruno Haible  <bruno@clisp.org>
11133
11134         Tests for modules 'getopt-posix', 'getopt-gnu'.
11135         * modules/getopt-posix-tests: New file.
11136         * tests/test-getopt.c: New file.
11137         * tests/test-getopt.h: New file.
11138         * tests/test-getopt_long.h: New file.
11139
11140         New modules 'getopt-posix', 'getopt-gnu'.
11141         * modules/getopt-gnu: New file, renamed from modules/getopt.
11142         * modules/getopt-posix: New file.
11143         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11144         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11145         (gl_GETOPT): Remove macro.
11146         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11147         Disable the test against BSD systems that declare optreset. Test
11148         against mingw bug. Test against lack of support of optional arguments
11149         on many platforms.
11150         * doc/glibc-headers/getopt.texi: Update module name and list of
11151         relevant platforms.
11152         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11153         'getopt-gnu' and more portability problems.
11154         * NEWS: Mention the changes.
11155
11156 2009-08-12  Bruno Haible  <bruno@clisp.org>
11157
11158         Ensure that optarg etc. get declared by <unistd.h>.
11159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11160         AC_USE_SYSTEM_EXTENSIONS.
11161         * modules/getopt (Depends-on): Add 'extensions'.
11162
11163 2009-08-12  Bruno Haible  <bruno@clisp.org>
11164
11165         Avoid test link errors.
11166         * modules/pipe-filter-ii-tests (Makefile.am): Define
11167         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11168         * modules/pipe-filter-gi-tests (Makefile.am): Define
11169         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11171
11172 2009-08-12  Bruno Haible  <bruno@clisp.org>
11173
11174         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11175         gl_GETOPT_SUBSTITUTE before.
11176         (gl_GETOPT): Use it.
11177         * m4/argp.m4 (gl_ARGP): Update.
11178         Reported by Sergey Poznyakoff.
11179
11180         * m4/getopt.m4: Reorder macros.
11181         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11182         (gl_GETOPT_SUBSTITUTE): Remove macro.
11183
11184 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11185
11186         Minor improvement in gitlog-to-changelog
11187
11188         * build-aux/gitlog-to-changelog: New option `--format' makes
11189         output format string configurable.
11190
11191 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11192
11193         Optimize exclude: use hash tables for non-wildcard patterns.
11194
11195         * lib/exclude.c: Include hash.h and mbuiter.h
11196         (struct exclude_pattern, exclude_segment): New data types.
11197         (struct exclude): Rewrite.
11198         (fnmatch_pattern_has_wildcards): New function.
11199         (new_exclude_segment, free_exclude_segment): New functions.
11200         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11201         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11202         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11203         * modules/exclude: Depend on hash and mbuiter.
11204
11205         * modules/exclude-tests: New file.
11206         * tests/test-exclude.c: New file.
11207         * tests/test-exclude1.sh: New file.
11208         * tests/test-exclude2.sh: New file.
11209         * tests/test-exclude3.sh: New file.
11210         * tests/test-exclude4.sh: New file.
11211         * tests/test-exclude5.sh: New file.
11212         * tests/test-exclude6.sh: New file.
11213         * tests/test-exclude7.sh: New file.
11214
11215 2009-08-12  Bruno Haible  <bruno@clisp.org>
11216
11217         Ensure that getopt() gets declared by <unistd.h>.
11218         * lib/unistd.in.h: Conditionally include getopt.h.
11219         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11220         Set GNULIB_UNISTD_H_GETOPT.
11221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11222         GNULIB_UNISTD_H_GETOPT.
11223         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11224
11225 2009-08-12  Bruno Haible  <bruno@clisp.org>
11226
11227         Clarify logic.
11228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11229         gl_replace_getopt instead of GETOPT_H.
11230
11231 2009-08-12  Bruno Haible  <bruno@clisp.org>
11232
11233         * m4/getopt.m4: Add comments.
11234
11235 2009-08-12  Bruno Haible  <bruno@clisp.org>
11236
11237         Disable multithread support by default on Cygwin 1.5.x.
11238         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11239         set gl_use_threads=no if not specified otherwise.
11240
11241 2009-08-11  Bruno Haible  <bruno@clisp.org>
11242
11243         Avoid compilation error on NetBSD 5.0.
11244         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11245         * tests/test-stdio.c: Likewise.
11246         * tests/test-stdlib.c: Likewise.
11247         * tests/test-string.c: Likewise.
11248         * tests/test-unistd.c: Likewise.
11249         Reported by Greg Troxel <gdt@ir.bbn.com>
11250         at <https://savannah.gnu.org/support/?106973>.
11251
11252 2009-08-11  Bruno Haible  <bruno@clisp.org>
11253
11254         * modules/dup2-tests (Depends-on): Remove close.
11255
11256         Undo 2009-07-19 commit.
11257         * modules/acl-tests (Depends-on): Remove close.
11258         * modules/binary-io-tests (Depends-on): Likewise.
11259         * modules/closein-tests (Depends-on): Likewise.
11260         * modules/flock-tests (Depends-on): Likewise.
11261         * modules/fsync-tests (Depends-on): Likewise.
11262         * modules/lseek-tests (Depends-on): Likewise.
11263         * modules/pipe-tests (Depends-on): Likewise.
11264         * modules/posix_spawn-tests (Depends-on): Likewise.
11265         * modules/posix_spawnp-tests (Depends-on): Likewise.
11266         * modules/stat-time-tests (Depends-on): Likewise.
11267         * modules/yesno-tests (Depends-on): Likewise.
11268
11269 2009-08-10  Bruno Haible  <bruno@clisp.org>
11270
11271         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11272
11273 2009-08-10  Bruno Haible  <bruno@clisp.org>
11274
11275         Fix a gcc warning.
11276         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11277
11278 2009-08-10  Bruno Haible  <bruno@clisp.org>
11279
11280         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11281         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11282         not only the first time.
11283         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11284         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11285         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11286         is 1, not only the the first time.
11287
11288 2009-08-10  Bruno Haible  <bruno@clisp.org>
11289
11290         Make it possible to use module 'gethostname' without module 'close'.
11291         * lib/unistd.in.h (close): Evoke a link error only if
11292         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11295         * modules/unistd (Makefile.am): Substitute
11296         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11297         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11298         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11300         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11301         * modules/sys_ioctl (Makefile.am): Substitute
11302         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11303         * modules/socket (configure.ac): On native Windows, set
11304         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11305         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11306         Reported by Sam Steingold <sds@gnu.org>.
11307
11308 2009-08-10  Bruno Haible  <bruno@clisp.org>
11309
11310         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11311         * modules/ioctl (configure.ac): Likewise.
11312
11313 2009-08-10  Bruno Haible  <bruno@clisp.org>
11314
11315         Avoid collision between gnulib wrapper and libintl wrapper.
11316         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11317         already defined in intl/printf.c.
11318         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11319         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11320
11321 2009-08-09  Bruno Haible  <bruno@clisp.org>
11322
11323         Make <sys/select.h> really self-contained, also on Solaris 10.
11324         * lib/sys_select.in.h: Include <string.h>.
11325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11326         Solaris 10 problem.
11327         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11328         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11329         Reported by Jim Meyering.
11330
11331 2009-08-09  Bruno Haible  <bruno@clisp.org>
11332
11333         Avoid warnings from 'aclocal' that are due to a use of macro name
11334         AM_XGETTEXT_OPTION that is not defined in automake.
11335         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11336         automake.
11337         * modules/error (configure.ac): Likewise.
11338         * modules/propername (configure.ac): Likewise.
11339         * modules/vasprintf (configure.ac): Likewise.
11340         * modules/verror (configure.ac): Likewise.
11341         * modules/xprintf (configure.ac): Likewise.
11342         * modules/xvasprintf (configure.ac): Likewise.
11343
11344 2009-08-08  Bruno Haible  <bruno@clisp.org>
11345
11346         Avoid compilation error in C++ mode.
11347         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11348         Reported by Sam Steingold <sds@gnu.org>.
11349
11350 2009-08-08  Bruno Haible  <bruno@clisp.org>
11351
11352         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11353         for the various Unix platforms.
11354         * doc/posix-headers/limits.texi: Update platforms list regarding
11355         HOST_NAME_MAX.
11356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11357
11358 2009-08-07  Jim Meyering  <meyering@redhat.com>
11359
11360         selinux-at: fix typo in a comment
11361         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11362         Spotted by Paolo Bonzini.
11363
11364         selinux-at: remove redundant m4 code, add documentation
11365         * modules/selinux-at (configure.ac): Remove redundant code.
11366         LIB_SELINUX is already set via the dependent module, selinux-h.
11367         (Include): Add quotes around selinux-at.h.
11368         * lib/selinux-at.h: Add documentation.
11369         Reported by Bruno Haible in
11370         http://marc.info/?l=gnulib-bug&m=124958988300749
11371
11372 2009-08-07  Bruno Haible  <bruno@clisp.org>
11373
11374         Avoid link error on MacOS X 10.3 and 10.4.
11375         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11376         on non-ELF systems.
11377         * lib/argp-pv.c (argp_program_version): Likewise.
11378         Reported by Simon Josefsson.
11379
11380 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11381
11382         * tests/test-version-etc.sh: Use $EXEEXT.
11383
11384 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11385
11386         update-copyright: update documentation to point to maint.mk
11387         * build-aux/update-copyright: Here.
11388
11389 2009-08-06  Jim Meyering  <meyering@redhat.com>
11390
11391         maint.mk: support update-copyright-local
11392         * top/maint.mk (update-copyright-local): Define place-holder.
11393         (update-copyright): Depend on $(update-copyright-local).
11394
11395 2009-08-06  Jim Meyering  <meyering@redhat.com>
11396
11397         selinux-at: new module
11398         Initially written for coreutils, this module will soon be
11399         used by findutils, too.
11400         * MODULES.html.sh [Misc]: Add selinux-at.
11401         * lib/selinux-at.h: New file, from coreutils.
11402         * lib/selinux-at.c: Likewise.
11403         * modules/selinux-at: Likewise.
11404         (License): Change from LGPL to GPL, since it depends
11405         on the GPL'd openat module.
11406
11407         doc: update README
11408         * README: Remove references to cogito.
11409         Remove cvs-repo-updating instructions from 2007.
11410         Don't imply that CVS is better if you have limited disk space.
11411
11412 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11413
11414         update-copyright: support C-style comments
11415         * build-aux/update-copyright: Implement and document.
11416         * tests/test-update-copyright.sh: Test.
11417
11418 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11419
11420         update-copyright: support omitted "(C)"
11421         * build-aux/update-copyright: Implement and document.  Also,
11422         allow variable whitespace before "(C)".
11423         * tests/test-update-copyright.sh: Test.
11424
11425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11426
11427         update-copyright: don't trip on non-FSF copyright statements
11428         * build-aux/update-copyright: Fix so that the first correctly
11429         formatted FSF copyright statement is recognized no matter what
11430         appears before it.  Update documentation.
11431         * tests/test-update-copyright.sh: Test that.
11432
11433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11434
11435         update-copyright: clean up code a little
11436         * build-aux/update-copyright: Append "_re" to the name of any
11437         variable holding a regular expression.
11438         Replace "old" and "new" with "stmt" in variable names.
11439         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11440         handled correctly.
11441         Format code more consistently.
11442
11443 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11444
11445         update-copyright-tests: improve portability
11446         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11447         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11448
11449 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11450
11451         update-copyright: support @copyright{} and &copy;
11452         * build-aux/update-copyright: Implement and document.
11453         * tests/test-update-copyright.sh: Test.
11454
11455 2009-08-04  Jim Meyering  <meyering@redhat.com>
11456
11457         update-copyright-tests: correctly test EOL=\r\n handling
11458         * tests/test-update-copyright.sh: Put \r at the end of some lines
11459         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11460
11461         maint.mk: make update-copyright exclusion list more configurable
11462         * top/maint.mk (update-copyright): Default to excluding COPYING,
11463         but allow an override, in case someone does want to update that file.
11464
11465         maint.mk: don't update copyright date in COPYING
11466         * top/maint.mk (update-copyright): Exclude COPYING.
11467
11468         maint.mk: add a copyright-updating rule
11469         * top/maint.mk (update-copyright): New rule.
11470         Derived from coreutils/Makefile.am.
11471
11472         update-copyright: rename some variables
11473         * build-aux/update-copyright: Rename a few variables for clarity.
11474         Tweak syntax.  List Joel E. Denny as coauthor.
11475
11476 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11477
11478         update-copyright: fix bug for 2-digit last year and add tests
11479         * build-aux/update-copyright: Fix bug.
11480         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11481         specified.
11482         * modules/update-copyright-tests: New
11483         * tests/test-update-copyright.sh: New.
11484
11485 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11486
11487         update-copyright: handle leading tabs in line prefix
11488         * build-aux/update-copyright: Count leading tabs as 8 spaces
11489         when computing margin.  This helps with the formatting of
11490         ChangeLogs, for example.
11491         Fix documentation a little.
11492
11493 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11494
11495         update-copyright: support EOL=\r\n
11496         * build-aux/update-copyright: Implement that.
11497
11498 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11499
11500         update-copyright: automatically format copyright statements
11501         * build-aux/update-copyright: Implement that.
11502         Also, be a little more predictable and safer by always failing
11503         when the full copyright format is not perfectly recognized as an
11504         unbroken whole.  Discussed at
11505         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11506         Rewrite documentation.
11507
11508 2009-08-03  Bruno Haible  <bruno@clisp.org>
11509
11510         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11511
11512 2009-08-02  Bruno Haible  <bruno@clisp.org>
11513
11514         Tests for module 'uname'.
11515         * modules/uname-tests: New file.
11516         * tests/test-uname.c: New file.
11517
11518         New module 'uname'.
11519         * lib/uname.c: New file.
11520         * m4/uname.m4: New file.
11521         * modules/uname: New file.
11522         * doc/posix-functions/uname.texi: Mention the new module.
11523
11524 2009-08-02  Bruno Haible  <bruno@clisp.org>
11525
11526         Tests for module 'sys_utsname'.
11527         * modules/sys_utsname-tests: New file.
11528         * tests/test-sys_utsname.c: New file.
11529
11530         New module 'sys_utsname'.
11531         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11532         * m4/sys_utsname_h.m4: New file.
11533         * modules/sys_utsname: New file.
11534         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11535
11536 2009-08-02  Bruno Haible  <bruno@clisp.org>
11537
11538         Implicitly initialize the sockets library.
11539         * lib/gethostname.c: Include sockets.h.
11540         (rpl_gethostname): Invoke gl_sockets_startup.
11541         * lib/socket.c: Include sockets.h.
11542         (rpl_socket): Invoke gl_sockets_startup.
11543         * modules/gethostname (Depends-on): Add sockets.
11544         * modules/socket (Depends-on): Likewise.
11545         * tests/test-poll.c: Don't include sockets.h.
11546         (main): Don't invoke gl_sockets_startup.
11547         * tests/test-select.c: Don't include sockets.h.
11548         (main): Don't invoke gl_sockets_startup.
11549
11550 2009-08-02  Bruno Haible  <bruno@clisp.org>
11551
11552         Allow multiple calls to gl_sockets_startup.
11553         * lib/sockets.c (initialized_sockets_version): New variable.
11554         (gl_sockets_startup): Do nothing if already called for this or a higher
11555         version.
11556         (gl_sockets_cleanup): Reset initialized_sockets_version.
11557
11558 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11559
11560         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11561         different project/version.
11562
11563 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11564             Bruno Haible  <bruno@clisp.org>
11565
11566         Tests for module 'pipe-filter-gi'.
11567         * modules/pipe-filter-gi-tests: New file.
11568         * tests/test-pipe-filter-gi1.sh: New file.
11569         * tests/test-pipe-filter-gi1.c: New file.
11570         * tests/test-pipe-filter-gi2.sh: New file.
11571         * tests/test-pipe-filter-gi2-main.c: New file.
11572         * tests/test-pipe-filter-gi2-child.c: New file.
11573
11574         New module 'pipe-filter-gi'.
11575         * lib/pipe-filter-gi.c: New file.
11576         * modules/pipe-filter-gi: New file.
11577
11578 2009-08-02  Bruno Haible  <bruno@clisp.org>
11579             Paolo Bonzini  <bonzini@gnu.org>
11580
11581         Tests for module 'pipe-filter-ii'.
11582         * modules/pipe-filter-ii-tests: New file.
11583         * tests/test-pipe-filter-ii1.sh: New file.
11584         * tests/test-pipe-filter-ii1.c: New file.
11585         * tests/test-pipe-filter-ii2.sh: New file.
11586         * tests/test-pipe-filter-ii2-main.c: New file.
11587         * tests/test-pipe-filter-ii2-child.c: New file.
11588
11589         New module 'pipe-filter-ii'.
11590         * lib/pipe-filter.h: New file.
11591         * lib/pipe-filter-ii.c: New file.
11592         * lib/pipe-filter-aux.h: New file.
11593         * modules/pipe-filter-ii: New file.
11594
11595 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11596
11597         * lib/gc-libgcrypt.c: Change copyright to FSF.
11598         * lib/gc-gnulib.c: Likewise.
11599
11600 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11601
11602         * lib/gethostname.c: Include limits.h.
11603
11604 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11605             Bruno Haible  <bruno@clisp.org>
11606
11607         Ensure HOST_NAME_MAX as part of the gethostname module.
11608         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11609         define also HOST_NAME_MAX.
11610         * tests/test-gethostname.c: Include <limits.h>.
11611         (main): Check also HOST_NAME_MAX.
11612         * doc/posix-headers/limits.texi: Document the mingw problem.
11613
11614 2009-08-02  Bruno Haible  <bruno@clisp.org>
11615
11616         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11617         Add comments.
11618
11619 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11620
11621         * lib/gethostname.c: Add Windows wrapper.
11622         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11623         * modules/gethostname: Depend on sys_socket & errno, for also
11624         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11625         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11626
11627 2009-07-31  Jim Meyering  <meyering@redhat.com>
11628
11629         getloadavg: fix symbol name in comment
11630         * lib/getloadavg.c: Correct a typo I introduced when adding
11631         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11632         Matt Kraai spotted the problem.
11633
11634 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11635
11636         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11637         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11638         code also if ! defined N_NAME_POINTER.
11639         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11640         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11641         but the n_name member is a 12-byte array.
11642
11643 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11644
11645         update-copyright: generalize comment handling
11646         * build-aux/update-copyright: Handle copyright statements
11647         within more comment styles.
11648         Document usage.
11649         Report any file with an external copyright holder or parse failure.
11650
11651 2009-07-29  Jim Meyering  <meyering@redhat.com>
11652
11653         mktime: correct setting of REPLACE_MKTIME
11654         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11655
11656         update-copyright: new module
11657         * modules/update-copyright: New file.
11658         * build-aux/update-copyright: New file.
11659         * MODULES.html.sh (maint+release support): Add update-copyright.
11660
11661 2009-07-27  Bruno Haible  <bruno@clisp.org>
11662
11663         Fix compilation error when <ctime> is used and mktime is replaced.
11664         * lib/time.in.h (mktime): New declaration.
11665         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11666         REPLACE_MKTIME instead of defining mktime in config.h.
11667         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11668         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11669         Reported by Ross McFarland <rwmcfa1@neces.com>.
11670
11671 2009-07-27  Bruno Haible  <bruno@clisp.org>
11672
11673         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11674         Reported by Matt Kraai <mkraai@beckman.com>.
11675
11676 2009-07-25  Jim Meyering  <meyering@redhat.com>
11677
11678         maint.mk: avoid warnings about missing files
11679         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11680         diagnostic when .prev-version does not exist.
11681         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11682         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11683         nonexistent cfg.mk.
11684         Suggestions from Simon Josefsson.
11685
11686 2009-07-25  Bruno Haible  <bruno@clisp.org>
11687
11688         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11689         defined as macros. Needed on QNX 6.4.1.
11690         Reported by Matt Kraai <mkraai@beckman.com>.
11691
11692 2009-07-23  Jim Meyering  <meyering@redhat.com>
11693
11694         maint.mk: invoke "make dist" with a working value of XZ_OPT
11695         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11696
11697 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11698
11699         Make fseeko.c compile on QNX.
11700         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11701
11702 2009-07-22  Peter Simons  <simons@cryp.to>
11703
11704         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11705         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11706         * lib/md4.h: Likewise.
11707         * lib/md5.h: Likewise.
11708         * lib/sha1.h: Likewise.
11709         * lib/sha256.h: Likewise.
11710         * lib/sha512.h: Likewise.
11711
11712         tests-sha1: don't assign literal string to 'char *' variable
11713         * tests/test-sha1.c (main): Declare locals with "const" to match
11714         attributes of the right hand side.
11715
11716 2009-07-21  Eric Blake  <ebb9@byu.net>
11717
11718         dup2: fix more mingw problems
11719         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11720         fd to itself.
11721         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11722         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11723         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11724         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11725         care of mingw bugs.
11726
11727 2009-07-21  Jim Meyering  <meyering@redhat.com>
11728
11729         vc-list-files: avoid failure when /bin/sh is dash
11730         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11731         On some Debian based systems, /bin/sh is a symlink to dash, and running
11732         this command would omit the "/" following each 'tests' prefix:
11733           dash -x build-aux/vc-list-files -C . tests
11734         That is because bash and dash work differently:
11735           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11736           bash ok
11737           dash odd
11738
11739 2009-07-21  Eric Blake  <ebb9@byu.net>
11740
11741         dup2-tests: test previous patch
11742         * modules/dup2-tests: New file.
11743         * tests/test-dup2.c: Likewise.
11744         * tests/test-open.c (main): Avoid unspecified behavior.
11745         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11746         test.
11747
11748         dup2: work around mingw and cygwin 1.5 bug
11749         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11751         * modules/unistd (Makefile.am): Substitute it.
11752         * lib/unistd.in.h (dup2): Declare the replacement.
11753         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11754         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11755         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11756         * modules/execute (Depends-on): Add dup2.
11757         * modules/fseterr (Depends-on): Likewise.
11758         * modules/pipe (Depends-on): Likewise.
11759         * modules/posix_spawn-internal (Depends-on): Likewise.
11760
11761 2009-07-21  Bruno Haible  <bruno@clisp.org>
11762
11763         * modules/.gitattributes: New file.
11764
11765 2009-07-20  Bruno Haible  <bruno@clisp.org>
11766
11767         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11768         (main): Use it.
11769
11770 2009-07-20  Eric Blake  <ebb9@byu.net>
11771
11772         test-pipe: make a bit more robust.
11773         * tests/test-pipe.c (myerr): Allow error messages regardless of
11774         what we do to stderr.
11775         (test_pipe): Rearrange to avoid deadlock.
11776         (child_main): Try a larger read, to ensure we avoided deadlock.
11777         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11778         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11779         if misused.
11780
11781 2009-07-19  Jim Meyering  <meyering@redhat.com>
11782
11783         fts: avoid false-positive cycle-detection
11784         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11785         for each new command line argument.
11786
11787 2009-07-19  Bruno Haible  <bruno@clisp.org>
11788
11789         Fix build error on mingw with the modules sys_select and unistd.
11790         * modules/acl-tests (Depends-on): Add close.
11791         * modules/binary-io-tests (Depends-on): Likewise.
11792         * modules/closein-tests (Depends-on): Likewise.
11793         * modules/flock-tests (Depends-on): Likewise.
11794         * modules/fsync-tests (Depends-on): Likewise.
11795         * modules/lseek-tests (Depends-on): Likewise.
11796         * modules/pipe-tests (Depends-on): Likewise.
11797         * modules/posix_spawn-tests (Depends-on): Likewise.
11798         * modules/posix_spawnp-tests (Depends-on): Likewise.
11799         * modules/stat-time-tests (Depends-on): Likewise.
11800         * modules/yesno-tests (Depends-on): Likewise.
11801
11802 2009-07-19  Bruno Haible  <bruno@clisp.org>
11803
11804         Unify conditionals.
11805         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11806         macros, not at the compiler macros.
11807         * lib/pipe.c: Likewise.
11808         * lib/execute.c: Likewise.
11809         * lib/spawni.c: Likewise.
11810
11811 2009-07-19  Bruno Haible  <bruno@clisp.org>
11812
11813         Fix handling of closed stdin/stdout/stderr on mingw.
11814         * lib/w32spawn.h: Include unistd.h.
11815         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11816         file descriptor with O_NOINHERIT flag.
11817         (fd_safer_noinherit): New function, based on fd-safer.c.
11818         (dup_safer_noinherit): New function, based on dup-safer.c.
11819         (undup_safer_noinherit): New function.
11820         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11821         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11822         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11823         instead of fd_safer.
11824         * tests/test-pipe.c: Include <windows.h>.
11825         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11826
11827         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11828         from main.
11829         (test_pipe): Pass an extra argument for disambiguation.
11830         (main): Invoke parent_main or child_main.
11831
11832         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11833         consistently.
11834
11835 2009-07-18  Eric Blake  <ebb9@byu.net>
11836
11837         test-pipe: fix mingw build
11838         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11839
11840 2009-07-18  Bruno Haible  <bruno@clisp.org>
11841
11842         * modules/pipe-tests (Makefile.am): Fix typo.
11843
11844 2009-07-18  Eric Blake  <ebb9@byu.net>
11845
11846         error: fix mingw build
11847         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11848         Reported by Bruno Haible.
11849
11850         error: avoid undefined use of stdout
11851         * lib/error.c (error, error_at_line): Check that fd 1 is open
11852         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11853         is handling faults and the close_stdout module wants to report the
11854         detection of closed stdout as an error.
11855
11856 2009-07-17  Eric Blake  <ebb9@byu.net>
11857
11858         pipe: be robust in face of closed fds
11859         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11860         should cause child to misbehave.
11861         * modules/pipe-tests: New module.
11862         * tests/test-pipe.c: New file.
11863         * tests/test-pipe.sh: New file.
11864         Reported by Akim Demaille.
11865
11866 2009-07-14  Bruno Haible  <bruno@clisp.org>
11867
11868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11869         Reported by anonymous kc.
11870
11871 2009-07-07  Jim Meyering  <meyering@redhat.com>
11872
11873         maint.mk: don't look for translatable strings in *.m4 or *.mk
11874         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11875         when searching for translatable strings.
11876
11877 2009-07-05  Jim Meyering  <meyering@redhat.com>
11878
11879         remove superfluous parentheses in STREQ definition
11880         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11881         * lib/getugroups.c (STREQ): Likewise.
11882         * lib/fnmatch.c (STREQ): Likewise.
11883         Spotted by Bruno Haible.
11884
11885 2009-07-04  Jim Meyering  <meyering@redhat.com>
11886
11887         argv-iter: new module
11888         * MODULES.html.sh: Add argv-iter.
11889         * lib/argv-iter.c, lib/argv-iter.h: New files.
11890         * modules/argv-iter: New file.
11891         * modules/argv-iter-tests: New file.
11892         * tests/test-argv-iter.c: Test it.
11893
11894 2009-07-04  Bruno Haible  <bruno@clisp.org>
11895
11896         Fix assertion.
11897         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11898         contains more exact copies of a given entry than file2, leave the extra
11899         copies unpaired rather than aborting.
11900         Reported by Eric Blake.
11901
11902 2009-07-02  Bruno Haible  <bruno@clisp.org>
11903
11904         Speedup git-merge-changelog for git cherry-pick.
11905         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11906         (entries_mapping_get): New function, extracted from compute_mapping.
11907         (entries_mapping_reverse_get): New function.
11908         (compute_mapping): Add a 'full' argument. Return the result in a
11909         'struct entries_mapping'.
11910         (main): Update. Access the mappings through entries_mapping_get.
11911         Reported by Eric Blake.
11912
11913 2009-07-02  Bruno Haible  <bruno@clisp.org>
11914
11915         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11916         best_i.
11917
11918 2009-07-02  Bruno Haible  <bruno@clisp.org>
11919
11920         Speed up approximate search for matching ChangeLog entries.
11921         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11922         argument. Call fstrcmp_bounded instead of fstrcmp.
11923         (compute_mapping, try_split_merged_entry, main): Update callers.
11924
11925 2009-07-02  Bruno Haible  <bruno@clisp.org>
11926
11927         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11928
11929 2009-06-30  Bruno Haible  <bruno@clisp.org>
11930
11931         Reduce the number of uc_is_cased calls.
11932         * lib/unicase.h (casing_suffix_context_t): Add
11933         'first_char_except_ignorable' field.
11934         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11935         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11936         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11937         Update initializer.
11938         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11939         case-ignorable characters.
11940         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11941         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11942         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11943         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11944         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11945
11946 2009-06-30  Bruno Haible  <bruno@clisp.org>
11947
11948         Tests for module 'unicase/ignorable'.
11949         * modules/unicase/ignorable-tests: New file.
11950         * tests/unicase/test-ignorable.c: New file, generated by
11951         gen-uni-tables.
11952
11953         Tests for module 'unicase/cased'.
11954         * modules/unicase/cased-tests: New file.
11955         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11956         * tests/unicase/test-predicate-part1.h: New file, derived from
11957         tests/unictype/test-predicate-part1.h.
11958         * tests/unicase/test-predicate-part2.h: New file, same as
11959         tests/unictype/test-predicate-part2.h.
11960
11961         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11962         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11963         (output_casing_properties): New function.
11964         (main): Call it.
11965         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11966         * lib/unicase/cased.c: Include unictype/bitmap.h.
11967         (uc_is_cased): Define through a bitmap lookup.
11968         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11969         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11970         (uc_is_case_ignorable): Define through a bitmap lookup.
11971         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11972         lib/unictype/bitmap.h.
11973         (Depends-on): Add inline. Clean up.
11974         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11975         lib/unictype/bitmap.h.
11976         (Depends-on): Add inline. Clean up.
11977         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11978         recognition.
11979         * tests/unicase/test-u16-tolower.c (main): Likewise.
11980         * tests/unicase/test-u32-tolower.c (main): Likewise.
11981
11982 2009-06-30  Bruno Haible  <bruno@clisp.org>
11983
11984         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11985         * lib/unicase/u16-casemap.c: Likewise.
11986         * lib/unicase/u32-casemap.c: Likewise.
11987
11988 2009-06-29  Bruno Haible  <bruno@clisp.org>
11989
11990         Define u32_casefold as a wrapper around u32_ct_casefold.
11991         * lib/unicase/u32-casefold.c: Update.
11992         * modules/unicase/u32-casefold (Depends-on): Add
11993         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11994         unicase/empty-suffix-context. Clean up.
11995
11996         Define u16_casefold as a wrapper around u16_ct_casefold.
11997         * lib/unicase/u16-casefold.c: Update.
11998         * modules/unicase/u16-casefold (Depends-on): Add
11999         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12000         unicase/empty-suffix-context. Clean up.
12001
12002         Define u8_casefold as a wrapper around u8_ct_casefold.
12003         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12004         * lib/unicase/u8-casefold.c: Update.
12005         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12006         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12007
12008         Define u32_totitle as a wrapper around u32_ct_totitle.
12009         * lib/unicase/u32-totitle.c: Update.
12010         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12011         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12012
12013         Define u16_totitle as a wrapper around u16_ct_totitle.
12014         * lib/unicase/u16-totitle.c: Update.
12015         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12016         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12017
12018         Define u8_totitle as a wrapper around u8_ct_totitle.
12019         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12020         functions.
12021         (FUNC): Delegate to U_CT_TOTITLE.
12022         * lib/unicase/u8-totitle.c: Update.
12023         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12025
12026         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12027         invocation.
12028         * modules/unicase/u32-tolower (Depends-on): Add
12029         unicase/empty-prefix-context, unicase/empty-suffix-context.
12030
12031         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12032         invocation.
12033         * modules/unicase/u16-tolower (Depends-on): Add
12034         unicase/empty-prefix-context, unicase/empty-suffix-context.
12035
12036         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12037         * modules/unicase/u8-tolower (Depends-on): Add
12038         unicase/empty-prefix-context, unicase/empty-suffix-context.
12039
12040         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12041         invocation.
12042         * modules/unicase/u32-toupper (Depends-on): Add
12043         unicase/empty-prefix-context, unicase/empty-suffix-context.
12044
12045         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12046         invocation.
12047         * modules/unicase/u16-toupper (Depends-on): Add
12048         unicase/empty-prefix-context, unicase/empty-suffix-context.
12049
12050         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12051         * modules/unicase/u8-toupper (Depends-on): Add
12052         unicase/empty-prefix-context, unicase/empty-suffix-context.
12053
12054         New module 'unicase/u32-ct-casefold'.
12055         * lib/unicase/u32-ct-casefold.c: New file.
12056         * modules/unicase/u32-ct-casefold: New file.
12057
12058         New module 'unicase/u16-ct-casefold'.
12059         * lib/unicase/u16-ct-casefold.c: New file.
12060         * modules/unicase/u16-ct-casefold: New file.
12061
12062         New module 'unicase/u8-ct-casefold'.
12063         * lib/unicase/u8-ct-casefold.c: New file.
12064         * lib/unicase/u-ct-casefold.h: New file, derived from
12065         lib/unicase/u-casefold.h.
12066         * modules/unicase/u8-ct-casefold: New file.
12067
12068         New module 'unicase/u32-ct-totitle'.
12069         * lib/unicase/u32-ct-totitle.c: New file.
12070         * modules/unicase/u32-ct-totitle: New file.
12071
12072         New module 'unicase/u16-ct-totitle'.
12073         * lib/unicase/u16-ct-totitle.c: New file.
12074         * modules/unicase/u16-ct-totitle: New file.
12075
12076         New module 'unicase/u8-ct-totitle'.
12077         * lib/unicase/u8-ct-totitle.c: New file.
12078         * lib/unicase/u-ct-totitle.h: New file, derived from
12079         lib/unicase/u-totitle.h.
12080         * modules/unicase/u8-ct-totitle: New file.
12081
12082         New module 'unicase/u32-ct-tolower'.
12083         * lib/unicase/u32-ct-tolower.c: New file.
12084         * modules/unicase/u32-ct-tolower: New file.
12085
12086         New module 'unicase/u16-ct-tolower'.
12087         * lib/unicase/u16-ct-tolower.c: New file.
12088         * modules/unicase/u16-ct-tolower: New file.
12089
12090         New module 'unicase/u8-ct-tolower'.
12091         * lib/unicase/u8-ct-tolower.c: New file.
12092         * modules/unicase/u8-ct-tolower: New file.
12093
12094         New module 'unicase/u32-ct-toupper'.
12095         * lib/unicase/u32-ct-toupper.c: New file.
12096         * modules/unicase/u32-ct-toupper: New file.
12097
12098         New module 'unicase/u16-ct-toupper'.
12099         * lib/unicase/u16-ct-toupper.c: New file.
12100         * modules/unicase/u16-ct-toupper: New file.
12101
12102         New module 'unicase/u8-ct-toupper'.
12103         * lib/unicase/u8-ct-toupper.c: New file.
12104         * modules/unicase/u8-ct-toupper: New file.
12105
12106         Add context arguments to u*_casemap functions.
12107         * lib/unicase/unicasemap.h: Include unicase.h.
12108         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12109         suffix_context arguments.
12110         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12111         functions.
12112         (FUNC): Add prefix_context and suffix_context arguments. Use
12113         uc_is_cased and uc_is_case_ignorable.
12114         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12115         * lib/unicase/u16-casemap.c: Likewise.
12116         * lib/unicase/u32-casemap.c: Likewise.
12117         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12118         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12119         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12120         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12121         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12122         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12123
12124         New module 'unicase/u32-suffix-context'.
12125         * lib/unicase/u32-suffix-context.c: New file.
12126         * modules/unicase/u32-suffix-context: New file.
12127
12128         New module 'unicase/u16-suffix-context'.
12129         * lib/unicase/u16-suffix-context.c: New file.
12130         * modules/unicase/u16-suffix-context: New file.
12131
12132         New module 'unicase/u8-suffix-context'.
12133         * lib/unicase/u8-suffix-context.c: New file.
12134         * lib/unicase/u-suffix-context.h: New file.
12135         * modules/unicase/u8-suffix-context: New file.
12136
12137         New module 'unicase/empty-suffix-context'.
12138         * lib/unicase/empty-suffix-context.c: New file.
12139         * modules/unicase/empty-suffix-context: New file.
12140
12141         New module 'unicase/u32-prefix-context'.
12142         * lib/unicase/u32-prefix-context.c: New file.
12143         * modules/unicase/u32-prefix-context: New file.
12144
12145         New module 'unicase/u16-prefix-context'.
12146         * lib/unicase/u16-prefix-context.c: New file.
12147         * modules/unicase/u16-prefix-context: New file.
12148
12149         New module 'unicase/u8-prefix-context'.
12150         * lib/unicase/u8-prefix-context.c: New file.
12151         * lib/unicase/u-prefix-context.h: New file.
12152         * lib/unicase/context.h: New file.
12153         * modules/unicase/u8-prefix-context: New file.
12154
12155         New module 'unicase/empty-prefix-context'.
12156         * lib/unicase/empty-prefix-context.c: New file.
12157         * modules/unicase/empty-prefix-context: New file.
12158
12159         New module 'unicase/ignorable'.
12160         * lib/unicase/ignorable.c: New file.
12161         * modules/unicase/ignorable: New file.
12162
12163         New module 'unicase/cased'.
12164         * lib/unicase/caseprop.h: New file.
12165         * lib/unicase/cased.c: New file.
12166         * modules/unicase/cased: New file.
12167
12168         New functions for case mapping of substrings.
12169         * lib/unicase.h (casing_prefix_context_t): New type.
12170         (unicase_empty_prefix_context): New variable.
12171         (u8_casing_prefix_context, u16_casing_prefix_context,
12172         u32_casing_prefix_context, u8_casing_prefixes_context,
12173         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12174         declarations.
12175         (casing_suffix_context_t): New type.
12176         (unicase_empty_suffix_context): New variable.
12177         (u8_casing_suffix_context, u16_casing_suffix_context,
12178         u32_casing_suffix_context, u8_casing_suffixes_context,
12179         u16_casing_suffixes_context, u32_casing_suffixes_context,
12180         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12181         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12182         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12183         declarations.
12184
12185 2009-06-28  Jim Meyering  <meyering@redhat.com>
12186
12187         boostrap: indent only with spaces
12188         * build-aux/bootstrap: Indent only with spaces, never TABs.
12189
12190         bootstrap: split long lines
12191         * build-aux/bootstrap: Keep line length < 80.
12192
12193         bootstrap: sync from coreutils
12194         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12195         just as autoreconf does.  Verify a list of prerequisite
12196         package-name,version-number pairs if defined in bootstrap.conf.
12197         Refer to README-prereq, if prerequisites are not satisfied.
12198
12199 2009-06-27  Eric Blake  <ebb9@byu.net>
12200
12201         tests: add test for bogus NULL definition
12202         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12203         * tests/test-stdlib.c: Likewise.
12204         * tests/test-string.c: Likewise.
12205         * tests/test-locale.c: Likewise.
12206         * tests/test-unistd.c: Likewise.
12207         * modules/stdio-tests (Depends-on): Add verify.
12208         * modules/stdlib-tests (Depends-on): Likewise.
12209         * modules/string-tests (Depends-on): Likewise.
12210         * modules/locale-tests (Depends-on): Likewise.
12211         * modules/unistd-tests (Depends-on): Likewise.
12212
12213 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12214
12215         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12216         self-explaining comment.
12217         * m4/selinux-selinux-h: Update serial.
12218         (gl_LIBSELINUX): New macro, adding a warning for missing development
12219         packages to code extracted from...
12220         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12221         Add warning for missing development packages here, too.
12222
12223 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12224
12225         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12226
12227 2009-06-25  Eric Blake  <ebb9@byu.net>
12228
12229         version-etc: fix regression
12230         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12231         gcc.
12232         (version_etc): Use it, to catch bugs with trailing NULL.
12233         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12234         (version_etc_va): Fix logic bug.
12235         * modules/version-etc-tests: Add test.
12236         * tests/test-version-etc.c: New file.
12237         * tests/test-version-etc.sh: Likewise.
12238
12239 2009-06-25  Sam Steingold  <sds@gnu.org>
12240
12241         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12242         mbtowc declaration.
12243
12244 2009-06-25  Eric Blake  <ebb9@byu.net>
12245
12246         fpurge: migrate into <stdio.h>
12247         * lib/fpurge.h: Delete...
12248         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12249         * lib/fpurge.c (fpurge): Change declaring header.
12250         * modules/fpurge (Files): Drop deleted file.
12251         (Depends-on): Add stdio.
12252         (configure.ac): Set witness.
12253         * modules/stdio (Makefile.am): Support fpurge macros.
12254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12256         * lib/fflush.c: Update client.
12257         * tests/test-fpurge.c: Likewise.
12258         * NEWS: Mention the change.
12259
12260 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12261
12262         * lib/argp-version-etc.c (program_authors): Add const
12263         qualifier.
12264         * lib/version-etc.c: Fix typos in the comments.
12265         * modules/argp-version-etc: Depends on version-etc.
12266
12267 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12268
12269         argp-version-etc: new module.
12270
12271         * lib/argp-version-etc.c: New file.
12272         * lib/argp-version-etc.h: New file.
12273         * modules/argp-version-etc: New file.
12274         * modules/argp-version-etc-tests: New file.
12275         * tests/test-argp-version-etc.c: New test.
12276         * tests/test-argp-version-etc-1.sh: New test.
12277
12278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12279
12280         Provide additional interfaces and documentation for version-etc
12281         module.
12282
12283         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12284         interfaces.
12285         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12286         prototypes.
12287
12288 2009-06-24  Bruno Haible  <bruno@clisp.org>
12289
12290         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12291         HAVE_LIB${NAME} macro.
12292         Reported by Sam Steingold <sds@gnu.org>.
12293
12294 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12295
12296         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12297         needed.
12298
12299 2009-06-21  Bruno Haible  <bruno@clisp.org>
12300
12301         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12302         work.
12303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12304         together with LIB${NAME}, LTLIB${NAME}.
12305         Reported by Sam Steingold <sds@gnu.org>.
12306
12307 2009-06-20  Jim Meyering  <meyering@redhat.com>
12308
12309         tests: make sc_require_test_exit_idiom more generic
12310         * top/maint.mk (Exit_witness_file): New overridable variable.
12311         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12312         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12313
12314 2009-06-19  Jim Meyering  <meyering@redhat.com>
12315
12316         hash: reverse order of src/dst parameters in an internal interface
12317         * lib/hash.c (transfer_entries): Reverse order of parameters to
12318         put DST before SRC.  Adjust callers.
12319
12320         tests: test-hash: avoid wholesale duplication
12321         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12322         Instead, use a loop and add a single conditional.
12323
12324         tests: test-hash: allow seed selection via a command line argument
12325         * tests/test-hash.c (get_seed): New function.
12326         (main): Use it.
12327
12328 2009-06-19  Eric Blake  <ebb9@byu.net>
12329
12330         hash: avoid memory leak on allocation failure
12331         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12332         failure.  Factor repeated algorithm...
12333         (transfer_entries): ...into new helper routine.
12334         (hash_delete): React to hash_rehash return value.
12335
12336         hash: reduce memory pressure in hash_rehash no-op case
12337         * lib/hash.c (next_prime): Avoid overflow.
12338         (hash_initialize): Factor bucket size computation...
12339         (compute_bucket_size): ...into new helper function.
12340         (hash_rehash): Use new function and open coding to reduce memory
12341         pressure, and avoid a memory leak in USE_OBSTACK code.
12342         Reported by Jim Meyering.
12343
12344 2009-06-18  Eric Blake  <ebb9@byu.net>
12345
12346         hash: make rotation more obvious
12347         * modules/hash (Depends-on): Add bitrotate and stdint.
12348         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12349         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12350         (SIZE_MAX): Rely on headers for definition.
12351         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12352         (raw_hasher): Use rotr_sz.
12353         Suggested by Jim Meyering.
12354
12355         hash: fix memory leak in last patch
12356         * lib/hash.c (hash_rehash): Avoid memory leak.
12357
12358         hash: avoid no-op rehashing
12359         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12360
12361         hash: provide default callback functions
12362         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12363         (hash_initialize): Use them as defaults.
12364         * tests/test-hash.c (main): Test this.
12365
12366         hash: minor optimization
12367         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12368         when possible.
12369         (hash_initialize): Document this promise.
12370         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12371         * tests/test-hash.c (hash_compare_strings): Test this.
12372
12373 2009-06-18  Bruno Haible  <bruno@clisp.org>
12374
12375         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12376         going to be replaced anyway.
12377
12378 2009-06-18  Bruno Haible  <bruno@clisp.org>
12379
12380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12381         in one place.
12382         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12383         be replaced anyway.
12384
12385 2009-06-18  Eric Blake  <ebb9@byu.net>
12386
12387         hash: check for resize before insertion
12388         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12389         threshold before insertion, so that a pathological hash_rehash
12390         that fills every bucket can still trigger another rehash.
12391
12392 2009-06-18  Jim Meyering  <meyering@redhat.com>
12393
12394         hash-tests: add a loop around the small tests
12395         * tests/test-hash.c (main): Repeat small tests with selected
12396         small initial table sizes.
12397
12398 2009-06-17  Eric Blake  <ebb9@byu.net>
12399
12400         hash: minor cleanups
12401         * lib/hash.h (hash_entry): Make opaque, by moving...
12402         * lib/hash.c (hash_entry): ...here.
12403         (hash_insert): Clarify restrictions on what can be inserted.
12404         (hash_get_next): Clarify when it is safe to remove an element
12405         during traversal.
12406         (check_tuning): Skip verification when tuning is known safe.
12407         (hash_initialize): Clarify restrictions on tuning.
12408
12409 2009-06-17  Jim Meyering  <jim@meyering.net>
12410         and Eric Blake  <ebb9@byu.net>
12411
12412         hash-tests: new module
12413         * modules/hash-tests: New file.
12414         * tests/test-hash.c: New file.
12415
12416 2009-06-17  Eric Blake  <ebb9@byu.net>
12417
12418         strstr-simple: document new module
12419         * MODULES.html.sh: Document new module.
12420
12421         strstr, strcasestr: replace on platforms with broken memchr
12422         * modules/strstr: Split into...
12423         * modules/strstr-simple: ...new module that does not care about
12424         performance, but does care about glibc bug.
12425         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12426         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12427         if platform memchr is broken, per Debian bug 521737.
12428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12429         memchr.
12430         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12431         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12432         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12433         * modules/mountlist (Depends-on): Add strstr-simple.
12434         * modules/gen-uni-tables (Depends-on): Likewise.
12435         * modules/argz (Depends-on): Add strstr.
12436
12437 2009-06-17  Bruno Haible  <bruno@clisp.org>
12438
12439         * modules/posix_spawn-internal (Depends-on): Add errno.
12440
12441 2009-06-17  Bruno Haible  <bruno@clisp.org>
12442
12443         Define missing ESTALE on Interix 3.5.
12444         * lib/errno.in.h (ESTALE): Assign a value if missing.
12445         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12446         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12447         missing.
12448         * doc/posix-headers/errno.texi: Mention the Interix bug.
12449         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12450
12451 2009-06-15  Eric Blake  <ebb9@byu.net>
12452
12453         memchr, memchr2: add valgrind exception
12454         * lib/memchr.valgrind: New file.
12455         * lib/memchr2.valgrind: New file.
12456         * modules/memchr (Files): Distribute valgrind file.
12457         * modules/memchr2 (Files): Likewise.
12458
12459         docs: memchr is no longer obsolete
12460         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12461         * lib/string.in.h (memchr): Simplify logic.
12462
12463 2009-06-14  Jim Meyering  <meyering@redhat.com>
12464
12465         link-follow: fix the "checking..." message to not mention trailing slash
12466         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12467         never considered trailing slashes.
12468
12469 2009-06-14  Bruno Haible  <bruno@clisp.org>
12470
12471         * m4/memchr.m4: Mention also the bug on IA-64.
12472         * doc/posix-functions/memchr.texi: Likewise.
12473
12474 2009-06-12  Eric Blake  <ebb9@byu.net>
12475
12476         memchr: detect broken x86_64 and alpha implementations
12477         * modules/memchr-tests (Depends-on): Move mmap detection...
12478         * modules/memchr (Depends-on): ...here.
12479         (configure.ac): Set indicator.
12480         * lib/string.in.h (memchr): Declare replacement.
12481         * modules/string (Makefile.am): Trigger replacement.
12482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12484         bugs.
12485         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12486         * modules/getpagesize (License): Relax license.
12487
12488 2009-06-11  Bruno Haible  <bruno@clisp.org>
12489
12490         * lib/idpriv.h: Add more references.
12491
12492 2009-06-08  Bruno Haible  <bruno@clisp.org>
12493
12494         Tests for module 'idpriv-droptemp'.
12495         * modules/idpriv-droptemp-tests: New file.
12496         * tests/test-idpriv-droptemp.sh: New file.
12497         * tests/test-idpriv-droptemp.su.sh: New file.
12498         * tests/test-idpriv-droptemp.c: New file.
12499
12500         New module 'idpriv-droptemp'.
12501         * lib/idpriv-droptemp.c: New file.
12502         * modules/idpriv-droptemp: New file.
12503
12504 2009-06-08  Bruno Haible  <bruno@clisp.org>
12505
12506         Tests for module 'idpriv-drop'.
12507         * modules/idpriv-drop-tests: New file.
12508         * tests/test-idpriv-drop.sh: New file.
12509         * tests/test-idpriv-drop.su.sh: New file.
12510         * tests/test-idpriv-drop.c: New file.
12511
12512         New module 'idpriv-drop'.
12513         * lib/idpriv.h: New file.
12514         * lib-idpriv-drop.c: New file.
12515         * m4/idpriv.m4: New file.
12516         * modules/idpriv-drop: New file.
12517
12518 2009-06-08  Bruno Haible  <bruno@clisp.org>
12519
12520         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12521         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12522         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12523         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12524         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12525         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12526         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12527
12528 2009-06-08  Eric Blake  <ebb9@byu.net>
12529
12530         test-strstr: use memory fence, when possible
12531         * tests/test-strstr.c (main): Use memory fence, in order to be
12532         more likely to trigger Debian bug 521737.
12533         * modules/strstr-tests (Files): Pull in additional files.
12534
12535         memchr: no longer obsolete, for wider field testing
12536         * modules/memchr (Status, Notice): Delete, this module is no
12537         longer obsolete.
12538         * modules/vasnprintf (Depends-on): Add memchr.
12539
12540 2009-06-07  Jim Meyering  <meyering@redhat.com>
12541
12542         hash: declare some functions with the warn_unused_result attribute
12543         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12544
12545 2009-06-07  Bruno Haible  <bruno@clisp.org>
12546
12547         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12548         Reported by Eric Blake.
12549
12550 2009-06-06  Eric Blake  <ebb9@byu.net>
12551
12552         test-alignof: fix typo with long double
12553         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12554         compiler error.
12555
12556 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12557
12558         Escape non-texinfo { and }s.
12559         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12560         markup error.
12561
12562 2009-06-04  Jim Meyering  <meyering@redhat.com>
12563
12564         gitlog-to-changelog: don't infloop on an empty commit log
12565         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12566         Reported by Boris Petersen <transacid@centerim.org>.
12567
12568 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12569
12570         version-etc: extend for packagers
12571         Add three new configure options, intended for packagers:
12572           --with-packager="packager name"
12573           --with-packager-version="packager-specific version"
12574           --with-packager-bug-reports="packager bug reporting"
12575         An example with coreutils:
12576           $ ./configure \
12577             --with-packager=Gentoo \
12578             --with-packager-bug-report=http://bugs.gentoo.org/ \
12579             --with-packager-version="patchset 1.6"
12580           $ ./src/ls --version | head -n2
12581           ls (GNU coreutils) 7.1-dirty
12582           Packaged by Gentoo (patchset 1.6)
12583         Note that the bug reporting info via --help doesn't show up because
12584         coreutils uses its own custom emit_bug_reporting_address() implementation
12585         in src/system.h.  If it didn't, it'd look like:
12586           $ ./src/ls --help | tail -n4
12587           Report bugs to <bug-coreutils@gnu.org>.
12588           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12589           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12590           General help using GNU software: <http://www.gnu.org/gethelp/>.
12591         * lib/version-etc.c: Print new information, if provided.
12592         * m4/version-etc.m4: New file.
12593         * modules/version-etc (Files): Add m4/version-etc.m4.
12594         (configure.ac): Add gl_VERSION_ETC.
12595
12596 2009-05-31  Bruno Haible  <bruno@clisp.org>
12597
12598         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12599         and 'int64_t'.
12600         * modules/alignof-tests (Dependencies): Add stdint.
12601         Reported by Eric Blake.
12602
12603 2009-05-31  Bruno Haible  <bruno@clisp.org>
12604
12605         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12606         restriction due to compiler bugs.
12607         Reported by Eric Blake.
12608
12609 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12610             Bruno Haible  <bruno@clisp.org>
12611
12612         Fix test-alignof failure.
12613         * lib/alignof.h (alignof_slot): New macro.
12614         (alignof_type): New macro, with the same semantics as the previous
12615         'alignof'.
12616         (alignof): Alias to alignof_slot.
12617         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12618         check that the results are usable as constant expressions.
12619
12620 2009-05-31  Bruno Haible  <bruno@clisp.org>
12621
12622         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12623         * tests/test-memchr.c (main): Check that memchr does not read past the
12624         first occurrence of the byte.
12625         * tests/test-strstr.c (main): Update comment.
12626         Suggested by Eric Blake.
12627
12628 2009-05-30  Bruno Haible  <bruno@clisp.org>
12629
12630         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12631         detail how to use dumpbin.
12632         Reported by David Byron <dbyron@dbyron.com>.
12633
12634 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12635
12636         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12637
12638 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12639
12640         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12641
12642 2009-05-28  Bruno Haible  <bruno@clisp.org>
12643
12644         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12645         build-aux/ files.
12646
12647 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12648
12649         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12650
12651 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12652
12653         * gnulib-tool (sed_transform_main_lib_file)
12654         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12655         regexps.
12656
12657 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12658
12659         * tests/test-strstr.c: Add another self-test.
12660         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12661         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12662
12663 2009-05-23  Bruno Haible  <bruno@clisp.org>
12664
12665         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12666         change.
12667
12668 2009-05-21  Bruno Haible  <bruno@clisp.org>
12669
12670         Simplify use of mode_t varargs.
12671         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12672         uses 'mode_t' or 'int'.
12673         * lib/openat.c (openat): Likewise.
12674         * lib/open-safer.c (open_safer): Likewise.
12675         * m4/mode_t.m4: New file.
12676         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12677         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12678         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12679         * modules/open (Files): Add m4/mode_t.m4.
12680         * modules/openat (Files): Likewise.
12681         * modules/fcntl-safer (Files): Likewise.
12682         Suggested by Eric Blake.
12683
12684 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12685
12686         * doc/glibc-functions/fallocate.texi: New file.
12687         * doc/gnulib.texi: Include it.
12688
12689 2009-05-21  Eric Blake  <ebb9@byu.net>
12690             Bruno Haible  <bruno@clisp.org>
12691
12692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12693         invocations.
12694         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12695
12696 2009-05-21  Eric Blake  <ebb9@byu.net>
12697             Bruno Haible  <bruno@clisp.org>
12698
12699         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12700         include_next. Fix of 2008-11-20 commit.
12701         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12702         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12703         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12704         NEXT_MATH_H.
12705         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12706         instead of NEXT_MATH_H.
12707
12708 2009-05-21  Bruno Haible  <bruno@clisp.org>
12709
12710         Avoid redefinition warnings for SIZE_MAX.
12711         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12712         Reported by Simon Josefsson.
12713
12714 2009-05-21  Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12717         AC_CACHE_VAL.
12718
12719 2009-05-20  Bruno Haible  <bruno@clisp.org>
12720
12721         Make zeroptr.h work on mingw.
12722         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12723         mprotect.
12724         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12725         * modules/memchr2-tests (configure.ac): Likewise.
12726         * modules/memcmp-tests (configure.ac): Likewise.
12727         * modules/memmem-tests (configure.ac): Likewise.
12728         * modules/memrchr-tests (configure.ac): Likewise.
12729         Reported by Simon Josefsson.
12730
12731 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12732
12733         * tests/test-glob.c: Include string.h for strcmp prototype.
12734
12735 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12736
12737         * modules/getdelim (Depends-on): Add explicit stdint, although it
12738         was implicitly already pulled in via realloc-posix.
12739         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12740
12741 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12742
12743         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12744         G. Christensen" <tgc@jupiterrise.com>.
12745         * m4/sys_socket_h.m4: Check for sa_family_t.
12746         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12747         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12748         * tests/test-sys_socket.c: Check that sa_family_t works.
12749
12750 2009-05-18  Eric Blake  <ebb9@byu.net>
12751
12752         maint.mk: allow gnulib_dir in VPATH build
12753         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12754
12755 2009-05-15  Jim Meyering  <meyering@redhat.com>
12756
12757         maint.mk: Give gnulib_dir a default definition.
12758         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12759         Thus, most packages no longer need to specify this variable in cfg.mk
12760
12761 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12762
12763         rename.m4: fix typos that would make non-mingw cross-configure fail
12764         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12765
12766 2009-05-13  Eric Blake  <ebb9@byu.net>
12767
12768         mmap-anon: avoid out-of-order autoconf expansion
12769         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12770         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12771         * modules/memchr-tests (Depends-on): Add extensions.
12772         * modules/memchr2-tests (Depends-on): Add extensions.
12773         * modules/memcmp-tests (Depends-on): Add extensions.
12774         * modules/memmem-tests (Depends-on): Add extensions.
12775         * modules/memrchr-tests (Depends-on): Add extensions.
12776
12777 2009-05-13  Bruno Haible  <bruno@clisp.org>
12778
12779         Make some tests ISO C 99 compliant.
12780         * tests/zerosize-ptr.h: New file.
12781         * tests/test-memchr.c: Include zerosize-ptr.h.
12782         (main): Use a zero-size object pointer instead of NULL.
12783         * tests/test-memchr2.c: Include zerosize-ptr.h.
12784         (main): Use a zero-size object pointer instead of NULL.
12785         * tests/test-memcmp.c: Include zerosize-ptr.h.
12786         (main): Use a zero-size object pointer instead of NULL.
12787         * tests/test-memmem.c: Include zerosize-ptr.h.
12788         (main): Use a zero-size object pointer instead of NULL.
12789         * tests/test-memrchr.c: Include zerosize-ptr.h.
12790         (main): Use a zero-size object pointer instead of NULL.
12791         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12792         m4/mmap-anon.m4.
12793         (Depends-on): Add getpagesize.
12794         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12795         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12796         m4/mmap-anon.m4.
12797         (Depends-on): Add getpagesize.
12798         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12799         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12800         m4/mmap-anon.m4.
12801         (Depends-on): Add getpagesize.
12802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12803         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12804         m4/mmap-anon.m4.
12805         (Depends-on): Add getpagesize.
12806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12807         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12808         m4/mmap-anon.m4.
12809         (Depends-on): Add getpagesize.
12810         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12811
12812 2009-05-12  Bruno Haible  <bruno@clisp.org>
12813
12814         Tests for module 'alignof'.
12815         * modules/alignof-tests: New file.
12816         * tests/test-alignof.c: New file.
12817
12818 2009-05-12  Bruno Haible  <bruno@clisp.org>
12819
12820         Fix alignof macro.
12821         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12822         vendor compilers that are always correct.
12823
12824 2009-05-12  Bruno Haible  <bruno@clisp.org>
12825
12826         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12827         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12828         not whether its fully works.
12829
12830 2009-05-12  Bruno Haible  <bruno@clisp.org>
12831
12832         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12833
12834 2009-05-12  Jim Meyering  <meyering@redhat.com>
12835
12836         * top/maint.mk: Adjust backslash alignment.
12837
12838 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12839
12840         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12841
12842 2009-05-11  Eric Blake  <ebb9@byu.net>
12843
12844         argp: avoid undefined behavior
12845         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12846         macros.
12847
12848 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12849
12850         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12851         user.name to prevent git commit from complaining.
12852
12853 2009-05-10  Bruno Haible  <bruno@clisp.org>
12854
12855         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12856         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12857         it rewrites every file name only once.
12858         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12859
12860 2009-05-08  Bruno Haible  <bruno@clisp.org>
12861
12862         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12863         instead of 'max'.
12864
12865 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12866
12867         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12868         sockaddr_storage test.
12869
12870 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12871
12872         * modules/sys_socket (Makefile.am): Substitute
12873         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12874         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12875         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12876         * tests/test-sys_socket.c: Check sockaddr_storage.
12877
12878 2009-05-08  Bruno Haible  <bruno@clisp.org>
12879
12880         New module 'alignof'.
12881         * lib/alignof.h: New file.
12882         * modules/alignof: New file.
12883
12884 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12885             Bruno Haible  <bruno@clisp.org>
12886
12887         Fix test-file-has-acl on FreeBSD.
12888         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12889         mask is implicitly added.
12890         * tests/test-file-has-acl.c: Include <signal.h>.
12891         (main): Terminate the test after 5 seconds.
12892         * modules/acl-tests (configure.ac): Check for alarm function.
12893
12894 2009-05-04  Bruno Haible  <bruno@clisp.org>
12895
12896         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12897         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12898         * modules/errno (configure.ac): Drop AC_REQUIRE.
12899         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12900         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12901
12902 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12903
12904         * modules/glob-tests: New module.
12905         * tests/test-glob.c: Add.
12906
12907 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12908
12909         * modules/fnmatch-tests: New module.
12910         * tests/test-fnmatch.c: Add.
12911
12912 2009-05-04  Eric Blake  <ebb9@byu.net>
12913
12914         maint: make the new no-submodule-changes rule VPATH-safe
12915         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12916
12917 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12918             Bruno Haible  <bruno@clisp.org>
12919
12920         acl: Fix infinite loop on FreeBSD.
12921         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12922         of return value from acl_get_entry.
12923         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12924         Likewise.
12925
12926 2009-05-03  Bruno Haible  <bruno@clisp.org>
12927
12928         * lib/acl-internal.h (acl_entries): Clarify return value.
12929         * lib/acl_entries.c (acl_entries): Likewise.
12930
12931 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12932
12933         Bug fix in acl module.
12934         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12935
12936 2009-05-03  Bruno Haible  <bruno@clisp.org>
12937
12938         Create gperf-generated file in the source dir, not in the build dir.
12939         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12940         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12941         * modules/unicase/locale-language (unicase/locale-languages.h):
12942         Likewise.
12943         * modules/unicase/special-casing (unicase/special-casing-table.h):
12944         Likewise.
12945         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12946         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12947         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12948         Reported by Ralf Wildenhues.
12949
12950 2009-05-03  Bruno Haible  <bruno@clisp.org>
12951
12952         * modules/fnmatch (Description, configure.ac): Taken from
12953         fnmatch-posix.
12954         * modules/fnmatch-posix: Turn into a symbolic reference to the
12955         'fnmatch' module, and deprecate.
12956         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12957
12958 2009-05-03  Bruno Haible  <bruno@clisp.org>
12959
12960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12961         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12962         Reported by Ralf Wildenhues.
12963
12964 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12965
12966         * m4/fnmatch.m4: Fix fnmatch re-define.
12967
12968 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12969
12970         priv-set: new module and tests; adapt write-any-file
12971         * lib/priv-set.c: New file.
12972         * lib/priv-set.h: New file.
12973         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12974         * lib/write-any-file.c: Simplify by using priv-set module.
12975         * m4/priv-set.m4: New file.
12976         * modules/priv-set: New file.
12977         * modules/unlinkdir: Add dependency on priv-set module.
12978         * modules/write-any-file: Likewise.
12979
12980         Tests for module 'priv-set'.
12981         * modules/priv-set-tests: New file.
12982         * tests/test-priv-set.c: New file.
12983
12984 2009-05-03  Jim Meyering  <meyering@redhat.com>
12985             Bruno Haible  <bruno@clisp.org>
12986
12987         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12988         use the converted UTF-8 variant of the name instead.
12989
12990 2009-05-03  Jim Meyering  <meyering@redhat.com>
12991
12992         tests: tighten some getdate tests
12993         * tests/test-getdate.c (main): Tighten tests: require equality,
12994         not just greater than.  Set TZ envvar to UTC0.
12995
12996 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12997
12998         getdate: correctly interpret "next monday" when run on a Monday
12999         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13000         that e.g., "next tues" (when run on a tuesday) results in a date
13001         that is one week in the future, and not today's date.
13002         I.e., add a week when the wday is the same as the current one.
13003         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13004         and earlier by Martin Bernreuther and Jan Minář.
13005         * tests/test-getdate.c (main): Check that "next DAY" is always in
13006         the future and that "last DAY" is always in the past.
13007
13008 2009-05-02  Jim Meyering  <meyering@redhat.com>
13009
13010         build: ensure that a release build fails when a submodule is unclean
13011         * top/maint.mk (no-submodule-changes): New rule.
13012         (alpha beta major): Depend on it.
13013
13014 2009-05-02  Bruno Haible  <bruno@clisp.org>
13015
13016         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13018         shell variable gl_fnmatch_required to detect which variant is
13019         requested.
13020         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13021         gl_FUNC_FNMATCH_POSIX.
13022         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13023         exclude fnmatch-posix.
13024
13025 2009-05-02  Bruno Haible  <bruno@clisp.org>
13026
13027         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13028         * modules/mbsrtowcs (License): Change to LGPLv2+.
13029         * modules/strnlen1 (License): Likewise.
13030         Reported by Simon Josefsson.
13031
13032 2009-05-02  Bruno Haible  <bruno@clisp.org>
13033
13034         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13035         "cross".
13036         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13037         gnulib-tool was called with option --source-base=lib.
13038
13039 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13040
13041         Use automake *-local hooks without commands, for extensibility.
13042         * modules/localcharset (Makefile.am): Rename install-exec-local
13043         rule to install-exec-localcharset, and make it a prerequisite of
13044         install-exec-local.  Likewise, rename the uninstall-local rule to
13045         uninstall-localcharset, and make it a prerequisite of the former.
13046
13047 2009-05-01  Bruno Haible  <bruno@clisp.org>
13048
13049         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13050         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13051         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13053         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13054         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13055         m4/locale-zh.m4, m4/codeset.m4.
13056
13057         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13058         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13059         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13060         m4/locale-zh.m4.
13061
13062         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13063         REPLACE_WCRTOMB if mbstate_t must be replaced.
13064         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13065         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13066
13067 2009-05-01  Bruno Haible  <bruno@clisp.org>
13068
13069         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13070         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13071         dngettext, dcngettext, textdomain, bindtextdomain,
13072         bind_textdomain_codeset): Undefine before redefining.
13073
13074 2009-04-30  Bruno Haible  <bruno@clisp.org>
13075
13076         Fix bug introduced on 2009-04-25.
13077         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13078         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13079         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13080         is defined.
13081         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13082         is defined.
13083         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13084         is defined.
13085         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13086
13087 2009-04-28  Bruno Haible  <bruno@clisp.org>
13088
13089         Comment tweaks.
13090         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13091         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13092         * lib/unicase.h (u*_casexfrm): Likewise.
13093         Reported by Paolo Bonzini.
13094
13095 2009-04-28  Bruno Haible  <bruno@clisp.org>
13096
13097         Fix a compilation error.
13098         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13099         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13100         Reported by Jim Meyering.
13101
13102 2009-04-27  Bruno Haible  <bruno@clisp.org>
13103
13104         New module 'libunistring'.
13105         * modules/libunistring: New file.
13106         * m4/libunistring.m4: New file.
13107         * MODULES.html.sh (Unicode string functions): Add it.
13108
13109 2009-04-27  Eric Blake  <ebb9@byu.net>
13110
13111         maint.mk: allow package-specific header to provide <config.h>
13112         * top/maint.mk (sc_require_config_h): New variable.
13113         (sc_require_config_h, sc_require_config_h_first): Use it.
13114
13115 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13116
13117         * top/maint.mk (sc_avoid_if_before_free): Except
13118         useless-if-before-free script.
13119
13120 2009-04-27  Eric Blake  <ebb9@byu.net>
13121
13122         maintainer-makefile: depend on all required helper scripts
13123         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13124         useless-if-before-free.
13125         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13126         version, rather than assuming gnulib checkout is available.
13127         Reported by Simen Josefsson.
13128
13129 2009-04-26  Bruno Haible  <bruno@clisp.org>
13130
13131         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13132         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13133         "../" or "..".
13134
13135 2009-04-26  Bruno Haible  <bruno@clisp.org>
13136
13137         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13138         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13139         AC_LIB_HAVE_LINKFLAGS.
13140
13141 2009-04-26  Bruno Haible  <bruno@clisp.org>
13142
13143         Simplify calling convention of u*_conv_from_encoding.
13144         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13145         u32_conv_from_encoding): Expect a resultbuf argument and return the
13146         result directly as a pointer.
13147         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13148         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13149         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13150         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13151         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13152         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13153         Update.
13154         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13155         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13156         * lib/vasnprintf.c (VASNPRINTF): Update.
13157         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13158         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13159         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13160         * NEWS: Mention the change.
13161
13162 2009-04-26  Bruno Haible  <bruno@clisp.org>
13163
13164         Simplify calling convention of u*_conv_to_encoding.
13165         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13166         u32_conv_to_encoding): Expect a resultbuf argument and return the
13167         result directly as a pointer.
13168         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13169         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13170         freeing scaled_offsets if mem_iconveha failed.
13171         * lib/unicase/u-casexfrm.h (FUNC): Update.
13172         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13173         * lib/vasnprintf.c (VASNPRINTF): Update.
13174         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13175         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13176         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13177         * NEWS: Mention the change.
13178
13179 2009-04-26  Bruno Haible  <bruno@clisp.org>
13180
13181         Avoid test failures on AIX and OSF/1.
13182         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13183         malloc(0).
13184         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13185         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13186         Likewise.
13187         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13188         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13189         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13190         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13191         * doc/posix-functions/malloc.texi: Document the portability problem
13192         related to malloc(0).
13193
13194 2009-04-26  Bruno Haible  <bruno@clisp.org>
13195
13196         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13197         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13198         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13199
13200 2009-04-25  Bruno Haible  <bruno@clisp.org>
13201
13202         Avoid link error when creating a namespace clean library.
13203         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13204         as macro with arguments if already defined as an alias.
13205         * lib/signbitf.c (gl_signbitf): Don't undefine.
13206         * lib/signbitd.c (gl_signbitd): Don't undefine.
13207         * lib/signbitl.c (gl_signbitl): Don't undefine.
13208
13209 2009-04-25  Jim Meyering  <meyering@redhat.com>
13210
13211         vc-list-files: fix another quoting bug
13212         * build-aux/vc-list-files: Avoid sed backslash expansion
13213         of pathological directory names.
13214
13215 2009-04-25  Eric Blake  <ebb9@byu.net>
13216
13217         vc-list-files: fix shell quoting error
13218         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13219         timestamp.
13220
13221 2009-04-25  Jim Meyering  <meyering@redhat.com>
13222
13223         vc-list-files: restore lost functionality with subdir argument
13224         * build-aux/vc-list-files: When given a non-"." sub-directory
13225         argument, substitute the $dir/ prefix back onto each resulting name.
13226         Otherwise, coreutils' root_tests check would fail.
13227
13228 2009-04-24  Eric Blake  <ebb9@byu.net>
13229
13230         vc-list-files: ignore git symlinks
13231         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13232         than ls-files, to ignore git symlinks.
13233
13234         maint.mk: import improvements from m4
13235         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13236         (move_if_change): Delete unused macro.
13237         (news-date-check, vc-diff-check): Support VPATH builds.
13238         (announcement): Likewise.  Split --bootstrap-tools list...
13239         (boostrap-tools): ...into separate list, which can be overridden
13240         in cfg.mk.
13241         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13242         requiring dependency on useless-if-before-free module.
13243         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13244         Support VPATH builds.
13245
13246 2009-04-24  Jim Meyering  <meyering@redhat.com>
13247
13248         maint.mk: remove coreutils-specific rules and variables
13249         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13250         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13251         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13252
13253         maint.mk: remove obsolete rule
13254         * top/maint.mk (rel-check): Remove rule.
13255         (WGET, WGETFLAGS): Remove now-unused variables.
13256
13257 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13258
13259         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13260         consistency.
13261
13262         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13263         '$(PATH_SEPARATOR)' instead of ':'.
13264
13265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13266
13267         * lib/getopt1.c (main): Use 'const' for static array.
13268
13269 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13270
13271         * top/maint.mk: Sync with coreutils.
13272         * NEWS: Explain incompatibilities.
13273
13274 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13275             Bruno Haible  <bruno@clisp.org>
13276
13277         Fix cross-compilation results.
13278         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13279         statement, as third argument of AC_TRY_RUN.
13280         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13281         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13282         Likewise.
13283         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13284         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13285         Likewise.
13286         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13288         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13289
13290 2009-04-20  Bruno Haible  <bruno@clisp.org>
13291
13292         Avoid test failure on mingw.
13293         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13294
13295 2009-04-20  Bruno Haible  <bruno@clisp.org>
13296
13297         Avoid compilation error on mingw.
13298         * modules/localename-tests (Depends-on): Add locale.
13299
13300 2009-04-19  Bruno Haible  <bruno@clisp.org>
13301
13302         Support for building a shared library on Windows platforms.
13303         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13304         (main): Test the presence of UNINORM_NFC here.
13305         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13306         (main): Test the presence of UNINORM_NFD here.
13307         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13308         (main): Test the presence of UNINORM_NFKC here.
13309         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13310         (main): Test the presence of UNINORM_NFKD here.
13311
13312 2009-04-19  Bruno Haible  <bruno@clisp.org>
13313
13314         Avoid a compiler warning.
13315         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13316         Change type of variable 'sequence'.
13317
13318 2009-04-19  Bruno Haible  <bruno@clisp.org>
13319
13320         * modules/configmake (Makefile.am): When the contents of configmake.h
13321         does not change, arrange to preserve its modification time.
13322
13323 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13324
13325         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13326         gettext domain.
13327
13328 2009-04-16  Jim Meyering  <meyering@redhat.com>
13329
13330         useless-if-before-free: improve conversion code
13331         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13332         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13333
13334 2009-04-14  Bruno Haible  <bruno@clisp.org>
13335
13336         * modules/fcntl (Depends-on): Add extensions.
13337         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13338
13339 2009-04-12  Ben Pfaff  <blp@gnu.org>
13340
13341         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13342         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13343
13344 2009-03-20  Ben Pfaff  <blp@gnu.org>
13345
13346         Make rename replace existing destinations on Windows.
13347         * m4/rename.m4: Add test for Mingw.
13348         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13349         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13350         * doc/posix-functions/rename.texi: Document.
13351
13352 2009-04-10  Bruno Haible  <bruno@clisp.org>
13353
13354         New include file "iconveh.h".
13355         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13356         * lib/striconveh.h: Include it.
13357         (enum iconv_ilseq_handler): Remove definition.
13358         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13359         striconveh.h.
13360         * lib/striconveha.c: Include striconveh.h.
13361         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13362         * modules/striconveh (Files): Add lib/iconveh.h.
13363         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13364         lib/striconveh.h.
13365
13366 2009-04-10  Bruno Haible  <bruno@clisp.org>
13367
13368         * lib/uniconv.h: Update comment.
13369
13370 2009-04-10  Bruno Haible  <bruno@clisp.org>
13371
13372         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13373         always.
13374         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13375         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13376         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13377         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13378         "unistring-notinline.h", so that the function gets defined always.
13379         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13380         * lib/unistr/u8-uctomb.c: Likewise.
13381         * lib/unistr/u16-mbtouc.c: Likewise.
13382         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13383         * lib/unistr/u16-uctomb.c: Likewise.
13384         * lib/unistr/u32-mbtouc.c: Likewise.
13385         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13386         * lib/unistr/u32-uctomb.c: Likewise.
13387
13388 2009-04-10  Bruno Haible  <bruno@clisp.org>
13389
13390         Mark 'utime' obsolete.
13391         * modules/utime (Status, Notice): New sections.
13392         Suggested by Jim Meyering.
13393
13394         Fix cross-compile guess for utime test.
13395         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13396         autoconf.
13397         * doc/posix-functions/utime.texi: Give more precisions.
13398         Reported by Jan <ipif@ymail.com>.
13399
13400 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13401
13402         filevercmp: correct today's change
13403         * lib/filevercmp.c: Also handle coreutils' test inputs.
13404         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13405
13406         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13407         for reporting it.
13408         * lib/filevercmp.c: Special handle for "", "." and "..".
13409         * tests/test-filevercmp.c: Enlarge the set suite.
13410
13411 2009-04-07  Jim Meyering  <meyering@redhat.com>
13412
13413         useless-if-before-free: show how to remove braced useless free, too
13414         * build-aux/useless-if-before-free: still only in a comment, though.
13415
13416 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13417
13418         maint.mk: import changes to syntax-check macros from coreutils
13419         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13420         Use them in the relevant macros.
13421
13422 2009-04-06  Bruno Haible  <bruno@clisp.org>
13423
13424         Fix unportable use of bit-fields.
13425         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13426         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13427         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13428
13429 2009-04-06  Bruno Haible  <bruno@clisp.org>
13430
13431         Avoid test failures on AIX and OSF/1.
13432         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13433         that malloc(0) = NULL.
13434         * tests/unicase/test-u8-tolower.c (check): Likewise.
13435         * tests/unicase/test-u8-totitle.c (check): Likewise.
13436         * tests/unicase/test-u8-toupper.c (check): Likewise.
13437         * tests/unicase/test-u16-casefold.c (check): Likewise.
13438         * tests/unicase/test-u16-tolower.c (check): Likewise.
13439         * tests/unicase/test-u16-totitle.c (check): Likewise.
13440         * tests/unicase/test-u16-toupper.c (check): Likewise.
13441         * tests/unicase/test-u32-casefold.c (check): Likewise.
13442         * tests/unicase/test-u32-tolower.c (check): Likewise.
13443         * tests/unicase/test-u32-totitle.c (check): Likewise.
13444         * tests/unicase/test-u32-toupper.c (check): Likewise.
13445         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13446         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13447         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13448         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13449         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13450         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13451         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13452         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13453         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13454         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13455         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13456         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13457
13458 2009-04-05  Bruno Haible  <bruno@clisp.org>
13459
13460         Work around an autoconf limitation.
13461         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13462         comment line if it would be longer than 3 KB.
13463
13464 2009-04-05  Bruno Haible  <bruno@clisp.org>
13465
13466         Avoid test failure with libiconv-1.13.
13467         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13468         of the expected test results.
13469
13470 2009-04-05  Bruno Haible  <bruno@clisp.org>
13471
13472         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13473         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13474         that it should be installed.
13475
13476 2009-04-05  Bruno Haible  <bruno@clisp.org>
13477
13478         * gnulib-tool: New option --copy-file.
13479         (func_usage): Document it.
13480         (func_dest_tmpfilename): Moved out of func_import.
13481         (func_add_file, func_update_file): New functions, extracted from
13482         func_import.
13483         (func_import): Update.
13484
13485 2009-04-05  Karl Berry  <karl@gnu.org>
13486
13487         * README: prominently mention gnulib-tool.
13488         Rearrange sections so getting the code is near the top.
13489
13490 2009-04-05  Bruno Haible  <bruno@clisp.org>
13491
13492         * lib/unicase.h: Mention u*_cmp2.
13493         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13494         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13495         * lib/unicase/ulc-casecmp.c: Likewise.
13496         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13497         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13498         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13499         unistr/u8-cmp.
13500         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13501         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13502         unistr/u16-cmp.
13503         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13504         unistr/u32-cmp.
13505
13506         * lib/uninorm.h: Mention u*_cmp2.
13507         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13508         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13509         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13510         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13511         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13512         unistr/u8-cmp.
13513         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13514         unistr/u16-cmp.
13515         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13516         unistr/u32-cmp.
13517
13518         New module 'unistr/u32-cmp2'.
13519         * lib/unistr/u32-cmp2.c: New file.
13520         * modules/unistr/u32-cmp2: New file.
13521
13522         New module 'unistr/u16-cmp2'.
13523         * lib/unistr/u16-cmp2.c: New file.
13524         * modules/unistr/u16-cmp2: New file.
13525
13526         New module 'unistr/u8-cmp2'.
13527         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13528         * lib/unistr/u8-cmp2.c: New file.
13529         * lib/unistr/u-cmp2.h: New file.
13530         * modules/unistr/u8-cmp2: New file.
13531
13532 2009-04-05  Bruno Haible  <bruno@clisp.org>
13533
13534         * lib/unictype.h (uc_property_is_valid): New macro.
13535         * tests/unictype/test-pr_byname.c (main): Use it.
13536
13537         * lib/unistr.h: Doc fixes.
13538         * lib/uniconv.h: Doc fixes.
13539         * lib/unictype.h: Doc fixes.
13540
13541 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13542
13543         Port coreutils 7.2 to Solaris 8.
13544
13545         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13546         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13547         for Solaris 8.  This is a bit of a hack, as it means it's the
13548         caller's responsibility to add -lnsl if needed, but most likely it
13549         won't be needed since only getaddrinfo uses this and getaddrinfo
13550         isn't needed on Solaris 8.
13551
13552         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13553         problem to Solaris 8 encountered with coreutils 7.2, which
13554         resulted in a message "fnmatch.c:292: warning: passing argument 4
13555         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13556         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13557
13558 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13559
13560         * m4/ld-version-script.m4: Add FIXME comment.
13561
13562 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13563
13564         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13565         SOVERSION variable.
13566
13567 2009-04-02  Bruno Haible  <bruno@clisp.org>
13568
13569         * Makefile (info, html, dvi, pdf): Combine the rules.
13570         Suggested by Jim Meyering.
13571
13572 2009-04-01  Bruno Haible  <bruno@clisp.org>
13573
13574         * Makefile (info, html, dvi, pdf): New targets.
13575         Reported by Reuben Thomas <rrt@sc3d.org>.
13576
13577 2009-04-01  Bruno Haible  <bruno@clisp.org>
13578
13579         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13580         can be put into PATH.
13581         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13582
13583 2009-04-01  Bruno Haible  <bruno@clisp.org>
13584
13585         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13586
13587 2009-04-01  Bruno Haible  <bruno@clisp.org>
13588
13589         Rename module 'visibility'.
13590         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13591         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13592         * doc/gnulib.texi: Update.
13593         * MODULES.html.sh (Misc): Update.
13594         * NEWS: Mention the change.
13595
13596 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13597
13598         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13599         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13600         Eric Blake <ebb9@byu.net> for review.
13601         * MODULES.html.sh: Add lib-msvc-compat.
13602         * doc/gnulib.texi: Link to new section.
13603         * m4/ld-output-def.m4: New file.
13604         * doc/ld-output-def.texi: New file.
13605
13606 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13607
13608         Rename ld-version-script to lib-symbol-versions.  Suggested by
13609         Bruno Haible <bruno@clisp.org>.
13610         * modules/ld-version-script: Renamed to lib-symbol-versions.
13611         * doc/ld-version-script.texi: Fix module name.
13612         * MODULES.html.sh: Add lib-symbol-versions.
13613
13614 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13615
13616         * modules/u64-tests: New file.
13617         * tests/test-u64.c: New file.
13618
13619 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13620
13621         * MODULES.html.sh: Mention u64.
13622         * modules/u64: New module.
13623         * modules/crypto/sha512: Depend on u64 module instead of providing
13624         u64.h.
13625
13626 2009-03-27  Eric Blake  <ebb9@byu.net>
13627
13628         test-strerror: make debugging EAI_SYSTEM easier
13629         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13630         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13631         failure was EAI_SYSTEM.
13632
13633 2009-03-25  Bruno Haible  <bruno@clisp.org>
13634
13635         Fix a problem with --enable-relocatable on Solaris 7.
13636         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13637         since 2008-02-24.
13638
13639 2009-03-25  Eric Blake  <ebb9@byu.net>
13640
13641         test-sockets: avoid gcc warning
13642         * tests/test-sockets.c (main): Silence compiler warning.
13643
13644 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13645
13646         New modules nproc, pthread, contributed by Glen Lenker.
13647
13648         * MODULES.html.sh: Add pthread, nproc.
13649         * lib/nproc.c: New file.
13650         * lib/nproc.h: New file.
13651         * lib/pthread.in.h: New file.
13652         * m4/pthread.m4: New file.
13653         * modules/nproc: New file.
13654         * modules/pthread: New file.
13655
13656 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13657
13658         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13659         New variable.
13660
13661 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13662
13663         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13664         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13665         * tests/test-filevercmp.c: Add tests for backup suffixes.
13666
13667 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13668
13669         * modules/stdlib (Depends-on): Add stdint, needed when defining
13670         struct random_data on, for example, HP-UX 10.20.  Reported by
13671         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13672
13673 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13674
13675         * lib/readline.c (readline): Call fflush on stdout after printing
13676         prompt.
13677
13678 2009-03-20  Bruno Haible  <bruno@clisp.org>
13679
13680         Remove dependency from 'close' module to -lws2_32 on native Windows.
13681         * lib/close-hook.h: New file.
13682         * lib/close-hook.c: New file.
13683         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13684         w32sock.h.
13685         (_gl_close_fd_maybe_socket): Remove function.
13686         (rpl_close): Invoke execute_all_close_hooks instead of
13687         _gl_close_fd_maybe_socket.
13688         * lib/sockets.c: Include close-hook.h, w32sock.h.
13689         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13690         (close_sockets_hook): New variable.
13691         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13692         (gl_sockets_cleanup): Unregister it.
13693         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13694         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13695         * modules/close-hook: New file.
13696         * modules/close (Files): Remove lib/w32sock.h.
13697         (Depends-on): Add close-hook.
13698         (Link): Remove section.
13699         * modules/sockets (Files): Add lib/w32sock.h.
13700         (Depends-on): Add close-hook.
13701         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13702         invocation.
13703         * NEWS: Mention that LIB_CLOSE is gone.
13704
13705 2009-03-23  Eric Blake  <ebb9@byu.net>
13706
13707         signal-tests: test previous patch
13708         * tests/test-signal.c: New file.
13709         * modules/signal-tests: Likewise.
13710
13711         signal.h: always support 'volatile sig_atomic_t'
13712         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13713         (gl_SIGNAL_H_DEFAULTS): Add a default.
13714         * modules/signal (Makefile.am): Substitute if needed.
13715         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13716         users can blindly add volatile.
13717         * doc/posix-headers/signal.texi (signal.h): Document it.
13718         Reported by Matthew Woehlke.
13719
13720 2009-03-23  Jim Meyering  <meyering@redhat.com>
13721
13722         pathmax: PATH_MAX: use pathconf only when available
13723         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13724         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13725         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13726         This avoids a link failure in a PSP cross-compilation environment
13727         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13728
13729         * lib/vasnprintf.c (divide): Fix typo in comment.
13730
13731 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13732
13733         * gnulib-tool (func_filter_filelist): Fix comment.
13734
13735 2009-03-20  Bruno Haible  <bruno@clisp.org>
13736
13737         Make sockets.h self-contained.
13738         * lib/sockets.c: Include sockets.h first.
13739         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13740
13741 2009-03-19  Eric Blake  <ebb9@byu.net>
13742
13743         doc: mention more functions added in cygwin 1.7.0
13744         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13745         addition.
13746         * doc/posix-functions/log2f.texi: Likewise.
13747
13748 2009-03-19  Jim Meyering  <meyering@redhat.com>
13749
13750         fsusage: avoid syntax error due to statement-before-declaration
13751         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13752         after all declarations.  Reported by Matthew Woehlke in
13753         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13754
13755 2009-03-18  Eric Blake  <ebb9@byu.net>
13756
13757         build-aux/compile: sync from automake
13758         * build-aux/compile: New file, from automake.
13759         * config/srclist.txt: Mention build-aux/compile.
13760
13761 2009-03-17  Bruno Haible  <bruno@clisp.org>
13762
13763         * lib/git-merge-changelog.c: Fix typo in comment.
13764         Reported by Reuben Thomas <rrt@sc3d.org>.
13765
13766 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13767
13768         * m4/regex.m4: update and improve help for
13769         --without-included-regex.
13770
13771 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13772
13773         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13774         failure on missing include files.
13775
13776 2009-03-17  Eric Blake  <ebb9@byu.net>
13777
13778         doc: mention more functions added in cygwin 1.7.0
13779         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13780         addition.
13781         * doc/posix-functions/fwscanf.texi: Likewise.
13782         * doc/posix-functions/swprintf.texi: Likewise.
13783         * doc/posix-functions/swscanf.texi: Likewise.
13784         * doc/posix-functions/vfwprintf.texi: Likewise.
13785         * doc/posix-functions/vfwscanf.texi: Likewise.
13786         * doc/posix-functions/vswprintf.texi: Likewise.
13787         * doc/posix-functions/vswscanf.texi: Likewise.
13788         * doc/posix-functions/vwprintf.texi: Likewise.
13789         * doc/posix-functions/vwscanf.texi: Likewise.
13790         * doc/posix-functions/wcscasecmp.texi: Likewise.
13791         * doc/posix-functions/wcsdup.texi: Likewise.
13792         * doc/posix-functions/wcsftime.texi: Likewise.
13793         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13794         * doc/posix-functions/wprintf.texi: Likewise.
13795         * doc/posix-functions/wscanf.texi: Likewise.
13796         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13797
13798 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13799
13800         maint.mk: really add $(AM_MAKEFLAGS)
13801         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13802         was inadvertently omitted in the last commit.
13803         Spotted by Bruno Haible.
13804
13805         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13806         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13807         $(AM_MAKEFLAGS)' rather than plain `make'.
13808
13809         gnulib-tool: execute $MAKE not make
13810         * gnulib-tool: Default $MAKE to 'make'.
13811         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13812         than make.  Initialize $MAKE in the do-autobuild script.
13813
13814         gnulib-tool: use $MAKE not make in generated files
13815         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13816         make, in generated files.  Initialize $MAKE in the do-autobuild
13817         script.
13818
13819         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13820
13821         GNUmakefile: disable parallelism only for multiple, recursive targets
13822         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13823         additions in the Makefile.
13824         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13825         by Automake.
13826         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13827         are listed on the command line and at least one of them is
13828         listed in $(ALL_RECURSIVE_TARGETS).
13829
13830 2009-03-14  Bruno Haible  <bruno@clisp.org>
13831
13832         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13833         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13834         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13835         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13836         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13837         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13838         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13839         unistr/u8-uctomb.
13840         * modules/unistr/u8-strchr (Depends-on): Likewise.
13841         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13842         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13843         unistr/u16-uctomb.
13844         * modules/unistr/u16-strchr (Depends-on): Likewise.
13845         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13846
13847 2009-03-12  Bruno Haible  <bruno@clisp.org>
13848
13849         Work around select() bug on Interix 3.5.
13850         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13851         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13852         * m4/select.m4: New file.
13853         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13854         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13855         * modules/select (Files): Add m4/select.m4.
13856         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13857         * modules/nanosleep (Depends-on): Add select.
13858         * modules/poll (Depends-on): Likewise.
13859         * doc/posix-functions/select.texi: Mention the Interix bug.
13860         Reported by Markus Duft <mduft@gentoo.org>.
13861
13862         * lib/select.c: Renamed from lib/winsock-select.c.
13863         * modules/select (Files): Add lib/select.c, remove
13864         lib/winsock-select.c.
13865         (configure.ac): Update.
13866
13867 2009-03-12  Jim Meyering  <meyering@redhat.com>
13868
13869         avoid gcc warnings about unused macro definitions
13870         * lib/readtokens.c (STREQ): Remove unused definition.
13871         * lib/xmalloc.c (SIZE_MAX): Likewise.
13872         * lib/openat-die.c (N_): Likewise.
13873         * lib/mountlist.c (SIZE_MAX): Remove definition.
13874         Instead, include <stdint.h>.
13875         * lib/readutmp.c: Likewise.
13876         * modules/readutmp (Depends-on): Add stdint.
13877         * modules/mountlist (Depends-on): Add stdint.
13878         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13879
13880 2009-03-10  Bruno Haible  <bruno@clisp.org>
13881
13882         Tests for module 'mbmemcasecoll'.
13883         * modules/mbmemcasecoll-tests: New file.
13884         * tests/test-mbmemcasecoll1.sh: New file.
13885         * tests/test-mbmemcasecoll2.sh: New file.
13886         * tests/test-mbmemcasecoll3.sh: New file.
13887         * tests/test-mbmemcasecoll.c: New file.
13888
13889         New module 'mbmemcasecoll'.
13890         * lib/mbmemcasecoll.h: New file.
13891         * lib/mbmemcasecoll.c: New file.
13892         * modules/mbmemcasecoll: New file.
13893
13894         * tests/test-mbmemcasecmp.h: New file, extracted from
13895         tests/test-mbmemcasecmp.c.
13896         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13897         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13898         (main): Update.
13899         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13900
13901 2009-03-09  Bruno Haible  <bruno@clisp.org>
13902
13903         Tests for module 'mbmemcasecmp'.
13904         * modules/mbmemcasecmp-tests: New file.
13905         * tests/test-mbmemcasecmp1.sh: New file.
13906         * tests/test-mbmemcasecmp2.sh: New file.
13907         * tests/test-mbmemcasecmp3.sh: New file.
13908         * tests/test-mbmemcasecmp.c: New file.
13909
13910         New module 'mbmemcasecmp'.
13911         * lib/mbmemcasecmp.h: New file.
13912         * lib/mbmemcasecmp.c: New file.
13913         * modules/mbmemcasecmp: New file.
13914
13915 2009-03-09  Bruno Haible  <bruno@clisp.org>
13916
13917         Tests for module 'unicase/ulc-casecoll'.
13918         * modules/unicase/ulc-casecoll-tests: New file.
13919         * tests/unicase/test-ulc-casecoll1.sh: New file.
13920         * tests/unicase/test-ulc-casecoll2.sh: New file.
13921         * tests/unicase/test-ulc-casecoll.c: New file.
13922
13923         New module 'unicase/ulc-casecoll'.
13924         * lib/unicase.h (ulc_casecoll): New declaration.
13925         * lib/unicase/ulc-casecoll.c: New file.
13926         * modules/unicase/ulc-casecoll: New file.
13927
13928         New module 'unicase/ulc-casexfrm'.
13929         * lib/unicase.h (ulc_casexfrm): New declaration.
13930         * lib/unicase/ulc-casexfrm.c: New file.
13931         * modules/unicase/ulc-casexfrm: New file.
13932
13933 2009-03-09  Bruno Haible  <bruno@clisp.org>
13934
13935         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13936         invocations.
13937
13938         * m4/mbscasecmp.m4: Remove file.
13939         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13940         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13941
13942         * m4/mbscasestr.m4: Remove file.
13943         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13944         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13945
13946         * m4/mbschr.m4: Remove file.
13947         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13948         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13949
13950         * m4/mbscspn.m4: Remove file.
13951         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13952         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13953
13954         * m4/mbslen.m4: Remove file.
13955         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13956         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13957
13958         * m4/mbsncasecmp.m4: Remove file.
13959         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13960         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13961
13962         * m4/mbsnlen.m4: Remove file.
13963         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13964         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13965
13966         * m4/mbspbrk.m4: Remove file.
13967         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13968         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13969
13970         * m4/mbspcasecmp.m4: Remove file.
13971         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13972         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13973
13974         * m4/mbsrchr.m4: Remove file.
13975         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13976         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13977
13978         * m4/mbssep.m4: Remove file.
13979         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13980         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13981
13982         * m4/mbsspn.m4: Remove file.
13983         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13984         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13985
13986         * m4/mbsstr.m4: Remove file.
13987         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13988         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13989
13990         * m4/mbstok_r.m4: Remove file.
13991         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13992         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13993
13994         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13995
13996         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13997         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13998
13999         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14000
14001 2009-03-08  Bruno Haible  <bruno@clisp.org>
14002
14003         Tests for module 'unicase/ulc-casecmp'.
14004         * modules/unicase/ulc-casecmp-tests: New file.
14005         * tests/unicase/test-ulc-casecmp1.sh: New file.
14006         * tests/unicase/test-ulc-casecmp2.sh: New file.
14007         * tests/unicase/test-ulc-casecmp.c: New file.
14008
14009         New module 'unicase/ulc-casecmp'.
14010         * lib/unicase.h (ulc_casecmp): New declaration.
14011         * lib/unicase/ulc-casecmp.c: New file.
14012         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14013         'const SRC_UNIT *'.
14014         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14015         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14016         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14017         * modules/unicase/ulc-casecmp: New file.
14018
14019         Tests for module 'unicase/u32-is-cased'.
14020         * modules/unicase/u32-is-cased-tests: New file.
14021         * tests/unicase/test-u32-is-cased.c: New file.
14022
14023         Tests for module 'unicase/u16-is-cased'.
14024         * modules/unicase/u16-is-cased-tests: New file.
14025         * tests/unicase/test-u16-is-cased.c: New file.
14026
14027         Tests for module 'unicase/u8-is-cased'.
14028         * modules/unicase/u8-is-cased-tests: New file.
14029         * tests/unicase/test-u8-is-cased.c: New file.
14030         * tests/unicase/test-is-cased.h: New file.
14031
14032         New module 'unicase/u32-is-cased'.
14033         * lib/unicase/u32-is-cased.c: New file.
14034         * modules/unicase/u32-is-cased: New file.
14035
14036         New module 'unicase/u16-is-cased'.
14037         * lib/unicase/u16-is-cased.c: New file.
14038         * modules/unicase/u16-is-cased: New file.
14039
14040         New module 'unicase/u8-is-cased'.
14041         * lib/unicase/u8-is-cased.c: New file.
14042         * lib/unicase/u-is-cased.h: New file.
14043         * modules/unicase/u8-is-cased: New file.
14044
14045         Tests for module 'unicase/u32-is-casefolded'.
14046         * modules/unicase/u32-is-casefolded-tests: New file.
14047         * tests/unicase/test-u32-is-casefolded.c: New file.
14048
14049         Tests for module 'unicase/u16-is-casefolded'.
14050         * modules/unicase/u16-is-casefolded-tests: New file.
14051         * tests/unicase/test-u16-is-casefolded.c: New file.
14052
14053         Tests for module 'unicase/u8-is-casefolded'.
14054         * modules/unicase/u8-is-casefolded-tests: New file.
14055         * tests/unicase/test-u8-is-casefolded.c: New file.
14056         * tests/unicase/test-is-casefolded.h: New file.
14057
14058         New module 'unicase/u32-is-casefolded'.
14059         * lib/unicase/u32-is-casefolded.c: New file.
14060         * modules/unicase/u32-is-casefolded: New file.
14061
14062         New module 'unicase/u16-is-casefolded'.
14063         * lib/unicase/u16-is-casefolded.c: New file.
14064         * modules/unicase/u16-is-casefolded: New file.
14065
14066         New module 'unicase/u8-is-casefolded'.
14067         * lib/unicase/u8-is-casefolded.c: New file.
14068         * modules/unicase/u8-is-casefolded: New file.
14069
14070         Tests for module 'unicase/u32-is-titlecase'.
14071         * modules/unicase/u32-is-titlecase-tests: New file.
14072         * tests/unicase/test-u32-is-titlecase.c: New file.
14073
14074         Tests for module 'unicase/u16-is-titlecase'.
14075         * modules/unicase/u16-is-titlecase-tests: New file.
14076         * tests/unicase/test-u16-is-titlecase.c: New file.
14077
14078         Tests for module 'unicase/u8-is-titlecase'.
14079         * modules/unicase/u8-is-titlecase-tests: New file.
14080         * tests/unicase/test-u8-is-titlecase.c: New file.
14081         * tests/unicase/test-is-titlecase.h: New file.
14082
14083         New module 'unicase/u32-is-titlecase'.
14084         * lib/unicase/u32-is-titlecase.c: New file.
14085         * modules/unicase/u32-is-titlecase: New file.
14086
14087         New module 'unicase/u16-is-titlecase'.
14088         * lib/unicase/u16-is-titlecase.c: New file.
14089         * modules/unicase/u16-is-titlecase: New file.
14090
14091         New module 'unicase/u8-is-titlecase'.
14092         * lib/unicase/u8-is-titlecase.c: New file.
14093         * modules/unicase/u8-is-titlecase: New file.
14094
14095         Tests for module 'unicase/u32-is-lowercase'.
14096         * modules/unicase/u32-is-lowercase-tests: New file.
14097         * tests/unicase/test-u32-is-lowercase.c: New file.
14098
14099         Tests for module 'unicase/u16-is-lowercase'.
14100         * modules/unicase/u16-is-lowercase-tests: New file.
14101         * tests/unicase/test-u16-is-lowercase.c: New file.
14102
14103         Tests for module 'unicase/u8-is-lowercase'.
14104         * modules/unicase/u8-is-lowercase-tests: New file.
14105         * tests/unicase/test-u8-is-lowercase.c: New file.
14106         * tests/unicase/test-is-lowercase.h: New file.
14107
14108         New module 'unicase/u32-is-lowercase'.
14109         * lib/unicase/u32-is-lowercase.c: New file.
14110         * modules/unicase/u32-is-lowercase: New file.
14111
14112         New module 'unicase/u16-is-lowercase'.
14113         * lib/unicase/u16-is-lowercase.c: New file.
14114         * modules/unicase/u16-is-lowercase: New file.
14115
14116         New module 'unicase/u8-is-lowercase'.
14117         * lib/unicase/u8-is-lowercase.c: New file.
14118         * modules/unicase/u8-is-lowercase: New file.
14119
14120         Tests for module 'unicase/u32-is-uppercase'.
14121         * modules/unicase/u32-is-uppercase-tests: New file.
14122         * tests/unicase/test-u32-is-uppercase.c: New file.
14123
14124         Tests for module 'unicase/u16-is-uppercase'.
14125         * modules/unicase/u16-is-uppercase-tests: New file.
14126         * tests/unicase/test-u16-is-uppercase.c: New file.
14127
14128         Tests for module 'unicase/u8-is-uppercase'.
14129         * modules/unicase/u8-is-uppercase-tests: New file.
14130         * tests/unicase/test-u8-is-uppercase.c: New file.
14131         * tests/unicase/test-is-uppercase.h: New file.
14132
14133         New module 'unicase/u32-is-uppercase'.
14134         * lib/unicase/u32-is-uppercase.c: New file.
14135         * modules/unicase/u32-is-uppercase: New file.
14136
14137         New module 'unicase/u16-is-uppercase'.
14138         * lib/unicase/u16-is-uppercase.c: New file.
14139         * modules/unicase/u16-is-uppercase: New file.
14140
14141         New module 'unicase/u8-is-uppercase'.
14142         * lib/unicase/u8-is-uppercase.c: New file.
14143         * modules/unicase/u8-is-uppercase: New file.
14144
14145         New module 'unicase/u32-is-invariant'.
14146         * lib/unicase/u32-is-invariant.c: New file.
14147         * modules/unicase/u32-is-invariant: New file.
14148
14149         New module 'unicase/u16-is-invariant'.
14150         * lib/unicase/u16-is-invariant.c: New file.
14151         * modules/unicase/u16-is-invariant: New file.
14152
14153         New module 'unicase/u8-is-invariant'.
14154         * lib/unicase/u8-is-invariant.c: New file.
14155         * lib/unicase/invariant.h: New file.
14156         * lib/unicase/u-is-invariant.h: New file.
14157         * modules/unicase/u8-is-invariant: New file.
14158
14159         Tests for module 'unicase/u32-casecoll'.
14160         * modules/unicase/u32-casecoll-tests: New file.
14161         * tests/unicase/test-u32-casecoll.c: New file.
14162
14163         Tests for module 'unicase/u16-casecoll'.
14164         * modules/unicase/u16-casecoll-tests: New file.
14165         * tests/unicase/test-u16-casecoll.c: New file.
14166
14167         Tests for module 'unicase/u8-casecoll'.
14168         * modules/unicase/u8-casecoll-tests: New file.
14169         * tests/unicase/test-u8-casecoll.c: New file.
14170
14171         New module 'unicase/u32-casecoll'.
14172         * lib/unicase/u32-casecoll.c: New file.
14173         * modules/unicase/u32-casecoll: New file.
14174
14175         New module 'unicase/u16-casecoll'.
14176         * lib/unicase/u16-casecoll.c: New file.
14177         * modules/unicase/u16-casecoll: New file.
14178
14179         New module 'unicase/u8-casecoll'.
14180         * lib/unicase/u8-casecoll.c: New file.
14181         * lib/unicase/u-casecoll.h: New file.
14182         * modules/unicase/u8-casecoll: New file.
14183
14184         New module 'unicase/u32-casexfrm'.
14185         * lib/unicase/u32-casexfrm.c: New file.
14186         * modules/unicase/u32-casexfrm: New file.
14187
14188         New module 'unicase/u16-casexfrm'.
14189         * lib/unicase/u16-casexfrm.c: New file.
14190         * modules/unicase/u16-casexfrm: New file.
14191
14192         New module 'unicase/u8-casexfrm'.
14193         * lib/unicase/u8-casexfrm.c: New file.
14194         * lib/unicase/u-casexfrm.h: New file.
14195         * modules/unicase/u8-casexfrm: New file.
14196
14197         Tests for module 'unicase/u32-casecmp'.
14198         * modules/unicase/u32-casecmp-tests: New file.
14199         * tests/unicase/test-u32-casecmp.c: New file.
14200
14201         Tests for module 'unicase/u16-casecmp'.
14202         * modules/unicase/u16-casecmp-tests: New file.
14203         * tests/unicase/test-u16-casecmp.c: New file.
14204
14205         Tests for module 'unicase/u8-casecmp'.
14206         * modules/unicase/u8-casecmp-tests: New file.
14207         * tests/unicase/test-u8-casecmp.c: New file.
14208         * tests/unicase/test-casecmp.h: New file.
14209
14210         New module 'unicase/u32-casecmp'.
14211         * lib/unicase/u32-casecmp.c: New file.
14212         * modules/unicase/u32-casecmp: New file.
14213
14214         New module 'unicase/u16-casecmp'.
14215         * lib/unicase/u16-casecmp.c: New file.
14216         * modules/unicase/u16-casecmp: New file.
14217
14218         New module 'unicase/u8-casecmp'.
14219         * lib/unicase/u8-casecmp.c: New file.
14220         * lib/unicase/u-casecmp.h: New file.
14221         * modules/unicase/u8-casecmp: New file.
14222
14223         Tests for module 'unicase/u32-casefold'.
14224         * modules/unicase/u32-casefold-tests: New file.
14225         * tests/unicase/test-u32-casefold.c: New file.
14226
14227         Tests for module 'unicase/u16-casefold'.
14228         * modules/unicase/u16-casefold-tests: New file.
14229         * tests/unicase/test-u16-casefold.c: New file.
14230
14231         Tests for module 'unicase/u8-casefold'.
14232         * modules/unicase/u8-casefold-tests: New file.
14233         * tests/unicase/test-u8-casefold.c: New file.
14234
14235         New module 'unicase/u32-casefold'.
14236         * lib/unicase/u32-casefold.c: New file.
14237         * modules/unicase/u32-casefold: New file.
14238
14239         New module 'unicase/u16-casefold'.
14240         * lib/unicase/u16-casefold.c: New file.
14241         * modules/unicase/u16-casefold: New file.
14242
14243         New module 'unicase/u8-casefold'.
14244         * lib/unicase/u8-casefold.c: New file.
14245         * lib/unicase/u-casefold.h: New file.
14246         * modules/unicase/u8-casefold: New file.
14247
14248         New module 'unicase/tocasefold'.
14249         * lib/unicase/casefold.h: New file.
14250         * lib/unicase/tocasefold.c: New file.
14251         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14252         * modules/unicase/tocasefold: New file.
14253
14254         Tests for module 'unicase/u32-totitle'.
14255         * modules/unicase/u32-totitle-tests: New file.
14256         * tests/unicase/test-u32-totitle.c: New file.
14257
14258         Tests for module 'unicase/u16-totitle'.
14259         * modules/unicase/u16-totitle-tests: New file.
14260         * tests/unicase/test-u16-totitle.c: New file.
14261
14262         Tests for module 'unicase/u8-totitle'.
14263         * modules/unicase/u8-totitle-tests: New file.
14264         * tests/unicase/test-u8-totitle.c: New file.
14265
14266         New module 'unicase/u32-totitle'.
14267         * lib/unicase/u32-totitle.c: New file.
14268         * modules/unicase/u32-totitle: New file.
14269
14270         New module 'unicase/u16-totitle'.
14271         * lib/unicase/u16-totitle.c: New file.
14272         * modules/unicase/u16-totitle: New file.
14273
14274         New module 'unicase/u8-totitle'.
14275         * lib/unicase/u8-totitle.c: New file.
14276         * lib/unicase/u-totitle.h: New file.
14277         * modules/unicase/u8-totitle: New file.
14278
14279         Tests for module 'unicase/u32-tolower'.
14280         * modules/unicase/u32-tolower-tests: New file.
14281         * tests/unicase/test-u32-tolower.c: New file.
14282
14283         Tests for module 'unicase/u16-tolower'.
14284         * modules/unicase/u16-tolower-tests: New file.
14285         * tests/unicase/test-u16-tolower.c: New file.
14286
14287         Tests for module 'unicase/u8-tolower'.
14288         * modules/unicase/u8-tolower-tests: New file.
14289         * tests/unicase/test-u8-tolower.c: New file.
14290
14291         New module 'unicase/u32-tolower'.
14292         * lib/unicase/u32-tolower.c: New file.
14293         * modules/unicase/u32-tolower: New file.
14294
14295         New module 'unicase/u16-tolower'.
14296         * lib/unicase/u16-tolower.c: New file.
14297         * modules/unicase/u16-tolower: New file.
14298
14299         New module 'unicase/u8-tolower'.
14300         * lib/unicase/u8-tolower.c: New file.
14301         * modules/unicase/u8-tolower: New file.
14302
14303         Tests for module 'unicase/u32-toupper'.
14304         * modules/unicase/u32-toupper-tests: New file.
14305         * tests/unicase/test-u32-toupper.c: New file.
14306
14307         Tests for module 'unicase/u16-toupper'.
14308         * modules/unicase/u16-toupper-tests: New file.
14309         * tests/unicase/test-u16-toupper.c: New file.
14310
14311         Tests for module 'unicase/u8-toupper'.
14312         * modules/unicase/u8-toupper-tests: New file.
14313         * tests/unicase/test-u8-toupper.c: New file.
14314
14315         New module 'unicase/u32-toupper'.
14316         * lib/unicase/u32-toupper.c: New file.
14317         * modules/unicase/u32-toupper: New file.
14318
14319         New module 'unicase/u16-toupper'.
14320         * lib/unicase/u16-toupper.c: New file.
14321         * modules/unicase/u16-toupper: New file.
14322
14323         New module 'unicase/u8-toupper'.
14324         * lib/unicase/u8-toupper.c: New file.
14325         * modules/unicase/u8-toupper: New file.
14326
14327         New module 'unicase/u32-casemap'.
14328         * lib/unicase/u32-casemap.c: New file.
14329         * modules/unicase/u32-casemap: New file.
14330
14331         New module 'unicase/u16-casemap'.
14332         * lib/unicase/u16-casemap.c: New file.
14333         * modules/unicase/u16-casemap: New file.
14334
14335         New module 'unicase/u8-casemap'.
14336         * lib/unicase/unicasemap.h: New file.
14337         * lib/unicase/u8-casemap.c: New file.
14338         * lib/unicase/u-casemap.h: New file.
14339         * modules/unicase/u8-casemap: New file.
14340
14341         New module 'unicase/special-casing'.
14342         * lib/unicase/special-casing.h: New file.
14343         * lib/unicase/special-casing.c: New file.
14344         * lib/unicase/special-casing-table.gperf: New file, generated by
14345         gen-uni-tables.c.
14346         * modules/unicase/special-casing: New file.
14347
14348         Tests for module 'unicase/locale-language'.
14349         * modules/unicase/locale-language-tests: New file.
14350         * tests/unicase/test-locale-language.sh: New file.
14351         * tests/unicase/test-locale-language.c: New file.
14352
14353         New module 'unicase/locale-language'.
14354         * lib/unicase/locale-language.c: New file.
14355         * lib/unicase/locale-languages.gperf: New file.
14356         * modules/unicase/locale-language: New file.
14357
14358         Generate more tables for case conversion and case folding.
14359         * lib/gen-uni-tables.c (SCC_*): New enum items.
14360         (struct special_casing_rule): New type.
14361         (casing_rules, num_casing_rules, allocated_casing_rules): New
14362         variables.
14363         (add_casing_rule, fill_casing_rules): New functions.
14364         (struct casefold_rule): New type.
14365         (casefolding_rules, num_casefolding_rules,
14366         allocated_casefolding_rules): New variables.
14367         (fill_casefolding_rules): New function.
14368         (unicode_casefold): New variable.
14369         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14370         sort_casing_rules, output_casing_rules): New functions.
14371         (main): Accept to more arguments: SpecialCasing.txt and
14372         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14373         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14374         Output mapping for casefolding.
14375
14376         * lib/unicase.h: Include stdbool.h, uninorm.h.
14377         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14378         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14379         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14380         arguments.
14381         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14382         resultp arguments.
14383         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14384         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14385         resultp arguments.
14386         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14387         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14388         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14389         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14390         declarations.
14391         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14392
14393 2009-03-08  Bruno Haible  <bruno@clisp.org>
14394
14395         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14396         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14397         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14398         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14399
14400 2009-03-07  Bruno Haible  <bruno@clisp.org>
14401
14402         Adjust u*_normcmp, u*_normcoll API.
14403         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14404         u16_normcoll, u32_normcoll): Change failure conventions.
14405         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14406         errno and return -1.
14407         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14408
14409 2009-03-07  Bruno Haible  <bruno@clisp.org>
14410
14411         Tests for module 'uninorm/u32-normcoll'.
14412         * modules/uninorm/u32-normcoll-tests: New file.
14413         * tests/uninorm/test-u32-normcoll.c: New file.
14414
14415         Tests for module 'uninorm/u16-normcoll'.
14416         * modules/uninorm/u16-normcoll-tests: New file.
14417         * tests/uninorm/test-u16-normcoll.c: New file.
14418
14419         Tests for module 'uninorm/u8-normcoll'.
14420         * modules/uninorm/u8-normcoll-tests: New file.
14421         * tests/uninorm/test-u8-normcoll.c: New file.
14422
14423 2009-03-07  Bruno Haible  <bruno@clisp.org>
14424
14425         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14426         tests/uninorm/test-u32-normcmp.c.
14427         * tests/uninorm/test-u32-normcmp.c: Include it.
14428         (test_nonascii): New function, extracted from main. Add some more
14429         tests.
14430         (main): Invoke test_ascii and test_nonascii.
14431         * modules/uninorm/u32-normcmp-tests (Files): Add
14432         tests/uninorm/test-u32-normcmp.h.
14433         (Depends-on): Remove uninorm/u32-normcmp.
14434
14435         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14436         tests/uninorm/test-u16-normcmp.c.
14437         * tests/uninorm/test-u16-normcmp.c: Include it.
14438         (test_nonascii): New function, extracted from main. Add some more
14439         tests.
14440         (main): Invoke test_ascii and test_nonascii.
14441         * modules/uninorm/u16-normcmp-tests (Files): Add
14442         tests/uninorm/test-u16-normcmp.h.
14443         (Depends-on): Remove uninorm/u16-normcmp.
14444
14445         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14446         tests/uninorm/test-u8-normcmp.c.
14447         * tests/uninorm/test-u8-normcmp.c: Include it.
14448         (test_nonascii): New function, extracted from main. Add some more
14449         tests.
14450         (main): Invoke test_ascii and test_nonascii.
14451         * modules/uninorm/u8-normcmp-tests (Files): Add
14452         tests/uninorm/test-u8-normcmp.h.
14453         (Depends-on): Remove uninorm/u8-normcmp.
14454
14455 2009-03-07  Bruno Haible  <bruno@clisp.org>
14456
14457         New module 'uninorm/u32-normcoll'.
14458         * lib/uninorm/u32-normcoll.c: New file.
14459         * modules/uninorm/u32-normcoll: New file.
14460
14461         New module 'uninorm/u16-normcoll'.
14462         * lib/uninorm/u16-normcoll.c: New file.
14463         * modules/uninorm/u16-normcoll: New file.
14464
14465         New module 'uninorm/u8-normcoll'.
14466         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14467         declarations.
14468         * lib/uninorm/u8-normcoll.c: New file.
14469         * lib/uninorm/u-normcoll.h: New file.
14470         * modules/uninorm/u8-normcoll: New file.
14471
14472         New module 'uninorm/u32-normxfrm'.
14473         * lib/uninorm/u32-normxfrm.c: New file.
14474         * modules/uninorm/u32-normxfrm: New file.
14475
14476         New module 'uninorm/u16-normxfrm'.
14477         * lib/uninorm/u16-normxfrm.c: New file.
14478         * modules/uninorm/u16-normxfrm: New file.
14479
14480         New module 'uninorm/u8-normxfrm'.
14481         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14482         declarations.
14483         * lib/uninorm/u8-normxfrm.c: New file.
14484         * lib/uninorm/u-normxfrm.h: New file.
14485         * modules/uninorm/u8-normxfrm: New file.
14486
14487 2009-03-07  Bruno Haible  <bruno@clisp.org>
14488
14489         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14490         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14491         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14492
14493 2009-03-07  Bruno Haible  <bruno@clisp.org>
14494
14495         New module 'memxfrm'.
14496         * lib/memxfrm.h: New file.
14497         * lib/memxfrm.c: New file.
14498         * modules/memxfrm: New file.
14499
14500 2009-03-07  Bruno Haible  <bruno@clisp.org>
14501
14502         New module 'memcmp2'.
14503         * lib/memcmp2.h: New file.
14504         * lib/memcmp2.c: New file.
14505         * modules/memcmp2: New file.
14506
14507 2009-03-07  Bruno Haible  <bruno@clisp.org>
14508
14509         Tests for module 'uninorm/decomposing-form'.
14510         * modules/uninorm/decomposing-form-tests: New file.
14511         * tests/uninorm/test-decomposing-form.c: New file.
14512
14513         New module 'uninorm/decomposing-form'.
14514         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14515         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14516         Add 'decomposing_variant' field.
14517         * lib/uninorm/decomposing-form.c: New file.
14518         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14519         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14520         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14521         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14522         * modules/uninorm/decomposing-form: New file.
14523         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14524         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14525
14526 2009-03-07  Bruno Haible  <bruno@clisp.org>
14527
14528         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14529         strings.
14530
14531 2009-03-06  Bruno Haible  <bruno@clisp.org>
14532
14533         Tests for module 'uninorm/u32-normcmp'.
14534         * tests/uninorm/test-u32-normcmp.c: New file.
14535         * modules/uninorm/u32-normcmp-tests: New file.
14536
14537         Tests for module 'uninorm/u16-normcmp'.
14538         * tests/uninorm/test-u16-normcmp.c: New file.
14539         * modules/uninorm/u16-normcmp-tests: New file.
14540
14541         Tests for module 'uninorm/u8-normcmp'.
14542         * tests/uninorm/test-u8-normcmp.c: New file.
14543         * modules/uninorm/u8-normcmp-tests: New file.
14544
14545         New module 'uninorm/u32-normcmp'.
14546         * lib/uninorm/u32-normcmp.c: New file.
14547         * modules/uninorm/u32-normcmp: New file.
14548
14549         New module 'uninorm/u16-normcmp'.
14550         * lib/uninorm/u16-normcmp.c: New file.
14551         * modules/uninorm/u16-normcmp: New file.
14552
14553         New module 'uninorm/u8-normcmp'.
14554         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14555         declarations.
14556         * lib/uninorm/u8-normcmp.c: New file.
14557         * lib/uninorm/u-normcmp.h: New file.
14558         * modules/uninorm/u8-normcmp: New file.
14559
14560 2009-03-06  Bruno Haible  <bruno@clisp.org>
14561
14562         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14563         Reported by Eric Blake.
14564
14565 2009-03-06  Eric Blake  <ebb9@byu.net>
14566             Bruno Haible  <bruno@clisp.org>
14567
14568         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14569         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14570         condition.
14571         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14572         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14573         condition.
14574         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14575
14576 2009-03-06  Eric Blake  <ebb9@byu.net>
14577
14578         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14579         to avoid compiler warnings.
14580         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14581
14582 2009-03-05  Bruno Haible  <bruno@clisp.org>
14583
14584         * tests/test-ftell.c (main): Disable test beyond end of file on
14585         FreeMiNT.
14586         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14587
14588 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14589
14590         * lib/filevercmp.c: Move hidden files up in ordering.
14591         * tests/test-filevercmp.c: Add tests for hidden files.
14592
14593 2009-03-04  Bruno Haible  <bruno@clisp.org>
14594
14595         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14596         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14597         AM_CFLAGS.
14598         Reported by Simon Josefsson.
14599
14600 2009-03-03  Bruno Haible  <bruno@clisp.org>
14601
14602         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14603         Reported by Simon Josefsson.
14604
14605         * doc/ld-version-script.texi: Update node reference.
14606
14607 2009-03-03  Bruno Haible  <bruno@clisp.org>
14608
14609         * modules/visibility (License): Change to 'unlimited'.
14610         Suggested by Simon Josefsson.
14611
14612 2009-03-03  Jim Meyering  <meyering@redhat.com>
14613
14614         unlinkdir: cannot_unlink_dir may modify process state
14615         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14616         it's neither thread-safe nor appropriate for use in a library.
14617
14618 2009-03-03  Eric Blake  <ebb9@byu.net>
14619
14620         test-closein: silence test under Darwin
14621         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14622         care if it dies from EPIPE or EBADF.
14623
14624 2009-03-03  Bruno Haible  <bruno@clisp.org>
14625
14626         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14627         earlier.
14628         * doc/visibility.texi: Fix @node and @section.
14629
14630 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14631
14632         * doc/gnulib.texi: Link to sections for ld version script and
14633         visibility.
14634         * doc/visibility.texi: Add @node and @section.
14635         * modules/ld-version-script: New module.
14636         * m4/ld-version-script.m4: New file.
14637         * doc/ld-version-script.texi: New file.
14638
14639 2009-03-02  David Lutterkort  <lutter@redhat.com>
14640
14641         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14643
14644 2009-03-02  Bruno Haible  <bruno@clisp.org>
14645
14646         * doc/visibility.texi: Mention libtool's -export-symbols option.
14647
14648 2009-03-02  Jim Meyering  <meyering@redhat.com>
14649
14650         announce-gen: new option: --no-print-checksums
14651         * build-aux/announce-gen (usage): Describe it.
14652         (print_checksums): Print a newline here, not in the [*] footnote.
14653         (main): Honor it.
14654
14655 2009-03-01  Bruno Haible  <bruno@clisp.org>
14656
14657         Use socklen_t in the native Windows replacements prototypes.
14658         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14659         instead of 'int'.
14660         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14661         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14662         * modules/getsockopt (Depends-on): Add socklen.
14663         * modules/setsockopt (Depends-on): Add socklen.
14664
14665 2009-03-01  Bruno Haible  <bruno@clisp.org>
14666
14667         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14668         least 4.2.
14669
14670 2009-03-01  Eric Blake  <ebb9@byu.net>
14671             Bruno Haible  <bruno@clisp.org>
14672
14673         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14674         error messages.
14675         * lib/wait-process.c (wait_subprocess): Omit error message about
14676         deadly signal sent to the child of termsigp != NULL.
14677
14678 2009-03-01  Eric Blake  <ebb9@byu.net>
14679
14680         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14681
14682 2009-03-01  Bruno Haible  <bruno@clisp.org>
14683
14684         Avoid a gcc warning.
14685         * tests/test-sched.c (b): Make global.
14686         Reported by Eric Blake.
14687
14688 2009-01-19  Martin Lambers  <marlam@marlam.de>
14689
14690         Provide POSIX semantics for socket timeout options on W32.
14691         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14692         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14693         * modules/setsockopt: Depend on sys_time module for struct timeval.
14694         * modules/getsockopt: Depend on sys_time module for struct timeval.
14695
14696 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14697
14698         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14699         __USE_GNU, for consistency with netdb.in.h.
14700         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14701
14702 2009-03-01  Bruno Haible  <bruno@clisp.org>
14703
14704         More support for FreeMiNT.
14705         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14706         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14707
14708 2009-03-01  Bruno Haible  <bruno@clisp.org>
14709
14710         More support for FreeMiNT.
14711         * lib/fpurge.c (fpurge): Correct last commit.
14712         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14713
14714 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14715
14716         Fix unportable awk script in vc-list-files.
14717         * build-aux/vc-list-files: In the replacement awk script, use
14718         substr with a second argument of 1, not zero.
14719         Report by Simon Josefsson.
14720
14721 2009-02-28  Bruno Haible  <bruno@clisp.org>
14722
14723         More support for FreeMiNT.
14724         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14725         to FreeMiNT today.
14726         * lib/fwriting.c (fwriting): Likewise.
14727         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14728
14729 2009-02-28  Bruno Haible  <bruno@clisp.org>
14730
14731         * tests/test-freadseek.c (main): Disable test beyond end of file on
14732         FreeMiNT.
14733         * tests/test-ftello.c (main): Likewise.
14734         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14735
14736 2009-02-28  Bruno Haible  <bruno@clisp.org>
14737
14738         Add tentative support for FreeMiNT.
14739         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14740         * lib/fpurge.c (fpurge): Likewise.
14741         * lib/freadable.c (freadable): Likewise.
14742         * lib/freading.c (freading): Likewise.
14743         * lib/freadptr.c (freadptr): Likewise.
14744         * lib/freadseek.c (freadptrinc): Likewise.
14745         * lib/fseeko.c (rpl_fseeko): Likewise.
14746         * lib/fseterr.c (fseterr): Likewise.
14747         * lib/fwritable.c (fwritable): Likewise.
14748         * lib/fwriting.c (fwriting): Likewise.
14749         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14750         Hourihane.
14751         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14752
14753 2009-02-28  Bruno Haible  <bruno@clisp.org>
14754
14755         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14756         SIGCHLD.
14757         Reported by Jim Meyering.
14758
14759 2009-02-28  Bruno Haible  <bruno@clisp.org>
14760
14761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14762         Mention the results of these tests on various platforms.
14763         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14764         order.
14765         * doc/posix-functions/printf.texi: Likewise.
14766         * doc/posix-functions/snprintf.texi: Likewise.
14767         * doc/posix-functions/sprintf.texi: Likewise.
14768         * doc/posix-functions/vfprintf.texi: Likewise.
14769         * doc/posix-functions/vprintf.texi: Likewise.
14770         * doc/posix-functions/vsnprintf.texi: Likewise.
14771         * doc/posix-functions/vsprintf.texi: Likewise.
14772         * doc/glibc-functions/obstack_printf.texi: Likewise.
14773         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14774
14775 2009-02-28  Bruno Haible  <bruno@clisp.org>
14776
14777         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14778         Reported by Loïc Minier <lool@dooz.org>.
14779
14780 2009-02-27  Bruno Haible  <bruno@clisp.org>
14781
14782         * gnulib-tool (func_import): Make the sed expression used to create the
14783         sed script for updating the .gitignore file POSIX compliant.
14784         Reported by Eric Blake.
14785
14786 2009-02-27  Bruno Haible  <bruno@clisp.org>
14787
14788         * gnulib-tool (sed): Don't alias as "sed --posix".
14789         Reported by Eric Blake.
14790
14791 2009-02-27  Bruno Haible  <bruno@clisp.org>
14792
14793         Avoid test link errors.
14794         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14795         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14796         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14797         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14799
14800 2009-02-27  Bruno Haible  <bruno@clisp.org>
14801
14802         Avoid spurious "(cached)" in configure output.
14803         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14804         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14805         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14806         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14807         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14808         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14809         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14810         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14811         Reported by Eric Blake.
14812
14813 2009-02-27  Eric Blake  <ebb9@byu.net>
14814
14815         printf: fix regression in previous patch
14816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14817
14818 2009-02-27  Bruno Haible  <bruno@clisp.org>
14819
14820         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14821         value.
14822         * lib/stdint.in.h: Likewise.
14823         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14824
14825 2009-02-27  Eric Blake  <ebb9@byu.net>
14826
14827         doc: mention more functions added in cygwin 1.7.0
14828         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14829         addition.
14830         * doc/posix-functions/open_wmemstream.texi: Likewise.
14831         * doc/posix-functions/wcsnlen.texi: Likewise.
14832         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14833         * doc/posix-functions/wcstod.texi: Likewise.
14834         * doc/posix-functions/wcstof.texi: Likewise.
14835         * doc/posix-functions/wcstoimax.texi: Likewise.
14836         * doc/posix-functions/wcstok.texi: Likewise.
14837         * doc/posix-functions/wcstoumax.texi: Likewise.
14838
14839         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14841         * doc/posix-functions/fprintf.texi: Update.
14842         * doc/posix-functions/printf.texi: Update.
14843         * doc/posix-functions/snprintf.texi: Update.
14844         * doc/posix-functions/sprintf.texi: Update.
14845         * doc/posix-functions/vfprintf.texi: Update.
14846         * doc/posix-functions/vprintf.texi: Update.
14847         * doc/posix-functions/vsnprintf.texi: Update.
14848         * doc/posix-functions/vsprintf.texi: Update.
14849         * doc/glibc-functions/obstack_printf.texi: Update.
14850         * doc/glibc-functions/obstack_vprintf.texi: Update.
14851
14852 2009-02-26  Eric Blake  <ebb9@byu.net>
14853
14854         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14855         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14856         compilation bug by using runtime conversion.
14857         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14858         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14859         * modules/ceill-tests (Files): Use nan.h.
14860         * modules/floorl-tests (Files): Likewise.
14861         * modules/frexpl-tests (Files): Likewise.
14862         * modules/isnanl-tests (Files): Likewise.
14863         * modules/ldexpl-tests (Files): Likewise.
14864         * modules/roundl-tests (Files): Likewise.
14865         * modules/truncl-tests (Files): Likewise.
14866         * tests/test-ceill.c (main): Use a working NaN.
14867         * tests/test-floorl.c (main): Likewise.
14868         * tests/test-frexpl.c (main): Likewise.
14869         * tests/test-isnan.c (test_long_double): Likewise.
14870         * tests/test-isnanl.h (main): Likewise.
14871         * tests/test-ldexpl.h (main): Likewise.
14872         * tests/test-roundl.h (main): Likewise.
14873         * tests/test-truncl.h (main): Likewise.
14874         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14875
14876 2009-02-26  Eric Blake  <ebb9@byu.net>
14877             Bruno Haible  <bruno@clisp.org>
14878
14879         Work around a *printf bug with %ls on Solaris.
14880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14881         precision is specified, sprintf stops converting the wide string
14882         argument when the number of bytes that have been produced by this
14883         conversion equals or exceeds the precision.
14884         * doc/posix-functions/fprintf.texi: Update.
14885         * doc/posix-functions/printf.texi: Update.
14886         * doc/posix-functions/snprintf.texi: Update.
14887         * doc/posix-functions/sprintf.texi: Update.
14888         * doc/posix-functions/vfprintf.texi: Update.
14889         * doc/posix-functions/vprintf.texi: Update.
14890         * doc/posix-functions/vsnprintf.texi: Update.
14891         * doc/posix-functions/vsprintf.texi: Update.
14892         * doc/glibc-functions/obstack_printf.texi: Update.
14893         * doc/glibc-functions/obstack_vprintf.texi: Update.
14894
14895 2009-02-26  Eric Blake  <ebb9@byu.net>
14896
14897         stdlib: favor compiler check of random.h
14898         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14899         to avoid an ObjC random.h installed by Swarm.
14900
14901 2009-02-26  Bruno Haible  <bruno@clisp.org>
14902
14903         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14904         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14905         Reported by Gary V. Vaughan <gary@gnu.org>.
14906
14907 2009-02-26  Bruno Haible  <bruno@clisp.org>
14908
14909         Fix *printf behaviour regarding the %ls directive.
14910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14911         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14912         NEED_PRINTF_DIRECTIVE_LS.
14913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14914         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14916         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14917         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14918         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14919         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14924         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14928         * doc/posix-functions/fprintf.texi: Update.
14929         * doc/posix-functions/printf.texi: Update.
14930         * doc/posix-functions/snprintf.texi: Update.
14931         * doc/posix-functions/sprintf.texi: Update.
14932         * doc/posix-functions/vfprintf.texi: Update.
14933         * doc/posix-functions/vprintf.texi: Update.
14934         * doc/posix-functions/vsnprintf.texi: Update.
14935         * doc/posix-functions/vsprintf.texi: Update.
14936         * doc/glibc-functions/obstack_printf.texi: Update.
14937         * doc/glibc-functions/obstack_vprintf.texi: Update.
14938         Reported by Eric Blake.
14939
14940 2009-02-25  Bruno Haible  <bruno@clisp.org>
14941
14942         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14943         with known value.
14944         Reported by Gary V. Vaughan <gary@gnu.org>.
14945
14946 2009-02-25  Bruno Haible  <bruno@clisp.org>
14947
14948         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14949         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14950         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14951         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14952         Reported by Gary V. Vaughan <gary@gnu.org>.
14953
14954 2009-02-25  Bruno Haible  <bruno@clisp.org>
14955
14956         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14957         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14958         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14959         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14960         Reported by Gary V. Vaughan <gary@gnu.org>.
14961
14962 2009-02-25  Eric Blake  <ebb9@byu.net>
14963
14964         tests: skip fseek/ftell tests if ungetc is broken
14965         * m4/ungetc.m4: New file.
14966         * modules/fseek-tests: Split test, so ungetc dependency is
14967         separate from rest of test.
14968         * modules/fseeko-tests: Likewise.
14969         * modules/ftell-tests: Likewise.
14970         * modules/ftello-tests: Likewise.
14971         * tests/test-fseek.c (main): Isolate ungetc dependency.
14972         * tests/test-fseeko.c (main): Likewise.
14973         * tests/test-ftell.c (main): Likewise.
14974         * tests/test-ftello.c (main): Likewise.
14975         * tests/test-fseek2.sh: New file.
14976         * tests/test-fseeko2.sh: Likewise.
14977         * tests/test-ftell2.sh: Likewise.
14978         * tests/test-ftello2.sh: Likewise.
14979
14980 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14981
14982         test-getaddrinfo: fix usage of skip return code 77
14983         * tests/test-gettaddrinfo.c: Return skip code 77 only
14984         for first occurance of skip (4x77 is not 77)
14985
14986 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14987
14988         strtod: avoid C99 decl-after-statement
14989         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14990
14991 2009-02-24  Eric Blake  <ebb9@byu.net>
14992
14993         strtod: detect HP-UX 11.31 bug
14994         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14995         Reported by Gary V. Vaughan.
14996
14997 2009-02-23  Bruno Haible  <bruno@clisp.org>
14998
14999         Fix invalid read past end of memory block.
15000         * lib/vasnprintf.c (DCHAR_SET): Define.
15001         (local_wcslen): Define only when needed.
15002         (local_strnlen, local_wcsnlen): New functions.
15003         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15004         directives that involve a conversion ourselves.
15005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15006         wcsnlen, mbrtowc, wcrtomb.
15007         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15008         * tests/test-vasprintf-posix.c (test_function): Likewise.
15009         * tests/test-snprintf-posix.h (test_function): Likewise.
15010         * tests/test-sprintf-posix.h (test_function): Likewise.
15011         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15012
15013 2009-02-22  Bruno Haible  <bruno@clisp.org>
15014
15015         Implement new clarified decomposition of Hangul syllables.
15016         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15017         of type LTV, return only a pairwise decomposition.
15018         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15019         Likewise.
15020         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15021         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15022         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15023
15024 2009-02-22  Bruno Haible  <bruno@clisp.org>
15025
15026         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15027         zero-length results and shrink excess allocated memory.
15028         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15029         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15030         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15031         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15032         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15033         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15034         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15035         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15036         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15037         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15038         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15039         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15040
15041 2009-02-21  Bruno Haible  <bruno@clisp.org>
15042
15043         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15044         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15045         spaces after a period. Put a space between a macro name and its
15046         argument list. Trivial rewordings.
15047         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15048         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15049         (main): Return 0 explicitly.
15050
15051 2009-02-21  Bruno Haible  <bruno@clisp.org>
15052
15053         Tests for module 'uninorm/filter'.
15054         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15055         * modules/uninorm/filter-tests: New file.
15056
15057         New module 'uninorm/filter'.
15058         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15059         uninorm_filter_flush, uninorm_filter_free): New declarations.
15060         * lib/uninorm/uninorm-filter.c: New file.
15061         * modules/uninorm/filter: New file.
15062
15063 2009-02-21  Bruno Haible  <bruno@clisp.org>
15064
15065         Tests for module 'uninorm/nfkc'.
15066         * tests/uninorm/test-nfkc.c: New file.
15067         * tests/uninorm/test-u8-nfkc.c: New file.
15068         * tests/uninorm/test-u16-nfkc.c: New file.
15069         * tests/uninorm/test-u32-nfkc.c: New file.
15070         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15071         * tests/uninorm/test-u32-nfkc-big.c: New file.
15072         * modules/uninorm/nfkc-tests: New file.
15073
15074         New module 'uninorm/nfkc'.
15075         * lib/uninorm/nfkc.c: New file.
15076         * modules/uninorm/nfkc: New file.
15077
15078         Tests for module 'uninorm/nfkd'.
15079         * tests/uninorm/test-nfkd.c: New file.
15080         * tests/uninorm/test-u8-nfkd.c: New file.
15081         * tests/uninorm/test-u16-nfkd.c: New file.
15082         * tests/uninorm/test-u32-nfkd.c: New file.
15083         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15084         * tests/uninorm/test-u32-nfkd-big.c: New file.
15085         * modules/uninorm/nfkd-tests: New file.
15086
15087         New module 'uninorm/nfkd'.
15088         * lib/uninorm/nfkd.c: New file.
15089         * modules/uninorm/nfkd: New file.
15090
15091         Tests for module 'uninorm/nfc'.
15092         * tests/uninorm/test-nfc.c: New file.
15093         * tests/uninorm/test-u8-nfc.c: New file.
15094         * tests/uninorm/test-u16-nfc.c: New file.
15095         * tests/uninorm/test-u32-nfc.c: New file.
15096         * tests/uninorm/test-u32-nfc-big.sh: New file.
15097         * tests/uninorm/test-u32-nfc-big.c: New file.
15098         * modules/uninorm/nfc-tests: New file.
15099
15100         New module 'uninorm/nfc'.
15101         * lib/uninorm/nfc.c: New file.
15102         * modules/uninorm/nfc: New file.
15103
15104         Tests for module 'uninorm/nfd'.
15105         * tests/uninorm/test-nfd.c: New file.
15106         * tests/uninorm/test-u8-nfd.c: New file.
15107         * tests/uninorm/test-u16-nfd.c: New file.
15108         * tests/uninorm/test-u32-nfd.c: New file.
15109         * tests/uninorm/test-u32-nfd-big.sh: New file.
15110         * tests/uninorm/test-u32-nfd-big.c: New file.
15111         * tests/uninorm/test-u32-normalize-big.h: New file.
15112         * tests/uninorm/test-u32-normalize-big.c: New file.
15113         * tests/uninorm/NormalizationTest.txt: New file, created from
15114         Unicode 5.1.0 NormalizationTest.txt.
15115         * modules/uninorm/nfd-tests: New file.
15116
15117         New module 'uninorm/nfd'.
15118         * lib/uninorm/nfd.c: New file.
15119         * modules/uninorm/nfd: New file.
15120
15121         New module 'uninorm/u32-normalize'.
15122         * lib/uninorm/u32-normalize.c: New file.
15123         * modules/uninorm/u32-normalize: New file.
15124
15125         New module 'uninorm/u16-normalize'.
15126         * lib/uninorm/u16-normalize.c: New file.
15127         * modules/uninorm/u16-normalize: New file.
15128
15129         New module 'uninorm/u8-normalize'.
15130         * lib/uninorm/u8-normalize.c: New file.
15131         * lib/uninorm/normalize-internal.h: New file.
15132         * lib/uninorm/u-normalize-internal.h: New file.
15133         * modules/uninorm/u8-normalize: New file.
15134
15135         New module 'uninorm/decompose-internal'.
15136         * lib/uninorm/decompose-internal.c: New file.
15137         * modules/uninorm/decompose-internal: New file.
15138
15139         Tests for module 'uninorm/composition'.
15140         * tests/uninorm/test-composition.c: New file.
15141         * modules/uninorm/composition-tests: New file.
15142
15143         New module 'uninorm/composition'.
15144         * lib/uninorm/composition.c: New file.
15145         * lib/uninorm/composition-table.gperf: New file, generated by
15146         gen-uni-tables.
15147         * modules/uninorm/composition: New file.
15148
15149         Tests for module 'uninorm/compat-decomposition'.
15150         * tests/uninorm/test-compat-decomposition.c: New file.
15151         * modules/uninorm/compat-decomposition-tests: New file.
15152
15153         New module 'uninorm/compat-decomposition'.
15154         * lib/uninorm/decompose-internal.h: New file.
15155         * lib/uninorm/compat-decomposition.c: New file.
15156         * modules/uninorm/compat-decomposition: New file.
15157
15158         Tests for module 'uninorm/canonical-decomposition'.
15159         * tests/uninorm/test-canonical-decomposition.c: New file.
15160         * modules/uninorm/canonical-decomposition-tests: New file.
15161
15162         New module 'uninorm/canonical-decomposition'.
15163         * lib/uninorm/canonical-decomposition.c: New file.
15164         * modules/uninorm/canonical-decomposition: New file.
15165
15166         Tests for module 'uninorm/decomposition'.
15167         * tests/uninorm/test-decomposition.c: New file.
15168         * modules/uninorm/decomposition-tests: New file.
15169
15170         New module 'uninorm/decomposition'.
15171         * lib/uninorm/decomposition.c: New file.
15172         * modules/uninorm/decomposition: New file.
15173
15174         New module 'uninorm/decomposition-table'.
15175         * lib/uninorm/decomposition-table.h: New file.
15176         * lib/uninorm/decomposition-table.c: New file.
15177         * lib/uninorm/decomposition-table1.h: New file, generated by
15178         gen-uni-tables.
15179         * lib/uninorm/decomposition-table2.h: New file, generated by
15180         gen-uni-tables.
15181         * modules/uninorm/decomposition-table: New file.
15182
15183         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15184         (UC_DECOMP_*): New enumeration items.
15185         (get_decomposition): New function.
15186         (struct decomp_table): New type.
15187         (output_decomposition, output_decomposition_tables): New functions.
15188         (unicode_composition_exclusions): New variable.
15189         (fill_composition_exclusions, debug_output_composition_tables): New
15190         functions.
15191         (main): Accept one more argument. Invoke fill_composition_exclusions.
15192         Output decomposition and composition tables.
15193
15194         New module 'uninorm/base'.
15195         * lib/uninorm.h: New file.
15196         * lib/unictype.h: Update comment.
15197         * modules/uninorm/base: New file.
15198
15199 2009-02-21  David Lutterkort  <lutter@redhat.com>
15200
15201         Tests for module 'safe-alloc'.
15202         * tests/test-safe-alloc.c: New file.
15203         * modules/safe-alloc-tests: New file.
15204
15205         New module 'safe-alloc'.
15206         * lib/safe-alloc.h: New file.
15207         * lib/safe-alloc.c: New file.
15208         * m4/safe-alloc.m4: New file.
15209         * modules/safe-alloc: New file.
15210         * doc/safe-alloc.texi: New file.
15211         * doc/gnulib.texi: Include it.
15212         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15213         safe-alloc.
15214
15215 2009-02-18  Bruno Haible  <bruno@clisp.org>
15216
15217         Fix link error on non-glibc systems.
15218         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15219         variable.
15220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15221
15222 2009-02-18  Jim Meyering  <meyering@redhat.com>
15223
15224         fts: avoid used-uninitialized error due to recent change
15225         * lib/fts.c (fts_read): Guard uses of the new member,
15226         parent->fts_n_dirs_remaining, since it's not relevant for
15227         the parent of a directory specified on the command-line.
15228
15229 2009-02-17  James Youngman  <jay@gnu.org>
15230             Bruno Haible  <bruno@clisp.org>
15231
15232         * m4/include_next.m4: Reformulate comment.
15233
15234 2009-02-16  Jim Meyering  <meyering@redhat.com>
15235
15236         fts: add #if guards so that the fts_lgpl module still builds
15237         * lib/fts.c: Guard just-added hash-table-using parts with
15238         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15239         Reported by Simon Josefsson.
15240
15241 2009-02-15  Bruno Haible  <bruno@clisp.org>
15242
15243         * modules/array-mergesort-tests: New file.
15244         * tests/test-array-mergesort.c: New file.
15245
15246         New module 'array-mergesort'.
15247         * modules/array-mergesort: New file.
15248         * lib/array-mergesort.h: New file.
15249
15250 2009-02-15  Bruno Haible  <bruno@clisp.org>
15251
15252         Fix 2009-02-07 commit.
15253         * lib/gen-uni-tables.c (output_predicate, output_category,
15254         output_combclass, output_bidi_category, output_decimal_digit,
15255         output_digit, output_numeric, output_mirror, output_scripts,
15256         output_ident_category, output_simple_mapping): Fix format directives.
15257         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15258
15259 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15260
15261         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15262         fixes are available from IBM.
15263
15264 2009-02-13  Jim Meyering  <meyering@redhat.com>
15265
15266         fts: arrange not to stat non-directories in more cases
15267         This makes GNU find (when it doesn't need to stat each file)
15268         *much* more efficient at traversing reiserfs file systems.
15269         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15270         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15271         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15272         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15273         (leaf_optimization_applies): New function.
15274         (LCO_hash, LCO_compare): New helper functions.
15275         (link_count_optimize_ok): New function.
15276         (fts_stat): Initialize new member (if dir).
15277         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15278         we've just stat'ed a directory.  Skip the stat call when possible.
15279         ---
15280         Note this AFS-related exchange:
15281         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15282         and note find's pioctl call in find/fstype.c.
15283         But that is necessary only if you want to enable the
15284         optimization for AFS, and for now, I don't.
15285
15286         fts: move a function definition "up" (no semantic change)
15287         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15288         "up" to precede upcoming use of a related function.
15289
15290 2009-02-11  Jim Meyering  <meyering@redhat.com>
15291
15292         fts: correct internal computation of nlinks (optimization-related)
15293         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15294         whether the current entry is a directory, so don't test it.
15295
15296 2009-02-10  Bruno Haible  <bruno@clisp.org>
15297
15298         Tests for module 'uniwbrk/ulc-wordbreaks'.
15299         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15300         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15301         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15302
15303         Tests for module 'uniwbrk/u32-wordbreaks'.
15304         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15305         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15306
15307         Tests for module 'uniwbrk/u16-wordbreaks'.
15308         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15309         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15310
15311         Tests for module 'uniwbrk/u8-wordbreaks'.
15312         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15313         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15314
15315 2009-02-10  Bruno Haible  <bruno@clisp.org>
15316
15317         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15318         property.
15319         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15320         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15321         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15322
15323 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15324
15325         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15326         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15327
15328 2009-02-10  Bruno Haible  <bruno@clisp.org>
15329
15330         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15331         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15332         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15333         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15334         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15335         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15336
15337 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15338
15339         * lib/sockets.h (gl_fd_to_handle): New function.
15340
15341         * tests/test-sockets.c: Call gl_fd_to_handle.
15342
15343 2009-02-09  Bruno Haible  <bruno@clisp.org>
15344
15345         * doc/havelib.texi: Document the conventions on bi-arch systems.
15346
15347 2009-02-08  Bruno Haible  <bruno@clisp.org>
15348
15349         Document the AC_LIB_LINKFLAGS macro.
15350         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15351         * doc/gnulib.texi: Include it.
15352
15353 2009-02-08  Bruno Haible  <bruno@clisp.org>
15354
15355         Fix wrong order of sections, compared to TOC.
15356         * doc/gnulib.texi: Include relocatable-maint.texi after the
15357         "Regular expressions" node, not before.
15358
15359 2009-02-08  Bruno Haible  <bruno@clisp.org>
15360
15361         Tests for module 'unicase/totitle'.
15362         * modules/unicase/totitle-tests: New file.
15363
15364         Tests for module 'unicase/tolower'.
15365         * modules/unicase/tolower-tests: New file.
15366
15367         Tests for module 'unicase/toupper'.
15368         * modules/unicase/toupper-tests: New file.
15369         * tests/unicase/test-mapping-part1.h: New file.
15370         * tests/unicase/test-mapping-part2.h: New file.
15371
15372         New module 'unicase/totitle'.
15373         * modules/unicase/totitle: New file.
15374         * lib/unicase/totitle.c: New file.
15375
15376         New module 'unicase/tolower'.
15377         * modules/unicase/tolower: New file.
15378         * lib/unicase/tolower.c: New file.
15379
15380         New module 'unicase/toupper'.
15381         * modules/unicase/toupper: New file.
15382         * lib/unicase/toupper.c: New file.
15383         * lib/unicase/simple-mapping.h: New file.
15384
15385         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15386         (mapping_table): New structure.
15387         (output_simple_mapping): New function.
15388         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15389         * modules/gen-uni-tables (Description): Update.
15390         * lib/unicase/toupper.h: New file, automatically generated by
15391         gen-uni-tables.
15392         * lib/unicase/tolower.h: New file, automatically generated by
15393         gen-uni-tables.
15394         * lib/unicase/totitle.h: New file, automatically generated by
15395         gen-uni-tables.
15396         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15397         gen-uni-tables.
15398         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15399         gen-uni-tables.
15400         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15401         gen-uni-tables.
15402
15403         New module 'unicase/base'.
15404         * modules/unicase/base: New file.
15405         * lib/unicase.h: New file.
15406
15407 2009-02-08  Bruno Haible  <bruno@clisp.org>
15408
15409         New module 'uniwbrk/ulc-wordbreaks'.
15410         * modules/uniwbrk/ulc-wordbreaks: New file.
15411         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15412
15413         New module 'uniwbrk/u32-wordbreaks'.
15414         * modules/uniwbrk/u32-wordbreaks: New file.
15415         * lib/uniwbrk/u32-wordbreaks.c: New file.
15416
15417         New module 'uniwbrk/u16-wordbreaks'.
15418         * modules/uniwbrk/u16-wordbreaks: New file.
15419         * lib/uniwbrk/u16-wordbreaks.c: New file.
15420
15421         New module 'uniwbrk/u8-wordbreaks'.
15422         * modules/uniwbrk/u8-wordbreaks: New file.
15423         * lib/uniwbrk/u8-wordbreaks.c: New file.
15424         * lib/uniwbrk/u-wordbreaks.h: New file.
15425
15426         New module 'uniwbrk/table'.
15427         * modules/uniwbrk/table: New file.
15428         * lib/uniwbrk/wbrktable.h: New file.
15429         * lib/uniwbrk/wbrktable.c: New file.
15430
15431         New module 'uniwbrk/wordbreak-property'.
15432         * modules/uniwbrk/wordbreak-property: New file.
15433         * lib/uniwbrk/wordbreak-property.c: New file.
15434
15435         * lib/gen-uni-tables.c (WBP_*): New enum items.
15436         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15437         (unicode_org_wbp): New variable.
15438         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15439         New functions.
15440         (wbp_table): New structure.
15441         (output_wbp, output_wbrk_tables): New functions.
15442         (main): Accept additional argument. Invoke fill_org_wbp,
15443         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15444         output_wbrk_tables.
15445         * modules/gen-uni-tables (Description): Update.
15446         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15447         gen-uni-tables.
15448
15449         New module 'uniwbrk/base'.
15450         * modules/uniwbrk/base: New file.
15451         * lib/uniwbrk.h: New file.
15452
15453 2009-02-08  Bruno Haible  <bruno@clisp.org>
15454
15455         Update to Unicode 5.1.0.
15456         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15457         U+2185..U+2188.
15458         (is_property_default_ignorable_code_point): Don't include characters
15459         of category Cc or Cs and not-a-characters.
15460         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15461         U+0D79, U+109E, U+109F, U+A60C.
15462         * lib/unictype/bidi_of.h: Regenerated.
15463         * lib/unictype/blocks.h: Regenerated.
15464         * lib/unictype/categ_C.h: Regenerated.
15465         * lib/unictype/categ_Cf.h: Regenerated.
15466         * lib/unictype/categ_Cn.h: Regenerated.
15467         * lib/unictype/categ_L.h: Regenerated.
15468         * lib/unictype/categ_Ll.h: Regenerated.
15469         * lib/unictype/categ_Lm.h: Regenerated.
15470         * lib/unictype/categ_Lo.h: Regenerated.
15471         * lib/unictype/categ_Lu.h: Regenerated.
15472         * lib/unictype/categ_M.h: Regenerated.
15473         * lib/unictype/categ_Mc.h: Regenerated.
15474         * lib/unictype/categ_Me.h: Regenerated.
15475         * lib/unictype/categ_Mn.h: Regenerated.
15476         * lib/unictype/categ_N.h: Regenerated.
15477         * lib/unictype/categ_Nd.h: Regenerated.
15478         * lib/unictype/categ_Nl.h: Regenerated.
15479         * lib/unictype/categ_No.h: Regenerated.
15480         * lib/unictype/categ_P.h: Regenerated.
15481         * lib/unictype/categ_Pd.h: Regenerated.
15482         * lib/unictype/categ_Pe.h: Regenerated.
15483         * lib/unictype/categ_Pf.h: Regenerated.
15484         * lib/unictype/categ_Pi.h: Regenerated.
15485         * lib/unictype/categ_Po.h: Regenerated.
15486         * lib/unictype/categ_Ps.h: Regenerated.
15487         * lib/unictype/categ_S.h: Regenerated.
15488         * lib/unictype/categ_Sk.h: Regenerated.
15489         * lib/unictype/categ_Sm.h: Regenerated.
15490         * lib/unictype/categ_So.h: Regenerated.
15491         * lib/unictype/categ_of.h: Regenerated.
15492         * lib/unictype/combining.h: Regenerated.
15493         * lib/unictype/ctype_alnum.h: Regenerated.
15494         * lib/unictype/ctype_alpha.h: Regenerated.
15495         * lib/unictype/ctype_graph.h: Regenerated.
15496         * lib/unictype/ctype_lower.h: Regenerated.
15497         * lib/unictype/ctype_print.h: Regenerated.
15498         * lib/unictype/ctype_punct.h: Regenerated.
15499         * lib/unictype/ctype_upper.h: Regenerated.
15500         * lib/unictype/decdigit.h: Regenerated.
15501         * lib/unictype/digit.h: Regenerated.
15502         * lib/unictype/mirror.h: Regenerated.
15503         * lib/unictype/numeric.h: Regenerated.
15504         * lib/unictype/pr_alphabetic.h: Regenerated.
15505         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15506         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15507         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15508         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15509         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15510         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15511         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15512         * lib/unictype/pr_combining.h: Regenerated.
15513         * lib/unictype/pr_dash.h: Regenerated.
15514         * lib/unictype/pr_decimal_digit.h: Regenerated.
15515         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15516         * lib/unictype/pr_deprecated.h: Regenerated.
15517         * lib/unictype/pr_diacritic.h: Regenerated.
15518         * lib/unictype/pr_extender.h: Regenerated.
15519         * lib/unictype/pr_format_control.h: Regenerated.
15520         * lib/unictype/pr_grapheme_base.h: Regenerated.
15521         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15522         * lib/unictype/pr_grapheme_link.h: Regenerated.
15523         * lib/unictype/pr_id_continue.h: Regenerated.
15524         * lib/unictype/pr_id_start.h: Regenerated.
15525         * lib/unictype/pr_ideographic.h: Regenerated.
15526         * lib/unictype/pr_ignorable_control.h: Regenerated.
15527         * lib/unictype/pr_lowercase.h: Regenerated.
15528         * lib/unictype/pr_math.h: Regenerated.
15529         * lib/unictype/pr_numeric.h: Regenerated.
15530         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15531         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15532         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15533         * lib/unictype/pr_other_id_continue.h: Regenerated.
15534         * lib/unictype/pr_other_lowercase.h: Regenerated.
15535         * lib/unictype/pr_other_math.h: Regenerated.
15536         * lib/unictype/pr_punctuation.h: Regenerated.
15537         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15538         * lib/unictype/pr_soft_dotted.h: Regenerated.
15539         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15540         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15541         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15542         * lib/unictype/pr_uppercase.h: Regenerated.
15543         * lib/unictype/pr_xid_continue.h: Regenerated.
15544         * lib/unictype/pr_xid_start.h: Regenerated.
15545         * lib/unictype/pr_zero_width.h: Regenerated.
15546         * lib/unictype/scripts.h: Regenerated.
15547         * lib/unictype/scripts_byname.gperf: Regenerated.
15548         * lib/unictype/sy_java_ident.h: Regenerated.
15549         * lib/unilbrk/lbrkprop1.h: Regenerated.
15550         * lib/unilbrk/lbrkprop2.h: Regenerated.
15551         * tests/unictype/test-categ_C.c: Regenerated.
15552         * tests/unictype/test-categ_Cf.c: Regenerated.
15553         * tests/unictype/test-categ_Cn.c: Regenerated.
15554         * tests/unictype/test-categ_L.c: Regenerated.
15555         * tests/unictype/test-categ_Ll.c: Regenerated.
15556         * tests/unictype/test-categ_Lm.c: Regenerated.
15557         * tests/unictype/test-categ_Lo.c: Regenerated.
15558         * tests/unictype/test-categ_Lu.c: Regenerated.
15559         * tests/unictype/test-categ_M.c: Regenerated.
15560         * tests/unictype/test-categ_Mc.c: Regenerated.
15561         * tests/unictype/test-categ_Me.c: Regenerated.
15562         * tests/unictype/test-categ_Mn.c: Regenerated.
15563         * tests/unictype/test-categ_N.c: Regenerated.
15564         * tests/unictype/test-categ_Nd.c: Regenerated.
15565         * tests/unictype/test-categ_Nl.c: Regenerated.
15566         * tests/unictype/test-categ_No.c: Regenerated.
15567         * tests/unictype/test-categ_P.c: Regenerated.
15568         * tests/unictype/test-categ_Pd.c: Regenerated.
15569         * tests/unictype/test-categ_Pe.c: Regenerated.
15570         * tests/unictype/test-categ_Pf.c: Regenerated.
15571         * tests/unictype/test-categ_Pi.c: Regenerated.
15572         * tests/unictype/test-categ_Po.c: Regenerated.
15573         * tests/unictype/test-categ_Ps.c: Regenerated.
15574         * tests/unictype/test-categ_S.c: Regenerated.
15575         * tests/unictype/test-categ_Sk.c: Regenerated.
15576         * tests/unictype/test-categ_Sm.c: Regenerated.
15577         * tests/unictype/test-categ_So.c: Regenerated.
15578         * tests/unictype/test-ctype_alnum.c: Regenerated.
15579         * tests/unictype/test-ctype_alpha.c: Regenerated.
15580         * tests/unictype/test-ctype_graph.c: Regenerated.
15581         * tests/unictype/test-ctype_lower.c: Regenerated.
15582         * tests/unictype/test-ctype_print.c: Regenerated.
15583         * tests/unictype/test-ctype_punct.c: Regenerated.
15584         * tests/unictype/test-ctype_upper.c: Regenerated.
15585         * tests/unictype/test-decdigit.h: Regenerated.
15586         * tests/unictype/test-digit.h: Regenerated.
15587         * tests/unictype/test-numeric.h: Regenerated.
15588         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15589         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15590         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15591         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15592         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15593         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15594         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15595         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15596         * tests/unictype/test-pr_combining.c: Regenerated.
15597         * tests/unictype/test-pr_dash.c: Regenerated.
15598         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15599         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15600         * tests/unictype/test-pr_deprecated.c: Regenerated.
15601         * tests/unictype/test-pr_diacritic.c: Regenerated.
15602         * tests/unictype/test-pr_extender.c: Regenerated.
15603         * tests/unictype/test-pr_format_control.c: Regenerated.
15604         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15605         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15606         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15607         * tests/unictype/test-pr_id_continue.c: Regenerated.
15608         * tests/unictype/test-pr_id_start.c: Regenerated.
15609         * tests/unictype/test-pr_ideographic.c: Regenerated.
15610         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15611         * tests/unictype/test-pr_lowercase.c: Regenerated.
15612         * tests/unictype/test-pr_math.c: Regenerated.
15613         * tests/unictype/test-pr_numeric.c: Regenerated.
15614         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15615         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15616         Regenerated.
15617         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15618         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15619         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15620         * tests/unictype/test-pr_other_math.c: Regenerated.
15621         * tests/unictype/test-pr_punctuation.c: Regenerated.
15622         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15623         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15624         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15625         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15626         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15627         * tests/unictype/test-pr_uppercase.c: Regenerated.
15628         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15629         * tests/unictype/test-pr_xid_start.c: Regenerated.
15630         * tests/unictype/test-pr_zero_width.c: Regenerated.
15631
15632         Update to Unicode 5.1.0.
15633         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15634         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15635         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15636         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15637         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15638         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15639         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15640         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15641         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15642         (nonspacing_table_ind): Update.
15643         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15644
15645         Update to Unicode 5.1.0.
15646         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15647         code transform.
15648         * lib/uniname/uniname.c (unicode_character_name,
15649         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15650         * lib/uniname/uninames.h: Regenerated.
15651         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15652
15653 2009-02-07  Bruno Haible  <bruno@clisp.org>
15654
15655         Merge gen-ctype and gen-lbrk into a single program.
15656         * lib/gen-uni-tables.c: New file, incorporating
15657         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15658         Add directory prefixes to the names of the generated files.
15659         * lib/unictype/gen-ctype.c: Remove file.
15660         * lib/unilbrk/gen-lbrk.c: Remove file.
15661         * modules/gen-uni-tables: New file.
15662         * modules/unictype/gen-ctype: Remove file.
15663         * modules/unilbrk/gen-lbrk: Remove file.
15664
15665 2009-02-07  Bruno Haible  <bruno@clisp.org>
15666
15667         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15668
15669         New module 'unistr/u32-strcoll'.
15670         * modules/unistr/u32-strcoll: New file.
15671         * lib/unistr/u32-strcoll.c: New file.
15672
15673         New module 'unistr/u16-strcoll'.
15674         * modules/unistr/u16-strcoll: New file.
15675         * lib/unistr/u16-strcoll.c: New file.
15676
15677         New module 'unistr/u8-strcoll'.
15678         * modules/unistr/u8-strcoll: New file.
15679         * lib/unistr/u8-strcoll.c: New file.
15680         * lib/unistr/u-strcoll.h: New file.
15681
15682 2009-02-07  Bruno Haible  <bruno@clisp.org>
15683
15684         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15685         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15686         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15687         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15688         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15689         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15690
15691 2009-02-07  Bruno Haible  <bruno@clisp.org>
15692
15693         Make 64-bit clean.
15694         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15695         output_combclass, output_bidi_category, output_decimal_digit,
15696         output_digit, output_numeric, output_mirror, output_scripts,
15697         output_ident_category): Use proper width specifier in format strings.
15698
15699 2009-02-07  Bruno Haible  <bruno@clisp.org>
15700
15701         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15702         failure behaviour.
15703
15704 2009-02-07  Jim Meyering  <meyering@redhat.com>
15705
15706         regex: avoid compilation failure with upcoming gcc-4.4
15707         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15708         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15709         "... error: integer overflow in preprocessor expression".
15710
15711 2009-02-05  Ben Pfaff  <blp@gnu.org>
15712
15713         Fix link errors on Windows when close module is used.
15714         * modules/close: Add $(LIB_CLOSE) to Link section.
15715         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15716         $(LIB_CLOSE) on Windows.
15717
15718 2009-02-05  Jim Meyering  <meyering@redhat.com>
15719
15720         still avoid unused-parameter warnings, but do it cleanly
15721         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15722         (get_fs_usage): Cast to void instead.
15723         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15724         (dev_from_mount_options, read_file_system_list): Cast to void.
15725         Prompted by Bruno Haible.
15726
15727 2009-02-04  Jim Meyering  <meyering@redhat.com>
15728
15729         fsusage.c: correct copyright year
15730         * lib/fsusage.c: Reflect year in which the change is pushed into
15731
15732         avoid misc. warnings
15733         * lib/fsusage.c (UNUSED_PARAM): Define.
15734         (get_fs_usage): Mark parameter "disk" as unused.
15735         * lib/getugroups.c (getgrent): Use "void" in prototype.
15736         * lib/mountlist.c: Mark unused parameters.
15737         (read_file_system_list): Declare a local with "const".
15738         * lib/nanosleep.c (getnow): Declare static.
15739         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15740
15741         dirfd: set errno upon failure
15742         * lib/dirfd.c: Include <errno.h>.
15743         Set errno to ENOTSUP when returning -1.
15744         * modules/dirfd (Depends-on): Add errno.
15745         Suggested by John Kodis <kodis@comcast.net>.
15746
15747 2009-02-01  Bruno Haible  <bruno@clisp.org>
15748
15749         Don't assume sizeof (long) >= sizeof (void *).
15750         * lib/memcmp.c: Include stdint.h.
15751         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15752         srcp2 to 'const byte *'.
15753         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15754         types to uintptr_t.
15755         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15756         * modules/memcmp (Depends-on): Add stdint.
15757         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15758
15759 2009-01-30  Eric Blake  <ebb9@byu.net>
15760
15761         fix more require-before-expand issues
15762         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15763         expand, AC_PROG_AWK.
15764         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15765
15766 2009-01-28  Eric Blake  <ebb9@byu.net>
15767
15768         version-etc: use consistent URL formatting
15769         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15770         Improve formatting.  Use fputs for string without %.
15771
15772 2009-01-28  Jim Meyering  <meyering@redhat.com>
15773
15774         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15775         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15776         "underquoted definition of NAME" from autoconf-2.59.
15777
15778 2009-01-28  Bruno Haible  <bruno@clisp.org>
15779
15780         * doc/gnulib.texi: Add "Obsolete modules" to index.
15781
15782 2009-01-28  Jim Meyering  <meyering@redhat.com>
15783
15784         useless-if-before-free: recognize more variants
15785         * build-aux/useless-if-before-free: Also recognize e.g.,
15786         if (NULL != p) free (p);
15787
15788 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15789
15790         test-getaddrinfo: skip (don't fail) this test when there's no network
15791         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15792         on the presumption that it means you lack network access.
15793
15794 2009-01-26  Jim Meyering  <meyering@redhat.com>
15795
15796         fflush: avoid warnings on modern systems
15797         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15798         pos and result, into scopes where they're used.
15799
15800 2009-01-26  Eric Blake  <ebb9@byu.net>
15801
15802         Silence warning reintroduced by recent extensions patch.
15803         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15804         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15805         autoconf.
15806
15807         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15808         * m4/00gnulib.m4: New file.
15809         * gnulib-tool (func_get_filelist): Always use it.
15810         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15811         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15812
15813 2009-01-25  Bruno Haible  <bruno@clisp.org>
15814
15815         Make test-quotearg work on MacOS X and AIX.
15816         * tests/test-quotearg.sh: New file.
15817         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15818         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15819         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15820         include <libintl.h>.
15821         (fake_locale): Remove variable.
15822         (gettext, dgettext, dcgettext): Remove functions.
15823         (main): Instead of setting a fake locale, set a real locale. Call
15824         textdomain and bindtextdomain.
15825         * modules/quotearg-tests (Files): Add the new files.
15826         (Depends-on): Add gettext, setenv, unsetenv.
15827         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15828         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15829         Augment TESTS_ENVIRONMENT.
15830
15831 2009-01-25  Bruno Haible  <bruno@clisp.org>
15832
15833         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15834         fr_FR.ISO8859-1 locale on MacOS X.
15835         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15836         ja_JP.eucJP locale on MacOS X.
15837         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15838         zh_CN.GB18030 locale on MacOS X.
15839
15840 2009-01-25  Bruno Haible  <bruno@clisp.org>
15841
15842         Avoid link errors on MacOS X 10.3.
15843         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15844         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15845
15846 2009-01-25  Bruno Haible  <bruno@clisp.org>
15847
15848         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15849         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15850         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15851         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15852         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15853         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15854         posix_spawnattr_init, posix_spawnattr_setsigmask,
15855         posix_spawnattr_setflags, posix_spawnattr_destroy.
15856
15857         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15858         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15859         * modules/execute (Files): Remove m4/posix_spawn.m4.
15860         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15861         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15862         posix_spawnattr_init, posix_spawnattr_setsigmask,
15863         posix_spawnattr_setflags, posix_spawnattr_destroy.
15864
15865 2009-01-25  Bruno Haible  <bruno@clisp.org>
15866
15867         * lib/glthread/threadlib.c: Include <stdlib.h>.
15868
15869 2009-01-25  Bruno Haible  <bruno@clisp.org>
15870
15871         * lib/glthread/threadlib.c (dummy): New declaration.
15872
15873 2009-01-25  Bruno Haible  <bruno@clisp.org>
15874
15875         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15876         multibyte characters also for the GB18030 encoding. Don't crash when
15877         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15878
15879 2009-01-25  Bruno Haible  <bruno@clisp.org>
15880
15881         Avoid redefining 'struct random_data' on OSF/1 5.1.
15882         * lib/stdlib.in.h: Include <random.h> if it exists.
15883         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15884         HAVE_RANDOM_H. Include <random.h> when testing whether
15885         'struct random_data' exists.
15886         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15887
15888 2009-01-25  Bruno Haible  <bruno@clisp.org>
15889
15890         Don't install charset.alias on MacOS X >= 10.3.
15891         * lib/localcharset.c (DARWIN7): New macro.
15892         (get_charset_aliases): Hardcode the result for Darwin7.
15893         * modules/localcharset (install-exec-local): Don't install
15894         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15895
15896 2009-01-25  Bruno Haible  <bruno@clisp.org>
15897
15898         Don't install charset.alias on mingw and Cygwin.
15899         * modules/localcharset (install-exec-local): Don't install
15900         charset.alias on mingw and Cygwin, if the file does not yet exist.
15901         The result for these platforms is hardcoded in localcharset.c.
15902
15903 2009-01-25  Bruno Haible  <bruno@clisp.org>
15904
15905         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15906         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15907         before requiring AC_USE_SYSTEM_EXTENSIONS.
15908
15909 2009-01-25  Jim Meyering  <meyering@redhat.com>
15910
15911         c-strtod: avoid warnings
15912         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15913         "assignment discards qualifiers from pointer target type" warnings.
15914
15915 2009-01-24  Bruno Haible  <bruno@clisp.org>
15916
15917         Add support for non-UTF-8 locales on MacOS X.
15918         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15919         canonical encodings. For Darwin 7 and newer, don't map traditional
15920         encodings to UTF-8.
15921         Reported by Vincent Lefevre <vincent@vinc17.org>
15922         at <http://savannah.gnu.org/bugs/?25235>.
15923
15924 2009-01-24  Bruno Haible  <bruno@clisp.org>
15925
15926         * doc/gnulib.texi (Obsolete modules): New section.
15927         Reported by Mike Frysinger <vapier@gentoo.org>.
15928
15929 2009-01-24  Bruno Haible  <bruno@clisp.org>
15930
15931         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15932         (%.dvi): New rule.
15933
15934 2009-01-24  Bruno Haible  <bruno@clisp.org>
15935
15936         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15937         Reported by Eric Blake.
15938
15939 2009-01-24  Bruno Haible  <bruno@clisp.org>
15940
15941         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15942         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15943         Reported by Gary V. Vaughan <gary@gnu.org>.
15944
15945 2009-01-24  Bruno Haible  <bruno@clisp.org>
15946
15947         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15948
15949 2009-01-23  Bruno Haible  <bruno@clisp.org>
15950
15951         Make c-strtod, c-strtold usable in libraries.
15952         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15953         (C_STRTOD): Call strdup instead of xstrdup.
15954         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15955         * modules/c-strtold (Depends-on): Likewise.
15956         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15957         * NEWS: Mention the change.
15958         Reported by Michael Gold <mgold@ncf.ca>.
15959
15960 2009-01-23  Jim Meyering  <meyering@redhat.com>
15961
15962         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15963         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15964         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15965
15966 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15967
15968         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15969         GNU CoreUtils.
15970         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15971         * modules/version-etc (Description): Update.
15972
15973 2009-01-22  Bruno Haible  <bruno@clisp.org>
15974
15975         Cache the C locale object.
15976         * lib/c-strtod.c (c_locale_cache): New variable.
15977         (c_locale): New function.
15978         (C_STRTOD): Use it, and don't call freelocale.
15979         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15980         Suggested by Paolo Bonzini.
15981
15982 2009-01-21  Bruno Haible  <bruno@clisp.org>
15983
15984         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15985         conditions other than overflow.
15986
15987 2009-01-21  Bruno Haible  <bruno@clisp.org>
15988
15989         * lib/c-strtod.c: Include errno.h.
15990         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15991         value from STRTOD_L and STRTOD.
15992
15993 2009-01-21  Bruno Haible  <bruno@clisp.org>
15994         and Jim Meyering  <meyering@redhat.com>
15995
15996         nanosleep: skip configure test (fail it) for apple universal builds
15997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15998         universal builds, assume that nanosleep does not work.
15999         * modules/nanosleep (Depends-on): Add multiarch.
16000
16001         mktime: skip configure test (fail it) for apple universal builds
16002         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16003         universal builds, assume that mktime does not work.
16004         * modules/mktime (Depends-on): Add multiarch.
16005
16006 2009-01-21  Eric Blake  <ebb9@byu.net>
16007
16008         multiarch: avoid expand-before-require warning
16009         * modules/multiarch (configure.ac): Require, rather than expand,
16010         gl_MULTIARCH.
16011         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16012         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16013         enforce that all clients require it.  Partial reversion of
16014         2008-12-29 patch.
16015
16016         error: avoid expand-before-require warning
16017         * modules/errno (configure.ac): Require, rather than expand,
16018         gl_HEADER_ERRNO_H.
16019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16020         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16021         enforce that all clients require it.
16022
16023         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16024         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16025         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16026         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16027
16028 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16029
16030         Revert:
16031         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16032
16033         regex: do not depend on obsolete modules.
16034         * modules/regex: Remove memcmp and memmove.
16035
16036 2009-01-20  Bruno Haible  <bruno@clisp.org>
16037
16038         Make the 'link' module link on Windows NT 4.
16039         * lib/link.c (_WIN32_WINNT): Don't define.
16040         (CreateHardLinkFuncType): New type.
16041         (CreateHardLinkFunc, initialized): New variables.
16042         (initialize): New function.
16043         (link): Invoke CreateHardLink indirectly through the function pointer.
16044
16045 2009-01-20  Bruno Haible  <bruno@clisp.org>
16046
16047         Fix compilation failure on mingw.
16048         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16049
16050 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16051
16052         * doc/c-strtod.texi: Mention a couple of restrictions.
16053
16054 2009-01-20  Jim Meyering  <meyering@redhat.com>
16055
16056         gettimeofday: move more declarations out of functions
16057         * lib/gettimeofday.c: Move extern declarations of tzset and
16058         gmtime out of containing functions.  Prompted by Bruno Haible.
16059
16060 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16061
16062         regex: do not depend on obsolete modules.
16063         * modules/regex: Remove memcmp and memmove.
16064
16065 2009-01-19  Bruno Haible  <bruno@clisp.org>
16066
16067         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16068         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16069         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16070         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16071         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16072
16073 2009-01-19  Bruno Haible  <bruno@clisp.org>
16074
16075         * tests/test-link.c: Include <errno.h>.
16076         (main): Exit with code 77 when a hard link cannot be created due to
16077         the file system.
16078         * tests/test-link.sh: Skip test when a hard link cannot be created due
16079         to the file system.
16080         Suggested by Eric Blake.
16081
16082 2009-01-19  Martin Lambers  <marlam@marlam.de>
16083
16084         * modules/link-tests: New file.
16085         * tests/test-link.sh: New file.
16086         * tests/test-link.c: New file.
16087
16088 2009-01-19  Eric Blake  <ebb9@byu.net>
16089
16090         doc: mention another function added in cygwin 1.7.0
16091         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16092         Another new function in cygwin 1.7.
16093
16094 2009-01-19  Bruno Haible  <bruno@clisp.org>
16095
16096         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16097         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16098         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16099         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16100         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16101         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16102         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16103         * m4/md4.m4 (gl_MD4): Likewise.
16104         * m4/md5.m4 (gl_MD5): Likewise.
16105         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16106         * m4/sha1.m4 (gl_SHA1): Likewise.
16107         * m4/sha256.m4 (gl_SHA256): Likewise.
16108         * m4/sha512.m4 (gl_SHA512): Likewise.
16109
16110 2009-01-19  Bruno Haible  <bruno@clisp.org>
16111
16112         * modules/uniname/uniname-tests (Depends-on): Add progname.
16113         * tests/uniname/test-uninames.c: Include progname.h.
16114         (main): Call set_program_name.
16115
16116         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16117         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16118         (main): Call set_program_name.
16119
16120         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16121         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16122         (main): Call set_program_name.
16123
16124         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16125         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16126         (main): Call set_program_name.
16127
16128         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16129         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16130         (main): Call set_program_name.
16131
16132         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16133         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16134         (main): Call set_program_name.
16135
16136         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16137         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16138         (main): Call set_program_name.
16139
16140         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16141         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16142         (main): Call set_program_name.
16143
16144         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16145         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16146         (main): Call set_program_name.
16147
16148 2009-01-19  Eric Blake  <ebb9@byu.net>
16149
16150         test-unistd: test previous patch
16151         * tests/test-unistd.c: Test *_FILENO macros.
16152
16153         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16154         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16155         Guarantee a definition.
16156         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16157         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16158         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16159         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16160         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16161         Likewise.
16162         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16163         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16164         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16165         Likewise.
16166         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16167         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16168         (STDERR_FILENO): Likewise.
16169         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16170         (STDERR_FILENO): Likewise.
16171         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16172         (STDERR_FILENO): Likewise.
16173         Reported by Elbert Pol.
16174
16175 2009-01-19  Eric Blake  <ebb9@byu.net>
16176
16177         doc: mention more functions added in cygwin 1.7.0
16178         * doc/posix-functions/abort.texi (abort): Update wording related
16179         to cygwin.
16180         * doc/posix-functions/daylight.texi (daylight): Likewise.
16181         * doc/posix-functions/optarg.texi (optarg): Likewise.
16182         * doc/posix-functions/optarg.texi (opterr): Likewise.
16183         * doc/posix-functions/optarg.texi (optind): Likewise.
16184         * doc/posix-functions/optarg.texi (optopt): Likewise.
16185         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16186         worked in 1.5.x, and was withdrawn in 1.7.
16187         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16188         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16189         cygwin versions.
16190         * doc/posix-functions/perror.texi (perror): Likewise.
16191         * doc/posix-functions/printf.texi (printf): Likewise.
16192         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16193         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16194         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16195         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16196         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16197         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16198         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16199         Likewise.
16200         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16201         Likewise.
16202         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16203         this function.
16204         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16205         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16206         Likewise.
16207         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16208         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16209         * doc/posix-functions/confstr.texi (confstr): Likewise.
16210         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16211         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16212         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16213         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16214         * doc/posix-functions/fputws.texi (fputws): Likewise.
16215         * doc/posix-functions/fwide.texi (fwide): Likewise.
16216         * doc/posix-functions/getwc.texi (getwc): Likewise.
16217         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16218         * doc/posix-functions/putwc.texi (putwc): Likewise.
16219         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16220         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16221         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16222         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16223         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16224         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16225         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16226         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16227         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16228         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16229         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16230
16231 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16232
16233         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16234         * lib/ioctl.c: Include <sys/ioctl.h>.
16235
16236 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16237
16238         * modules/getdate-tests (Depends-on): Add progname.
16239         * tests/test-getdate.c: Use progname module, to avoid link errors
16240         on non-glibc systems.
16241
16242 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16243
16244         * modules/filenamecat-tests (Depends-on): Add progname.
16245         * modules/fstrcmp-tests (Depends-on): Likewise.
16246
16247         * tests/test-filenamecat.c: Use progname module, to avoid link
16248         errors on non-glibc systems.
16249         * tests/test-fstrcmp.c: Likewise.
16250
16251 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16252
16253         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16254         * lib/gettimeofday.c: Move extern declaration out of function.
16255
16256 2009-01-18  Bruno Haible  <bruno@clisp.org>
16257
16258         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16259         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16260         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16261
16262 2009-01-18  Bruno Haible  <bruno@clisp.org>
16263
16264         * lib/strftime.c (MEMPCPY): Remove unused macro.
16265         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16266
16267 2009-01-18  Martin Lambers  <marlam@marlam.de>
16268
16269         New module 'link'.
16270         * lib/unistd.in.h (link): New declaration.
16271         * lib/link.c: New file.
16272         * m4/link.m4: New file.
16273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16274         HAVE_LINK.
16275         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16276         * modules/link: New file.
16277         * doc/posix-functions/link.texi: Mention the new module.
16278
16279 2009-01-18  Bruno Haible  <bruno@clisp.org>
16280
16281         * tests/test-avltree_list.c (main): Call set_program_name.
16282         * tests/test-avltree_oset.c (main): Likewise.
16283         * tests/test-obstack-printf.c: Include progname.h.
16284         (main): Call set_program_name.
16285         * tests/test-quotearg.c: Include progname.h.
16286         (main): Call set_program_name.
16287         * tests/test-xmemdup0.c: Include progname.h.
16288         (main): Call set_program_name.
16289
16290 2009-01-18  Bruno Haible  <bruno@clisp.org>
16291
16292         New module 'alphasort'.
16293         * lib/dirent.in.h (alphasort): New declaration.
16294         * lib/alphasort.c: New file, from glibc with modifications.
16295         * m4/alphasort.m4: New file.
16296         * modules/alphasort: New file.
16297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16298         HAVE_ALPHASORT.
16299         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16300         HAVE_ALPHASORT.
16301         * doc/posix-functions/alphasort.texi: Mention the new module and the
16302         portability problems.
16303
16304 2009-01-18  Bruno Haible  <bruno@clisp.org>
16305
16306         New module 'scandir'.
16307         * lib/dirent.in.h (scandir): New declaration.
16308         * lib/scandir.c: New file, from glibc with modifications.
16309         * m4/scandir.m4: New file.
16310         * modules/scandir: New file.
16311         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16312         HAVE_SCANDIR.
16313         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16314         HAVE_SCANDIR.
16315         * doc/posix-functions/scandir.texi: Mention the new module and the
16316         portability problems.
16317
16318 2009-01-17  Bruno Haible  <bruno@clisp.org>
16319
16320         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16321         Update documentation.
16322         (func_remove_suffix): Escape all dots in the suffix. Update
16323         documentation.
16324         (func_filter_filelist): Update documentation.
16325         Reported by Ralf Wildenhues.
16326
16327 2009-01-17  Bruno Haible  <bruno@clisp.org>
16328
16329         * modules/dprintf-posix-tests: New file.
16330         * tests/test-dprintf-posix.sh: New file.
16331         * tests/test-dprintf-posix.c: New file.
16332
16333         New modules 'dprintf', 'dprintf-posix'.
16334         * lib/stdio.in.h (dprintf): New declaration.
16335         * lib/dprintf.c: New file.
16336         * m4/dprintf.m4: New file.
16337         * m4/dprintf-posix.m4: New file.
16338         * modules/dprintf: New file.
16339         * modules/dprintf-posix: New file.
16340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16341         HAVE_DPRINTF, REPLACE_DPRINTF.
16342         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16343         HAVE_DPRINTF, REPLACE_DPRINTF.
16344         * doc/posix-functions/dprintf.texi: Mention the new modules.
16345
16346 2009-01-17  Bruno Haible  <bruno@clisp.org>
16347
16348         * modules/vdprintf-posix-tests: New file.
16349         * tests/test-vdprintf-posix.sh: New file.
16350         * tests/test-vdprintf-posix.c: New file.
16351
16352         New modules 'vdprintf', 'vdprintf-posix'.
16353         * lib/stdio.in.h (vdprintf): New declaration.
16354         * lib/vdprintf.c: New file.
16355         * m4/vdprintf.m4: New file.
16356         * m4/vdprintf-posix.m4: New file.
16357         * modules/vdprintf: New file.
16358         * modules/vdprintf-posix: New file.
16359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16360         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16361         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16362         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16363         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16364
16365 2009-01-17  Bruno Haible  <bruno@clisp.org>
16366
16367         Fix replacement of fopen on mingw.
16368         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16369         mingw.
16370
16371 2009-01-17  Bruno Haible  <bruno@clisp.org>
16372
16373         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16374         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16375
16376 2009-01-17  Bruno Haible  <bruno@clisp.org>
16377
16378         Avoid test-fflush2.sh failure on mingw.
16379         * tests/test-fflush2.c: Include binary-io.h.
16380         (main): Put standard input into binary mode.
16381         * modules/fflush-tests (Depends-on): Add binary-io.
16382
16383 2009-01-17  Bruno Haible  <bruno@clisp.org>
16384
16385         * lib/wchar.in.h: In another particular situation, include only the
16386         system's <wchar.h> file.
16387         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16388         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16389         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16390
16391 2009-01-17  Bruno Haible  <bruno@clisp.org>
16392
16393         Support for stripping executables in --enable-relocatable.
16394         * build-aux/install-reloc: Expect one more argument, or an environment
16395         variable RELOC_STRIP_PROG. If set, strip the destination program and
16396         its wrapper.
16397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16398         RELOC_STRIP_PROG.
16399         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16400         to set RELOCATABLE_STRIP.
16401         * NEWS: Mention the new Makefile requirement.
16402
16403 2009-01-17  Bruno Haible  <bruno@clisp.org>
16404
16405         * build-aux/install-reloc: Remove debugging information left over by
16406         C compiler on MacOS X.
16407
16408 2009-01-17  Bruno Haible  <bruno@clisp.org>
16409
16410         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16411         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16412         _NSGetExecutablePath.
16413
16414 2009-01-16  Jim Meyering  <meyering@redhat.com>
16415
16416         strerror: avoid warnings about discarding "const"
16417         * lib/strerror.c (rpl_strerror): Instead of returning a const
16418         string from each and every "case", use a variable, and add a single
16419         cast after the switch.
16420
16421 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16422
16423         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16424
16425 2009-01-16  Bruno Haible  <bruno@clisp.org>
16426
16427         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16428         array initializer syntax that also works in C++ mode.
16429         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16430
16431 2009-01-16  Jim Meyering  <meyering@redhat.com>
16432
16433         poll: suppress a warning
16434         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16435         to ignore "...unsigned expression < 0 is always false" warnings.
16436
16437 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16438
16439         poll: remove declarations of unused variables
16440         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16441         sockbuf and optlen.
16442
16443 2009-01-15  Bruno Haible  <bruno@clisp.org>
16444
16445         Make fflush-after-ungetc POSIX compliant on BSD systems.
16446         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16447         (clear_ungetc_buffer): Implement also for other systems.
16448         (rpl_fflush): On glibc systems, invoke
16449         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16450         clear_ungetc_buffer after fetching the stream's position, not before.
16451
16452 2009-01-15  Bruno Haible  <bruno@clisp.org>
16453
16454         Make fflush-after-ungetc POSIX compliant on glibc systems.
16455         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16456         after ungetc.
16457         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16458         (rpl_fflush): On glibc systems, simply call the system's fflush
16459         function after clearing the ungetc buffer.
16460         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16461         Instead, lseek only to the end of file, then use the system's fseeko
16462         for the rest. On glibc systems, reset the EOF indicator bit.
16463
16464 2009-01-15  Jim Meyering  <meyering@redhat.com>
16465
16466         openmp.m4: revert quote-adding change, for portability to older autoconf
16467         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16468         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16469         Simon Josefsson noticed the problem when using autoconf-2.61.
16470
16471 2009-01-15  Bruno Haible  <bruno@clisp.org>
16472
16473         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16474         * tests/test-fflush2.c (ASSERT): Always fail.
16475         (main): Add two tests for fflush() after ungetc(), taking into account
16476         the Austin Group's clarification.
16477         Suggested by Eric Blake.
16478
16479 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16480
16481         mktime.m4: remove K&R-style function prototypes
16482         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16483         for the Sun C++ compiler.
16484
16485 2009-01-14  Bruno Haible  <bruno@clisp.org>
16486
16487         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16488         while including <wchar.h>.
16489         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16490         the system's <wchar.h> file.
16491         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16492
16493 2009-01-14  Bruno Haible  <bruno@clisp.org>
16494
16495         * m4/csharp.m4: Don't mention gettext on the serial number line.
16496         * m4/csharpexec.m4: Likewise.
16497         * m4/eaccess.m4: Likewise.
16498         * m4/javaexec.m4: Likewise.
16499         * m4/sig_atomic_t.m4: Likewise.
16500         * m4/tmpdir.m4: Likewise.
16501         * m4/intldir.m4: Bump gettext version.
16502         * m4/lib-ld.m4: Likewise.
16503
16504 2009-01-14  Bruno Haible  <bruno@clisp.org>
16505
16506         * lib/progname.c (set_program_name): Add more comments.
16507         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16508
16509 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16510
16511         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16512         were sys/stat.h does not define it.
16513
16514 2009-01-14  Jim Meyering  <meyering@redhat.com>
16515
16516         many *.m4 files: improve m4 quoting
16517         99% of this change was performed by running the following commands:
16518         git ls-files | grep '\.m4$' | xargs perl -pi \
16519           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16520           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16521           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16522           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16523         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16524         The remainder were to add Copyright dates, increment serial numbers,
16525         undo some changes in comments, exclude m4/intl.m4, and add quotes
16526         around the "1" in ",1" where the unusual spacing prohibited the
16527         above regexps from doing the job.  For more details, see
16528         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16529         * m4/acl.m4: Modified.
16530         * m4/afs.m4: Likewise.
16531         * m4/alloca.m4: Likewise.
16532         * m4/argp.m4: Likewise.
16533         * m4/argz.m4: Likewise.
16534         * m4/atexit.m4: Likewise.
16535         * m4/bison-i18n.m4: Likewise.
16536         * m4/bison.m4: Likewise.
16537         * m4/byteswap.m4: Likewise.
16538         * m4/c-stack.m4: Likewise.
16539         * m4/c-strtod.m4: Likewise.
16540         * m4/calloc.m4: Likewise.
16541         * m4/canonicalize-lgpl.m4: Likewise.
16542         * m4/chown.m4: Likewise.
16543         * m4/clock_time.m4: Likewise.
16544         * m4/codeset.m4: Likewise.
16545         * m4/copy-file.m4: Likewise.
16546         * m4/csharp.m4: Likewise.
16547         * m4/csharpcomp.m4: Likewise.
16548         * m4/csharpexec.m4: Likewise.
16549         * m4/d-ino.m4: Likewise.
16550         * m4/d-type.m4: Likewise.
16551         * m4/dirfd.m4: Likewise.
16552         * m4/double-slash-root.m4: Likewise.
16553         * m4/eaccess.m4: Likewise.
16554         * m4/eealloc.m4: Likewise.
16555         * m4/environ.m4: Likewise.
16556         * m4/errno_h.m4: Likewise.
16557         * m4/euidaccess.m4: Likewise.
16558         * m4/execute.m4: Likewise.
16559         * m4/fatal-signal.m4: Likewise.
16560         * m4/fchdir.m4: Likewise.
16561         * m4/fcntl_h.m4: Likewise.
16562         * m4/fileblocks.m4: Likewise.
16563         * m4/filenamecat.m4: Likewise.
16564         * m4/findprog.m4: Likewise.
16565         * m4/flexmember.m4: Likewise.
16566         * m4/fnmatch.m4: Likewise.
16567         * m4/fopen.m4: Likewise.
16568         * m4/fpending.m4: Likewise.
16569         * m4/fprintf-posix.m4: Likewise.
16570         * m4/free.m4: Likewise.
16571         * m4/frexp.m4: Likewise.
16572         * m4/frexpl.m4: Likewise.
16573         * m4/fsusage.m4: Likewise.
16574         * m4/ftruncate.m4: Likewise.
16575         * m4/gc-camellia.m4: Likewise.
16576         * m4/gc-random.m4: Likewise.
16577         * m4/gc.m4: Likewise.
16578         * m4/getaddrinfo.m4: Likewise.
16579         * m4/getcwd-abort-bug.m4: Likewise.
16580         * m4/getcwd-path-max.m4: Likewise.
16581         * m4/getdate.m4: Likewise.
16582         * m4/getdomainname.m4: Likewise.
16583         * m4/getgroups.m4: Likewise.
16584         * m4/gethostname.m4: Likewise.
16585         * m4/gethrxtime.m4: Likewise.
16586         * m4/getline.m4: Likewise.
16587         * m4/getloadavg.m4: Likewise.
16588         * m4/getndelim2.m4: Likewise.
16589         * m4/getpass.m4: Likewise.
16590         * m4/gettext.m4: Likewise.
16591         * m4/gettime.m4: Likewise.
16592         * m4/gettimeofday.m4: Likewise.
16593         * m4/gnulib-common.m4: Likewise.
16594         * m4/group-member.m4: Likewise.
16595         * m4/host-os.m4: Likewise.
16596         * m4/iconv.m4: Likewise.
16597         * m4/iconv_open.m4: Likewise.
16598         * m4/inet_ntop.m4: Likewise.
16599         * m4/inet_pton.m4: Likewise.
16600         * m4/inline.m4: Likewise.
16601         * m4/intldir.m4: Likewise.
16602         * m4/intlmacosx.m4: Likewise.
16603         * m4/intmax.m4: Likewise.
16604         * m4/intmax_t.m4: Likewise.
16605         * m4/inttypes.m4: Likewise.
16606         * m4/inttypes_h.m4: Likewise.
16607         * m4/inttypes-pri.m4: Likewise.
16608         * m4/isapipe.m4: Likewise.
16609         * m4/isnand.m4: Likewise.
16610         * m4/isnanf.m4: Likewise.
16611         * m4/isnanl.m4: Likewise.
16612         * m4/javacomp.m4: Likewise.
16613         * m4/javaexec.m4: Likewise.
16614         * m4/jm-winsz1.m4: Likewise.
16615         * m4/jm-winsz2.m4: Likewise.
16616         * m4/lchown.m4: Likewise.
16617         * m4/lcmessage.m4: Likewise.
16618         * m4/ldexpl.m4: Likewise.
16619         * m4/lib-ld.m4: Likewise.
16620         * m4/lib-link.m4: Likewise.
16621         * m4/libsigsegv.m4: Likewise.
16622         * m4/link-follow.m4: Likewise.
16623         * m4/localcharset.m4: Likewise.
16624         * m4/locale-fr.m4: Likewise.
16625         * m4/locale-ja.m4: Likewise.
16626         * m4/locale-tr.m4: Likewise.
16627         * m4/locale-zh.m4: Likewise.
16628         * m4/lock.m4: Likewise.
16629         * m4/longlong.m4: Likewise.
16630         * m4/ls-mntd-fs.m4: Likewise.
16631         * m4/lstat.m4: Likewise.
16632         * m4/malloc.m4: Likewise.
16633         * m4/mathl.m4: Likewise.
16634         * m4/mbrtowc.m4: Likewise.
16635         * m4/mbstate_t.m4: Likewise.
16636         * m4/mbswidth.m4: Likewise.
16637         * m4/memchr.m4: Likewise.
16638         * m4/memcmp.m4: Likewise.
16639         * m4/memcpy.m4: Likewise.
16640         * m4/memmem.m4: Likewise.
16641         * m4/memmove.m4: Likewise.
16642         * m4/mempcpy.m4: Likewise.
16643         * m4/memrchr.m4: Likewise.
16644         * m4/memset.m4: Likewise.
16645         * m4/minmax.m4: Likewise.
16646         * m4/mkdir-slash.m4: Likewise.
16647         * m4/mkdtemp.m4: Likewise.
16648         * m4/mktime.m4: Likewise.
16649         * m4/mmap-anon.m4: Likewise.
16650         * m4/mountlist.m4: Likewise.
16651         * m4/nanosleep.m4: Likewise.
16652         * m4/nls.m4: Likewise.
16653         * m4/nocrash.m4: Likewise.
16654         * m4/open.m4: Likewise.
16655         * m4/openat.m4: Likewise.
16656         * m4/openmp.m4: Likewise.
16657         * m4/pathmax.m4: Likewise.
16658         * m4/perl.m4: Likewise.
16659         * m4/physmem.m4: Likewise.
16660         * m4/pipe.m4: Likewise.
16661         * m4/po.m4: Likewise.
16662         * m4/poll.m4: Likewise.
16663         * m4/posixtm.m4: Likewise.
16664         * m4/posixver.m4: Likewise.
16665         * m4/printf-frexp.m4: Likewise.
16666         * m4/printf-frexpl.m4: Likewise.
16667         * m4/printf-posix.m4: Likewise.
16668         * m4/printf-posix-rpl.m4: Likewise.
16669         * m4/printf.m4: Likewise.
16670         * m4/progtest.m4: Likewise.
16671         * m4/putenv.m4: Likewise.
16672         * m4/readline.m4: Likewise.
16673         * m4/readlink.m4: Likewise.
16674         * m4/readutmp.m4: Likewise.
16675         * m4/realloc.m4: Likewise.
16676         * m4/regex.m4: Likewise.
16677         * m4/relocatable.m4: Likewise.
16678         * m4/relocatable-lib.m4: Likewise.
16679         * m4/rename-dest-slash.m4: Likewise.
16680         * m4/rename.m4: Likewise.
16681         * m4/rmdir-errno.m4: Likewise.
16682         * m4/rmdir.m4: Likewise.
16683         * m4/roundf.m4: Likewise.
16684         * m4/roundl.m4: Likewise.
16685         * m4/rpmatch.m4: Likewise.
16686         * m4/save-cwd.m4: Likewise.
16687         * m4/selinux-selinux-h.m4: Likewise.
16688         * m4/setenv.m4: Likewise.
16689         * m4/settime.m4: Likewise.
16690         * m4/sig2str.m4: Likewise.
16691         * m4/sig_atomic_t.m4: Likewise.
16692         * m4/signalblocking.m4: Likewise.
16693         * m4/signbit.m4: Likewise.
16694         * m4/sigpipe.m4: Likewise.
16695         * m4/sockets.m4: Likewise.
16696         * m4/sockpfaf.m4: Likewise.
16697         * m4/st_dm_mode.m4: Likewise.
16698         * m4/stat-time.m4: Likewise.
16699         * m4/stdbool.m4: Likewise.
16700         * m4/stdint.m4: Likewise.
16701         * m4/stdint_h.m4: Likewise.
16702         * m4/stpcpy.m4: Likewise.
16703         * m4/stpncpy.m4: Likewise.
16704         * m4/strcase.m4: Likewise.
16705         * m4/strchrnul.m4: Likewise.
16706         * m4/strcspn.m4: Likewise.
16707         * m4/strdup.m4: Likewise.
16708         * m4/strftime.m4: Likewise.
16709         * m4/strndup.m4: Likewise.
16710         * m4/strnlen.m4: Likewise.
16711         * m4/strpbrk.m4: Likewise.
16712         * m4/strptime.m4: Likewise.
16713         * m4/strsep.m4: Likewise.
16714         * m4/strtod.m4: Likewise.
16715         * m4/strtoimax.m4: Likewise.
16716         * m4/strtok_r.m4: Likewise.
16717         * m4/strtol.m4: Likewise.
16718         * m4/strtoll.m4: Likewise.
16719         * m4/strtoul.m4: Likewise.
16720         * m4/strtoull.m4: Likewise.
16721         * m4/strtoumax.m4: Likewise.
16722         * m4/strverscmp.m4: Likewise.
16723         * m4/threadlib.m4: Likewise.
16724         * m4/timegm.m4: Likewise.
16725         * m4/tm_gmtoff.m4: Likewise.
16726         * m4/tmpdir.m4: Likewise.
16727         * m4/tmpfile.m4: Likewise.
16728         * m4/tzset.m4: Likewise.
16729         * m4/uintmax_t.m4: Likewise.
16730         * m4/unlinkdir.m4: Likewise.
16731         * m4/unlocked-io.m4: Likewise.
16732         * m4/uptime.m4: Likewise.
16733         * m4/userspec.m4: Likewise.
16734         * m4/utimbuf.m4: Likewise.
16735         * m4/utime.m4: Likewise.
16736         * m4/utimes-null.m4: Likewise.
16737         * m4/utimes.m4: Likewise.
16738         * m4/vararrays.m4: Likewise.
16739         * m4/vasnprintf.m4: Likewise.
16740         * m4/vfprintf-posix.m4: Likewise.
16741         * m4/vprintf-posix.m4: Likewise.
16742         * m4/wait-process.m4: Likewise.
16743         * m4/wchar_t.m4: Likewise.
16744         * m4/wint_t.m4: Likewise.
16745         * m4/write-any-file.m4: Likewise.
16746         * m4/yield.m4: Likewise.
16747
16748 2009-01-13  Bruno Haible  <bruno@clisp.org>
16749
16750         Avoid test-copy-file.sh failures when ACL support insufficient.
16751         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16752         TESTS_ENVIRONMENT.
16753         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16754         Reported by Jim Meyering.
16755
16756 2009-01-13  Bruno Haible  <bruno@clisp.org>
16757
16758         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16759         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16760         * modules/unistdio/u8-printf-parse (Files): Likewise.
16761         * modules/unistdio/u32-printf-parse (Files): Likewise.
16762         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16763
16764 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16765
16766         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16767         and m4/inttypes_h.m4 too.
16768
16769 2009-01-12  Eric Blake  <ebb9@byu.net>
16770
16771         tests: IRIX 6.2 cc can't compile -0.0 into .data
16772         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16773         rather than at compile-time.
16774         * tests/test-floorl.c (minus_zero): Likewise.
16775         * tests/test-frexpl.c (minus_zero): Likewise.
16776         * tests/test-isnan.c (minus_zerol): Likewise.
16777         * tests/test-isnanl.h (minus_zero): Likewise.
16778         * tests/test-ldexpl.c (minus_zero): Likewise.
16779         * tests/test-roundl.c (minus_zero): Likewise.
16780         * tests/test-signbit.c (minus_zerol): Likewise.
16781         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16782         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16783         * tests/test-truncl.c (minus_zero): Likewise.
16784         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16785         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16786         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16787
16788 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16789
16790         regex: fix glibc bug 9697
16791         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16792         handling.
16793
16794 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16795
16796         regex: fix glibc bug 697
16797         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16798         being NULL also if there are no backreferences.
16799
16800 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16801
16802         regex: merge glibc changes
16803         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16804         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16805         re_string_skip_chars, re_string_reconstruct): Likewise.
16806         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16807
16808 2009-01-07  Jim Meyering  <meyering@redhat.com>
16809
16810         poll: filter through cppi
16811         * lib/poll.c: Indent cpp directives to reflect nesting.
16812
16813 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16814
16815         poll: don't return uninitialized
16816         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16817
16818 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16819
16820         avoid compile failure on AIX 6.1
16821         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16822         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16823
16824 2009-01-04  Jim Meyering  <meyering@redhat.com>
16825
16826         remove duplicate inclusion of <stdio.h>
16827         * tests/test-fprintf-posix.c: Likewise.
16828         * tests/test-printf-posix.c: Likewise.
16829         * tests/test-snprintf-posix.c: Likewise.
16830         * tests/test-sprintf-posix.c: Likewise.
16831         * tests/test-vasprintf-posix.c: Likewise.
16832         * tests/test-vfprintf-posix.c: Likewise.
16833         * tests/test-vprintf-posix.c: Likewise.
16834         * tests/test-vsnprintf-posix.c: Likewise.
16835         * tests/test-vsprintf-posix.c: Likewise.
16836
16837 2009-01-03  Jim Meyering  <meyering@redhat.com>
16838
16839         gnulib-tool: fix sed-based filtering
16840         * gnulib-tool (func_filter_filelist): Remove extra backslash
16841         in sed_fff_filter definition.
16842
16843 2009-01-02  Jim Meyering  <meyering@redhat.com>
16844
16845         strftime: avoid compilation failure on Solaris 2.6
16846         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16847         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16848         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16849         be available.  Reported by Tom G. Christensen.  Details in
16850         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16851
16852 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16853             Bruno Haible  <bruno@clisp.org>
16854
16855         Speed up gnulib-tool by doing more string processing through shell
16856         built-ins.
16857         * gnulib-tool (fast_func_append): New variable.
16858         (func_remove_prefix, func_remove_suffix): New functions.
16859         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16860         (func_filter_filelist): New function.
16861         (func_get_dependencies): Use func_remove_suffix instead of sed.
16862         (func_get_automake_snippet): Use func_filter_filelist instead of a
16863         subshell and sed invocation.
16864
16865 2009-01-01  Bruno Haible  <bruno@clisp.org>
16866
16867         Fix a security bug.
16868         * gnulib-tool (func_import, import, update): Don't allow the characters
16869         '"', '$', '`', '\' in macro arguments that become part of commands that
16870         are evaluated.
16871
16872 2009-01-01  Bruno Haible  <bruno@clisp.org>
16873
16874         * gnulib-tool (func_reset_sigpipe): Add more comments.
16875
16876 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16877
16878         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16879         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16880         already know the answer.
16881
16882 2009-01-01  Jim Meyering  <meyering@redhat.com>
16883
16884         * lib/version-etc.c (version_etc_va): Update copyright year.
16885
16886 2008-12-30  Bruno Haible  <bruno@clisp.org>
16887
16888         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16889         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16890         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16891
16892 2008-12-29  Eric Blake  <ebb9@byu.net>
16893
16894         multiarch: avoid autoconf AC_REQUIRE bug
16895         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16896         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16897         2.63 and older.
16898         Reported by Bruno Haible, and analyzed in
16899         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16900
16901 2008-12-29  Bruno Haible  <bruno@clisp.org>
16902
16903         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16904         files in subdirectories correctly.
16905         Reported by Ralf Wildenhues.
16906
16907 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16908
16909         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16910         rather than 'join FILE -', for Solaris join.
16911
16912 2008-12-29  Bruno Haible  <bruno@clisp.org>
16913
16914         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16915         quoting.
16916         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16917         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16918         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16919         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16920         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16921         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16922         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16923         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16924         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16925         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16926         * m4/nls.m4 (AM_NLS): Likewise.
16927         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16928         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16929         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16930         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16931         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16932         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16933         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16934         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16935         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16936         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16937         * m4/xsize.m4 (gl_XSIZE): Likewise.
16938         Suggested by Jim Meyering.
16939
16940 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16941
16942         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16943         * lib/parse-duration.c: use a switch instead of cascading if's.
16944
16945 2008-12-29  Eric Blake  <ebb9@byu.net>
16946
16947         wchar.h: supply WEOF on Irix 5.3
16948         * lib/wchar.in.h (wint_t): Also supply WEOF.
16949         * lib/wctype.in.h (wint_t): Likewise.
16950         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16951         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16952         Reported by Tom G. Christensen.
16953
16954 2008-12-26  Bruno Haible  <bruno@clisp.org>
16955
16956         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16957         i486, i586, i686.
16958
16959 2008-12-26  Bruno Haible  <bruno@clisp.org>
16960
16961         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16962
16963 2008-12-26  Bruno Haible  <bruno@clisp.org>
16964
16965         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16966         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16967         not __STDC_CONSTANT_MACROS.
16968         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16969
16970 2008-12-25  Bruno Haible  <bruno@clisp.org>
16971
16972         Add support for universal builds to vasnprintf.
16973         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16974         universal builds, guess no.
16975         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16976         * modules/vasprintf-posix (Depends-on): Likewise.
16977         * modules/fprintf-posix (Depends-on): Likewise.
16978         * modules/vfprintf-posix (Depends-on): Likewise.
16979         * modules/snprintf-posix (Depends-on): Likewise.
16980         * modules/vsnprintf-posix (Depends-on): Likewise.
16981         * modules/sprintf-posix (Depends-on): Likewise.
16982         * modules/vsprintf-posix (Depends-on): Likewise.
16983         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16984         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16985         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16986         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16987         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16988         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16989         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16990
16991         Add support for universal builds to <inttypes.h>.
16992         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16993         _SCNu64_PREFIX): In Apple
16994         universal builds, define directly, using _LP64.
16995         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16996         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16997         * modules/inttypes (Depends-on): Add multiarch.
16998         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16999
17000         Add support for universal builds to <stdint.h>.
17001         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17002         universal builds, define directly, using _LP64.
17003         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17004         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17005         and size_t.
17006         * modules/stdint (Depends-on): Add multiarch.
17007         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17008
17009         New module 'multiarch'.
17010         * modules/multiarch: New file.
17011         * m4/multiarch.m4: New file.
17012
17013 2008-12-25  Bruno Haible  <bruno@clisp.org>
17014
17015         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17016
17017 2008-12-25  Bruno Haible  <bruno@clisp.org>
17018
17019         * modules/btowc (License): Relicense under LGPLv2+.
17020         * modules/mbsinit (License): Likewise.
17021         * modules/mbrtowc (License): Likewise.
17022         * modules/wcrtomb (License): Likewise.
17023         * modules/streq (License): Likewise.
17024         Reported by David Lutterkort <lutter@redhat.com>.
17025
17026 2008-12-23  Bruno Haible  <bruno@clisp.org>
17027
17028         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17029
17030 2008-12-23  Bruno Haible  <bruno@clisp.org>
17031
17032         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17034         GETADDRINFO_LIB, not in LIBS.
17035         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17036         * modules/canon-host (Link): Likewise.
17037         * NEWS: Mention the change.
17038         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17039         GETADDRINFO_LIB.
17040
17041 2008-12-22  Bruno Haible  <bruno@clisp.org>
17042
17043         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17044         * doc/posix-functions/iswalpha_l.texi: Likewise.
17045         * doc/posix-functions/iswblank_l.texi: Likewise.
17046         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17047         * doc/posix-functions/iswctype_l.texi: Likewise.
17048         * doc/posix-functions/iswdigit_l.texi: Likewise.
17049         * doc/posix-functions/iswgraph_l.texi: Likewise.
17050         * doc/posix-functions/iswlower_l.texi: Likewise.
17051         * doc/posix-functions/iswprint_l.texi: Likewise.
17052         * doc/posix-functions/iswpunct_l.texi: Likewise.
17053         * doc/posix-functions/iswspace_l.texi: Likewise.
17054         * doc/posix-functions/iswupper_l.texi: Likewise.
17055         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17056         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17057         * doc/posix-functions/open_wmemstream.texi: Likewise.
17058         * doc/posix-functions/swscanf.texi: Likewise.
17059         * doc/posix-functions/towctrans_l.texi: Likewise.
17060         * doc/posix-functions/towlower.texi: Likewise.
17061         * doc/posix-functions/towlower_l.texi: Likewise.
17062         * doc/posix-functions/towupper.texi: Likewise.
17063         * doc/posix-functions/towupper_l.texi: Likewise.
17064         * doc/posix-functions/vfwprintf.texi: Likewise.
17065         * doc/posix-functions/vfwscanf.texi: Likewise.
17066         * doc/posix-functions/vswscanf.texi: Likewise.
17067         * doc/posix-functions/vwprintf.texi: Likewise.
17068         * doc/posix-functions/vwscanf.texi: Likewise.
17069         * doc/posix-functions/wcpcpy.texi: Likewise.
17070         * doc/posix-functions/wcpncpy.texi: Likewise.
17071         * doc/posix-functions/wcscasecmp.texi: Likewise.
17072         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17073         * doc/posix-functions/wcscoll_l.texi: Likewise.
17074         * doc/posix-functions/wcsdup.texi: Likewise.
17075         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17076         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17077         * doc/posix-functions/wcsnlen.texi: Likewise.
17078         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17079         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17080         * doc/posix-functions/wctrans_l.texi: Likewise.
17081         * doc/posix-functions/wctype_l.texi: Likewise.
17082         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17083         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17084         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17085         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17086         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17087         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17088         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17089         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17090         * doc/glibc-functions/wcschrnul.texi: Likewise.
17091         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17092         * doc/glibc-functions/wcstod_l.texi: Likewise.
17093         * doc/glibc-functions/wcstof_l.texi: Likewise.
17094         * doc/glibc-functions/wcstol_l.texi: Likewise.
17095         * doc/glibc-functions/wcstold_l.texi: Likewise.
17096         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17097         * doc/glibc-functions/wcstoq.texi: Likewise.
17098         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17099         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17100         * doc/glibc-functions/wcstouq.texi: Likewise.
17101         * doc/glibc-functions/wmempcpy.texi: Likewise.
17102
17103 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17104             Eric Blake  <ebb9@byu.net>
17105             Paolo Bonzini  <bonzini@gnu.org>
17106             Bruno Haible  <bruno@clisp.org>
17107
17108         Make c-stack work on Haiku.
17109         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17110         (c_stack_action): Use SA_ONSTACK flag.
17111
17112 2008-12-22  Bruno Haible  <bruno@clisp.org>
17113
17114         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17115
17116 2008-12-22  Bruno Haible  <bruno@clisp.org>
17117
17118         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17119         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17120         being overridden.
17121         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17122         New macros.
17123         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17125         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17126         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17127
17128 2008-12-22  Bruno Haible  <bruno@clisp.org>
17129
17130         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17131         from test code.
17132
17133 2008-12-22  Eric Blake  <ebb9@byu.net>
17134
17135         Avoid gcc warnings on cygwin.
17136         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17137         Avoid unused variable.
17138         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17139         Likewise.
17140
17141 2008-12-22  Bruno Haible  <bruno@clisp.org>
17142
17143         Remove HAVE_MBRTOWC conditionals.
17144         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17145         (mbscasecmp): Assume mbrtowc function.
17146         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17147         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17148         * lib/mbschr.c: Include mbuiter.h unconditionally.
17149         (mbschr): Assume mbrtowc function.
17150         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17151         (mbscspn): Assume mbrtowc function.
17152         * lib/mbslen.c: Include mbuiter.h unconditionally.
17153         (mbslen): Assume mbrtowc function.
17154         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17155         (mbsncasecmp): Assume mbrtowc function.
17156         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17157         (mbsnlen): Assume mbrtowc function.
17158         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17159         (mbspbrk): Assume mbrtowc function.
17160         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17161         (mbspcasecmp): Assume mbrtowc function.
17162         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17163         (mbsrchr): Assume mbrtowc function.
17164         * lib/mbssep.c: Include mbuiter.h unconditionally.
17165         (mbssep): Assume mbrtowc function.
17166         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17167         (mbsspn): Assume mbrtowc function.
17168         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17169         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17170         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17171         (mbstok_r): Assume mbrtowc function.
17172         * lib/propername.c: Include mbuiter.h unconditionally.
17173         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17174         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17175         (trim2): Assume mbrtowc function.
17176         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17177         (mbsnwidth): Assume mbrtowc function.
17178         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17179         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17180         fallback definitions.
17181         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17182
17183 2008-12-22  Bruno Haible  <bruno@clisp.org>
17184
17185         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17186
17187 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17188
17189         * modules/regex: Request emulations for the mb*/wc* functions we need.
17190         * m4/regex.m4: Don't look for those functions here.
17191         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17192
17193 2008-12-22  Bruno Haible  <bruno@clisp.org>
17194
17195         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17196
17197 2008-12-21  Bruno Haible  <bruno@clisp.org>
17198
17199         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17200         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17201         (Include): Remove conditionalization.
17202         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17203         (Include): Remove conditionalization.
17204         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17205         (Include): Remove conditionalization.
17206         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17207         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17208         * NEWS: Mention the change.
17209         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17210         via Sergey Poznyakoff <gray@gnu.org.ua>.
17211
17212 2008-12-21  Bruno Haible  <bruno@clisp.org>
17213
17214         * MODULES.html.sh (Extended multibyte and wide character utilities
17215         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17216         wcrtomb, wcsrtombs.
17217         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17218         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17219         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17220         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17221
17222 2008-12-21  Bruno Haible  <bruno@clisp.org>
17223
17224         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17225
17226 2008-12-21  Bruno Haible  <bruno@clisp.org>
17227
17228         * modules/wcsnrtombs-tests: New file.
17229         * tests/test-wcsnrtombs1.sh: New file.
17230         * tests/test-wcsnrtombs2.sh: New file.
17231         * tests/test-wcsnrtombs3.sh: New file.
17232         * tests/test-wcsnrtombs4.sh: New file.
17233         * tests/test-wcsnrtombs.c: New file.
17234
17235         New module 'wcsnrtombs'.
17236         * lib/wchar.in.h (wcsnrtombs): New declaration.
17237         * lib/wcsnrtombs.c: New file.
17238         * lib/wcsrtombs-state.c: New file.
17239         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17240         (internal_state): Remove variable.
17241         * m4/wcsnrtombs.m4: New file.
17242         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17243         compilation units.
17244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17245         HAVE_WCSNRTOMBS.
17246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17247         HAVE_WCSNRTOMBS.
17248         * modules/wcsnrtombs: New file.
17249         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17250         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17251
17252 2008-12-21  Bruno Haible  <bruno@clisp.org>
17253
17254         * modules/wcsrtombs-tests: New file.
17255         * tests/test-wcsrtombs1.sh: New file.
17256         * tests/test-wcsrtombs2.sh: New file.
17257         * tests/test-wcsrtombs3.sh: New file.
17258         * tests/test-wcsrtombs4.sh: New file.
17259         * tests/test-wcsrtombs.c: New file.
17260
17261         New module 'wcsrtombs'.
17262         * lib/wchar.in.h (wcsrtombs): New declaration.
17263         * lib/wcsrtombs.c: New file.
17264         * m4/wcsrtombs.m4: New file.
17265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17266         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17268         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17269         * modules/wcsrtombs: New file.
17270         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17271         bugs.
17272
17273 2008-12-21  Bruno Haible  <bruno@clisp.org>
17274
17275         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17276         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17277         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17278         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17279         if not correct.
17280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17281         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17282         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17283         m4/locale-zh.m4, m4/codeset.m4.
17284         * doc/posix-functions/wcrtomb.texi: Document the bug.
17285
17286 2008-12-21  Bruno Haible  <bruno@clisp.org>
17287
17288         Work around a btowc() bug on IRIX 6.5.
17289         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17290         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17291         REPLACE_WTOBC if not.
17292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17293         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17294         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17295
17296 2008-12-21  Bruno Haible  <bruno@clisp.org>
17297
17298         * modules/wcrtomb-tests: New file.
17299         * tests/test-wcrtomb.sh: New file.
17300         * tests/test-wcrtomb.c: New file.
17301
17302         New module 'wcrtomb'.
17303         * lib/wchar.in.h (wcrtomb): New declaration.
17304         * lib/wcrtomb.c: New file.
17305         * m4/wcrtomb.m4: New file.
17306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17307         HAVE_WCRTOMB.
17308         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17309         HAVE_WCRTOMB.
17310         * modules/wcrtomb: New file.
17311         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17312
17313 2008-12-21  Bruno Haible  <bruno@clisp.org>
17314
17315         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17316         * modules/mbsrtowcs (Files): Likewise.
17317         * modules/wctob (Files): Likewise.
17318         * modules/c-strcase-tests (Files): Likewise.
17319         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17320         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17321         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17322         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17323         * modules/vasnprintf-posix-tests (Files): Likewise.
17324
17325 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17326
17327         gitlog-to-changelog: pass all command-line arguments to git-log
17328         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17329         it is sometimes convenient to filter the commits in various ways.
17330         gitlog-to-changelog only allows --since to specify a start date,
17331         but git-log itself supports many other filtering mechanisms.
17332         At the moment, I want to filter by branch name.  Rather than
17333         adding a --branch option to gitlog-to-changelog, it seems more
17334         flexible to simply pass all options directly to git-log and let
17335         git do the work.  Notice that this effectively makes --since a
17336         redundant option for gitlog-to-changelog, but removing it would
17337         require current usage to change since calls would then require
17338         an additional '--'.
17339
17340 2008-12-21  Bruno Haible  <bruno@clisp.org>
17341
17342         * modules/mbsnrtowcs-tests: New file.
17343         * tests/test-mbsnrtowcs1.sh: New file.
17344         * tests/test-mbsnrtowcs2.sh: New file.
17345         * tests/test-mbsnrtowcs3.sh: New file.
17346         * tests/test-mbsnrtowcs4.sh: New file.
17347         * tests/test-mbsnrtowcs.c: New file.
17348
17349         New module 'mbsnrtowcs'.
17350         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17351         * lib/mbsnrtowcs.c: New file.
17352         * lib/mbsrtowcs-state.c: New file.
17353         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17354         (internal_state): Remove variable.
17355         * m4/mbsnrtowcs.m4: New file.
17356         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17357         compilation units.
17358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17359         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17360         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17361         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17362         * modules/mbsnrtowcs: New file.
17363         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17364         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17365         portability problem.
17366
17367 2008-12-21  Bruno Haible  <bruno@clisp.org>
17368
17369         Work around mbsrtowcs bug.
17370         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17371         (gl_FUNC_MBSRTOWCS): Invoke it.
17372         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17373         m4/locale-zh.m4.
17374         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17375
17376 2008-12-21  Bruno Haible  <bruno@clisp.org>
17377
17378         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17379
17380 2008-12-21  Bruno Haible  <bruno@clisp.org>
17381
17382         Update doc for AIX.
17383         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17384         16-bit wchar_t type.
17385         * doc/posix-functions/btowc.texi: Likewise.
17386         * doc/posix-functions/fgetwc.texi: Likewise.
17387         * doc/posix-functions/fgetws.texi: Likewise.
17388         * doc/posix-functions/fputwc.texi: Likewise.
17389         * doc/posix-functions/fputws.texi: Likewise.
17390         * doc/posix-functions/fwide.texi: Likewise.
17391         * doc/posix-functions/fwprintf.texi: Likewise.
17392         * doc/posix-functions/fwscanf.texi: Likewise.
17393         * doc/posix-functions/getwchar.texi: Likewise.
17394         * doc/posix-functions/getwc.texi: Likewise.
17395         * doc/posix-functions/iswalnum.texi: Likewise.
17396         * doc/posix-functions/iswalpha.texi: Likewise.
17397         * doc/posix-functions/iswblank.texi: Likewise.
17398         * doc/posix-functions/iswcntrl.texi: Likewise.
17399         * doc/posix-functions/iswctype.texi: Likewise.
17400         * doc/posix-functions/iswdigit.texi: Likewise.
17401         * doc/posix-functions/iswgraph.texi: Likewise.
17402         * doc/posix-functions/iswlower.texi: Likewise.
17403         * doc/posix-functions/iswprint.texi: Likewise.
17404         * doc/posix-functions/iswpunct.texi: Likewise.
17405         * doc/posix-functions/iswspace.texi: Likewise.
17406         * doc/posix-functions/iswupper.texi: Likewise.
17407         * doc/posix-functions/iswxdigit.texi: Likewise.
17408         * doc/posix-functions/mbrtowc.texi: Likewise.
17409         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17410         * doc/posix-functions/mbstowcs.texi: Likewise.
17411         * doc/posix-functions/mbtowc.texi: Likewise.
17412         * doc/posix-functions/putwchar.texi: Likewise.
17413         * doc/posix-functions/putwc.texi: Likewise.
17414         * doc/posix-functions/swprintf.texi: Likewise.
17415         * doc/posix-functions/tolower.texi: Likewise.
17416         * doc/posix-functions/toupper.texi: Likewise.
17417         * doc/posix-functions/towctrans.texi: Likewise.
17418         * doc/posix-functions/ungetwc.texi: Likewise.
17419         * doc/posix-functions/vswprintf.texi: Likewise.
17420         * doc/posix-functions/wcrtomb.texi: Likewise.
17421         * doc/posix-functions/wcscat.texi: Likewise.
17422         * doc/posix-functions/wcschr.texi: Likewise.
17423         * doc/posix-functions/wcscmp.texi: Likewise.
17424         * doc/posix-functions/wcscoll.texi: Likewise.
17425         * doc/posix-functions/wcscpy.texi: Likewise.
17426         * doc/posix-functions/wcscspn.texi: Likewise.
17427         * doc/posix-functions/wcsftime.texi: Likewise.
17428         * doc/posix-functions/wcslen.texi: Likewise.
17429         * doc/posix-functions/wcsncat.texi: Likewise.
17430         * doc/posix-functions/wcsncmp.texi: Likewise.
17431         * doc/posix-functions/wcsncpy.texi: Likewise.
17432         * doc/posix-functions/wcspbrk.texi: Likewise.
17433         * doc/posix-functions/wcsrchr.texi: Likewise.
17434         * doc/posix-functions/wcsrtombs.texi: Likewise.
17435         * doc/posix-functions/wcsspn.texi: Likewise.
17436         * doc/posix-functions/wcsstr.texi: Likewise.
17437         * doc/posix-functions/wcstod.texi: Likewise.
17438         * doc/posix-functions/wcstof.texi: Likewise.
17439         * doc/posix-functions/wcstoimax.texi: Likewise.
17440         * doc/posix-functions/wcstok.texi: Likewise.
17441         * doc/posix-functions/wcstold.texi: Likewise.
17442         * doc/posix-functions/wcstoll.texi: Likewise.
17443         * doc/posix-functions/wcstol.texi: Likewise.
17444         * doc/posix-functions/wcstombs.texi: Likewise.
17445         * doc/posix-functions/wcstoull.texi: Likewise.
17446         * doc/posix-functions/wcstoul.texi: Likewise.
17447         * doc/posix-functions/wcstoumax.texi: Likewise.
17448         * doc/posix-functions/wcswidth.texi: Likewise.
17449         * doc/posix-functions/wcsxfrm.texi: Likewise.
17450         * doc/posix-functions/wctob.texi: Likewise.
17451         * doc/posix-functions/wctomb.texi: Likewise.
17452         * doc/posix-functions/wctrans.texi: Likewise.
17453         * doc/posix-functions/wctype.texi: Likewise.
17454         * doc/posix-functions/wcwidth.texi: Likewise.
17455         * doc/posix-functions/wmemchr.texi: Likewise.
17456         * doc/posix-functions/wmemcmp.texi: Likewise.
17457         * doc/posix-functions/wmemcpy.texi: Likewise.
17458         * doc/posix-functions/wmemmove.texi: Likewise.
17459         * doc/posix-functions/wmemset.texi: Likewise.
17460         * doc/posix-functions/wprintf.texi: Likewise.
17461         * doc/posix-functions/wscanf.texi: Likewise.
17462
17463 2008-12-21  Bruno Haible  <bruno@clisp.org>
17464
17465         Update doc for HP-UX 11.11.
17466         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17467         in HP-UX version 11.00, not in all versions of HP-UX 11.
17468         * doc/posix-functions/fwide.texi: Likewise.
17469         * doc/posix-functions/fwprintf.texi: Likewise.
17470         * doc/posix-functions/fwscanf.texi: Likewise.
17471         * doc/posix-functions/inet_ntop.texi: Likewise.
17472         * doc/posix-functions/inet_pton.texi: Likewise.
17473         * doc/posix-functions/mbrlen.texi: Likewise.
17474         * doc/posix-functions/mbrtowc.texi: Likewise.
17475         * doc/posix-functions/mbsinit.texi: Likewise.
17476         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17477         * doc/posix-functions/swprintf.texi: Likewise.
17478         * doc/posix-functions/swscanf.texi: Likewise.
17479         * doc/posix-functions/towctrans.texi: Likewise.
17480         * doc/posix-functions/vfwprintf.texi: Likewise.
17481         * doc/posix-functions/vswprintf.texi: Likewise.
17482         * doc/posix-functions/vwprintf.texi: Likewise.
17483         * doc/posix-functions/wcrtomb.texi: Likewise.
17484         * doc/posix-functions/wcsrtombs.texi: Likewise.
17485         * doc/posix-functions/wcsstr.texi: Likewise.
17486         * doc/posix-functions/wctob.texi: Likewise.
17487         * doc/posix-functions/wctrans.texi: Likewise.
17488         * doc/posix-functions/wmemchr.texi: Likewise.
17489         * doc/posix-functions/wmemcmp.texi: Likewise.
17490         * doc/posix-functions/wmemcpy.texi: Likewise.
17491         * doc/posix-functions/wmemmove.texi: Likewise.
17492         * doc/posix-functions/wmemset.texi: Likewise.
17493         * doc/posix-functions/wprintf.texi: Likewise.
17494         * doc/posix-functions/wscanf.texi: Likewise.
17495
17496 2008-12-21  Bruno Haible  <bruno@clisp.org>
17497
17498         Work around a portability problem.
17499         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17500         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17501
17502 2008-12-20  Bruno Haible  <bruno@clisp.org>
17503
17504         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17505         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17506         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17508         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17509
17510         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17511         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17512         set.
17513         (GNULIB_defined_mbstate_t): New macro.
17514         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17515         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17516         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17517         reuses the system's mbrtowc function but works around the bugs.
17518         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17519         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17520         macros.
17521         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17522         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17523         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17524         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17525         REPLACE_MBSINIT if mbsinit needs to be overridden.
17526         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17527         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17528         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17529         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17530         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17531         m4/locale-zh.m4.
17532         (Depends): Add mbsinit.
17533         * modules/mbsinit (Depends): Add mbrtowc.
17534         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17535
17536 2008-12-20  Bruno Haible  <bruno@clisp.org>
17537
17538         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17539         so that there are no conversion errors on AIX.
17540         * tests/test-mbsrtowcs.c (main): LIkewise.
17541
17542 2008-12-20  Bruno Haible  <bruno@clisp.org>
17543
17544         Work around wctob bug on Solaris <= 9.
17545         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17546         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17548         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17549         * modules/wctob (Files): Add m4/locale-fr.m4.
17550         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17551
17552 2008-12-20  Bruno Haible  <bruno@clisp.org>
17553
17554         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17555         /dev/null.
17556         * tests/test-select-in.sh: Likewise.
17557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17558
17559 2008-12-20  Bruno Haible  <bruno@clisp.org>
17560
17561         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17562         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17563         Cygwin 1.5.x.
17564
17565 2008-12-20  Bruno Haible  <bruno@clisp.org>
17566
17567         Ensure mbstate_t is defined on HP-UX 11.11.
17568         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17569         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17570         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17571         AC_USE_SYSTEM_EXTENSIONS.
17572         * modules/fnmatch (Depends-on): Add extensions.
17573         * modules/mbrlen (Depends-on): Likewise.
17574         * modules/mbrtowc (Depends-on): Likewise.
17575         * modules/mbsinit (Depends-on): Likewise.
17576         * modules/mbsrtowcs (Depends-on): Likewise.
17577         * modules/mbswidth (Depends-on): Likewise.
17578         * modules/quotearg (Depends-on): Likewise.
17579         * modules/strftime (Depends-on): Likewise.
17580
17581 2008-12-20  Bruno Haible  <bruno@clisp.org>
17582
17583         Ensure wctob is declared on IRIX 6.5.
17584         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17585         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17586         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17588         of HAVE_WCTOB.
17589         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17590         HAVE_WCTOB.
17591         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17592
17593 2008-12-19  Bruno Haible  <bruno@clisp.org>
17594
17595         * modules/mbsrtowcs-tests: New file.
17596         * tests/test-mbsrtowcs1.sh: New file.
17597         * tests/test-mbsrtowcs2.sh: New file.
17598         * tests/test-mbsrtowcs3.sh: New file.
17599         * tests/test-mbsrtowcs4.sh: New file.
17600         * tests/test-mbsrtowcs.c: New file.
17601
17602         New module 'mbsrtowcs'.
17603         * lib/wchar.in.h (mbsrtowcs): New declaration.
17604         * lib/mbsrtowcs.c: New file.
17605         * m4/mbsrtowcs.m4: New file.
17606         * modules/mbsrtowcs: New file.
17607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17608         HAVE_MBSRTOWCS.
17609         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17610         HAVE_MBSRTOWCS.
17611         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17612
17613 2008-12-19  Bruno Haible  <bruno@clisp.org>
17614
17615         New module 'mbrlen'.
17616         * lib/wchar.in.h (mbrlen): New declaration.
17617         * lib/mbrlen.c: New file.
17618         * m4/mbrlen.m4: New file.
17619         * modules/mbrlen: New file.
17620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17621         HAVE_MBRLEN.
17622         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17623         HAVE_MBRLEN.
17624         * doc/posix-functions/mbrlen.texi: Document the new module.
17625
17626 2008-12-19  Bruno Haible  <bruno@clisp.org>
17627
17628         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17629         * modules/mbrtowc (Depends-on): Add verify.
17630         Suggested by Paul Eggert.
17631
17632 2008-12-18  Bruno Haible  <bruno@clisp.org>
17633
17634         * modules/mbsinit-tests: New file.
17635         * tests/test-mbsinit.sh: New file.
17636         * tests/test-mbsinit.c: New file.
17637
17638 2008-12-18  Bruno Haible  <bruno@clisp.org>
17639
17640         * modules/mbrtowc-tests: New file.
17641         * tests/test-mbrtowc1.sh: New file.
17642         * tests/test-mbrtowc2.sh: New file.
17643         * tests/test-mbrtowc3.sh: New file.
17644         * tests/test-mbrtowc4.sh: New file.
17645         * tests/test-mbrtowc.c: New file.
17646
17647         New module 'mbrtowc'.
17648         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17649         mbsinit and mbrtowc.
17650         (mbrtowc): New declaration.
17651         * lib/mbrtowc.c: New file.
17652         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17653         * modules/mbrtowc: New file.
17654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17655         HAVE_MBRTOWC.
17656         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17657         HAVE_MBRTOWC.
17658         * doc/posix-functions/mbrtowc.texi: Document the new module.
17659
17660 2008-12-18  Bruno Haible  <bruno@clisp.org>
17661
17662         New module 'wctob'.
17663         * lib/wchar.in.h (wctob): New declaration.
17664         * lib/wctob.c: New file.
17665         * m4/wctob.m4: New file.
17666         * modules/wctob: New file.
17667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17668         HAVE_WCTOB.
17669         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17670         * doc/posix-functions/wctob.texi: Document the new module.
17671
17672 2008-12-18  Bruno Haible  <bruno@clisp.org>
17673
17674         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17675         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17676
17677 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17678
17679         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17680         G. Christensen" <tgc@jupiterrise.com>.
17681
17682         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17683         G. Christensen" <tgc@jupiterrise.com>.
17684
17685         * lib/flock.c: Need to include string.h.  Reported by "Tom
17686         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17687         <ebb9@byu.net>.
17688
17689 2008-12-18  Bruno Haible  <bruno@clisp.org>
17690
17691         * m4/locale-ja.m4: New file, from GNU gettext.
17692
17693 2008-12-17  Bruno Haible  <bruno@clisp.org>
17694
17695         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17696         Suggested by Eric Blake.
17697
17698 2008-12-17  Bruno Haible  <bruno@clisp.org>
17699
17700         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17701
17702 2008-12-17  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17705         * modules/mbsinit (Depends-on): Add verify.
17706         Suggested by Paul Eggert.
17707
17708 2008-12-17  Bruno Haible  <bruno@clisp.org>
17709
17710         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17711         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17712         gl_FUNC_MBRTOWC.
17713         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17714         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17715         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17716         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17717         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17718         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17719         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17720         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17721         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17722         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17723         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17724         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17725         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17726         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17727         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17728         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17729         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17730         * modules/trim (configure.ac): Likewise.
17731
17732 2008-12-17  Bruno Haible  <bruno@clisp.org>
17733
17734         * modules/btowc-tests: New file.
17735         * tests/test-btowc1.sh: New file.
17736         * tests/test-btowc2.sh: New file.
17737         * tests/test-btowc.c: New file.
17738
17739         New module 'btowc'.
17740         * lib/wchar.in.h (btowc): New declaration.
17741         * lib/btowc.c: New file.
17742         * m4/btowc.m4: New file.
17743         * modules/btowc: New file.
17744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17745         HAVE_BTOWC.
17746         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17747         * doc/posix-functions/btowc.texi: Document the new module.
17748
17749 2008-12-17  Bruno Haible  <bruno@clisp.org>
17750
17751         New module 'mbsinit'.
17752         * lib/wchar.in.h (mbsinit): New declaration.
17753         * lib/mbsinit.c: New file.
17754         * m4/mbsinit.m4: New file.
17755         * modules/mbsinit: New file.
17756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17757         HAVE_MBSINIT.
17758         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17759         HAVE_MBSINIT.
17760         * doc/posix-functions/mbsinit.texi: Document the new module.
17761
17762 2008-12-16  Bruno Haible  <bruno@clisp.org>
17763
17764         * lib/unistd.in.h: Add comment.
17765         * tests/test-environ.c: Don't include <stdlib.h>.
17766
17767 2008-12-16  Bruno Haible  <bruno@clisp.org>
17768
17769         * lib/parse-duration.h (parse_duration): Document return value
17770         convention.
17771         * lib/parse-duration.c: Include specification header first. Add
17772         comments.
17773         (_): Remove macro.
17774         (parse_year_month_day, parse_hour_minute_second): Move side effects
17775         outside of strchr call.
17776         (parse_non_iso8601): Move side effects outside of isspace call.
17777         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17778         call.
17779
17780 2008-12-16  Bruno Haible  <bruno@clisp.org>
17781
17782         * tests/test-parse-duration.sh: Produce no output when the test
17783         succeeds.
17784
17785 2008-12-16  Bruno Haible  <bruno@clisp.org>
17786
17787         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17788         expressions.
17789
17790 2008-12-15  Bruno Haible  <bruno@clisp.org>
17791
17792         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17793         * doc/glibc-functions/flistxattr.texi: Likewise.
17794         * doc/glibc-functions/fopencookie.texi: Likewise.
17795         * doc/glibc-functions/fremovexattr.texi: Likewise.
17796         * doc/glibc-functions/fsetxattr.texi: Likewise.
17797         * doc/glibc-functions/getxattr.texi: Likewise.
17798         * doc/glibc-functions/lgetxattr.texi: Likewise.
17799         * doc/glibc-functions/listxattr.texi: Likewise.
17800         * doc/glibc-functions/llistxattr.texi: Likewise.
17801         * doc/glibc-functions/lremovexattr.texi: Likewise.
17802         * doc/glibc-functions/lsetxattr.texi: Likewise.
17803         * doc/glibc-functions/removexattr.texi: Likewise.
17804         * doc/glibc-functions/setxattr.texi: Likewise.
17805         * doc/posix-functions/open_memstream.texi: Likewise.
17806
17807 2008-12-15  Eric Blake  <ebb9@byu.net>
17808
17809         Update doc for cygwin 1.7.
17810         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17811         functions.
17812         * doc/posix-functions/fchmodat.texi: Likewise.
17813         * doc/posix-functions/fchownat.texi: Likewise.
17814         * doc/posix-functions/fdopendir.texi: Likewise.
17815         * doc/posix-functions/fmemopen.texi: Likewise.
17816         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17817         * doc/posix-functions/fstatat.texi: Likewise.
17818         * doc/posix-functions/futimens.texi: Likewise.
17819         * doc/posix-functions/gai_strerror.texi: Likewise.
17820         * doc/posix-functions/getaddrinfo.texi: Likewise.
17821         * doc/posix-functions/getnameinfo.texi: Likewise.
17822         * doc/posix-functions/if_freenameindex.texi: Likewise.
17823         * doc/posix-functions/if_indextoname.texi: Likewise.
17824         * doc/posix-functions/if_nameindex.texi: Likewise.
17825         * doc/posix-functions/if_nametoindex.texi: Likewise.
17826         * doc/posix-functions/insque.texi: Likewise.
17827         * doc/posix-functions/linkat.texi: Likewise.
17828         * doc/posix-functions/llrint.texi: Likewise.
17829         * doc/posix-functions/llrintf.texi: Likewise.
17830         * doc/posix-functions/llrintl.texi: Likewise.
17831         * doc/posix-functions/lockf.texi: Likewise.
17832         * doc/posix-functions/lrintl.texi: Likewise.
17833         * doc/posix-functions/mkdirat.texi: Likewise.
17834         * doc/posix-functions/mkfifoat.texi: Likewise.
17835         * doc/posix-functions/mknodat.texi: Likewise.
17836         * doc/posix-functions/mq_close.texi: Likewise.
17837         * doc/posix-functions/mq_getattr.texi: Likewise.
17838         * doc/posix-functions/mq_notify.texi: Likewise.
17839         * doc/posix-functions/mq_open.texi: Likewise.
17840         * doc/posix-functions/mq_receive.texi: Likewise.
17841         * doc/posix-functions/mq_send.texi: Likewise.
17842         * doc/posix-functions/mq_setattr.texi: Likewise.
17843         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17844         * doc/posix-functions/mq_timedsend.texi: Likewise.
17845         * doc/posix-functions/mq_unlink.texi: Likewise.
17846         * doc/posix-functions/open_memstream.texi: Likewise.
17847         * doc/posix-functions/openat.texi: Likewise.
17848         * doc/posix-functions/posix_fadvise.texi: Likewise.
17849         * doc/posix-functions/posix_fallocate.texi: Likewise.
17850         * doc/posix-functions/posix_madvise.texi: Likewise.
17851         * doc/posix-functions/posix_memalign.texi: Likewise.
17852         * doc/posix-functions/posix_openpt.texi: Likewise.
17853         * doc/posix-functions/readlinkat.texi: Likewise.
17854         * doc/posix-functions/remque.texi: Likewise.
17855         * doc/posix-functions/renameat.texi: Likewise.
17856         * doc/posix-functions/rintl.texi: Likewise.
17857         * doc/posix-functions/sem_unlink.texi: Likewise.
17858         * doc/posix-functions/shm_open.texi: Likewise.
17859         * doc/posix-functions/shm_unlink.texi: Likewise.
17860         * doc/posix-functions/signgam.texi: Likewise.
17861         * doc/posix-functions/sigset.texi: Likewise.
17862         * doc/posix-functions/stpcpy.texi: Likewise.
17863         * doc/posix-functions/stpncpy.texi: Likewise.
17864         * doc/posix-functions/strerror.texi: Likewise.
17865         * doc/posix-functions/strtod.texi: Likewise.
17866         * doc/posix-functions/symlinkat.texi: Likewise.
17867         * doc/posix-functions/unlinkat.texi: Likewise.
17868         * doc/posix-functions/utimensat.texi: Likewise.
17869         * doc/glibc-functions/bindresvport.texi: Likewise.
17870         * doc/glibc-functions/dn_expand.texi: Likewise.
17871         * doc/glibc-functions/exp10.texi: Likewise.
17872         * doc/glibc-functions/exp10f.texi: Likewise.
17873         * doc/glibc-functions/fgetxattr.texi: Likewise.
17874         * doc/glibc-functions/flistxattr.texi: Likewise.
17875         * doc/glibc-functions/fopencookie.texi: Likewise.
17876         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17877         * doc/glibc-functions/fremovexattr.texi: Likewise.
17878         * doc/glibc-functions/fsetxattr.texi: Likewise.
17879         * doc/glibc-functions/getifaddrs.texi: Likewise.
17880         * doc/glibc-functions/getxattr.texi: Likewise.
17881         * doc/glibc-functions/lgetxattr.texi: Likewise.
17882         * doc/glibc-functions/listxattr.texi: Likewise.
17883         * doc/glibc-functions/llistxattr.texi: Likewise.
17884         * doc/glibc-functions/lremovexattr.texi: Likewise.
17885         * doc/glibc-functions/lsetxattr.texi: Likewise.
17886         * doc/glibc-functions/pow10.texi: Likewise.
17887         * doc/glibc-functions/pow10f.texi: Likewise.
17888         * doc/glibc-functions/rcmd_af.texi: Likewise.
17889         * doc/glibc-functions/removexattr.texi: Likewise.
17890         * doc/glibc-functions/res_init.texi: Likewise.
17891         * doc/glibc-functions/res_mkquery.texi: Likewise.
17892         * doc/glibc-functions/res_query.texi: Likewise.
17893         * doc/glibc-functions/res_querydomain.texi: Likewise.
17894         * doc/glibc-functions/res_send.texi: Likewise.
17895         * doc/glibc-functions/rresvport_af.texi: Likewise.
17896         * doc/glibc-functions/setxattr.texi: Likewise.
17897         * doc/glibc-functions/strcasestr.texi: Likewise.
17898
17899 2008-12-15  Bruno Haible  <bruno@clisp.org>
17900
17901         Fix compilation error on OSF/1 4.0.
17902         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17903         <sys/time.h>, simply delegate to the system header.
17904         Reported by Daniel Richard G. <oss@teragram.com>.
17905
17906 2008-12-15  Bruno Haible  <bruno@clisp.org>
17907
17908         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17909         * doc/posix-functions/fchmodat.texi: Likewise.
17910         * doc/posix-functions/fchownat.texi: Likewise.
17911         * doc/posix-functions/fdopendir.texi: Likewise.
17912         * doc/posix-functions/fstatat.texi: Likewise.
17913         * doc/posix-functions/mkdirat.texi: Likewise.
17914         * doc/posix-functions/unlinkat.texi: Likewise.
17915
17916 2008-12-14  Bruno Haible  <bruno@clisp.org>
17917
17918         Update doc for POSIX:2008.
17919         * doc/posix-functions/faccessat.texi: New file.
17920         * doc/posix-functions/fchmodat.texi: New file.
17921         * doc/posix-functions/fchownat.texi: New file.
17922         * doc/posix-functions/fdopendir.texi: New file.
17923         * doc/posix-functions/fstatat.texi: New file.
17924         * doc/posix-functions/futimens.texi: New file.
17925         * doc/posix-functions/linkat.texi: New file.
17926         * doc/posix-functions/mkdirat.texi: New file.
17927         * doc/posix-functions/mkfifoat.texi: New file.
17928         * doc/posix-functions/mknodat.texi: New file.
17929         * doc/posix-functions/open_wmemstream.texi: New file.
17930         * doc/posix-functions/openat.texi: New file.
17931         * doc/posix-functions/psiginfo.texi: New file.
17932         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17933         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17934         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17935         * doc/posix-functions/readlinkat.texi: New file.
17936         * doc/posix-functions/renameat.texi: New file.
17937         * doc/posix-functions/strerror_l.texi: New file.
17938         * doc/posix-functions/symlinkat.texi: New file.
17939         * doc/posix-functions/unlinkat.texi: New file.
17940         * doc/posix-functions/utimensat.texi: New file.
17941         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17942
17943 2008-12-14  Bruno Haible  <bruno@clisp.org>
17944
17945         Update doc for POSIX:2008.
17946         * doc/posix-functions/alphasort.texi: Renamed from
17947         doc/glibc-functions/alphasort.texi.
17948         * doc/posix-functions/dirfd.texi: Renamed from
17949         doc/glibc-functions/dirfd.texi.
17950         * doc/posix-functions/dprintf.texi: Renamed from
17951         doc/glibc-functions/dprintf.texi.
17952         * doc/posix-functions/duplocale.texi: Renamed from
17953         doc/glibc-functions/duplocale.texi.
17954         * doc/posix-functions/fexecve.texi: Renamed from
17955         doc/glibc-functions/fexecve.texi.
17956         * doc/posix-functions/fmemopen.texi: Renamed from
17957         doc/glibc-functions/fmemopen.texi.
17958         * doc/posix-functions/freelocale.texi: Renamed from
17959         doc/glibc-functions/freelocale.texi.
17960         * doc/posix-functions/getdate_err.texi: Renamed from
17961         doc/glibc-functions/getdate_err.texi.
17962         * doc/posix-functions/isalnum_l.texi: Renamed from
17963         doc/glibc-functions/isalnum_l.texi.
17964         * doc/posix-functions/isalpha_l.texi: Renamed from
17965         doc/glibc-functions/isalpha_l.texi.
17966         * doc/posix-functions/isblank_l.texi: Renamed from
17967         doc/glibc-functions/isblank_l.texi.
17968         * doc/posix-functions/iscntrl_l.texi: Renamed from
17969         doc/glibc-functions/iscntrl_l.texi.
17970         * doc/posix-functions/isdigit_l.texi: Renamed from
17971         doc/glibc-functions/isdigit_l.texi.
17972         * doc/posix-functions/isgraph_l.texi: Renamed from
17973         doc/glibc-functions/isgraph_l.texi.
17974         * doc/posix-functions/islower_l.texi: Renamed from
17975         doc/glibc-functions/islower_l.texi.
17976         * doc/posix-functions/isprint_l.texi: Renamed from
17977         doc/glibc-functions/isprint_l.texi.
17978         * doc/posix-functions/ispunct_l.texi: Renamed from
17979         doc/glibc-functions/ispunct_l.texi.
17980         * doc/posix-functions/isspace_l.texi: Renamed from
17981         doc/glibc-functions/isspace_l.texi.
17982         * doc/posix-functions/isupper_l.texi: Renamed from
17983         doc/glibc-functions/isupper_l.texi.
17984         * doc/posix-functions/iswalnum_l.texi: Renamed from
17985         doc/glibc-functions/iswalnum_l.texi.
17986         * doc/posix-functions/iswalpha_l.texi: Renamed from
17987         doc/glibc-functions/iswalpha_l.texi.
17988         * doc/posix-functions/iswblank_l.texi: Renamed from
17989         doc/glibc-functions/iswblank_l.texi.
17990         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17991         doc/glibc-functions/iswcntrl_l.texi.
17992         * doc/posix-functions/iswctype_l.texi: Renamed from
17993         doc/glibc-functions/iswctype_l.texi.
17994         * doc/posix-functions/iswdigit_l.texi: Renamed from
17995         doc/glibc-functions/iswdigit_l.texi.
17996         * doc/posix-functions/iswgraph_l.texi: Renamed from
17997         doc/glibc-functions/iswgraph_l.texi.
17998         * doc/posix-functions/iswlower_l.texi: Renamed from
17999         doc/glibc-functions/iswlower_l.texi.
18000         * doc/posix-functions/iswprint_l.texi: Renamed from
18001         doc/glibc-functions/iswprint_l.texi.
18002         * doc/posix-functions/iswpunct_l.texi: Renamed from
18003         doc/glibc-functions/iswpunct_l.texi.
18004         * doc/posix-functions/iswspace_l.texi: Renamed from
18005         doc/glibc-functions/iswspace_l.texi.
18006         * doc/posix-functions/iswupper_l.texi: Renamed from
18007         doc/glibc-functions/iswupper_l.texi.
18008         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18009         doc/glibc-functions/iswxdigit_l.texi.
18010         * doc/posix-functions/isxdigit_l.texi: Renamed from
18011         doc/glibc-functions/isxdigit_l.texi.
18012         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18013         doc/glibc-functions/mbsnrtowcs.texi.
18014         * doc/posix-functions/mkdtemp.texi: Renamed from
18015         doc/glibc-functions/mkdtemp.texi.
18016         * doc/posix-functions/newlocale.texi: Renamed from
18017         doc/glibc-functions/newlocale.texi.
18018         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18019         doc/glibc-functions/nl_langinfo_l.texi.
18020         * doc/posix-functions/open_memstream.texi: Renamed from
18021         doc/glibc-functions/open_memstream.texi.
18022         * doc/posix-functions/opterr.texi: Renamed from
18023         doc/glibc-functions/opterr.texi.
18024         * doc/posix-functions/optind.texi: Renamed from
18025         doc/glibc-functions/optind.texi.
18026         * doc/posix-functions/optopt.texi: Renamed from
18027         doc/glibc-functions/optopt.texi.
18028         * doc/posix-functions/psignal.texi: Renamed from
18029         doc/glibc-functions/psignal.texi.
18030         * doc/posix-functions/scandir.texi: Renamed from
18031         doc/glibc-functions/scandir.texi.
18032         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18033         doc/glibc-functions/sched_get_priority_min.texi.
18034         * doc/posix-functions/signgam.texi: Renamed from
18035         doc/glibc-functions/signgam.texi.
18036         * doc/posix-functions/stpcpy.texi: Renamed from
18037         doc/glibc-functions/stpcpy.texi.
18038         * doc/posix-functions/stpncpy.texi: Renamed from
18039         doc/glibc-functions/stpncpy.texi.
18040         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18041         doc/glibc-functions/strcasecmp_l.texi.
18042         * doc/posix-functions/strcoll_l.texi: Renamed from
18043         doc/glibc-functions/strcoll_l.texi.
18044         * doc/posix-functions/strfmon_l.texi: Renamed from
18045         doc/glibc-functions/strfmon_l.texi.
18046         * doc/posix-functions/strftime_l.texi: Renamed from
18047         doc/glibc-functions/strftime_l.texi.
18048         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18049         doc/glibc-functions/strncasecmp_l.texi.
18050         * doc/posix-functions/strndup.texi: Renamed from
18051         doc/glibc-functions/strndup.texi.
18052         * doc/posix-functions/strnlen.texi: Renamed from
18053         doc/glibc-functions/strnlen.texi.
18054         * doc/posix-functions/strsignal.texi: Renamed from
18055         doc/glibc-functions/strsignal.texi.
18056         * doc/posix-functions/strxfrm_l.texi: Renamed from
18057         doc/glibc-functions/strxfrm_l.texi.
18058         * doc/posix-functions/timer_gettime.texi: Renamed from
18059         doc/glibc-functions/timer_gettime.texi.
18060         * doc/posix-functions/tolower_l.texi: Renamed from
18061         doc/glibc-functions/tolower_l.texi.
18062         * doc/posix-functions/toupper_l.texi: Renamed from
18063         doc/glibc-functions/toupper_l.texi.
18064         * doc/posix-functions/towctrans_l.texi: Renamed from
18065         doc/glibc-functions/towctrans_l.texi.
18066         * doc/posix-functions/towlower_l.texi: Renamed from
18067         doc/glibc-functions/towlower_l.texi.
18068         * doc/posix-functions/towupper_l.texi: Renamed from
18069         doc/glibc-functions/towupper_l.texi.
18070         * doc/posix-functions/uselocale.texi: Renamed from
18071         doc/glibc-functions/uselocale.texi.
18072         * doc/posix-functions/vdprintf.texi: Renamed from
18073         doc/glibc-functions/vdprintf.texi.
18074         * doc/posix-functions/wcpcpy.texi:
18075         Renamed from doc/glibc-functions/wcpcpy.texi.
18076         * doc/posix-functions/wcpncpy.texi: Renamed from
18077         doc/glibc-functions/wcpncpy.texi.
18078         * doc/posix-functions/wcscasecmp.texi: Renamed from
18079         doc/glibc-functions/wcscasecmp.texi.
18080         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18081         doc/glibc-functions/wcscasecmp_l.texi.
18082         * doc/posix-functions/wcscoll_l.texi: Renamed from
18083         doc/glibc-functions/wcscoll_l.texi.
18084         * doc/posix-functions/wcsdup.texi: Renamed from
18085         doc/glibc-functions/wcsdup.texi.
18086         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18087         doc/glibc-functions/wcsncasecmp.texi.
18088         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18089         doc/glibc-functions/wcsncasecmp_l.texi.
18090         * doc/posix-functions/wcsnlen.texi: Renamed from
18091         doc/glibc-functions/wcsnlen.texi.
18092         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18093         doc/glibc-functions/wcsnrtombs.texi.
18094         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18095         doc/glibc-functions/wcsxfrm_l.texi.
18096         * doc/posix-functions/wctrans_l.texi: Renamed from
18097         doc/glibc-functions/wctrans_l.texi.
18098         * doc/posix-functions/wctype_l.texi: Renamed from
18099         doc/glibc-functions/wctype_l.texi.
18100         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18101         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18102         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18103         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18104         these subsections.
18105         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18106         Remove sections.
18107
18108 2008-12-14  Bruno Haible  <bruno@clisp.org>
18109
18110         Update doc for POSIX:2008.
18111         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18112
18113 2008-12-14  Bruno Haible  <bruno@clisp.org>
18114
18115         Update doc for POSIX:2008.
18116         * doc/pastposix-functions/bcmp.texi: Renamed from
18117         doc/posix-functions/bcmp.texi.
18118         * doc/pastposix-functions/bcopy.texi: Renamed from
18119         doc/posix-functions/bcopy.texi.
18120         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18121         doc/posix-functions/bsd_signal.texi.
18122         * doc/pastposix-functions/bzero.texi: Renamed from
18123         doc/posix-functions/bzero.texi.
18124         * doc/pastposix-functions/ecvt.texi: Renamed from
18125         doc/posix-functions/ecvt.texi.
18126         * doc/pastposix-functions/fcvt.texi: Renamed from
18127         doc/posix-functions/fcvt.texi.
18128         * doc/pastposix-functions/ftime.texi: Renamed from
18129         doc/posix-functions/ftime.texi.
18130         * doc/pastposix-functions/gcvt.texi: Renamed from
18131         doc/posix-functions/gcvt.texi.
18132         * doc/pastposix-functions/getcontext.texi: Renamed from
18133         doc/posix-functions/getcontext.texi.
18134         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18135         doc/posix-functions/gethostbyaddr.texi.
18136         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18137         doc/posix-functions/gethostbyname.texi.
18138         * doc/pastposix-functions/getwd.texi: Renamed from
18139         doc/posix-functions/getwd.texi.
18140         * doc/pastposix-functions/h_errno.texi: Renamed from
18141         doc/posix-functions/h_errno.texi.
18142         * doc/pastposix-functions/index.texi: Renamed from
18143         doc/posix-functions/index.texi.
18144         * doc/pastposix-functions/makecontext.texi: Renamed from
18145         doc/posix-functions/makecontext.texi.
18146         * doc/pastposix-functions/mktemp.texi: Renamed from
18147         doc/posix-functions/mktemp.texi.
18148         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18149         doc/posix-functions/pthread_attr_getstackaddr.texi.
18150         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18151         doc/posix-functions/pthread_attr_setstackaddr.texi.
18152         * doc/pastposix-functions/rindex.texi: Renamed from
18153         doc/posix-functions/rindex.texi.
18154         * doc/pastposix-functions/scalb.texi: Renamed from
18155         doc/posix-functions/scalb.texi.
18156         * doc/pastposix-functions/setcontext.texi: Renamed from
18157         doc/posix-functions/setcontext.texi.
18158         * doc/pastposix-functions/swapcontext.texi: Renamed from
18159         doc/posix-functions/swapcontext.texi.
18160         * doc/pastposix-functions/ualarm.texi: Renamed from
18161         doc/posix-functions/ualarm.texi.
18162         * doc/pastposix-functions/usleep.texi: Renamed from
18163         doc/posix-functions/usleep.texi.
18164         * doc/pastposix-functions/vfork.texi: Renamed from
18165         doc/posix-functions/vfork.texi.
18166         * doc/pastposix-functions/wcswcs.texi: Renamed from
18167         doc/posix-functions/wcswcs.texi.
18168         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18169         (Function Substitutes): Update.
18170
18171 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18172
18173         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18174         m4/strerror.m4.
18175
18176 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18177             Bruno Haible  <bruno@clisp.org>
18178
18179         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18180
18181 2008-12-13  Bruno Haible  <bruno@clisp.org>
18182
18183         * modules/strtoull (Depends-on): Remove unistd.
18184
18185 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18186
18187         * modules/strtoull (Depends-on): Add stdlib.
18188
18189 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18190
18191         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18192
18193 2008-12-10  Jim Meyering  <meyering@redhat.com>
18194
18195         gl_ASSERT: don't say assertions are disabled when they're not
18196         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18197         "checking whether to enable assertions... no", when they are in
18198         fact enabled.  This is solely a bug in the output of configure.
18199         In spite of saying "no", NDEBUG was not defined in that case.
18200         Also, as noted by Eric Blake, leave assertions enabled upon
18201         --enable-assert=INVALID.
18202
18203 2008-12-10  Bruno Haible  <bruno@clisp.org>
18204
18205         Change MODULES.html to refer to POSIX:2008 where possible.
18206         * MODULES.html.sh (POSIX2008_URL): New variable.
18207         (posix_headers): Remove sys/timeb, ucontext.
18208         (posix2001_headers): New variable.
18209         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18210         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18211         index, makecontext, mktemp, pthread_attr_getstackaddr,
18212         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18213         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18214         (posix2001_functions): New variable.
18215         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18216         otherwise.
18217
18218 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18219
18220         add missing include to parse-duration.c
18221         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18222         * modules/parse-duration (Depends-on): Add xalloc.
18223
18224         fix sed script reading maint.mk
18225         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18226         (syntax-check-rules): Use it.
18227
18228 2008-12-09  Bruno Haible  <bruno@clisp.org>
18229
18230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18231         MacOS X 10.4/PowerPC.
18232         Reported by Simon Josefsson.
18233
18234 2008-12-08  Jim Meyering  <meyering@redhat.com>
18235
18236         work around mingw's lack of some S_IF definitions
18237         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18238         Reported by Simon Josefsson.
18239
18240 2008-12-08  Bruno Haible  <bruno@clisp.org>
18241
18242         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18243         applied to variables. Needed on MacOS X 10.4/PowerPC.
18244         Reported by Simon Josefsson.
18245
18246 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18247         and Eric Blake  <ebb9@byu.net>
18248
18249         assert: honor --enable-assert
18250         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18251         order to honor --enable-assert, rather than treating it as a
18252         synonym for --disable-assert.
18253
18254 2008-12-08  Jim Meyering  <meyering@redhat.com>
18255
18256         * lib/posixtm.c: Remove now-useless declaration of mktime.
18257
18258         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18259
18260 2008-12-07  Bruno Haible  <bruno@clisp.org>
18261
18262         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18263         test_once): Mark functions as static.
18264         * tests/test-tls.c (test_tls): Likewise.
18265
18266 2008-12-07  Bruno Haible  <bruno@clisp.org>
18267
18268         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18269         iconv_register_autodetect.
18270
18271 2008-12-07  Jim Meyering  <meyering@redhat.com>
18272
18273         posixtm.c: avoid a warning
18274         * lib/posixtm.c (posixtime): Don't initialize tm0.
18275         It's no longer needed to placate gcc4's -Wuninitialized,
18276         and the attempt to placate would elicit a new warning.
18277
18278         unicodeio.c: mark unused parameters
18279         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18280         (fallback_failure_callback): Likewise.
18281
18282 2008-12-07  Bruno Haible  <bruno@clisp.org>
18283
18284         * gnulib-tool (func_create_testdir): When building the tests
18285         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18286         Reported by Simon Josefsson.
18287
18288 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18289
18290         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18291
18292 2008-12-06  Bruno Haible  <bruno@clisp.org>
18293
18294         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18295         Suggested by Eric Blake.
18296
18297 2008-12-06  Bruno Haible  <bruno@clisp.org>
18298
18299         Fix a c-stack test failure on MacOS X.
18300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18301         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18302         handler for SIGBUS as well.
18303         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18304         install a signal handler for SIGBUS as well.
18305         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18306
18307 2008-12-06  Bruno Haible  <bruno@clisp.org>
18308
18309         Advocacy documentation.
18310         * doc/gnulib-intro.texi (Benefits): New section.
18311         * doc/gnulib.texi: Update.
18312
18313 2008-12-06  Bruno Haible  <bruno@clisp.org>
18314
18315         Document the 'manywarnings' module.
18316         * doc/manywarnings.texi: New file.
18317         * doc/gnulib.texi: Include it.
18318
18319 2008-12-05  Eric Blake  <ebb9@byu.net>
18320
18321         tests: silence some gcc warnings
18322         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18323         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18324         type mismatches.
18325
18326 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18327             Bruno Haible  <bruno@clisp.org>
18328
18329         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18330
18331 2008-11-29  Jim Meyering  <meyering@redhat.com>
18332
18333         unicodeio.c: mark unused parameters
18334         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18335         (fallback_failure_callback): Likewise.
18336
18337         fts: fix a thinko
18338         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18339         (set_stat_type): Return S_IF*-valued "type" directly.
18340         Prompted by James Youngman's spotting a related bug.
18341         Confirmed by further testing through find.
18342
18343         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18344         * lib/fts.c (D_TYPE): Define.
18345         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18346         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18347         (s_ifmt_shift_bits): New function.
18348         (set_stat_type): New function.
18349         (fts_build): When not calling fts_stat, call set_stat_type
18350         to propagate dirent.d_type info to fts_read caller.
18351         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18352         fts_statp->st_mode type information may be valid.
18353
18354 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18355
18356         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18357         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18358         <sds@gnu.org>.
18359
18360 2008-11-20  Bruno Haible  <bruno@clisp.org>
18361
18362         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18363         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18364         INCLUDE_NEXT.
18365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18366         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18367         * modules/math (Makefile.am): Substitute
18368         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18369         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18370
18371 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18372             Bruno Haible  <bruno@clisp.org>
18373
18374         * lib/stdint.in.h: Define all type macros so that their expansion is
18375         a single typedef'ed token. Fixes a compilation failure in Boost which
18376         does "using ::int8_t;".
18377
18378 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18379
18380         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18381         gl_MANYWARN_ALL_GCC.
18382         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18383         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18384         * modules/manywarnings: New file.
18385         * MODULES.html.sh: Mention manywarnings module.
18386
18387 2008-11-18  Bruno Haible  <bruno@clisp.org>
18388
18389         * doc/gnulib-tool.texi (Unit tests): New section.
18390
18391 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18392
18393         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18394         paths like 'lib/po/foo.po'.
18395
18396 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18397
18398         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18399         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18400
18401 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18402
18403         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18404         parameter works.
18405
18406 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18407
18408         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18409
18410 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18411
18412         * modules/parse-duration-tests: New file.
18413         * tests/test-parse-duration.sh: New file.
18414         * tests/test-parse-duration.c: New file.
18415
18416         New module 'parse-duration'.
18417         * lib/parse-duration.h: New file.
18418         * lib/parse-duration.c: New file.
18419         * modules/parse-duration: New file.
18420
18421 2008-11-17  Bruno Haible  <bruno@clisp.org>
18422
18423         * tests/test-select-out.sh: Comment out the first pipe test.
18424         Reported by Simon Josefsson.
18425
18426 2008-11-17  Bruno Haible  <bruno@clisp.org>
18427
18428         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18430         gl_HOSTENT.
18431
18432 2008-11-17  Bruno Haible  <bruno@clisp.org>
18433
18434         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18435         -lnetwork and -lnet. Needed for Haiku and BeOS.
18436
18437 2008-11-16  Bruno Haible  <bruno@clisp.org>
18438
18439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18440
18441 2008-11-16  Bruno Haible  <bruno@clisp.org>
18442
18443         Avoid test failure on Haiku.
18444         * tests/test-fsync.c: Include <errno.h>.
18445         (main): Don't require that fsync (0) fails.
18446
18447 2008-11-15  Bruno Haible  <bruno@clisp.org>
18448
18449         New module 'hostent'.
18450         * modules/hostent: New file.
18451         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18452
18453 2008-11-15  Bruno Haible  <bruno@clisp.org>
18454
18455         New module 'servent'.
18456         * modules/servent: New file.
18457         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18458
18459 2008-11-15  Bruno Haible  <bruno@clisp.org>
18460
18461         Avoid generating same test program with two different rules.
18462         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18463         test-frexp to test-frexp-nolibm.
18464         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18465         test-frexpl to test-frexpl-nolibm.
18466
18467 2008-11-15  Bruno Haible  <bruno@clisp.org>
18468
18469         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18470         $(FREXPL_LIBM).
18471
18472 2008-11-15  Bruno Haible  <bruno@clisp.org>
18473
18474         * lib/netdb.in.h: Activate the definitions also when the system's
18475         <netdb.h> has 'struct addrinfo'.
18476         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18477         EAI_OVERFLOW or AI_NUMERICSERV.
18478         * doc/posix-headers/netdb.texi: Document the problem.
18479
18480 2008-11-15  Bruno Haible  <bruno@clisp.org>
18481
18482         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18483
18484         Make the 'sched' module work on platforms where <sched.h> exists but
18485         is incomplete (such as Haiku).
18486         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18487         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18488         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18489         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18490         HAVE_STRUCT_SCHED_PARAM.
18491         * modules/sched (Depends-on): Add include_next.
18492         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18493         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18494         * doc/posix-headers/sched.texi: Document the issue.
18495
18496 2008-11-13  Jim Meyering  <meyering@redhat.com>
18497
18498         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18499         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18500         test would fail due to the difference in the Report bugs to ...
18501         line.  The expected address is empty, "<>", while the actual
18502         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18503
18504 2008-11-12  Bruno Haible  <bruno@clisp.org>
18505
18506         lstat: don't compile lstat.c on systems lacking lstat
18507         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18508         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18509         Reported by Daniel P. Berrange via Jim Meyering.
18510
18511 2008-11-12  Jim Meyering  <meyering@redhat.com>
18512
18513         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18514
18515 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18516
18517         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18518         instead.
18519
18520 2008-11-12  Bruno Haible  <bruno@clisp.org>
18521
18522         * lib/unicodeio.c: Include unistr.h.
18523         (utf8_wctomb): Remove function.
18524         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18525
18526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18527
18528         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18529         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18530         <bruno@clisp.org>.
18531         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18532
18533 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18534
18535         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18536         * doc/gnulib.texi: Add section for warnings.
18537
18538 2008-11-11  Bruno Haible  <bruno@clisp.org>
18539
18540         * lib/sockets.h: Add a comment.
18541
18542 2008-11-11  Karl Berry  <karl@gnu.org>
18543
18544         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18545
18546 2008-11-11  Eric Blake  <ebb9@byu.net>
18547
18548         fdl.texi: avoid git symlinks
18549         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18550
18551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18552
18553         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18554
18555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18556
18557         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18558         (gl_WARN_ADD): Substitute $2 if literal.
18559
18560 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18561
18562         * m4/warning.m4: Remove.
18563
18564 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18565
18566         * m4/warnings.m4: Almost complete rewrite. :-)
18567
18568 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18569
18570         * modules/warnings: New module.
18571         * m4/warnings.m4: New file.
18572         * MODULES.html.sh: Mention warnings module.
18573         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18574         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18575
18576 2008-11-10  Eric Blake  <ebb9@byu.net>
18577
18578         fdl.texi: make a symlink to the latest version
18579         * doc/standards.texi: Revert today's earlier change.
18580         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18581         * doc/fdl.texi: ...and replace this with a symlink to the newer
18582         fdl-1.3.texi.
18583
18584 2008-11-10  Bruno Haible  <bruno@clisp.org>
18585
18586         * tests/test-select-fd.c (main): Accept the result file name as fourth
18587         argument.
18588         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18589         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18590
18591 2008-11-10  Bruno Haible  <bruno@clisp.org>
18592
18593         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18594         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18595         as autoconf-substituted macros.
18596         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18598         gl_NETDB_H_DEFAULTS. Set these variables.
18599         * modules/netdb (Makefile.am): Substitute these variables.
18600
18601 2008-11-10  Eric Blake  <ebb9@byu.net>
18602
18603         standards.texi: include correct file for FDL 1.3
18604         * doc/standards.texi (GNU Free Documentation License): Change
18605         include file to pull in FDL 1.3, not 1.2.
18606
18607         fdl.texi: revert accidental change to license
18608         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18609
18610 2008-11-10  Bruno Haible  <bruno@clisp.org>
18611
18612         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18613         cross-compiling guesses also when the native compile gives no result.
18614
18615 2008-11-10  Bruno Haible  <bruno@clisp.org>
18616
18617         * lib/spawni.c (__spawni): Force variable into the stack.
18618
18619 2008-11-10  Bruno Haible  <bruno@clisp.org>
18620
18621         Add support for Haiku.
18622         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18623         glibc and BeOS, but also on Haiku.
18624         * lib/fpurge.c (fpurge): Likewise.
18625         * lib/freadable.c (freadable): Likewise.
18626         * lib/freadahead.c (freadahead): Likewise.
18627         * lib/freading.c (freading): Likewise.
18628         * lib/freadptr.c (freadptr): Likewise.
18629         * lib/freadseek.c (freadptrinc): Likewise.
18630         * lib/fseeko.c (rpl_fseeko): Likewise.
18631         * lib/fseterr.c (fseterr): Likewise.
18632         * lib/fwritable.c (fwritable): Likewise.
18633         * lib/fwriting.c (fwriting): Likewise.
18634         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18635
18636 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18637
18638         * lib/config.charset: Treat Haiku like BeOS.
18639
18640 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18641
18642         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18643         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18644
18645 2008-11-08  Bruno Haible  <bruno@clisp.org>
18646
18647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18648         AC_CACHE_CHECK.
18649
18650 2008-11-08  Bruno Haible  <bruno@clisp.org>
18651
18652         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18653
18654 2008-11-08  Bruno Haible  <bruno@clisp.org>
18655
18656         * tests/test-select-fd.c: New file.
18657         * tests/test-select-in.sh: New file.
18658         * tests/test-select-out.sh: New file.
18659         * tests/test-select-stdin.c: New file.
18660         * modules/select-tests (Files): Add the new files.
18661         (Depends-on): Add gettimeofday.
18662         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18663         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18664         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18665
18666 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18667             Bruno Haible  <bruno@clisp.org>
18668
18669         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18670
18671 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18672
18673         * build-aux/pmccabe2html: Added support for C++ source files.
18674
18675 2008-11-05  Ben Pfaff  <blp@gnu.org>
18676
18677         Fix lib/close.c build on Windows.
18678         * modules/close (Files): Add lib/w32sock.h.
18679
18680 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18681
18682         Accept Bison's NEWS format.
18683         * build-aux/announce-gen (print_news_deltas): Tweak
18684         $re_prefix.
18685
18686 2008-11-04  Bruno Haible  <bruno@clisp.org>
18687
18688         * modules/random_r (Maintainer): Add glibc.
18689
18690 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18691
18692         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18693         by karl@freefriends.org (Karl Berry).
18694         * doc/alloca.texi: Likewise.
18695         * doc/c-ctype.texi: Likewise.
18696         * doc/c-strcase.texi: Likewise.
18697         * doc/c-strcaseeq.texi: Likewise.
18698         * doc/c-strcasestr.texi: Likewise.
18699         * doc/c-strstr.texi: Likewise.
18700         * doc/c-strtod.texi: Likewise.
18701         * doc/c-strtold.texi: Likewise.
18702         * doc/ctime.texi: Likewise.
18703         * doc/error.texi: Likewise.
18704         * doc/fdl.texi: Likewise.
18705         * doc/gcd.texi: Likewise.
18706         * doc/getdate.texi: Likewise.
18707         * doc/gnulib-intro.texi: Likewise.
18708         * doc/gnulib-tool.texi: Likewise.
18709         * doc/gnulib.texi: Likewise.
18710         * doc/inet_ntoa.texi: Likewise.
18711         * doc/maintain.texi: Likewise.
18712         * doc/make-stds.texi: Likewise.
18713         * doc/quote.texi: Likewise.
18714         * doc/regexprops-generic.texi: Likewise.
18715         * doc/standards.texi: Likewise.
18716         * doc/verify.texi: Likewise.
18717         * doc/visibility.texi: Likewise.
18718         * doc/gnulib.texi (GNU Free Documentation License): Include
18719         fdl-1.3.texi instead of fdl.texi.
18720
18721 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18722
18723         * doc/fdl-1.3.texi: New file, from
18724         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18725         * modules/fdl-1.3: Add.
18726         * MODULES.html.sh: Add fdl-1.3.
18727
18728 2008-11-03  Bruno Haible  <bruno@clisp.org>
18729
18730         Make determination of absolute name of header file work with AIX xlc.
18731         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18732         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18733         preprocessing.
18734         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18735         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18736
18737 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18738
18739         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18740         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18741         <ludo@gnu.org>.
18742
18743 2008-11-02  Bruno Haible  <bruno@clisp.org>
18744
18745         Mark 'strpbrk' obsolete.
18746         * modules/strpbrk (Status, Notice): New sections.
18747         * modules/strtok_r (Depends-on): Add strpbrk.
18748
18749 2008-11-02  Bruno Haible  <bruno@clisp.org>
18750
18751         Mark 'strdup' obsolete.
18752         * modules/strdup (Status, Notice): New sections.
18753         * modules/findprog (Depends-on): Add strdup.
18754         * modules/getaddrinfo (Depends-on): Likewise.
18755         * modules/localename (Depends-on): Likewise.
18756         * modules/relocatable-lib (Depends-on): Likewise.
18757         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18758         * modules/relocatable-prog (Depends-on): Likewise.
18759         * modules/trim (Depends-on): Likewise.
18760         * modules/unictype/gen-ctype (Depends-on): Likewise.
18761         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18762
18763 2008-11-02  Bruno Haible  <bruno@clisp.org>
18764
18765         Mark 'strcspn' obsolete.
18766         * modules/strcspn (Status, Notice): New sections.
18767
18768 2008-11-02  Bruno Haible  <bruno@clisp.org>
18769
18770         Mark 'rmdir' obsolete.
18771         * modules/rmdir (Status, Notice): New sections.
18772         * modules/clean-temp (Depends-on): Add rmdir.
18773         * modules/openat (Depends-on): Likewise.
18774
18775 2008-11-02  Bruno Haible  <bruno@clisp.org>
18776
18777         Mark 'raise' obsolete.
18778         * modules/raise (Status, Notice): New sections.
18779         (Include): Specify <signal.h>.
18780         * modules/stdio (Depends-on): Add raise.
18781         * modules/write (Depends-on): Likewise.
18782
18783 2008-11-02  Bruno Haible  <bruno@clisp.org>
18784
18785         Mark 'memset' obsolete.
18786         * modules/memset (Status, Notice): New sections.
18787
18788 2008-11-02  Bruno Haible  <bruno@clisp.org>
18789
18790         Mark 'memmove' obsolete.
18791         * modules/memmove (Status, Notice): New sections.
18792         * modules/argp (Depends-on): Add memmove.
18793         * modules/argz (Depends-on): Likewise.
18794         * modules/canonicalize (Depends-on): Likewise.
18795         * modules/canonicalize-lgpl (Depends-on): Likewise.
18796         * modules/fts (Depends-on): Likewise.
18797         * modules/getcwd (Depends-on): Likewise.
18798         * modules/human (Depends-on): Likewise.
18799         * modules/regex (Depends-on): Likewise.
18800         * modules/striconveh (Depends-on): Likewise.
18801         * modules/trim (Depends-on): Likewise.
18802         * modules/unistr/u8-move (Depends-on): Likewise.
18803         * modules/unistr/u16-move (Depends-on): Likewise.
18804         * modules/unistr/u32-move (Depends-on): Likewise.
18805
18806 2008-11-02  Bruno Haible  <bruno@clisp.org>
18807
18808         Mark 'memcpy' obsolete.
18809         * modules/memcpy (Status, Notice): New sections.
18810
18811 2008-11-02  Bruno Haible  <bruno@clisp.org>
18812
18813         Mark 'memcmp' obsolete.
18814         * modules/memcmp (Status, Notice): New sections.
18815         * modules/argmatch (Depends-on): Add memchr.
18816         * modules/backupfile (Depends-on): Likewise.
18817         * modules/c-strcasestr (Depends-on): Likewise.
18818         * modules/crypto/des (Depends-on): Likewise.
18819         * modules/csharpcomp (Depends-on): Likewise.
18820         * modules/fnmatch (Depends-on): Likewise.
18821         * modules/git-merge-changelog (Depends-on): Likewise.
18822         * modules/isnand (Depends-on): Likewise.
18823         * modules/isnand-nolibm (Depends-on): Likewise.
18824         * modules/isnanf (Depends-on): Likewise.
18825         * modules/isnanf-nolibm (Depends-on): Likewise.
18826         * modules/isnanl (Depends-on): Likewise.
18827         * modules/isnanl-nolibm (Depends-on): Likewise.
18828         * modules/mbchar (Depends-on): Likewise.
18829         * modules/memcoll (Depends-on): Likewise.
18830         * modules/quotearg (Depends-on): Likewise.
18831         * modules/regex (Depends-on): Likewise.
18832         * modules/relocatable-prog (Depends-on): Likewise.
18833         * modules/same (Depends-on): Likewise.
18834         * modules/signbit (Depends-on): Likewise.
18835         * modules/strcasestr-simple (Depends-on): Likewise.
18836         * modules/unictype/gen-ctype (Depends-on): Likewise.
18837         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18838         * modules/uniname/uniname (Depends-on): Likewise.
18839         * modules/unistr/u8-cmp (Depends-on): Likewise.
18840
18841 2008-11-02  Bruno Haible  <bruno@clisp.org>
18842
18843         Mark 'memchr' obsolete.
18844         * modules/memchr (Status, Notice): New sections.
18845         * modules/argp (Depends-on): Add memchr.
18846         * modules/base64 (Depends-on): Likewise.
18847         * modules/c-strcasestr (Depends-on): Likewise.
18848         * modules/chdir-long (Depends-on): Likewise.
18849         * modules/fnmatch (Depends-on): Likewise.
18850         * modules/getsubopt (Depends-on): Likewise.
18851         * modules/git-merge-changelog (Depends-on): Likewise.
18852         * modules/glob (Depends-on): Likewise.
18853         * modules/strcasestr-simple (Depends-on): Likewise.
18854         * modules/strnlen (Depends-on): Likewise.
18855
18856 2008-11-02  Bruno Haible  <bruno@clisp.org>
18857
18858         Mark 'atexit' obsolete.
18859         * modules/atexit (Status, Notice): New sections.
18860         * modules/chdir-long (Depends-on): Add atexit.
18861         * modules/wait-process (Depends-on): Likewise.
18862
18863 2008-11-02  Bruno Haible  <bruno@clisp.org>
18864
18865         * gnulib-tool: New option --with-obsolete.
18866         (func_usage): Document it.
18867         (func_modules_transitive_closure): Drop obsolete dependencies if
18868         incobsolete is not true.
18869         (func_import): Read and save the incobsolete variable to the cache.
18870
18871 2008-11-02  Bruno Haible  <bruno@clisp.org>
18872
18873         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18874         * gnulib-tool: New option --extract-status.
18875         (func_usage): Document it.
18876         (sed_extract_prog): Recognize it.
18877         (func_get_status): New function.
18878
18879 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18880
18881         * modules/sockets (License): Change from LGPL to LGPLv2+.
18882
18883 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18884
18885         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18886
18887 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18888
18889         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18890         Mention times and sys_times.
18891         * modules/sys_times, modules/sys_times-tests: New modules.
18892         * modules/times, modules/times-tests: Likewise
18893         * m4/sys_times_h.m4: New file.
18894         * lib/sys_times.in.h: Likewise
18895         * lib/times.c: Likewise.
18896         * tests/test-sys_times.c: Likewise.
18897         * tests/test-times.c: Likewise.
18898         * doc/posix-headers/sys_times.texi: Update.
18899         * doc/posix-functions/times.texi: Update.
18900
18901 2008-10-28  Jim Meyering  <meyering@redhat.com>
18902
18903         * modules/tempname (Depends-on): Add lstat.
18904
18905         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18906
18907 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18908
18909         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18910         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18911         using idiom used elsewhere in gnulib.
18912
18913 2008-10-27  Jim Meyering  <meyering@redhat.com>
18914
18915         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18916
18917 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18918
18919         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18920         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18921         programs.
18922         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18923
18924 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18925
18926         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18927
18928 2008-10-27  Bruno Haible  <bruno@clisp.org>
18929
18930         * tests/test-lstat.c: Include <stdio.h>.
18931
18932 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18933
18934         * modules/lstat-tests: New module.
18935         * tests/test-lstat.c: New file.
18936
18937 2008-10-26  Jim Meyering  <meyering@redhat.com>
18938
18939         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18940
18941 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18942             Bruno Haible  <bruno@clisp.org>
18943
18944         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18945         * modules/configmake (Include): Add a note that the include must come
18946         after all system headers.
18947         * lib/javaversion.c: Include configmake.h after all other includes.
18948
18949 2008-10-26  Bruno Haible  <bruno@clisp.org>
18950
18951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18952         HAVE_STRUCT_RANDOM_DATA to 1.
18953         (gl_STDLIB_H): Simplify.
18954
18955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18956
18957         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18958         substitute HAVE_STRUCT_RANDOM_DATA.
18959         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18960         random_data.
18961         * modules/stdlib (Makefile.am): Substitute
18962         HAVE_STRUCT_RANDOM_DATA.
18963
18964 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18965
18966         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18967         * doc/gnulib-intro.texi (Copyright): Likewise.
18968
18969 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18970
18971         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18972         findings.
18973
18974 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18975             Bruno Haible  <bruno@clisp.org>
18976
18977         * lib/unistd.in.h: Include <winsock2.h>.
18978         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18979         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18980         Provide dummy declarations.
18981         (gethostname): Override.
18982         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18984         gl_PREREQ_SYS_H_WINSOCK2.
18985         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18986         * doc/posix-functions/gethostname.texi: More details.
18987
18988 2008-10-25  Bruno Haible  <bruno@clisp.org>
18989
18990         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18991         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18992         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18993
18994         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18995         here ...
18996         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18998         gl_UNISTD_H_DEFAULTS.
18999
19000 2008-10-25  Eric Blake  <ebb9@byu.net>
19001
19002         signbit: avoid spurious compiler failure
19003         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19004         declarations inside function.
19005
19006 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19007             Bruno Haible  <bruno@clisp.org>
19008
19009         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19010         * modules/random_r (Depends-on): Add stdint.
19011
19012 2008-10-24  Bruno Haible  <bruno@clisp.org>
19013
19014         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19015         Eggert.
19016         * modules/strerror (License): Likewise.
19017
19018 2008-10-24  Jim Meyering  <meyering@redhat.com>
19019
19020         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19021         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19022
19023 2008-10-24  Eric Blake  <ebb9@byu.net>
19024
19025         getgroups: fix compilation when getgroups is available
19026         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19027         but with <config.h> override of getgroups disabled.
19028
19029 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19030
19031         * doc/gnulib.texi (Header files): Add note about C++ problems.
19032         Explained by Bruno Haible <bruno@clisp.org>.
19033
19034 2008-10-23  Bruno Haible  <bruno@clisp.org>
19035
19036         Define a dummy SA_NODEFER macro on Interix.
19037         * lib/signal.in.h (SA_NODEFER): Define fallback.
19038         Reported by Aleksey Cheusov <cheusov@tut.by> via
19039         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19040
19041 2008-10-23  Bruno Haible  <bruno@clisp.org>
19042
19043         * modules/freadahead (License): Change to LGPLv2+.
19044         Suggested by Simon Josefsson.
19045
19046 2008-10-23  Jim Meyering  <meyering@redhat.com>
19047
19048         random_r: new module
19049         * modules/random_r: New file.
19050         * m4/random_r.m4: New file.
19051         * lib/random_r.c: New file, from glibc.
19052         * modules/random_r-tests: New file.
19053         * tests/test-random_r.c: New file.
19054         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19055          Declare.
19056         (RAND_MAX): Define.
19057         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19058         * modules/stdlib: Substitute them, too.
19059         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19060         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19061         * doc/glibc-functions/random_r.texi: Likewise.
19062         * doc/glibc-functions/setstate_r.texi: Likewise.
19063         * doc/glibc-functions/srandom_r.texi: Likewise.
19064         * config/srclist.txt: Mention it.
19065
19066 2008-10-23  David Lutterkort  <lutter@redhat.com>
19067
19068         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19069         link requirement
19070
19071 2008-10-23  Jim Meyering  <meyering@redhat.com>
19072
19073         selinux-h: mark parameters of stub functions as intentionally unused
19074         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19075         * lib/se-context.in.h: Likewise.
19076
19077 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19078
19079         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19080
19081 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19082
19083         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19084
19085 2008-10-22  Eric Blake  <ebb9@byu.net>
19086
19087         glthread/thread: avoid compiler warning
19088         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19089         Add unreachable abort to silence compiler.
19090
19091 2008-10-22  Eric Blake  <ebb9@byu.net>
19092
19093         netdb: also supply struct addrinfo for cygwin 1.5.x
19094         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19095         older cygwin.
19096         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19097         cygwin.
19098         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19099
19100 2008-10-22  Bruno Haible  <bruno@clisp.org>
19101
19102         * users.txt: Update entry about pspp.
19103
19104 2008-10-21  Bruno Haible  <bruno@clisp.org>
19105
19106         Simplification.
19107         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19108         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19109
19110         Simplification.
19111         * lib/ioctl.c (ioctl): Don't undefine.
19112         * lib/socket.c (socket): Don't undefine.
19113
19114         Remove unused module indicator macros.
19115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19116         GNULIB_$1 as a C macro.
19117
19118         * doc/posix-functions/close.texi: Undo last change.
19119         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19120         Windows platforms.
19121
19122 2008-10-21  Bruno Haible  <bruno@clisp.org>
19123
19124         Add gethostname() declaration to <unistd.h>.
19125         * lib/unistd.in.h (gethostname): New declaration.
19126         * lib/gethostname.c: Include <unistd.h>.
19127         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19128         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19130         and HAVE_GETHOSTNAME.
19131         * modules/gethostname (Depends-on): Add unistd.
19132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19133         (Include): Specify <unistd.h>.
19134         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19135         HAVE_GETHOSTNAME.
19136         * tests/test-gethostname.c: Include <unistd.h> first.
19137
19138 2008-10-21  Bruno Haible  <bruno@clisp.org>
19139
19140         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19141         * modules/select-tests (Depends-on): Likewise.
19142         Reported by Simon Josefsson.
19143
19144 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19145
19146         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19147         * lib/accept.c: New file, based on winsock.c.
19148         * lib/bind.c: New file, based on winsock.c.
19149         * lib/connect.c: New file, based on winsock.c.
19150         * lib/getpeername.c: New file, based on winsock.c.
19151         * lib/getsockname.c: New file, based on winsock.c.
19152         * lib/getsockopt.c: New file, based on winsock.c.
19153         * lib/ioctl.c: New file, based on winsock.c.
19154         * lib/listen.c: New file, based on winsock.c.
19155         * lib/recv.c: New file, based on winsock.c.
19156         * lib/recvfrom.c: New file, based on winsock.c.
19157         * lib/send.c: New file, based on winsock.c.
19158         * lib/sendto.c: New file, based on winsock.c.
19159         * lib/setsockopt.c: New file, based on winsock.c.
19160         * lib/shutdown.c: New file, based on winsock.c.
19161         * lib/socket.c: New file, based on winsock.c.
19162         * lib/w32sock.h: New file, based on winsock.c.
19163         * lib/winsock.c: Remove file.
19164         * modules/accept: Likewise.
19165         * modules/bind: Likewise.
19166         * modules/connect: Likewise.
19167         * modules/getpeername: Likewise.
19168         * modules/getsockname: Likewise.
19169         * modules/getsockopt: Likewise.
19170         * modules/ioctl: Likewise.
19171         * modules/listen: Likewise.
19172         * modules/recv: Likewise.
19173         * modules/recvfrom: Likewise.
19174         * modules/send: Likewise.
19175         * modules/sendto: Likewise.
19176         * modules/setsockopt: Likewise.
19177         * modules/shutdown: Likewise.
19178         * modules/socket: Use socket.c instead of winsock.c.
19179         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19180         * doc/posix-functions/accept.texi: Doc fix.
19181         * doc/posix-functions/bind.texi: Doc fix.
19182         * doc/posix-functions/close.texi: Doc fix.
19183         * doc/posix-functions/connect.texi: Doc fix.
19184         * doc/posix-functions/getpeername.texi: Doc fix.
19185         * doc/posix-functions/getsockname.texi: Doc fix.
19186         * doc/posix-functions/getsockopt.texi: Doc fix.
19187         * doc/posix-functions/ioctl.texi: Doc fix.
19188         * doc/posix-functions/listen.texi: Doc fix.
19189         * doc/posix-functions/recv.texi: Doc fix.
19190         * doc/posix-functions/recvfrom.texi: Doc fix.
19191         * doc/posix-functions/send.texi: Doc fix.
19192         * doc/posix-functions/sendto.texi: Doc fix.
19193         * doc/posix-functions/setsockopt.texi: Doc fix.
19194         * doc/posix-functions/shutdown.texi: Doc fix.
19195         * doc/posix-functions/socket.texi: Doc fix.
19196
19197 2008-10-20  Bruno Haible  <bruno@clisp.org>
19198
19199         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19200         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19201         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19202         as an alias for SIGABRT.
19203         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19204         (sigaction): Map it to SIGABRT.
19205         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19206
19207 2008-10-20  Bruno Haible  <bruno@clisp.org>
19208
19209         * lib/fts.c: Don't include lstat.h.
19210         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19211
19212         Move the lstat() declaration to <sys/stat.h>.
19213         * lib/lstat.h: Remove file.
19214         * lib/sys_stat.in.h: Add special invocation convention.
19215         (lstat): New declaration.
19216         * lib/lstat.c (orig_lstat): New function.
19217         (rpl_lstat): Use orig_lstat instead of lstat.
19218         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19219         AC_C_INLINE. Set REPLACE_LSTAT.
19220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19221         and REPLACE_LSTAT.
19222         * modules/lstat (Files): Remove lib/lstat.h.
19223         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19224         (Include): Specify <sys/stat.h> instead of lstat.h.
19225         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19226         REPLACE_LSTAT.
19227         * NEWS: Mention the change.
19228
19229 2008-10-20  Bruno Haible  <bruno@clisp.org>
19230
19231         * modules/posix_spawn-tests: New file.
19232         * tests/test-posix_spawn3.c: New file.
19233
19234 2008-10-20  Bruno Haible  <bruno@clisp.org>
19235
19236         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19237         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19238         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19239         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19240         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19241
19242 2008-10-20  Bruno Haible  <bruno@clisp.org>
19243
19244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19245         of posix_spawn on AIX 5.3.
19246
19247 2008-10-20  Bruno Haible  <bruno@clisp.org>
19248
19249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19250
19251 2008-10-20  Bruno Haible  <bruno@clisp.org>
19252
19253         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19254         of AC_LANG_PROGRAM.
19255
19256 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19257
19258         * lib/netdb.in.h: Don't define GNU specific constants until they
19259         are supported or needed.  Reported by Bruno Haible
19260         <bruno@clisp.org>.
19261
19262 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19263
19264         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19265
19266 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19267
19268         * lib/getaddrinfo.h: Remove file.
19269         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19270         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19271         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19272         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19273         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19274         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19275         * tests/test-getaddrinfo.c: Likewise.
19276         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19277         * NEWS: Mention change.
19278
19279 2008-10-19  Bruno Haible  <bruno@clisp.org>
19280
19281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19282
19283 2008-10-19  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/wait-process.c: Include simply <sys/wait.h>.
19286         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19287         WIFSTOPPED): Remove fallback definitions.
19288         * modules/wait-process (Depends-on): Add sys_wait.
19289
19290         New module 'sys_wait'.
19291         * modules/sys_wait: New file.
19292         * lib/sys_wait.in.h: New file, partially copied from
19293         lib/wait-process.c.
19294         * m4/sys_wait_h.m4: New file.
19295         * doc/posix-headers/sys_wait.texi: Mention the new module.
19296
19297 2008-10-19  Bruno Haible  <bruno@clisp.org>
19298
19299         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19300
19301 2008-10-19  Bruno Haible  <bruno@clisp.org>
19302
19303         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19304         * lib/wait-process.c (WAIT_T): Remove type.
19305         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19306         (wait_subprocess): Update.
19307
19308 2008-10-19  Bruno Haible  <bruno@clisp.org>
19309
19310         New module 'atoll'.
19311         * modules/atoll: New file.
19312         * lib/stdlib.in.h (atoll): New declaration.
19313         * lib/atoll.c: New file, from glibc with modifications.
19314         * m4/atoll.m4: New file.
19315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19316         HAVE_ATOLL.
19317         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19318         * doc/posix-functions/atoll.texi: Mention the new module.
19319
19320 2008-10-19  Bruno Haible  <bruno@clisp.org>
19321
19322         Add strtoull() declaration to <stdlib.h>.
19323         * lib/stdlib.in.h (strtoull): New declaration.
19324         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19325         Set HAVE_STRTOULL.
19326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19327         HAVE_STRTOULL.
19328         * modules/strtoull (Depends-on): Add stdlib.
19329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19330         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19331         HAVE_STRTOULL.
19332
19333 2008-10-19  Bruno Haible  <bruno@clisp.org>
19334
19335         Add strtoll() declaration to <stdlib.h>.
19336         * lib/stdlib.in.h (strtoll): New declaration.
19337         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19338         Set HAVE_STRTOLL.
19339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19340         HAVE_STRTOLL.
19341         * modules/strtoll (Depends-on): Add stdlib.
19342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19343         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19344
19345 2008-10-19  Bruno Haible  <bruno@clisp.org>
19346
19347         * modules/bcopy (Depends-on): Add strings.
19348         (Include): Specify <strings.h>.
19349
19350 2008-10-19  Bruno Haible  <bruno@clisp.org>
19351
19352         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19353
19354 2008-10-19  Bruno Haible  <bruno@clisp.org>
19355
19356         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19357         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19358         mingw.
19359
19360 2008-10-19  Bruno Haible  <bruno@clisp.org>
19361
19362         * lib/atanl.c: Don't include isnanl.h.
19363         * lib/cosl.c: Likewise.
19364         * lib/ldexpl.c: Likewise.
19365         * lib/logl.c: Likewise.
19366         * lib/sinl.c: Likewise.
19367         * lib/sqrtl.c: Likewise.
19368         * lib/tanl.c: Likewise.
19369
19370         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19371         * lib/isnanf.h: Remove file.
19372         * lib/isnand.h: Remove file.
19373         * lib/isnanl.h: Remove file.
19374         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19375         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19376         macros.
19377         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19378         HAVE_ISNANF, don't define it as a C macro.
19379         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19380         HAVE_ISNAND, don't define it as a C macro.
19381         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19382         HAVE_ISNANL, don't define it as a C macro.
19383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19384         HAVE_ISNAN[FDL].
19385         * modules/isnanf (Files): Remove lib/isnanf.h.
19386         (Depends-on): Add math.
19387         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19388         (Include): Specify <math.h> instead of isnanf.h.
19389         * modules/isnand (Files): Remove lib/isnand.h.
19390         (Depends-on): Add math.
19391         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19392         (Include): Specify <math.h> instead of isnand.h.
19393         * modules/isnanl (Files): Remove lib/isnanl.h.
19394         (Depends-on): Add math.
19395         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19396         (Include): Specify <math.h> instead of isnanl.h.
19397         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19398         HAVE_ISNAN[FDL].
19399         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19400         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19401         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19402         * NEWS: Mention the change.
19403
19404 2008-10-18  Bruno Haible  <bruno@clisp.org>
19405
19406         Add getusershell(), setusershell(), endusershell() declarations to
19407         <unistd.h>.
19408         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19409         declarations.
19410         * lib/getusershell.c: Include unistd.h.
19411         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19412         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19413         HAVE_GETUSERSHELL.
19414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19415         and HAVE_GETUSERSHELL.
19416         * modules/getusershell (Depends-on): Add unistd, extensions.
19417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19418         (Include): Specify <unistd.h>.
19419         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19420         HAVE_GETUSERSHELL.
19421
19422 2008-10-18  Bruno Haible  <bruno@clisp.org>
19423
19424         Add a getloadavg() declaration to <stdlib.h>.
19425         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19426         getloadavg declaration.
19427         (getloadavg): New declaration.
19428         * lib/getloadavg.c: Include <stdlib.h> first.
19429         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19430         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19431         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19433         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19434         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19435         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19436         (Include): Specify <stdlib.h>.
19437         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19438         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19439
19440 2008-10-18  Bruno Haible  <bruno@clisp.org>
19441
19442         * lib/dirchownmod.c: Don't include lchmod.h.
19443
19444         Move the lchmod() declaration to <sys/stat.h>.
19445         * lib/lchmod.h: Remove file.
19446         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19447         (lchmod): New declaration, moved here from lib/lchown.h.
19448         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19449         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19451         and HAVE_LCHMOD.
19452         * modules/lchmod (Files): Remove lib/lchmod.h.
19453         (Depends-on): Add sys_stat, extensions.
19454         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19455         (Include): Specify <sys/stat.h> instead of lchmod.h.
19456         * modules/sys_stat (Depends-on): Add link-warning.
19457         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19458         definition of GL_LINK_WARNING.
19459         * NEWS: Mention the change.
19460
19461 2008-10-18  Bruno Haible  <bruno@clisp.org>
19462
19463         * lib/fchdir.c: Don't include dirfd.h.
19464         * lib/fts.c: Likewise.
19465         * lib/getcwd.c: Likewise.
19466         * lib/glob.c: Likewise.
19467
19468         Move the dirfd() declaration to <dirent.h>.
19469         * lib/dirfd.h: Remove file.
19470         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19471         (dirfd): New declaration.
19472         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19473         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19474         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19475         HAVE_DECL_DIRFD.
19476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19477         HAVE_DECL_DIRFD.
19478         * modules/dirfd (Files): Remove lib/dirfd.h.
19479         (Depends-on): Add dirent, extensions.
19480         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19481         (Include): Specify <dirent.h> instead of dirfd.h.
19482         * modules/dirent (Depends-on): Add link-warning.
19483         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19484         definition of GL_LINK_WARNING.
19485         * NEWS: Mention the change.
19486
19487 2008-10-18  Bruno Haible  <bruno@clisp.org>
19488
19489         Move the euidaccess() declaration to <unistd.h>.
19490         * lib/euidaccess.h: Remove file.
19491         * lib/unistd.in.h (euidaccess): New declaration.
19492         * lib/euidaccess.c: Don't include euidaccess.h.
19493         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19494         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19496         and HAVE_EUIDACCESS.
19497         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19498         (Depends-on): Add unistd.
19499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19500         (Include): Specify <unistd.h> instead of euidaccess.h.
19501         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19502         HAVE_EUIDACCESS.
19503         * NEWS: Mention the change.
19504
19505 2008-10-18  Bruno Haible  <bruno@clisp.org>
19506
19507         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19508
19509         Move the getdomainname() declaration to <unistd.h>.
19510         * lib/getdomainname.h: Remove file.
19511         * lib/unistd.in.h (getdomainname): New declaration.
19512         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19513         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19514         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19515         HAVE_GETDOMAINNAME.
19516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19517         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19518         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19519         (Depends-on): Add unistd, extensions.
19520         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19521         (Includes): Specify <unistd.h> instead of getdomainname.h.
19522         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19523         HAVE_GETDOMAINNAME.
19524         * NEWS: Mention the change.
19525
19526 2008-10-18  Bruno Haible  <bruno@clisp.org>
19527
19528         * modules/dirent: New file.
19529         * m4/dirent_h.m4: New file.
19530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19531         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19532         * modules/fchdir (Files): Remove lib/dirent.in.h.
19533         (Depends-on): Add dirent.
19534         (Makefile.am): Move rules to modules/dirent.
19535         * doc/posix-headers/dirent.texi: Mention the new module.
19536
19537 2008-10-18  Bruno Haible  <bruno@clisp.org>
19538
19539         Avoid -Wunused-parameter warnings in public gnulib header files.
19540         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19541         macro.
19542         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19543
19544 2008-10-18  Bruno Haible  <bruno@clisp.org>
19545
19546         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19547         * doc/glibc-functions/error.texi: Mention the module 'error'.
19548         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19549         * doc/glibc-functions/getdomainname.texi: Mention the module
19550         'getdomainname'.
19551         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19552         * doc/glibc-functions/getpagesize.texi: Mention the module
19553         'getpagesize'.
19554         * doc/glibc-functions/getusershell.texi: Mention the module
19555         'getusershell'.
19556         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19557         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19558         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19559         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19560         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19561         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19562         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19563         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19564         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19565         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19566         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19567         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19568         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19569         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19570
19571 2008-10-17  Bruno Haible  <bruno@clisp.org>
19572
19573         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19574         HP-UX and IRIX, use -0.0L.
19575         * tests/test-ceill.c (minus_zero): Likewise.
19576         * tests/test-floorl.c (minus_zero): Likewise.
19577         * tests/test-frexpl.c (minus_zero): Likewise.
19578         * tests/test-isnan.c (minus_zerol): Likewise.
19579         * tests/test-isnanl.h (minus_zero): Likewise.
19580         * tests/test-ldexpl.c (minus_zero): Likewise.
19581         * tests/test-roundl.c (minus_zero): Likewise.
19582         * tests/test-signbit.c (minus_zerol): Likewise.
19583         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19584         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19585         * tests/test-truncl.c (minus_zero): Likewise.
19586         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19587         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19588         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19589         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19590
19591 2008-10-17  Bruno Haible  <bruno@clisp.org>
19592
19593         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19594         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19595         that it gets activated only for gcc >= 3.0.
19596         * lib/dirent.in.h: Likewise.
19597         * lib/errno.in.h: Likewise.
19598         * lib/fcntl.in.h: Likewise.
19599         * lib/float.in.h: Likewise.
19600         * lib/iconv.in.h: Likewise.
19601         * lib/inttypes.in.h: Likewise.
19602         * lib/locale.in.h: Likewise.
19603         * lib/math.in.h: Likewise.
19604         * lib/netdb.in.h: Likewise.
19605         * lib/netinet_in.in.h: Likewise.
19606         * lib/search.in.h: Likewise.
19607         * lib/signal.in.h: Likewise.
19608         * lib/spawn.in.h: Likewise.
19609         * lib/stdarg.in.h: Likewise.
19610         * lib/stdint.in.h: Likewise.
19611         * lib/stdio.in.h: Likewise.
19612         * lib/stdlib.in.h: Likewise.
19613         * lib/string.in.h: Likewise.
19614         * lib/strings.in.h: Likewise.
19615         * lib/sys_file.in.h: Likewise.
19616         * lib/sys_ioctl.in.h: Likewise.
19617         * lib/sys_select.in.h: Likewise.
19618         * lib/sys_socket.in.h: Likewise.
19619         * lib/sys_stat.in.h: Likewise.
19620         * lib/sys_time.in.h: Likewise.
19621         * lib/sysexits.in.h: Likewise.
19622         * lib/time.in.h: Likewise.
19623         * lib/unistd.in.h: Likewise.
19624         * lib/wchar.in.h: Likewise.
19625         * lib/wctype.in.h: Likewise.
19626         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19627
19628 2008-10-17  Jim Meyering  <meyering@redhat.com>
19629
19630         ignore-value: don't depend on inline module
19631         * modules/ignore-value (Depends-on): Remove 'inline'.
19632         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19633         Suggestion from Bruno Haible.
19634
19635 2008-10-17  Bruno Haible  <bruno@clisp.org>
19636
19637         New implementation of condition variables for Win32.
19638         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19639         (gl_linked_waitqueue_t): New type.
19640         (gl_cond_t): Use it.
19641         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19642         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19643         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19644         (glthread_cond_init_func, glthread_cond_wait_func,
19645         glthread_cond_timedwait_func, glthread_cond_signal_func,
19646         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19647         Reimplemented on the basis of gl_linked_waitqueue_t.
19648         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19649         gl_waitqueue_t.
19650         (gl_rwlock_t): Update.
19651         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19652
19653 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19654
19655         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19656         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19657
19658 2008-10-17  Jim Meyering  <meyering@redhat.com>
19659
19660         ignore-value: new module
19661         * modules/ignore-value: New file.
19662         * lib/ignore-value.h: New file.
19663         * MODULES.html.sh (Compiler warning management): New section,
19664         just for this module.  More to come.
19665
19666 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19669         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19670         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19671
19672 2008-10-16  Jim Meyering  <meyering@redhat.com>
19673
19674         openat-die.c: avoid 'no previous prototype' warning
19675         * lib/openat-die.c: Include "openat.h".
19676         Reported by Reuben Thomas <rrt@sc3d.org>.
19677
19678 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19679
19680         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19681         * lib/netdb.in.h: Fix typo.
19682         Reported by Bruno Haible  <bruno@clisp.org>
19683
19684         * lib/netdb.in.h: Include sys/socket.h for platforms without
19685         netdb.h, to get structures like hostent on MinGW.
19686         * modules/netdb (Depends-on): Add sys_socket.
19687
19688 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19689
19690         * modules/netdb, modules/netdb-tests: New file.
19691         * m4/netdb_h.m4: New file.
19692         * lib/netdb.in.h: Add, currently just an empty file pending
19693         definitions.
19694         * tests/test-netdb.c: New file.
19695         * doc/posix-headers/netdb.texi: Mention that we replace it if
19696         needed.
19697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19698         netdb.
19699
19700 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19701
19702         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19703         with code.
19704
19705 2008-10-13  Bruno Haible  <bruno@clisp.org>
19706
19707         * lib/glthread/cond.c (glthread_cond_wait_func,
19708         glthread_cond_timedwait_func): Add a comment.
19709
19710 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19711
19712         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19713         * tests/test-select.c: Likewise,
19714
19715 2008-10-13  Bruno Haible  <bruno@clisp.org>
19716
19717         * lib/glthread/cond.c (glthread_cond_wait_func,
19718         glthread_cond_timedwait_func): Fix variable name.
19719         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19720
19721 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19722
19723         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19724         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19725         struct sockaddr.sa_len.
19726         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19727
19728 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19729
19730         * build-aux/pmccabe2html: Add css and css_url parameters.
19731
19732 2008-10-12  Bruno Haible  <bruno@clisp.org>
19733
19734         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19735         calling aclx_get.
19736         Reported by Rainer Tammer <tammer@tammer.net>.
19737
19738 2008-10-12  Bruno Haible  <bruno@clisp.org>
19739
19740         Use msvcrt aware primitives for creation/termination of Win32 threads.
19741         * lib/glthread/thread.c: Include <process.h>.
19742         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19743         (wrapper_func): Update signature.
19744         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19745
19746 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19747             Bruno Haible  <bruno@clisp.org>
19748
19749         Provide a Win32 implementation of the 'cond' module.
19750         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19751         * lib/glthread/cond.c (glthread_cond_init_func,
19752         glthread_cond_wait_func, glthread_cond_timedwait_func,
19753         glthread_cond_signal_func, glthread_cond_broadcast_func,
19754         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19755         * modules/cond (Dependencies): Add gettimeofday.
19756
19757 2008-10-11  Bruno Haible  <bruno@clisp.org>
19758
19759         Make sleep work on older versions of mingw.
19760         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19761         only whether it exists.
19762         * doc/posix-functions/sleep.texi: Mention the problem with older
19763         versions of mingw.
19764
19765 2008-10-11  Bruno Haible  <bruno@clisp.org>
19766
19767         New module 'shutdown'.
19768         * modules/shutdown: New file.
19769         * lib/sys_socket.in.h (shutdown): New declaration.
19770         * lib/winsock.c (shutdown): New function.
19771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19772         GNULIB_SHUTDOWN.
19773         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19774         * doc/posix-functions/shutdown.texi: Document the new module.
19775
19776 2008-10-11  Jim Meyering  <meyering@redhat.com>
19777
19778         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19779
19780 2008-10-11  Bruno Haible  <bruno@clisp.org>
19781
19782         New module 'fclose'.
19783         * modules/fclose: New file.
19784         * lib/stdio.in.h (fclose): New declaration.
19785         * lib/fclose.c: New file.
19786         * m4/fclose.m4: New file.
19787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19788         REPLACE_FCLOSE.
19789         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19790         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19791         REPLACE_FCLOSE.
19792         * modules/close (Depends-on): fclose.
19793         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19794
19795 2008-10-11  Bruno Haible  <bruno@clisp.org>
19796
19797         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19798         set errno and don't call _close.
19799
19800 2008-10-10  Bruno Haible  <bruno@clisp.org>
19801
19802         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19803         ACL, not afterwards. Fixes test failure on Cygwin.
19804
19805 2008-10-09  Ben Pfaff  <blp@gnu.org>
19806
19807         * build-aux/announce-gen: Fix gnulib version related part of usage
19808         message.  Die with a useful error message if no tarballs are
19809         found.
19810
19811 2008-10-10  Jim Meyering  <meyering@redhat.com>
19812
19813         bootstrap: use git's --depth=N option only if it's supported
19814         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19815         recognize the --depth option.  Reported by Pádraig Brady.
19816
19817 2008-10-09  Bruno Haible  <bruno@clisp.org>
19818
19819         New module 'ioctl'.
19820         * modules/ioctl: New file.
19821         * lib/sys_socket.in.h (ioctl): Remove declaration.
19822         * lib/winsock.c: Include <sys/ioctl.h>.
19823         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19824         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19825         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19826         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19827         * doc/posix-functions/ioctl.texi: Mention the new module.
19828
19829 2008-10-09  Bruno Haible  <bruno@clisp.org>
19830
19831         New module 'sys_ioctl'.
19832         * lib/sys_ioctl.in.h: New file.
19833         * m4/sys_ioctl_h.m4: New file.
19834         * modules/sys_ioctl: New file.
19835         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19836
19837 2008-10-09  Bruno Haible  <bruno@clisp.org>
19838
19839         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19840         * lib/winsock.c: Include <stdarg.h>.
19841         (rpl_ioctl): Change to second argument 'int' and then varargs.
19842
19843 2008-10-09  Bruno Haible  <bruno@clisp.org>
19844
19845         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19846         when the sys_socket module is present and the system has <winsock2.h>.
19847
19848 2008-10-09  Bruno Haible  <bruno@clisp.org>
19849
19850         * doc/posix-functions/close.texi: Mention module 'close' instead of
19851         module 'sys_socket'.
19852
19853 2008-10-09  Bruno Haible  <bruno@clisp.org>
19854
19855         * doc/glibc-headers/sys_ioctl.texi: New file.
19856         * doc/gnulib.texi: Include it.
19857
19858 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19859             Bruno Haible  <bruno@clisp.org>
19860
19861         Combine the two replacements of 'close'.
19862         * lib/sys_socket.in.h (close): Define to a reminder to include
19863         <unistd.h>.
19864         (_gl_close_fd_maybe_socket): New declaration.
19865         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19866         * lib/winsock.c (close): Remove undefinition.
19867         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19868         needed for the gnulib module 'close'.
19869         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19870         define to an error symbol or to a warning, if suitable.
19871         * lib/close.c: Include <sys/socket.h>.
19872         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19873         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19874         UNISTD_H_HAVE_WINSOCK2_H.
19875         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19877         UNISTD_H_HAVE_WINSOCK2_H.
19878         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19879         (configure.ac): Set a module indicator.
19880         (Makefile.am): Substitute GNULIB_CLOSE.
19881         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19882         * modules/poll-tests (Depends-on): Add close.
19883         * modules/select-tests (Depends-on): Likewise.
19884
19885 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19886             Bruno Haible  <bruno@clisp.org>
19887
19888         New module 'close'.
19889         * modules/close: New file.
19890         * lib/unistd.in.h (close): Move declaration out of the
19891         FCHDIR_REPLACEMENT scope.
19892         (_gl_unregister_fd): New declaration.
19893         * lib/close.c: New file.
19894         * lib/fchdir.c (rpl_close): Remove function.
19895         * m4/close.m4: New file.
19896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19897         close.
19898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19899         REPLACE_CLOSE.
19900         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19901         REPLACE_CLOSE.
19902         * modules/fchdir (Depends-on): Add close.
19903
19904 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19905             Bruno Haible  <bruno@clisp.org>
19906
19907         * lib/fcntl.in.h (open): Simplify conditionals.
19908         (_gl_register_fd): New declaration.
19909         * lib/fchdir.c (rpl_open): Remove function.
19910         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19911         also.
19912         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19914         open.
19915
19916 2008-10-09  Jim Meyering  <meyering@redhat.com>
19917
19918         GNUmakefile: use the more name-space-friendly "_version"
19919         * top/GNUmakefile (_dummy): Update.
19920         (_version): Rename from "version".
19921
19922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19923             Bruno Haible  <bruno@clisp.org>
19924
19925         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19926         rpl_close.
19927         (_gl_register_fd): New function, extracted from rpl_open.
19928         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19929         (rpl_open, rpl_opendir): Use _gl_register_fd.
19930
19931 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19932
19933         Fix organization of 'open' replacement.
19934         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19935         (gl_FUNC_OPEN): Use it.
19936         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19937
19938 2008-10-08  Bruno Haible  <bruno@clisp.org>
19939
19940         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19941
19942 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19943
19944         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19945         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19946         listen).
19947
19948 2008-10-08  Eric Blake  <ebb9@byu.net>
19949
19950         GNUmakefile: add 'make version' target
19951         * top/GNUmakefile (_curr-ver): Split version update rules...
19952         (version): ...into a target.
19953
19954 2008-10-07  Bruno Haible  <bruno@clisp.org>
19955
19956         Use a more portable replacement expression for -0.0L.
19957         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19958         instead of -0.0L. Fix m4 quotation.
19959
19960         * tests/test-signbit.c: Include <float.h>.
19961         (minus_zero): New variable.
19962         (test_signbitl): Use minus_zero instead of -zero.
19963         * modules/signbit-tests (Depends-on): Add float.
19964
19965         * tests/test-ceill.c: Include <float.h>.
19966         (zero): Remove variable.
19967         (minus_zero): New variable.
19968         (main): Use minus_zero instead of -zero.
19969         * modules/ceill-tests (Depends-on): Add float.
19970
19971         * tests/test-floorl.c: Include <float.h>.
19972         (zero): Remove variable.
19973         (minus_zero): New variable.
19974         (main): Use minus_zero instead of -zero.
19975         * modules/floorl-tests (Depends-on): Add float.
19976
19977         * tests/test-roundl.c: Include <float.h>.
19978         (zero): Remove variable.
19979         (minus_zero): New variable.
19980         (main): Use minus_zero instead of -zero.
19981         * modules/roundl-tests (Depends-on): Add float.
19982
19983         * tests/test-truncl.c: Include <float.h>.
19984         (zero): Remove variable.
19985         (minus_zero): New variable.
19986         (main): Use minus_zero instead of -zero.
19987         * modules/truncl-tests (Depends-on): Add float.
19988
19989         * tests/test-frexpl.c (zero): Remove variable.
19990         (minus_zero): New variable.
19991         (main): Use minus_zero instead of -zero.
19992         * modules/frexpl-tests (Depends-on): Add float.
19993
19994         * tests/test-isnan.c (zerol): Remove variable.
19995         (minus_zerol): New variable.
19996         (test_long_double): Use minus_zerol instead of -zerol.
19997         * modules/isnan-tests (Depends-on): Add float.
19998
19999         * tests/test-isnanl.h (zero): Remove variable.
20000         (minus_zero): New variable.
20001         (main): Use minus_zero instead of -zero.
20002         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20003         * modules/isnanl-tests (Depends-on): Add float.
20004
20005         * tests/test-ldexpl.c (zero): Remove variable.
20006         (minus_zero): New variable.
20007         (main): Use minus_zero instead of -zero.
20008         * modules/ldexpl-tests (Depends-on): Add float.
20009
20010         * tests/test-snprintf-posix.h (zerol): Remove variable.
20011         (minus_zerol): New variable.
20012         (test_function): Use minus_zerol instead of -zerol.
20013         * modules/snprintf-posix-tests (Depends-on): Add float.
20014         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20015
20016         * tests/test-sprintf-posix.h (zerol): Remove variable.
20017         (minus_zerol): New variable.
20018         (test_function): Use minus_zerol instead of -zerol.
20019         * modules/sprintf-posix-tests (Depends-on): Add float.
20020         * modules/vsprintf-posix-tests (Depends-on): Add float.
20021
20022         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20023         (minus_zerol): New variable.
20024         (test_function): Use minus_zerol instead of -zerol.
20025         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20026
20027         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20028         (minus_zerol): New variable.
20029         (test_function): Use minus_zerol instead of -zerol.
20030         * modules/vasprintf-posix-tests (Depends-on): Add float.
20031
20032 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20033
20034         * MODULES.html.sh (Support for building documentation): Mention
20035         pmccabe2html.  Sort entries.
20036
20037         Add pmccabe2html module, from gnupdf.
20038         * build-aux/pmccabe.css: New file.
20039         * build-aux/pmccabe2html: New file.
20040         * m4/pmccabe2html.m4: New file.
20041         * modules/pmccabe2html: New file.
20042
20043 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20044
20045         flock: new module
20046         * MODULES.html.sh: Add to list of modules.
20047         * lib/flock.c: flock implementation for Windows and Unix systems
20048         which have fcntl.
20049         * doc/glibc-functions/flock.texi: Update documentation.
20050         * lib/sys_file.in.h: <sys/file.h> header file.
20051         * m4/flock.m4: M4 macros.
20052         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20053         * modules/flock: flock module.
20054         * modules/flock-tests: flock tests module.
20055         * modules/sys_file: sys/file.h module.
20056         * tests/test-flock.c: test suite for flock.
20057
20058 2008-10-06  Jim Meyering  <meyering@redhat.com>
20059
20060         bootstrap: check for LT_INIT more portably still ;-)
20061         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20062         Spotted by Bruno Haible.
20063
20064 2008-10-06  Eric Blake  <ebb9@byu.net>
20065
20066         test-signbit: avoid tripping Irix cc bug on -0.0L
20067         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20068         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20069         entire testsuite consistent and avoids an Irix 6.2 bug.
20070
20071 2008-10-05  Bruno Haible  <bruno@clisp.org>
20072             Jim Meyering  <jim@meyering.net>
20073
20074         Add an option for ignoring EPIPE during close_stdout.
20075         * lib/closeout.h: Include <stdbool.h>.
20076         (close_stdout_set_ignore_EPIPE): New declaration.
20077         * lib/closeout.c: Include <stdbool.h>.
20078         (ignore_EPIPE): New variable.
20079         (close_stdout_set_ignore_EPIPE): New function.
20080         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20081         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20082         failure.
20083         * modules/closeout (Depends-on): Add stdbool.
20084
20085 2008-10-05  Bruno Haible  <bruno@clisp.org>
20086
20087         * modules/accept: New file.
20088         * modules/bind: New file.
20089         * modules/connect: New file.
20090         * modules/getpeername: New file.
20091         * modules/getsockname: New file.
20092         * modules/getsockopt: New file.
20093         * modules/listen: New file.
20094         * modules/recv: New file.
20095         * modules/recvfrom: New file.
20096         * modules/send: New file.
20097         * modules/sendto: New file.
20098         * modules/setsockopt: New file.
20099         * modules/socket: New file.
20100         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20101         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20102         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20103         the particular module is requested. Add a link warning when the
20104         particular module is not requested.
20105         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20106         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20107         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20108         the particular module is requested.
20109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20110         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20111         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20112         * modules/sys_socket (Depends-on): Add link-warning.
20113         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20114         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20115         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20116         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20117         GL_LINK_WARNING.
20118         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20119         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20120         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20121         * doc/posix-functions/getpeername.texi: Mention the new module
20122         'getpeername'.
20123         * doc/posix-functions/getsockname.texi: Mention the new module
20124         'getsockname'.
20125         * doc/posix-functions/getsockopt.texi: Mention the new module
20126         'getsockopt'.
20127         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20128         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20129         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20130         * doc/posix-functions/send.texi: Mention the new module 'send'.
20131         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20132         * doc/posix-functions/setsockopt.texi: Mention the new module
20133         'setsockopt'.
20134         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20135         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20136         listen, connect, accept.
20137         * modules/select-tests (Depends-on): Likewise.
20138
20139 2008-10-05  Bruno Haible  <bruno@clisp.org>
20140
20141         * lib/winsock.c (strerror): Remove unused #undef.
20142         (rpl_close): Remove unused local variable.
20143
20144         * modules/sys_socket (Depends-on); Add errno.
20145
20146 2008-10-05  Bruno Haible  <bruno@clisp.org>
20147
20148         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20149         (select): Add a link warning when the 'select' module is not used.
20150         * modules/sys_select (Depends-on): Add link-warning.
20151         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20152         Suggested by Paolo Bonzini.
20153
20154 2008-10-05  Jim Meyering  <meyering@redhat.com>
20155
20156         bootstrap: check for LT_INIT more portably
20157         * build-aux/bootstrap: Avoid using grep -E, since it's not
20158         portable enough.  Suggestion from Bruno Haible.
20159
20160 2008-10-05  Bruno Haible  <bruno@clisp.org>
20161
20162         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20163         as being fixed by gnulib.
20164
20165 2008-10-05  Bruno Haible  <bruno@clisp.org>
20166
20167         * modules/select-tests: New file, mostly copied from
20168         modules/sys_select-tests.
20169         * tests/test-select.c: New file, mostly copied from
20170         tests/test-sys_select.c.
20171         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20172         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20173         (Makefile.am): Remove test_sys_select_LDADD.
20174
20175         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20176         to an undefined symbol, for an error message.
20177         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20178         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20179         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20180         winsock-select.c here.
20181         * modules/sys_select (Files): Remove lib/winsock-select.c.
20182         (Depends-on): Remove alloca.
20183         (Makefile.am): Substitute GNULIB_SELECT.
20184         * modules/select: New file.
20185         * doc/posix-functions/select.texi: Update.
20186
20187 2008-10-05  Bruno Haible  <bruno@clisp.org>
20188
20189         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20190         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20191         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20192         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20193         getdtablesize.
20194         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20195         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20196
20197 2008-10-05  Bruno Haible  <bruno@clisp.org>
20198
20199         * modules/getdtablesize-tests: New file.
20200         * tests/test-getdtablesize.c: New file.
20201
20202         New module 'getdtablesize'.
20203         * lib/unistd.in.h (getdtablesize): New declaration.
20204         * lib/getdtablesize.c: New file.
20205         * m4/getdtablesize.m4: New file.
20206         * modules/getdtablesize: New file.
20207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20208         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20209         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20210         HAVE_GETDTABLESIZE.
20211         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20212
20213 2008-10-05  Bruno Haible  <bruno@clisp.org>
20214
20215         * modules/sched (Makefile.am): Fix typo.
20216         Reported by Simon Josefsson.
20217
20218 2008-10-05  Jim Meyering  <meyering@redhat.com>
20219
20220         bootstrap: check for LT_INIT, too
20221         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20222         are deprecated.  Suggestion from Ralf Wildenhues.
20223
20224 2008-10-05  Bruno Haible  <bruno@clisp.org>
20225
20226         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20227         overriding them by ours.
20228         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20229
20230 2008-10-05  Jim Meyering  <meyering@redhat.com>
20231
20232         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20233         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20234         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20235
20236 2008-10-04  Bruno Haible  <bruno@clisp.org>
20237
20238         * modules/dup2 (License): Change to LGPLv2+.
20239         * modules/sleep (License): Likewise.
20240         * modules/perror (License): Likewise.
20241         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20242         Blake.
20243         * modules/signal (License): Likewise.
20244         * modules/sigprocmask (License): Likewise.
20245         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20246         Meyering.
20247
20248 2008-10-04  Bruno Haible  <bruno@clisp.org>
20249
20250         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20251         Reported by Rainer Tammer <tammer@tammer.net>.
20252
20253 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20254             Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20257         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20258         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20259
20260 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20261
20262         filevercmp: new module
20263         * lib/filevercmp.h: New function filevercmp comparing version strings.
20264         * lib/filevercmp.c: Implementation of filevercmp function.
20265         * modules/filevercmp: Module metadata.
20266         * tests/test-filevercmp.c: Unit test for new module.
20267         * modules/filevercmp-tests: Unit test metadata.
20268         * MODULES.html.sh: Add filevercmp module.
20269
20270 2008-10-03  Bruno Haible  <bruno@clisp.org>
20271
20272         * lib/c-ctype.h: Add comment.
20273         Reported by Jim Meyering.
20274
20275 2008-10-02  Bruno Haible  <bruno@clisp.org>
20276
20277         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20278
20279 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20280
20281         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20282         name of bootstrap.conf accordingly.
20283
20284 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20285
20286         * build-aux/bootstrap: Install git-merge-changelog configuration
20287         items into .gitconfig if needed.
20288
20289 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20290
20291         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20292         git repository, and initialize/update it accordingly.
20293
20294 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20295
20296         * modules/fsync-tests: New file.
20297         * tests/test-fsync.c: New file.
20298
20299         New module 'fsync'.
20300         * lib/fsync.c: New file.
20301         * m4/fsync.m4: New file.
20302         * modules/fsync: New file.
20303         * lib/unistd.in.h (fsync): New declaration.
20304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20305         GNULIB_FSYNC and HAVE_FSYNC.
20306         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20307         * MODULES.html.sh (posix_functions): Add fsync.
20308         * doc/posix-functions/fsync.texi: Mention the new module.
20309
20310 2008-10-02  Jim Meyering  <meyering@redhat.com>
20311
20312         fts.c: sync with similar code from coreutils' remove.c
20313         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20314         Guard also with "#if defined __linux__", since for now at least,
20315         this code is Linux-kernel-specific.
20316
20317 2008-10-02  Jim Meyering  <meyering@redhat.com>
20318
20319         fts: bug fixes
20320         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20321         Include <sys/vfs.h>, not <sys/statfs.h>.
20322
20323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20324         Include <sys/vfs.h>, not <sys/statfs.h>.
20325
20326 2008-10-01  Bruno Haible  <bruno@clisp.org>
20327
20328         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20329         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20330         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20331         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20332         * doc/posix-functions/posix_spawnp.texi: Likewise.
20333         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20334         whether posix_spawn actually works.
20335         * m4/pipe.m4 (gl_PIPE): Likewise.
20336         * modules/execute (Files): Add m4/posix_spawn.m4.
20337         * modules/pipe (Files): Add m4/posix_spawn.m4.
20338         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20339
20340 2008-10-01  Jim Meyering  <meyering@redhat.com>
20341
20342         remove trailing spaces
20343         * NEWS: Likewise.
20344         * lib/poll.c (poll): Likewise.
20345         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20346         * lib/winsock.c (rpl_close): Likewise.
20347         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20348         * modules/yield: Likewise.
20349         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20350         * tests/test-sys_select.c (connect_to_socket): Likewise.
20351
20352         fts.c: adjust a new interface to be more generally useful
20353         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20354         (fts_build): Adjust caller.
20355
20356 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20357
20358         * modules/cond-tests: New file.
20359         * tests/test-cond.c: New file.
20360
20361 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20362             Bruno Haible  <bruno@clisp.org>
20363
20364         * modules/cond (Dependencies): Add errno, time.
20365         * lib/glthread/cond.h: Include <time.h>.
20366         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20367         across platforms.
20368
20369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20370             Bruno Haible  <bruno@clisp.org>
20371
20372         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20373
20374 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20375             Bruno Haible  <bruno@clisp.org>
20376
20377         * modules/tls-tests (Depends-on): Add thread, yield.
20378         (configure.ac): Remove all checks.
20379         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20380         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20381         gl_thread_self): Remove definitions. Include glthread/thread.h and
20382         glthread/yield.h instead.
20383         (test_tls): Pass an additional NULL argument to gl_thread_join.
20384
20385 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20386             Bruno Haible  <bruno@clisp.org>
20387
20388         * modules/lock-tests (Depends-on): Add thread, yield.
20389         (configure.ac): Remove all checks.
20390         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20391         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20392         gl_thread_self): Remove definitions. Include glthread/thread.h and
20393         glthread/yield.h instead.
20394         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20395         additional NULL argument to gl_thread_join.
20396
20397 2008-09-30  Bruno Haible  <bruno@clisp.org>
20398
20399         Fix the Win32 implementation of the 'thread' module.
20400         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20401         pointer type.
20402         (gl_thread_self): Invoke gl_thread_self_func.
20403         (gl_thread_self_func): New declaration.
20404         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20405         (do_init_self_key, init_self_key): New functions.
20406         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20407         Remove some fields.
20408         (running_threads, running_lock): Remove variables.
20409         (get_current_thread_handle): New function.
20410         (gl_thread_self_func, wrapper_func, glthread_create_func,
20411         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20412         simplified.
20413
20414 2008-09-30  Bruno Haible  <bruno@clisp.org>
20415
20416         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20417         files.
20418
20419 2008-09-30  Jim Meyering  <meyering@redhat.com>
20420
20421         fts.m4: correct the test for statfs.f_type
20422         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20423         when checking for statfs.f_type.
20424
20425 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20426
20427         tests: avoid some compiler warnings
20428         * tests/test-memchr.c (main): Pass NULL indirectly.
20429         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20430
20431 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
20432
20433         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20434         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20435         exactly specified dayshifts.
20436         (dayshift): New rule.
20437         (rel): Add dayshift.
20438         (relative_time_table) [tomorrow, yesterday, today, now]:
20439         Use tDAY_SHIFT in place of tDAY_UNIT.
20440         * tests/test-getdate.c: Add tests for now-disallowed countable
20441         dayshifts, e.g., "4 yesterday ago".
20442
20443 2008-09-29  Bruno Haible  <bruno@clisp.org>
20444
20445         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20446         * tests/test-posix_spawn1.in.sh: Renamed from
20447         tests/test-posix_spawn.in.sh.
20448         * tests/test-posix_spawn2.c: New file.
20449         * tests/test-posix_spawn2.in.sh: New file.
20450         * modules/posix_spawnp-tests (Files): Update.
20451         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20452
20453 2008-09-29  Bruno Haible  <bruno@clisp.org>
20454
20455         Propagate effects of putenv/setenv/unsetenv to child processes.
20456         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20457         * lib/pipe.c (create_pipe): Likewise.
20458
20459 2008-09-29  Bruno Haible  <bruno@clisp.org>
20460
20461         Enable use of shell scripts as executables in mingw.
20462         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20463         run the program as a shell script.
20464         * lib/pipe.c (create_pipe): Likewise.
20465         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20466         resulting array.
20467
20468 2008-09-29  Eric Blake  <ebb9@byu.net>
20469
20470         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20471
20472 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20473
20474         * doc/posix-functions/accept.texi: Update mingw problems.
20475         * doc/posix-functions/bind.texi: Update mingw problems.
20476         * doc/posix-functions/close.texi: Update mingw problems.
20477         * doc/posix-functions/connect.texi: Update mingw problems.
20478         * doc/posix-functions/getpeername.texi: Update mingw problems.
20479         * doc/posix-functions/getsockname.texi: Update mingw problems.
20480         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20481         * doc/posix-functions/ioctl.texi: Update mingw problems.
20482         * doc/posix-functions/listen.texi: Update mingw problems.
20483         * doc/posix-functions/recv.texi: Update mingw problems.
20484         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20485         * doc/posix-functions/select.texi: Update mingw problems.
20486         * doc/posix-functions/send.texi: Update mingw problems.
20487         * doc/posix-functions/sendto.texi: Update mingw problems.
20488         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20489         * doc/posix-functions/socket.texi: Update mingw problems.
20490
20491 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20492             Bruno Haible  <bruno@clisp.org>
20493
20494         * lib/sys_select.in.h: Include sys/time.h.
20495         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20496         * modules/sys_select: Depend on sys_time.
20497         * tests/test-sys_select.c: Test that sys/select.h defines struct
20498         timeval fully.
20499
20500 2008-09-29  Bruno Haible  <bruno@clisp.org>
20501
20502         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20503         * lib/sys_select.in.h: Likewise.
20504
20505 2008-09-29  Bruno Haible  <bruno@clisp.org>
20506
20507         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20508
20509 2008-09-29  Bruno Haible  <bruno@clisp.org>
20510
20511         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20512         Set LIBSOCKET instead of augmenting LIBS.
20513         * modules/sockets (Link): New section.
20514         * modules/sockets-tests (test_sockets_LDADD): New variable.
20515         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20516         * modules/poll-tests (test_poll_LDADD): New variable.
20517         * NEWS: Document the change.
20518
20519 2008-09-29  Bruno Haible  <bruno@clisp.org>
20520
20521         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20522         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20523         ARPA_INET_H directly.
20524         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20525
20526 2008-09-28  Bruno Haible  <bruno@clisp.org>
20527
20528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20529         from gl_HEADER_SYS_SOCKET.
20530         (gl_HEADER_SYS_SOCKET): Invoke it.
20531         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20532
20533 2008-09-28  Bruno Haible  <bruno@clisp.org>
20534
20535         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20536         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20537         Needed on OSF/1 4.0.
20538
20539 2008-09-28  Bruno Haible  <bruno@clisp.org>
20540
20541         Override open more carefully.
20542         * lib/open.c (orig_open): New function.
20543         (rpl_open): Use orig_open instead of open.
20544         * lib/fcntl.in.h: Add special invocation convention.
20545         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20546         (gl_FUNC_OPEN): Invoke it.
20547
20548         Override freopen more carefully.
20549         * lib/freopen.c (orig_freopen): New function.
20550         (rpl_freopen): Use orig_freopen instead of freopen.
20551         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20552         (gl_FUNC_FREOPEN): Invoke it.
20553
20554         Override fopen more carefully.
20555         * lib/fopen.c (orig_fopen): New function.
20556         (rpl_fopen): Use orig_fopen instead of fopen.
20557         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20558         (gl_FUNC_FOPEN): Invoke it.
20559         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20560
20561 2008-09-28  Bruno Haible  <bruno@clisp.org>
20562
20563         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20564         SIGPIPE.
20565
20566 2008-09-28  Bruno Haible  <bruno@clisp.org>
20567
20568         * tests/test-sigaction.c (handler, main): Disable the check whether
20569         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20570         glibc systems with LinuxThreads.
20571
20572 2008-09-28  Bruno Haible  <bruno@clisp.org>
20573
20574         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20575
20576         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20577         with AIX xlc.
20578         * lib/fcntl.in.h (open): Likewise.
20579         Reported by Rainer Tammer <tammer@tammer.net>.
20580
20581 2008-09-28  Bruno Haible  <bruno@clisp.org>
20582
20583         * modules/posix_spawnp-tests: New file.
20584         * tests/test-posix_spawn.c: New file.
20585         * tests/test-posix_spawn.in.sh: New file.
20586
20587         New module 'posix_spawnp'.
20588         * modules/posix_spawnp: New file.
20589         * lib/spawnp.c: New file, from GNU libc with modifications.
20590         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20591
20592         New module 'posix_spawn'.
20593         * modules/posix_spawn: New file.
20594         * lib/spawn.c: New file, from GNU libc with modifications.
20595         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20596
20597         New module 'posix_spawnattr_destroy'.
20598         * modules/posix_spawnattr_destroy: New file.
20599         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20600         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20601         module.
20602
20603         New module 'posix_spawnattr_setsigmask'.
20604         * modules/posix_spawnattr_setsigmask: New file.
20605         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20606         modifications.
20607         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20608         new module.
20609
20610         New module 'posix_spawnattr_getsigmask'.
20611         * modules/posix_spawnattr_getsigmask: New file.
20612         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20613         modifications.
20614         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20615         new module.
20616
20617         New module 'posix_spawnattr_setsigdefault'.
20618         * modules/posix_spawnattr_setsigdefault: New file.
20619         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20620         modifications.
20621         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20622         new module.
20623
20624         New module 'posix_spawnattr_getsigdefault'.
20625         * modules/posix_spawnattr_getsigdefault: New file.
20626         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20627         modifications.
20628         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20629         new module.
20630
20631         New module 'posix_spawnattr_setschedpolicy'.
20632         * modules/posix_spawnattr_setschedpolicy: New file.
20633         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20634         modifications.
20635         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20636         new module.
20637
20638         New module 'posix_spawnattr_getschedpolicy'.
20639         * modules/posix_spawnattr_getschedpolicy: New file.
20640         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20641         modifications.
20642         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20643         new module.
20644
20645         New module 'posix_spawnattr_setschedparam'.
20646         * modules/posix_spawnattr_setschedparam: New file.
20647         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20648         modifications.
20649         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20650         new module.
20651
20652         New module 'posix_spawnattr_getschedparam'.
20653         * modules/posix_spawnattr_getschedparam: New file.
20654         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20655         modifications.
20656         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20657         new module.
20658
20659         New module 'posix_spawnattr_setpgroup'.
20660         * modules/posix_spawnattr_setpgroup: New file.
20661         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20662         modifications.
20663         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20664         module.
20665
20666         New module 'posix_spawnattr_getpgroup'.
20667         * modules/posix_spawnattr_getpgroup: New file.
20668         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20669         modifications.
20670         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20671         module.
20672
20673         New module 'posix_spawnattr_setflags'.
20674         * modules/posix_spawnattr_setflags: New file.
20675         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20676         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20677         module.
20678
20679         New module 'posix_spawnattr_getflags'.
20680         * modules/posix_spawnattr_getflags: New file.
20681         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20682         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20683         module.
20684
20685         New module 'posix_spawnattr_init'.
20686         * modules/posix_spawnattr_init: New file.
20687         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20688         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20689         module.
20690
20691         New module 'posix_spawn_file_actions_destroy'.
20692         * modules/posix_spawn_file_actions_destroy: New file.
20693         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20694         modifications.
20695         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20696         the new module.
20697
20698         New module 'posix_spawn_file_actions_addopen'.
20699         * modules/posix_spawn_file_actions_addopen: New file.
20700         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20701         modifications.
20702         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20703         the new module.
20704
20705         New module 'posix_spawn_file_actions_adddup2'.
20706         * modules/posix_spawn_file_actions_adddup2: New file.
20707         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20708         modifications.
20709         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20710         the new module.
20711
20712         New module 'posix_spawn_file_actions_addclose'.
20713         * modules/posix_spawn_file_actions_addclose: New file.
20714         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20715         modifications.
20716         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20717         the new module.
20718
20719         New module 'posix_spawn_file_actions_init'.
20720         * modules/posix_spawn_file_actions_init: New file.
20721         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20722         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20723         new module.
20724
20725         New module 'posix_spawn-internal'.
20726         * modules/posix_spawn-internal: New file.
20727         * lib/spawn_int.h: New file, from GNU libc with modifications.
20728         * lib/spawni.c: New file, from GNU libc with modifications.
20729         * m4/posix_spawn.m4: New file.
20730
20731         New module 'spawn'.
20732         * modules/spawn: New file.
20733         * lib/spawn.in.h: New file, from GNU libc with modifications.
20734         * m4/spawn_h.m4: New file.
20735         * doc/posix-headers/spawn.texi: Mention the new module.
20736
20737 2008-09-28  Bruno Haible  <bruno@clisp.org>
20738
20739         * modules/sched-tests: New file.
20740         * tests/test-sched.c: New file.
20741
20742         New module 'sched'.
20743         * modules/sched: New file.
20744         * lib/sched.in.h: New file.
20745         * m4/sched_h.m4: New file.
20746         * doc/posix-headers/sched.texi: Mention the new module.
20747
20748 2008-09-27  Eric Blake  <ebb9@byu.net>
20749
20750         Fix previous patch, and tweak references to $0.
20751         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20752         (func_version, func_gnulib_dir): Don't call this program
20753         gnulib-tool.
20754         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20755         with using $0 in function.
20756         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20757         (func_fatal_error): Reuse the name the user invoked us with.
20758
20759 2008-09-27  Bruno Haible  <bruno@clisp.org>
20760
20761         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20762         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20763         (gl_ICONV_H): Not here.
20764         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20765         instead of assigning ICONV_H directly.
20766
20767         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20769         WCHAR_H directly.
20770
20771 2008-09-27  Bruno Haible  <bruno@clisp.org>
20772
20773         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20774         * modules/arpa_inet (Depends-on): Add link-warning.
20775         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20776         * modules/unistd (Makefile.am): Likewise.
20777
20778 2008-09-26  Bruno Haible  <bruno@clisp.org>
20779
20780         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20781         variables.
20782         (func_version): Essentially copied from gnulib-tool.
20783         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20784         func_readlink): Copied from gnulib-tool.
20785
20786 2008-09-26  Bruno Haible  <bruno@clisp.org>
20787
20788         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20789         invoking git-version-gen.
20790
20791 2008-09-26  Bruno Haible  <bruno@clisp.org>
20792
20793         * posix-modules: Update to directory names changed on 2008-01-19.
20794         Remove commas in output before splitting into words. No more need to
20795         avoid 'ftruncate' since 2007-02-19.
20796
20797 2008-09-26  Bruno Haible  <bruno@clisp.org>
20798
20799         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20800
20801 2008-09-26  Bruno Haible  <bruno@clisp.org>
20802
20803         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20804         * modules/fwriteerror (Depends-on): Add errno.
20805
20806 2008-09-26  Bruno Haible  <bruno@clisp.org>
20807
20808         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20809         * tests/test-vc-list-files-cvs.sh: Likewise.
20810
20811 2008-09-26  Bruno Haible  <bruno@clisp.org>
20812
20813         * doc/posix-headers/sys_resource.texi: Reorder items.
20814
20815 2008-09-26  Jim Meyering  <meyering@redhat.com>
20816
20817         fts: tweak inode comparison function
20818         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20819         inode numbers, as documented.
20820
20821         fts: sort dirent entries on inode number before traversing
20822         This avoids a quadratic, seek-related performance penalty when
20823         operating on a directory containing many entries (measurable at 10k;
20824         3.5 hours at 2 million entries with a cold cache) on certain types
20825         of file systems, including ext3 and ext4, but not tmpfs.
20826         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20827         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20828         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20829         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20830         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20831         (fts_build): Set the stat.st_ino member from D_INO.
20832         If it is likely to be useful, sort dirent entries on inode number.
20833
20834         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20835         and the struct statfs.f_type member.
20836         * modules/fts (Depends-on): Add d-ino.
20837
20838 2008-09-26  Bruno Haible  <bruno@clisp.org>
20839
20840         * modules/sigpipe-die (Depends-on): Add sigpipe.
20841
20842         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20843         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20844         and GNULIB_STDIO_H_SIGPIPE are set.
20845         * lib/stdio-write.c: New file.
20846         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20849         REPLACE_STDIO_WRITE_FUNCS.
20850         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20851         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20852         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20853         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20854         * modules/stdio (Files): Add lib/stdio-write.c.
20855         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20856         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20857         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20858         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20859         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20860         REPLACE_FPRINTF_POSIX.
20861         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20862         REPLACE_PRINTF_POSIX.
20863         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20864         REPLACE_VFPRINTF_POSIX.
20865         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20866         REPLACE_VPRINTF_POSIX.
20867         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20868         SIGPIPE issue.
20869         * doc/posix-functions/fputc.texi: Likewise.
20870         * doc/posix-functions/fputs.texi: Likewise.
20871         * doc/posix-functions/fwrite.texi: Likewise.
20872         * doc/posix-functions/printf.texi: Likewise.
20873         * doc/posix-functions/putc.texi: Likewise.
20874         * doc/posix-functions/putchar.texi: Likewise.
20875         * doc/posix-functions/puts.texi: Likewise.
20876         * doc/posix-functions/vfprintf.texi: Likewise.
20877         * doc/posix-functions/vprintf.texi: Likewise.
20878
20879         * modules/safe-write (Depends-on): Add write.
20880
20881         * modules/sigpipe-tests: New file.
20882         * tests/test-sigpipe.c: New file.
20883         * tests/test-sigpipe.sh: New file.
20884
20885         * modules/write: New file.
20886         * lib/unistd.in.h: Include <sys/types.h>.
20887         (write): New declaration.
20888         * lib/write.c: New file.
20889         * m4/write.m4: New file.
20890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20891         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20892         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20893         GNULIB_WRITE, REPLACE_WRITE.
20894         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20895         and the SIGPIPE issue.
20896
20897         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20898         (raise): New declaration.
20899         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20900         (ext_signal): New function.
20901         (rpl_raise): New function.
20902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20903         GNULIB_SIGNAL_H_SIGPIPE.
20904         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20905         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20906
20907         * modules/sigpipe: New file.
20908         * m4/sigpipe.m4: New file.
20909
20910 2008-09-25  Derek Price  <derek@ximbiot.com>
20911             Bruno Haible  <bruno@clisp.org>
20912
20913         * gnulib-tool (func_import): Report all license incompatibilities, not
20914         just the first one.
20915
20916 2008-09-25  Bruno Haible  <bruno@clisp.org>
20917
20918         * gnulib-tool (func_import): When computing the edits, consider not
20919         only the Makefile.ams that exist but also those that will be generated.
20920
20921 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20922
20923         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20924         fixes gnulib-tool --test warning about duplicate dependency.
20925
20926 2008-09-25  Bruno Haible  <bruno@clisp.org>
20927
20928         * gnulib-tool: Don't ask the user to perform edits in the generated
20929         Makefile.ams.
20930         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20931         apply to the Makefile.am being generated.
20932         (func_emit_tests_Makefile_am): Execute edits that apply to the
20933         Makefile.am being generated.
20934         (func_import): Setup list of Makefile.am edits before emitting the
20935         Makefile.ams, not at the end.
20936         (func_create_testdir): Update.
20937         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20938
20939 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20940
20941         * gnulib-tool (func_import): Store the --tests-base option in the
20942         comment in gnulib-cache.m4.
20943
20944 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20945
20946         * NEWS: Document increased portability that sys_select now provides.
20947
20948         * lib/sys_select.in.h: Install select wrapper.
20949         * lib/sys_socket.in.h: Use more descriptive name when there is no
20950         select wrapper.
20951         * lib/winsock-select.c: New.
20952         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20953         Require gl_HEADER_SYS_SOCKET.
20954         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20955         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20956         * tests/test-sys_select.c: Add functional tests.
20957
20958 2008-09-24  Eric Blake  <ebb9@byu.net>
20959
20960         open, fopen: close fd leak in last patch
20961         * lib/open.c (rpl_open): Close fd before returning error.
20962         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20963         * doc/posix-functions/open.texi (open): Document that Irix also
20964         has the bug.
20965         * doc/posix-functions/fopen.texi (fopen): Likewise.
20966         Reported by Paolo Bonzini.
20967
20968 2008-09-24  Bruno Haible  <bruno@clisp.org>
20969
20970         Ensure that a filename ending in a slash cannot be used to access a
20971         non-directory.
20972         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20973         to check whether it's really a directory.
20974         * lib/fopen.c: Include fcntl.h, unistd.h.
20975         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20976         and fdopen().
20977         * modules/fopen (Depends-on): Add unistd.
20978         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20979         * tests/test-fopen.c (main): Likewise.
20980         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20981         * doc/posix-functions/fopen.texi: Likewise.
20982         Reported by Eric Blake.
20983
20984 2008-09-23  Eric Blake  <ebb9@byu.net>
20985
20986         c-stack: avoid compiler optimizations when provoking overflow
20987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20988         recursion harder to optimize, to ensure a stack overflow occurs.
20989         * tests/test-c-stack.c (recurse): Likewise.
20990         Borrowed from libsigsegv.
20991
20992         c-stack: work around Irix sigaltstack bug
20993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20994         whether sigaltstack uses wrong end of stack_t (copied in part from
20995         libsigsegv).
20996         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20997         Irix bug, without requiring an over-allocation.
20998         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20999         bug.
21000
21001         fopen: document mingw bug on directories
21002         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21003         not allowing a stream visiting a directory, even though reading
21004         from such a stream is not portable.
21005
21006 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21007
21008         * lib/poll.c: Rewrite.
21009         * modules/poll: Depend on alloca.
21010
21011 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21012
21013         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21014         instead define prototypes for a full set of wrappers.  Ensure
21015         that Cygwin does not use the compatibility code, which is only
21016         for MinGW.
21017         * lib/winsock.c: New.
21018         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21019         * modules/sys_socket: Add lib/winsock.c.
21020
21021         * modules/poll-tests: Add errno and perror.
21022         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21023
21024 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21025
21026         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21027
21028 2008-09-23  Bruno Haible  <bruno@clisp.org>
21029
21030         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21031         * doc/glibc-functions/*: Likewise.
21032
21033 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21034
21035         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21036         success.
21037
21038 2008-09-22  Eric Blake  <ebb9@byu.net>
21039             Bruno Haible  <bruno@clisp.org>
21040
21041         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21042         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21043         supply %A but mishandle pseudo-NaN.
21044         Reported by Simon Josefsson.
21045
21046 2008-09-21  Bruno Haible  <bruno@clisp.org>
21047
21048         * tests/test-lock.c (main): Tweak skip message.
21049         * tests/test-tls.c (main): Likewise.
21050
21051 2008-09-21  Bruno Haible  <bruno@clisp.org>
21052
21053         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21054         whether 'struct sigaction' has sa_sigaction here...
21055         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21056         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21057
21058 2008-09-21  Bruno Haible  <bruno@clisp.org>
21059
21060         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21061         section.
21062         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21063         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21064         the new section.
21065         (Support for obsolete systems lacking POSIX:2001): New section.
21066         (String handling <string.h>): Move strdup to the new section.
21067         Suggested by Simon Josefsson and Paolo Bonzini.
21068
21069 2008-09-21  Bruno Haible  <bruno@clisp.org>
21070
21071         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21072         exponents in %e and %g results on 'long double'. Needed for mingw's
21073         improved *printf functions.
21074         * tests/test-vasprintf-posix.c (test_function): Likewise.
21075         * tests/test-snprintf-posix.h (test_function): Likewise.
21076         * tests/test-sprintf-posix.h (test_function): Likewise.
21077         Reported by Eric Blake.
21078
21079 2008-09-21  Bruno Haible  <bruno@clisp.org>
21080
21081         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21082         * tests/test-sprintf-posix.h (test_function): Likewise.
21083
21084 2008-09-21  Bruno Haible  <bruno@clisp.org>
21085
21086         * modules/getpass (Depends-on): Add strdup-posix.
21087
21088         New module 'strdup-posix'.
21089         * modules/strdup-posix: New file.
21090         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21091         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21093         REPLACE_STRDUP.
21094         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21095         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21097         strdup-posix.
21098
21099         * modules/strdup (Depends-on): Remove malloc-posix.
21100
21101 2008-09-20  Bruno Haible  <bruno@clisp.org>
21102
21103         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21104         Wildenhues.
21105
21106 2008-09-20  Bruno Haible  <bruno@clisp.org>
21107
21108         Ensure that wint_t gets defined on IRIX 5.3.
21109         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21110         * lib/wctype.in.h (wint_t): Likewise.
21111         (__wctype_wint_t): Remove type.
21112         (isw*): Use wint_t instead of __wctype_wint_t.
21113         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21114         * modules/wchar (Files): Add m4/wint_t.m4.
21115         (Makefile.am): Substitute HAVE_WINT_T.
21116         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21117         * tests/test-wctype.c: Check that wint_t is defined.
21118         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21119         * doc/posix-headers/wctype.texi: Likewise.
21120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21121
21122 2008-09-18  Bruno Haible  <bruno@clisp.org>
21123
21124         * gnulib-tool (func_exit): Update comment.
21125
21126 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21127
21128         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21129         assumes strdup exists and does not depend on strdup to return
21130         ENOMEM on out of memory conditions.
21131
21132 2008-09-18  Bruno Haible  <bruno@clisp.org>
21133
21134         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
21135         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21136         digits for the exponent.
21137
21138 2008-09-18  Jim Meyering  <meyering@redhat.com>
21139             Bruno Haible  <bruno@clisp.org>
21140
21141         * lib/vasnprintf.c (decimal_point_char): Define also if
21142         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21143
21144 2008-09-16  Bruno Haible  <bruno@clisp.org>
21145         and Eric Blake  <ebb9@byu.net>
21146
21147         vasnprintf: support Irix 5.3
21148         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21149         that mishandle long double infinity.
21150         Reported by Tom G. Christensen.
21151
21152 2008-09-16  Bruno Haible  <bruno@clisp.org>
21153
21154         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21155         Solaris 9.
21156         * doc/glibc-functions/alphasort.texi: Likewise.
21157         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21158
21159 2008-09-16  Jim Meyering  <meyering@redhat.com>
21160
21161         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21162         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21163         a umask modification leak out of a subshell.  Otherwise, the
21164         opensolaris /bin/sh would be accepted and thus cause unwarranted
21165         failures in the coreutils test suite.
21166
21167 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21168
21169         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21170         to succeed.
21171
21172 2008-09-16  Jim Meyering  <meyering@redhat.com>
21173
21174         avoid spurious test failure when library is built without ACL support
21175         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21176         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21177         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21178         * tests/test-copy-acl.sh: Likewise.
21179
21180 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21181
21182         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21183         based on character occurrence counts.
21184
21185 2008-09-15  Eric Blake  <ebb9@byu.net>
21186
21187         tests: avoid some compiler warnings
21188         * tests/test-memchr.c (main): Pass NULL indirectly.
21189         * tests/test-closein.c (main): Avoid unused variable.
21190
21191 2008-09-15  Bruno Haible  <bruno@clisp.org>
21192
21193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21194         are missing on OpenBSD 4.0 individually.
21195         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21196
21197 2008-09-15  Bruno Haible  <bruno@clisp.org>
21198
21199         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21200         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21201         * doc/posix-functions/perror.texi: Likewise.
21202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21203         is missing.
21204         Reported by Eric Blake.
21205
21206         * lib/errno.in.h: Use replacement values >= 2000.
21207         Reported by Eric Blake.
21208
21209 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21210
21211         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21212         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21213         limit.
21214         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21215         compareseq was aborted.
21216
21217 2008-09-14  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21220         yvec_edit_count.
21221         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21222         (fstrcmp_bounded): Simplify result computation accordingly.
21223
21224 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21225
21226         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21227         (fstrcmp): Define in terms of fstrcmp_bounded.
21228         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21229         lower_bound argument.
21230         Return quickly if the result is certainly < lower_bound.
21231         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21232
21233 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21234
21235         * lib/diffseq.h (EARLY_ABORT): New macro.
21236         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21237         evaluates to true.
21238
21239 2008-09-14  Bruno Haible  <bruno@clisp.org>
21240
21241         * modules/perror-tests: New file.
21242         * tests/test-perror.sh: New file.
21243         * tests/test-perror.c: New file.
21244
21245         New module 'perror'.
21246         * lib/stdio.in.h (perror): New declaration.
21247         * lib/perror.c: New file.
21248         * m4/perror.m4: New file.
21249         * modules/perror: New file.
21250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21251         * doc/posix-functions/perror.texi: Mention the perror module.
21252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21253         REPLACE_PERROR.
21254         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21255         REPLACE_PERROR.
21256
21257 2008-09-14  Bruno Haible  <bruno@clisp.org>
21258
21259         * modules/stdio (Makefile.am): Reorder to match the order in
21260         lib/stdio.in.h.
21261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21262
21263 2008-09-13  Bruno Haible  <bruno@clisp.org>
21264
21265         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21266
21267 2008-09-13  Bruno Haible  <bruno@clisp.org>
21268
21269         Extend strerror to cover the added errno values.
21270         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21271         (rpl_strerror): Provide error messages for the added errno values and
21272         for the WSA* values.
21273         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21274         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21275         strerror.
21276         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21277         * modules/strerror (Depends-on): Add errno.
21278         * doc/posix-functions/strerror.texi: Document the change.
21279         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21280         and EOVERFLOW.
21281
21282 2008-09-13  Bruno Haible  <bruno@clisp.org>
21283
21284         * modules/EOVERFLOW: Remove file.
21285         * m4/eoverflow.m4: Remove file.
21286         * modules/EOVERFLOW-tests: Remove file.
21287         * tests/test-EOVERFLOW.c: Remove file.
21288         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21289         * modules/ftell (Depends-on): Likewise.
21290         * modules/getdelim (Depends-on): Likewise.
21291         * modules/getugroups (Depends-on): Likewise.
21292         * modules/poll (Depends-on): Likewise.
21293         * modules/snprintf (Depends-on): Likewise.
21294         * modules/sprintf-posix (Depends-on): Likewise.
21295         * modules/vasnprintf (Depends-on): Likewise.
21296         * modules/vasprintf (Depends-on): Likewise.
21297         * modules/vfprintf-posix (Depends-on): Likewise.
21298         * modules/vsnprintf (Depends-on): Likewise.
21299         * modules/vsprintf-posix (Depends-on): Likewise.
21300         * modules/xvasprintf (Depends-on): Likewise.
21301         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21302         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21303         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21304         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21306         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21307         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21308         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21310         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21311         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21312         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21313         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21314         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21315         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21316         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21317         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21318         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21319         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21320         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21321         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21322         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21323         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21324         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21325         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21326         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21327         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21328         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21329         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21330         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21331         * MODULES.html.sh: Remove EOVERFLOW.
21332         * NEWS: Mention the change.
21333
21334 2008-09-13  Bruno Haible  <bruno@clisp.org>
21335
21336         * modules/errno-tests: New file.
21337         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21338
21339         * lib/errno.in.h: New file.
21340         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21341         * modules/errno: New file.
21342         * doc/posix-headers/errno.texi: Update documentation.
21343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21344
21345 2008-09-13  Bruno Haible  <bruno@clisp.org>
21346
21347         * tests/test-poll.c: Use #if for native Windows, rather than testing
21348         __MSVCRT__.
21349
21350 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21351             Bruno Haible  <bruno@clisp.org>
21352
21353         * lib/glob.c: Don't include <pwd.h> on native Windows.
21354         (WINDOWS32): New macro.
21355         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21356
21357 2008-09-13  Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21360         (ETIMEDOUT): Remove macro.
21361         (glthread_cond_timedwait_multithreaded): New declaration.
21362         (glthread_cond_timedwait): Use it.
21363         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21364         (glthread_cond_timedwait_multithreaded): New function.
21365
21366 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21367
21368         * modules/poll-tests: Do not check for io.h.
21369         * tests/test-poll.c: Check for __MSVCRT__ instead.
21370
21371 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21372
21373         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21374         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21375         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21376
21377 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21378
21379         * modules/poll-tests: New.
21380         * tests/test-poll.c: New.
21381
21382 2008-09-12  Eric Blake  <ebb9@byu.net>
21383
21384         frexp: test for NetBSD failure on -0.0
21385         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21386         not all, bugs from NetBSD 3.0 have been fixed.
21387         * doc/posix-functions/frexp.texi (frexp): Document bug.
21388         Reported by Thomas Klausner.
21389
21390         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21391         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21392         literal -0.0.
21393         Reported by Jonathan C. Patschke <jp@centtech.com>.
21394
21395 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21396
21397         * lib/glthread/cond.h: Use dummy implementation also if
21398         USE_WIN32_THREADS.
21399
21400 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21401
21402         * modules/fnmatch-posix (License): Change to LGPLv2+.
21403         * modules/fnmatch-gnu (License): Likewise.
21404
21405 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21406
21407         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21408
21409 2008-09-11  Jim Meyering  <meyering@redhat.com>
21410
21411         * users.txt: Add gtk-vnc.
21412
21413 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21414
21415         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21416         rotate amounts.
21417
21418         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21419         required for 16-bit and 8-bit rotates.
21420         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21421         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21422         UINT8_MAX instead of hard-coded constants.
21423         Suggested by Paul Eggert.
21424
21425 2008-09-07  Bruno Haible  <bruno@clisp.org>
21426
21427         * tests/test-striconveh.c (main): Check behaviour when converting from
21428         UTF-7.
21429
21430         Make striconveh work better with stateful encodings.
21431         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21432         that iconv does not increment the inptr when returning -1/EINVAL.
21433
21434 2008-09-07  Bruno Haible  <bruno@clisp.org>
21435
21436         * build-aux/config.rpath: Update according to libtool-2.2.6.
21437         * build-aux/config.libpath: Likewise.
21438
21439 2008-09-06  Bruno Haible  <bruno@clisp.org>
21440
21441         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21442         * lib/freadptr.c (freadptr): Likewise.
21443         * lib/freadseek.c (freadptrinc): Likewise.
21444         Reported by Simon Josefsson.
21445
21446 2008-09-06  Bruno Haible  <bruno@clisp.org>
21447
21448         * modules/freadptr (License): Change to LGPLv2+.
21449         * modules/freadseek (License): Likewise.
21450         Suggested by Eric Blake.
21451
21452         * modules/memchr2 (License): Change to LGPLv2+.
21453         Approved by Eric Blake.
21454
21455 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21456             Bruno Haible  <bruno@clisp.org>
21457
21458         Make gnulib-tool work with native 'sed' on AIX.
21459         * gnulib-tool (sed_noop): New variable.
21460         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21461         func_add_or_update, func_create_testdir): Use it to initialize sed
21462         script variables.
21463         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21464
21465 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21466             Bruno Haible  <bruno@clisp.org>
21467
21468         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21469         also works after #include directives.
21470
21471 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
21472
21473         getdate.y: reject an out-of-range timezone value
21474         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21475         the range [-24...+24].  When specified with only one or two digits,
21476         * tests/test-getdate.c: Tests for the fix.
21477         * doc/getdate.texi: Document this change.
21478
21479 2008-09-03  Bruno Haible  <bruno@clisp.org>
21480
21481         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21482
21483 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21484
21485         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21486         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21487         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21488         Blake <ebb9@byu.net>.
21489
21490         * tests/test-bitrotate.c: Add more test vectors.
21491
21492 2008-09-02  Eric Blake  <ebb9@byu.net>
21493
21494         vasnprintf-posix: handle large precision via %.*d
21495         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21496         when handling it ourselves.
21497         * tests/test-vasnprintf-posix.c (test_function): Add test.
21498         * tests/test-snprintf-posix.h (test_function): Likewise.
21499         * tests/test-sprintf-posix.h (test_function): Likewise.
21500         * tests/test-vasprintf-posix.c (test_function): Likewise.
21501         Reported by Alain Guibert.
21502
21503 2008-09-01  Eric Blake  <ebb9@byu.net>
21504
21505         c-stack: make configure-time check more robust
21506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21507         successful sigaction call.
21508         Reported by Tom G. Christensen.
21509
21510 2008-09-01  Bruno Haible  <bruno@clisp.org>
21511
21512         New module 'findprog-lgpl'.
21513         * modules/findprog-lgpl: New file.
21514         * lib/findprog-lgpl.c: New file.
21515         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21516         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21517         to decide whether to use strdup or xstrdup, concatenated_filename or
21518         xconcatenated_filename.
21519
21520 2008-09-01  Bruno Haible  <bruno@clisp.org>
21521
21522         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21523         'xconcat-filename' (GPL).
21524         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21525         (License): Change to LGPLv2+.
21526         * modules/xconcat-filename: New file.
21527         * lib/concat-filename.h (concatenated_filename): Change specification.
21528         (xconcatenated_filename): New declaration.
21529         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21530         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21531         memory situations.
21532         * lib/xconcat-filename.c: New file.
21533         * NEWS: Mention the change.
21534         * lib/findprog.c: Include concat-filename.h, not filename.h.
21535         (find_in_path): Use xconcatenated_filename instead of
21536         concatenated_filename.
21537         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21538         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21539         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21540         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21541         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21542         instead of concatenated_filename.
21543         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21544         (execute_java_class): Use xconcatenated_filename instead of
21545         concatenated_filename.
21546         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21547         * modules/javacomp (Depends-on): Likewise.
21548         * modules/javaexec (Depends-on): Likewise.
21549
21550 2008-09-01  Bruno Haible  <bruno@clisp.org>
21551
21552         Split module 'filename' into 'filename' and 'concat-filename'.
21553         * modules/filename: Keep only lib/filename.h.
21554         (License): Change to LGPLv2+.
21555         * modules/concat-filename: New file, extracted from modules/filename.
21556         * lib/filename.h (concatenated_filename): Remove declaration.
21557         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21558         * lib/concat-filename.c: Include concat-filename.h.
21559         * NEWS: Mention the change.
21560
21561 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21562
21563         * lib/bitrotate.h (rotl8, rotr8): Add.
21564
21565         * modules/bitrotate (configure.ac): Need
21566         AC_REQUIRE([AC_C_INLINE]).
21567         (Description): Mention stdint.h.  Reported by Bruno Haible
21568         <bruno@clisp.org>.
21569
21570         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21571         Paolo Bonzini <bonzini@gnu.org>.
21572
21573 2008-08-31  Bruno Haible  <bruno@clisp.org>
21574
21575         Assume Solaris specific bi-arch conventions on Solaris systems.
21576         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21577         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21578         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21579         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21580         like acl_libdirstem.
21581         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21582         acl_libdirstem.
21583         * NEWS: Mention the change.
21584         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21585
21586 2008-08-31  Jim Meyering  <meyering@redhat.com>
21587
21588         * lib/strftime.h: Add comments describing the two added arguments.
21589
21590         remove duplicate #include directives
21591         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21592         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21593
21594 2008-08-31  Bruno Haible  <bruno@clisp.org>
21595
21596         New module 'sigpipe-die'.
21597         * modules/sigpipe-die: New file.
21598         * lib/sigpipe-die.h: New file.
21599         * lib/sigpipe-die.c: New file.
21600         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21601
21602 2008-08-31  Bruno Haible  <bruno@clisp.org>
21603
21604         Don't override previously installed signal handlers.
21605         * lib/fatal-signal.c (saved_sigactions): New variable.
21606         (uninstall_handlers): Reset the signal to the saved handler, not
21607         to SIG_DFL (except when ignored).
21608         (install_handlers): Save the previous handlers.
21609
21610 2008-08-30  Bruno Haible  <bruno@clisp.org>
21611
21612         * gnulib-tool (func_reset_sigpipe): New function.
21613         (func_get_automake_snippet, func_modules_transitive_closure,
21614         func_import): Invoke it before a join command that reads from stdin,
21615         to avoid "echo: write error: Broken pipe" error messages on stderr.
21616         Reported by Sam Steingold <sds@gnu.org>.
21617
21618 2008-08-30  Bruno Haible  <bruno@clisp.org>
21619
21620         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21621         Code copied from m4/open.m4.
21622         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21623         access and the filename ends in a slash. Code copied from lib/open.c.
21624         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21625         * tests/test-fopen.c (main): Check against bug with trailing slash.
21626
21627 2008-08-29  Bruno Haible  <bruno@clisp.org>
21628
21629         Avoid some "gcc -pedantic" warnings.
21630         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21631         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21632         * lib/dirent.in.h: Likewise.
21633         * lib/fcntl.in.h: Likewise.
21634         * lib/float.in.h: Likewise.
21635         * lib/iconv.in.h: Likewise.
21636         * lib/inttypes.in.h: Likewise.
21637         * lib/locale.in.h: Likewise.
21638         * lib/math.in.h: Likewise.
21639         * lib/netinet_in.in.h: Likewise.
21640         * lib/search.in.h: Likewise.
21641         * lib/signal.in.h: Likewise.
21642         * lib/stdarg.in.h: Likewise.
21643         * lib/stdint.in.h: Likewise.
21644         * lib/stdio.in.h: Likewise.
21645         * lib/stdlib.in.h: Likewise.
21646         * lib/string.in.h: Likewise.
21647         * lib/strings.in.h: Likewise.
21648         * lib/sys_select.in.h: Likewise.
21649         * lib/sys_socket.in.h: Likewise.
21650         * lib/sys_stat.in.h: Likewise.
21651         * lib/sys_time.in.h: Likewise.
21652         * lib/sysexits.in.h: Likewise.
21653         * lib/time.in.h: Likewise.
21654         * lib/unistd.in.h: Likewise.
21655         * lib/wchar.in.h: Likewise.
21656         * lib/wctype.in.h: Likewise.
21657         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21658         * modules/fchdir (Makefile.am): Likewise.
21659         * modules/fcntl (Makefile.am): Likewise.
21660         * modules/float (Makefile.am): Likewise.
21661         * modules/iconv_open (Makefile.am): Likewise.
21662         * modules/inttypes (Makefile.am): Likewise.
21663         * modules/locale (Makefile.am): Likewise.
21664         * modules/math (Makefile.am): Likewise.
21665         * modules/netinet_in (Makefile.am): Likewise.
21666         * modules/search (Makefile.am): Likewise.
21667         * modules/signal (Makefile.am): Likewise.
21668         * modules/stdarg (Makefile.am): Likewise.
21669         * modules/stdint (Makefile.am): Likewise.
21670         * modules/stdio (Makefile.am): Likewise.
21671         * modules/stdlib (Makefile.am): Likewise.
21672         * modules/string (Makefile.am): Likewise.
21673         * modules/strings (Makefile.am): Likewise.
21674         * modules/sys_select (Makefile.am): Likewise.
21675         * modules/sys_socket (Makefile.am): Likewise.
21676         * modules/sys_stat (Makefile.am): Likewise.
21677         * modules/sys_time (Makefile.am): Likewise.
21678         * modules/sysexits (Makefile.am): Likewise.
21679         * modules/time (Makefile.am): Likewise.
21680         * modules/unistd (Makefile.am): Likewise.
21681         * modules/wchar (Makefile.am): Likewise.
21682         * modules/wctype (Makefile.am): Likewise.
21683         Reported by Reuben Thomas <rrt@sc3d.org>.
21684
21685 2008-08-29  Bruno Haible  <bruno@clisp.org>
21686
21687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21688         any more.
21689
21690 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21691
21692         * MODULES.html.sh (Misc): Add bitrotate.
21693
21694         * modules/bitrotate: New file.
21695
21696         * lib/bitrotate.h: New file.
21697
21698         * modules/bitrotate-tests: New file.
21699
21700         * tests/test-bitrotate.c: New file.
21701
21702         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21703         on the bitrotate module.
21704
21705         * lib/arctwo.c: Use new bitrotate module.
21706
21707 2008-08-29  Jim Meyering  <meyering@redhat.com>
21708
21709         bootstrap: merge changes from coreutils
21710         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21711         of copied files.  Remove a kludge, now that this is fixed.
21712         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21713         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21714         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21715
21716 2008-08-29  Bruno Haible  <bruno@clisp.org>
21717
21718         * MODULES.html.sh: Remove --cvs-urls option.
21719
21720 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21721
21722         maint.mk: adjust to file name change
21723         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21724
21725 2008-08-28  Jim Meyering  <meyering@redhat.com>
21726
21727         * modules/getndelim2 (License): Relicense to LGPLv2+.
21728         Approved by Richard Stallman for the version of 1995, and by
21729         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21730
21731 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21732
21733         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21734         dummy if one is not available.  Do not touch them if
21735         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21736         (getc_maybe_unlocked): New.
21737         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21738
21739 2008-08-26  Eric Blake  <ebb9@byu.net>
21740
21741         doc/INSTALL: resync from autoconf
21742         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21743         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21744         moving...
21745         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21746         * INSTALL: Regenerate.
21747         * INSTALL.ISO: New file.
21748         * INSTALL.UTF-8: Likewise.
21749
21750 2008-08-26  Jim Meyering  <meyering@redhat.com>
21751
21752         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21753         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21754         these definitions conditional, so that they may be overridden, too.
21755
21756 2008-08-26  Bruno Haible  <bruno@clisp.org>
21757
21758         Generate INSTALL file variants with prettier quotes.
21759         * doc/Makefile (INSTALL_PRELUDE): New macro.
21760         (INSTALL): Use it.
21761         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21762
21763 2008-08-26  Bruno Haible  <bruno@clisp.org>
21764
21765         Run makeinfo in an English locale.
21766         * doc/Makefile (MAKEINFO): New variable.
21767
21768 2008-08-26  Bruno Haible  <bruno@clisp.org>
21769
21770         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21771         Suggested by Eric Blake.
21772
21773 2008-08-25  Bruno Haible  <bruno@clisp.org>
21774
21775         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21776
21777 2008-08-25  Eric Blake  <ebb9@byu.net>
21778
21779         c-stack: test that stack overflow can be caught
21780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21781         that platform allows handling stack overflow; at least OS/2 EMX
21782         has sigaltstack, but crashes before transferring control to
21783         handler on stack overflow.
21784         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21785         check for HAVE_STACK_OVERFLOW_HANDLING.
21786         Reported by Elbert Pol.
21787
21788 2008-08-25  Bruno Haible  <bruno@clisp.org>
21789
21790         * doc/posix-functions/strftime.texi: Fix description of strftime
21791         module.
21792
21793 2008-08-24  Bruno Haible  <bruno@clisp.org>
21794
21795         * tests/uniwidth/test-uc_width2.c: New file.
21796         * tests/uniwidth/test-uc_width2.sh: New file.
21797         * modules/uniwidth/width-tests (Files): Add the new files.
21798         (TESTS): Add uniwidth/test-uc_width2.sh.
21799         (TESTS_ENVIRONMENT): New variable.
21800         (check_PROGRAMS): Add test-uc_width2.
21801         (test_uc_width2_SOURCES): New variable.
21802
21803         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21804         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21805         not 0x00AB.
21806         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21807
21808 2008-08-22  Eric Blake  <ebb9@byu.net>
21809
21810         test-lock, test-tls: mention why a test is skipped
21811         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21812         skipped.
21813         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21814
21815         count-one-bits: relax license
21816         * modules/count-one-bits (License): Relicense to LGPLv2+.
21817         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21818
21819 2008-08-22  Andreas Schwab  <schwab@suse.de>
21820
21821         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21822         Remove spurious space in assignment.
21823
21824 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21825
21826         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21827         Paul Eggert <eggert@CS.UCLA.EDU>.
21828
21829 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21830
21831         * modules/gettext: Add m4/threadlib.m4.
21832
21833 2008-08-19  Eric Blake  <ebb9@byu.net>
21834
21835         test-c-stack: fix compilation failure on FreeBSD 5.0
21836         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21837         headers before <sys/resource.h>.
21838         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21839         the bug.
21840         Reported by Nelson H. F. Beebe.
21841
21842         strverscmp: migrate from "strverscmp.h" to <string.h>
21843         * modules/string (Makefile.am): Add new hooks.
21844         * modules/strverscmp (Files): Remove strverscmp.h.
21845         (Depends-on): Add string.
21846         (configure.ac): Add indicator.
21847         (Include): Mention new header.
21848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21849         defaults.
21850         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21851         results.
21852         * lib/strverscmp.h: Delete.
21853         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21854         * tests/test-strverscmp.c (includes): Adjust client.
21855         * lib/check-version.c (includes): Likewise.
21856         * NEWS: Document the change.
21857
21858         strverscmp: add unit test
21859         * modules/strverscmp-tests: New file.
21860         * tests/test-strverscmp.c: Likewise.
21861
21862 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21863
21864         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21865         regarding Windows crypto stuff, from Mono.
21866
21867 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21868
21869         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21870         if present, for intel RND.  Return error on failures.
21871
21872 2008-08-18  Ben Pfaff  <blp@gnu.org>
21873
21874         gitlog-to-changelog: give better diagnostic for failed pipe-open
21875         * build-aux/gitlog-to-changelog: Improve error message: suggest
21876         that the version of Git may be too old.
21877
21878 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21879
21880         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21881         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21882
21883 2008-08-18  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21886         pthread_in_use().
21887
21888 2008-08-18  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/glthread/threadlib.c: Include <pthread.h>.
21891
21892 2008-08-18  Bruno Haible  <bruno@clisp.org>
21893
21894         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21895         glthread_recursive_lock_* macros.
21896         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21897         Fix syntax error.
21898
21899 2008-08-18  Bruno Haible  <bruno@clisp.org>
21900
21901         * lib/glthread/thread.c: Avoid forcing a context switch right after
21902         thread creation.
21903
21904 2008-08-17  Bruno Haible  <bruno@clisp.org>
21905
21906         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21907         * lib/glthread/thread.h: Provide Win32 specific implementation.
21908         * modules/thread (Files): Add lib/glthread/thread.c.
21909         (Depends-on): Add lock.
21910         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21911
21912 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21913
21914         New module 'yield'.
21915         * modules/yield: New file.
21916         * lib/glthread/yield.h: New file.
21917         * m4/yield.m4: New file.
21918         * MODULES.html.sh (Multithreading): Add yield.
21919
21920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21921
21922         New module 'thread'.
21923         * modules/thread: New file.
21924         * lib/glthread/thread.h: New file.
21925         * m4/thread.m4: New file.
21926         * MODULES.html.sh (Multithreading): Add thread.
21927
21928 2008-08-17  Bruno Haible  <bruno@clisp.org>
21929
21930         * lib/glthread/lock.h: Include <stdlib.h> always.
21931         * lib/glthread/tls.h: Likewise.
21932         * lib/glthread/cond.h: Likewise.
21933
21934 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21935
21936         New module 'cond'.
21937         * modules/cond: New file.
21938         * lib/glthread/cond.h: New file.
21939         * lib/glthread/cond.c: New file.
21940         * m4/cond.m4: New file.
21941         * MODULES.html.sh (Multithreading): Add cond.
21942
21943 2008-08-16  Eric Blake  <ebb9@byu.net>
21944
21945         c-stack: fix regression on Irix 5.3 from 2008-06-21
21946         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21947         sa_sigaction...
21948         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21949         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21950         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21951         * modules/signal (Makefile.am): Use the value.
21952         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21953         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21954         * doc/posix-headers/signal.texi (signal.h): Document this
21955         portability issue.
21956         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21957         Reported by Tom G. Christensen.
21958
21959 2008-08-17  Bruno Haible  <bruno@clisp.org>
21960
21961         New module 'threadlib'.
21962         * modules/threadlib: New file.
21963         * lib/glthread/threadlib.c: New file, extracted from
21964         lib/glthread/lock.c.
21965         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21966         functions.
21967         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21968         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21969         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21970         macros.
21971         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21972         (gl_DISABLE_THREADS): Remove macro.
21973         * modules/lock (Files): Remove build-aux/config.rpath.
21974         (Depends-on): Remove havelib. Add threadlib.
21975         (configure.ac-early): Remove section.
21976         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21977         * modules/tls (Depends-on): Remove lock. Add threadlib.
21978         (Link): New section, copied from threadlib.
21979         * MODULES.html.sh (Multithreading): Add threadlib.
21980
21981 2008-08-14  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21984         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21985         glthread_rwlock_unlock, glthread_rwlock_destroy,
21986         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21987         glthread_recursive_lock_destroy): Define as macros always.
21988         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21989         glthread_lock_lock.
21990         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21991         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21992         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21993         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21994         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21995         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21996         (glthread_recursive_lock_lock_func): Renamed from
21997         glthread_recursive_lock_lock.
21998         (glthread_recursive_lock_unlock_func): Renamed from
21999         glthread_recursive_lock_unlock.
22000         (glthread_recursive_lock_destroy_func): Renamed from
22001         glthread_recursive_lock_destroy.
22002
22003 2008-08-14  Bruno Haible  <bruno@clisp.org>
22004
22005         * lib/glthread/lock.h: Renamed from lib/lock.h.
22006         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22007         * lib/glthread/tls.h: Renamed from lib/tls.h.
22008         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22009         * lib/fstrcmp.c: Update includes.
22010         * lib/strsignal.c: Update includes.
22011         * modules/lock (Files, Makefile.am): Update.
22012         (Include): Change to "glthread/lock.h".
22013         * modules/tls (Files, Makefile.am): Update.
22014         (Include): Change to "glthread/tls.h".
22015         * tests/test-lock.c: Update includes.
22016         * tests/test-tls.c: Update includes.
22017         * NEWS: Mention the renamed header files.
22018
22019 2008-08-11  Jim Meyering  <meyering@redhat.com>
22020
22021         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22022
22023 2008-08-11  Eric Blake  <ebb9@byu.net>
22024
22025         test-c-stack: avoid C99-ism
22026         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22027         before statement.
22028         Reported by Alain Guibert.
22029
22030 2008-08-10  Jim Meyering  <meyering@redhat.com>
22031
22032         ensure that return value of uinttostr et al are not ignored
22033         * lib/inttostr.h (__GNUC_PREREQ): Define.
22034         (__attribute_warn_unused_result__): Define.
22035         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22036
22037 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22038
22039         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22040         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22041
22042 2008-08-07  Jim Meyering  <meyering@redhat.com>
22043
22044         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22045
22046         * modules/mkstemp (License): Relicense under LGPLv2+.
22047         * modules/tempname (License): Likewise.
22048
22049 2008-08-06  Bruno Haible  <bruno@clisp.org>
22050
22051         * lib/poll.c (poll): Further micro-optimization.
22052
22053 2008-08-06  Jim Meyering  <meyering@redhat.com>
22054
22055         inet_pton.c: use locale-independent tolower
22056         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22057         (inet_pton6): Use c_tolower rather than tolower.
22058         * modules/inet_pton (Depends-on): Add c-ctype.
22059
22060 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22061
22062         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22063         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22064
22065 2008-08-06  Jim Meyering  <meyering@redhat.com>
22066
22067         * modules/inet_pton (License): Relicense under LGPLv2+.
22068
22069 2008-08-03  Bruno Haible  <bruno@clisp.org>
22070
22071         Additional non-aborting API for lock and tls.
22072         * lib/lock.h: Include <errno.h>.
22073         (glthread_lock_init): New macro/function.
22074         (gl_lock_init): Define as wrapper around glthread_lock_init.
22075         (glthread_lock_lock): New macro/function.
22076         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22077         (glthread_lock_unlock): New macro/function.
22078         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22079         (glthread_lock_destroy): New macro/function.
22080         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22081         (glthread_rwlock_init): New macro/function.
22082         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22083         (glthread_rwlock_rdlock): New macro/function.
22084         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22085         (glthread_rwlock_wrlock): New macro/function.
22086         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22087         (glthread_rwlock_unlock): New macro/function.
22088         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22089         (glthread_rwlock_destroy): New macro/function.
22090         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22091         (glthread_recursive_lock_init): New macro/function.
22092         (gl_recursive_lock_init): Define as wrapper around
22093         glthread_recursive_lock_init.
22094         (glthread_recursive_lock_lock): New macro/function.
22095         (gl_recursive_lock_lock): Define as wrapper around
22096         glthread_recursive_lock_lock.
22097         (glthread_recursive_lock_unlock): New macro/function.
22098         (gl_recursive_lock_unlock): Define as wrapper around
22099         glthread_recursive_lock_unlock.
22100         (glthread_recursive_lock_destroy): New macro/function.
22101         (gl_recursive_lock_destroy): Define as wrapper around
22102         glthread_recursive_lock_destroy.
22103         (glthread_once): New macro/function.
22104         (gl_once): Define as wrapper around glthread_once.
22105         Update function declarations.
22106         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22107         glthread_rwlock_init. Return error code.
22108         (glthread_rwlock_rdlock_multithreaded): Renamed from
22109         glthread_rwlock_rdlock. Return error code.
22110         (glthread_rwlock_wrlock_multithreaded): Renamed from
22111         glthread_rwlock_wrlock. Return error code.
22112         (glthread_rwlock_unlock_multithreaded): Renamed from
22113         glthread_rwlock_unlock. Return error code.
22114         (glthread_rwlock_destroy_multithreaded): Renamed from
22115         glthread_rwlock_destroy. Return error code.
22116         (glthread_recursive_lock_init_multithreaded): Renamed from
22117         glthread_recursive_lock_init. Return error code.
22118         (glthread_recursive_lock_lock_multithreaded): Renamed from
22119         glthread_recursive_lock_lock. Return error code.
22120         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22121         glthread_recursive_lock_unlock. Return error code.
22122         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22123         glthread_recursive_lock_destroy. Return error code.
22124         (glthread_once_call): Make static.
22125         (glthread_once_multithreaded): Renamed from glthread_once.
22126         * lib/tls.h: Include <errno.h>.
22127         (glthread_tls_key_init): New macro/function.
22128         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22129         (glthread_tls_set): New macro/function.
22130         (gl_tls_set): Define as wrapper around glthread_tls_set.
22131         (glthread_tls_key_destroy): New macro/function.
22132         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22133         Update function declarations.
22134         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22135         glthread_tls_get.
22136         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22137
22138 2008-08-04  Eric Blake  <ebb9@byu.net>
22139
22140         gnumakefile: use space, not TAB, outside of targets
22141         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22142
22143 2008-08-02  Jim Meyering  <meyering@redhat.com>
22144
22145         getdate.y: avoid locale-dependent date parsing failure
22146         In Turkish locales, getdate would fail to recognize keywords
22147         containing a lowercase "i".  The solution is not to rely on
22148         locale-sensitive case-conversion.
22149         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22150         (lookup_word): Use c_toupper in place of toupper.
22151         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22152         Reported by Vefa Bicakci <bicave@superonline.com> in
22153         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22154         * modules/getdate (Depends-on): Add c-ctype.
22155
22156 2008-08-02  Bruno Haible  <bruno@clisp.org>
22157
22158         * gnulib-tool (func_import): When updating or creating a .gitignore
22159         file, prepend each added line with a slash, and ignore leading slashes
22160         from the existing lines.
22161         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22162
22163 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22164
22165         Portability fix for GNU make 3.79.1.
22166         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22167         versions do not understand.
22168
22169 2008-08-01  Bruno Haible  <bruno@clisp.org>
22170
22171         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22172         * tests/test-isnanf.h (zero): New variable.
22173         (main): Avoid literal -0.0f.
22174         * tests/test-isnand.h (zero): New variable.
22175         (main): Avoid literal -0.0.
22176         * tests/test-isnanl.h (zero): New variable.
22177         (main): Avoid literal -0.0L.
22178         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22179         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22180         -0.0, -0.0L.
22181         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22182         (test_signbitd): Avoid literal -0.0.
22183         (test_signbitl): Avoid literal -0.0L.
22184         * tests/test-ceilf1.c (zero): New variable.
22185         (main): Avoid literal -0.0f.
22186         * tests/test-ceill.c (zero): New variable.
22187         (main): Avoid literal -0.0L.
22188         * tests/test-floorf1.c (zero): New variable.
22189         (main): Avoid literal -0.0f.
22190         * tests/test-floorl.c (zero): New variable.
22191         (main): Avoid literal -0.0L.
22192         * tests/test-roundf1.c (zero): New variable.
22193         (main): Avoid literal -0.0f.
22194         * tests/test-round1.c (zero): New variable.
22195         (main): Avoid literal -0.0.
22196         * tests/test-roundl.c (zero): New variable.
22197         (main): Avoid literal -0.0L.
22198         * tests/test-truncf1.c (zero): New variable.
22199         (main): Avoid literal -0.0f.
22200         * tests/test-trunc1.c (zero): New variable.
22201         (main): Avoid literal -0.0.
22202         * tests/test-truncl.c (zero): New variable.
22203         (main): Avoid literal -0.0L.
22204         * tests/test-frexp.c (zero): New variable.
22205         (main): Avoid literal -0.0.
22206         * tests/test-frexpl.c (zero): New variable.
22207         (main): Avoid literal -0.0L.
22208         * tests/test-ldexpl.c (zero): New variable.
22209         (main): Avoid literal -0.0L.
22210         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22211         (zerod, zerol): New variables.
22212         (test_function): Avoid literals -0.0, -0.0L.
22213         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22214         (zerod, zerol): New variables.
22215         (test_function): Avoid literals -0.0, -0.0L.
22216         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22217         (zerod, zerol): New variables.
22218         (test_function): Avoid literals -0.0, -0.0L.
22219         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22220         (zerod, zerol): New variables.
22221         (test_function): Avoid literals -0.0, -0.0L.
22222         * tests/test-strtod.c (zero): New variable.
22223         (main): Avoid literal -0.0.
22224         Reported by Jonathan C. Patschke <jp@centtech.com>.
22225
22226 2008-07-31  Jim Meyering  <meyering@redhat.com>
22227
22228         sha256.h: correct definition of SHA224_DIGEST_SIZE
22229         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22230         Reported by Paulie Pena IV <paulie4@gmail.com>.
22231         Define as 224 / 8, rather than as a literal.
22232         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22233         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22234         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22235
22236 2008-07-31  Bruno Haible  <bruno@clisp.org>
22237
22238         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22239         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22240         Reported by Jonathan Patschke <jp@centtech.com>.
22241
22242 2008-07-31  Bruno Haible  <bruno@clisp.org>
22243
22244         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22245         Reported by Paolo Bonzini <bonzini@gnu.org>.
22246
22247 2008-07-30  Eric Blake  <ebb9@byu.net>
22248
22249         test-strtod: allow compilation without -lm
22250         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22251         Reported by Dennis Clarke <blastwave@gmail.com>.
22252
22253 2008-07-28  Jim Meyering  <meyering@redhat.com>
22254
22255         bootstrap: work also when there are no .po files in po/
22256         * build-aux/bootstrap (update_po_files): Complete the change
22257         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22258
22259 2008-07-27  Jim Meyering  <meyering@redhat.com>
22260
22261         * users.txt: Add zile.
22262
22263 2008-07-26  Ben Pfaff  <blp@gnu.org>
22264
22265         Add missing dependencies on new m4/exponent[fdl].m4 files.
22266         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22267         * modules/isnand-nolibm: Add m4/exponentd.m4.
22268         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22269         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22270         m4/isnan[fdl].m4, because the macros actually used moved.
22271         Reported by Jim Meyering.
22272
22273 2008-07-14  Ben Pfaff  <blp@gnu.org>
22274
22275         Add isinf module.
22276         * lib/isinf.c: New file.
22277         * lib/math.in.h: Define isinf macro if we have decided to replace
22278         it.
22279         * m4/isinf.m4: New file.
22280         * m4/math_h.m4: Initialize and substitute variables for isinf
22281         module.
22282         * modules/isinf: New file.
22283         * modules/isinf-tests: New file.
22284         * modules/math: Add substitutions for new module.
22285         * tests/test-isinf.c: New file.
22286         * doc/posix-functions/isinf.texi: Mention new module.
22287         * MODULES.html.sh: Mention new module.
22288
22289 2008-07-14  Ben Pfaff  <blp@gnu.org>
22290
22291         Factor out some macros for use by additional modules.
22292         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22293         exponentf.m4.
22294         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22295         exponentd.m4.
22296         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22297         file exponentl.m4.
22298         * m4/exponentf.m4: New file.
22299         * m4/exponentd.m4: New file.
22300         * m4/exponentl.m4: New file.
22301         * modules/isnanf: Use new file m4/exponentf.m4.
22302         * modules/isnand: Use new file m4/exponentd.m4.
22303         * modules/isnanl: Use new file m4/exponentl.m4.
22304
22305 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22306
22307         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22308         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22309         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22310         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22311
22312         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22313         readlink on platforms without PATH_MAX.
22314
22315 2008-07-21  Eric Blake  <ebb9@byu.net>
22316
22317         Warn, not fail, on stale version.
22318         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22319
22320         Don't allow installation with stale devel version number.
22321         * top/GNUmakefile (_is-install-target): New macro.
22322         (_curr-ver): Forbid installation with stale version number.
22323
22324 2008-07-20  Bruno Haible  <bruno@clisp.org>
22325
22326         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22327         TESTS_ENVIRONMENT.
22328         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22329
22330 2008-07-20  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/c-stack.h (c_stack_action): Add documentation.
22333         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22334
22335 2008-07-20  Bruno Haible  <bruno@clisp.org>
22336
22337         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22338         * modules/readlink (License): Likewise.
22339
22340 2008-07-17  Eric Blake  <ebb9@byu.net>
22341
22342         * modules/c-stack (Link): Fix typo.
22343
22344         Make c-stack use libsigsegv, when available.
22345         * modules/c-stack (Depends-on): Add libsigsegv.
22346         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22347         needed.
22348         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22349         (segv_handler, overflow_handler, c_stack_action)
22350         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22351         implementation when libsigsegv is available, but only when using
22352         the library is necessary.
22353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22354         comment, explaining why XSI check fails on Linux.
22355         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22356         * tests/test-c-stack2.sh: Tweak skip message.
22357         * NEWS: Document new link-time requirements.
22358
22359 2008-07-16  Eric Blake  <ebb9@byu.net>
22360
22361         c-stack: Expose false positives when not using libsigsegv.
22362         * modules/c-stack-tests (Files): Expand test.
22363         * tests/test-c-stack.c (main): Add means to conditionally trigger
22364         non-overflow SIGSEGV.
22365         * tests/test-c-stack2.sh: New file.
22366
22367 2008-07-14  Bruno Haible  <bruno@clisp.org>
22368
22369         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22370         Reported by Eric Blake.
22371
22372 2008-07-14  Sam Steingold  <sds@gnu.org>
22373             Bruno Haible  <bruno@clisp.org>
22374
22375         New module libsigsegv.
22376         * modules/libsigsegv: New file.
22377         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22378         modifications.
22379         * MODULES.html.sh (Signal handling): New section.
22380
22381 2008-07-14  Bruno Haible  <bruno@clisp.org>
22382
22383         * modules/unictype/ctype-* (Description): Add the word "function".
22384         Improves the resulting doc in MODULES.html.
22385
22386 2008-07-12  Ben Pfaff  <blp@gnu.org>
22387
22388         Add longlong module.
22389         * modules/longlong: New file.
22390
22391 2008-07-12  Bruno Haible  <bruno@clisp.org>
22392
22393         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22394         to empty.
22395
22396 2008-07-10  Ben Pfaff  <blp@gnu.org>
22397
22398         Add isnan module.
22399         * doc/posix-functions/isnan.texi: Mention new module.
22400         * lib/math.in.h: Define isnan macro if we have decided to replace
22401         it.
22402         * m4/isnan.m4: New file.
22403         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22404         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22405         also.
22406         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22407         redundancy.
22408         * m4/math_h.m4: Initialize and substitute variables for isnan
22409         module.
22410         * modules/isnan: New file.
22411         * modules/isnan-tests: New file.
22412         * modules/math: Add substitutions for new module.
22413         * tests/test-isnan.c: New file.
22414         * MODULES.html.sh: Mention new module.
22415
22416 2008-07-10  Ben Pfaff  <blp@gnu.org>
22417
22418         Add isnanf module.
22419         * lib/isnanf.m4: New file.
22420         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22421         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22422         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22423         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22424         * modules/isnanf: New file.
22425         * modules/isnanf-tests: New file.
22426         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22427         files.
22428         * tests/test-isnanf-nolibm.c: factored most of its contents into
22429         new file tests/test-isnanf.h.
22430         * tests/test-isnanf.h: New file.
22431         * tests/test-isnanf.c: New file.
22432         * MODULES.html.sh: Mention new module.
22433         * doc/glibc-functions/isnanf.texi: Mention new module.
22434
22435 2008-07-10  Ben Pfaff  <blp@gnu.org>
22436
22437         Add isnand module.
22438         * lib/isnand.h: New file.
22439         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22440         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22441         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22442         functionality also.
22443         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22444         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22445         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22446         * modules/isnand: New file.
22447         * modules/isnand-tests: New file.
22448         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22449         files.
22450         * tests/test-isnand-nolibm.c: factored most of its contents into
22451         new file tests/test-isnand.h.
22452         * tests/test-isnand.h: New file.
22453         * tests/test-isnand.c: New file.
22454         * MODULES.html.sh: Mention new module.
22455
22456 2008-07-10  Ben Pfaff  <blp@gnu.org>
22457
22458         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22459         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22460         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22461         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22462         * modules/isnanf-nolibm: Update references to renamed files.
22463         * modules/isnand-nolibm: Likewise.
22464         * modules/isnanf-nolibm-tests: Likewise.
22465         * modules/isnand-nolibm-tests: Likewise.
22466         * lib/frexp.c: Likewise.
22467         * lib/isfinite.c: Likewise.
22468         * lib/signbitd.c: Likewise.
22469         * lib/signbitf.c: Likewise.
22470         * lib/vasnprintf.c: Likewise.
22471         * tests/test-ceilf1.c: Likewise.
22472         * tests/test-ceilf2.c: Likewise.
22473         * tests/test-floorf1.c: Likewise.
22474         * tests/test-floorf2.c: Likewise.
22475         * tests/test-frexp.c: Likewise.
22476         * tests/test-round1.c: Likewise.
22477         * tests/test-round2.c: Likewise.
22478         * tests/test-roundf1.c: Likewise.
22479         * tests/test-strtod.c: Likewise.
22480         * tests/test-trunc1.c: Likewise.
22481         * tests/test-trunc2.c: Likewise.
22482         * tests/test-truncf1.c: Likewise.
22483         * tests/test-truncf2.c: Likewise.
22484         * NEWS: Mention the renamed header files.
22485
22486 2008-07-11  Jim Meyering  <meyering@redhat.com>
22487
22488         vc-list-files: make the last-resort awk code more portable
22489         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22490         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22491         does not support it.
22492
22493 2008-07-10  Eric Blake  <ebb9@byu.net>
22494
22495         Work with tar's bootstrap.
22496         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22497         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22498         an m4 comment.
22499
22500 2008-07-09  Jim Meyering  <meyering@redhat.com>
22501
22502         posix-shell.m4: fix typo that made this test malfunction
22503         * m4/posix-shell.m4: Remove capitalization in variable name.
22504
22505 2008-07-08  Bruno Haible  <bruno@clisp.org>
22506
22507         * m4/onceonly.m4: Update comments.
22508         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22509
22510 2008-07-04  Jim Meyering  <meyering@redhat.com>
22511
22512         * users.txt: Add vc-dwim.
22513         (bison, coreutils): Use the gitweb URL.
22514
22515 2008-07-03  Jim Meyering  <meyering@redhat.com>
22516
22517         * users.txt: Add libffcall.  From Sam Steingold.
22518
22519 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
22520
22521         getdate.y: do not ignore TZ with relative day, month or year offset
22522         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22523         relative-date-handling, since otherwise, the latter would clobber the
22524         sole output (an updated Start value) of the tz-handling block.
22525         * tests/test-getdate.c: Tests for the fix
22526
22527 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22528
22529         Recognize 'foo_LIBRARIES += libgnu.a'.
22530         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22531         makefile snippet has already specified an installation location,
22532         also using '+='.
22533
22534 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
22535
22536         getdate.y: factor out common actions
22537         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22538         Use them in place of open-coded actions.
22539
22540 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22541
22542         Add self-test for getdate module.
22543         * modules/getdate-tests: New file.
22544         * tests/test-getdate.c: New file.
22545
22546 2008-06-29  Bruno Haible  <bruno@clisp.org>
22547
22548         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22549         .gitignore.
22550         Reported by Sylvain Beucler <beuc@beuc.net>.
22551
22552 2008-06-29  Bruno Haible  <bruno@clisp.org>
22553
22554         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22555         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22556
22557 2008-06-29  Bruno Haible  <bruno@clisp.org>
22558
22559         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22560         EXTRA_DIST.
22561         Reported by Sylvain Beucler <beuc@beuc.net>.
22562
22563 2008-06-26  Jim Meyering  <meyering@redhat.com>
22564
22565         make several modules depend on the "open" module
22566         This provides slightly increased consistency when opening-for-write
22567         the name of a non-directory spelled with a trailing slash.
22568         * modules/chdir-safer: Likewise.
22569         * modules/chown: Likewise.
22570         * modules/clean-temp: Likewise.
22571         * modules/copy-file: Likewise.
22572         * modules/fchdir: Likewise.
22573         * modules/fcntl-safer: Likewise.
22574         * modules/pipe: Likewise.
22575         * modules/utime: Likewise.
22576         Prompted by Eric Blake and Bruno Haible.
22577
22578 2008-06-24  Andreas Schwab  <schwab@suse.de>
22579
22580         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22581         literals can be used as initializers for global variables.
22582
22583 2008-06-23  Eric Blake  <ebb9@byu.net>
22584
22585         Make gnulib-cache.m4 easier to diff.
22586         * gnulib-tool (func_import): Allow newlines when reading cached
22587         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22588
22589 2008-06-23  Bruno Haible  <bruno@clisp.org>
22590
22591         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22592         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22593         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22594         m4/signalblocking.m4.
22595         (gl_PREREQ_SIGACTION): Don't invoke it.
22596         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22597         gl_PREREQ_SIG_HANDLER_H.
22598         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22599         Don't check for sigaction here.
22600
22601 2008-06-23  Bruno Haible  <bruno@clisp.org>
22602
22603         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22604         (install_handlers): Don't set the SA_RESETHAND flag.
22605
22606 2008-06-23  Bruno Haible  <bruno@clisp.org>
22607
22608         * m4/sigaction.m4: Comment fixes.
22609         * lib/signal.in.h: Likewise.
22610
22611 2008-06-23  Eric Blake  <ebb9@byu.net>
22612
22613         Fix typo.
22614         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22615
22616         Avoid SA_ namespace.
22617         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22618         Reported by Ralf Wildenhues.
22619
22620         Avoid test failure due to SA_RESTORER.
22621         * tests/test-sigaction.c (SA_MASK): New macro.
22622         (main): Avoid failing due to extension flags being set.
22623         Reported by Jim Meyering.
22624
22625         Revert use of sig-handler.h in sigprocmask.c.
22626         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22627         it requires the existence of struct sigaction.
22628         * lib/sigprocmask.c (handler_t): Restore typedef.
22629         (rpl_signal, old_handlers): Use local type.
22630
22631 2008-06-22  Bruno Haible  <bruno@clisp.org>
22632
22633         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22634         conditionally.
22635         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22636
22637 2008-06-22  Bruno Haible  <bruno@clisp.org>
22638
22639         * doc/posix-functions/siginterrupt.texi: Move note.
22640
22641         * lib/signal.in.h (SA_RESTART): New macro.
22642         * lib/sigaction.c: Update comment.
22643
22644         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22645
22646         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22647         (gl_PREREQ_SIGPROCMASK): Invoke it.
22648         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22649
22650         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22651
22652         * lib/sigprocmask.c: Update a comment.
22653
22654 2008-06-21  Eric Blake  <ebb9@byu.net>
22655
22656         Use sigaction module rather than signal().
22657         * modules/c-stack (Depends-on): Add sigaction.
22658         * modules/fatal-signal (Depends-on): Likewise.
22659         * modules/nanosleep (Depends-on): Likewise.
22660         * modules/sigprocmask (Files): Add sig-handler.h.
22661         * modules/sigaction (Files): Likewise.
22662         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22663         Eggert.
22664         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22665         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22666         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22667         (init_fatal_signals): Likewise.
22668         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22669         (siginterrupt): Delete fallback.
22670         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22671         instead.
22672         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22673         siginterrupt.
22674
22675         New module sigaction, for mingw.
22676         * modules/sigaction: New module...
22677         * modules/sigaction-tests: ...and its test.
22678         * m4/sigaction.m4: New file.
22679         * lib/sigaction.c: Likewise.
22680         * tests/test-sigaction.c: Likewise.
22681         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22682         * modules/signal (Makefile.am): Likewise.
22683         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22684         needed.
22685         * doc/posix-headers/signal.texi (signal.h): Mention provided
22686         types.
22687         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22688         that sigaction is preferable.
22689         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22690         module.
22691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22692         sigaction.
22693
22694         Improve robustness of sigprocmask by overriding signal.
22695         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22696         is in use.
22697         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22698         (SIGKILL, SIGSTOP): Provide fallbacks.
22699         (rpl_signal): Implement.
22700         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22701         signal can be called inside handlers.
22702
22703         Fix nanosleep module on mingw.
22704         * modules/nanosleep (Depends-on): Add sys_select.
22705         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22706
22707         Fix licensing of sigprocmask.
22708         * modules/raise (License): Relicense as LGPL.
22709
22710 2008-06-21  Bruno Haible  <bruno@clisp.org>
22711
22712         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22713         result if it contains question marks.
22714         Reported by Michael Geng <linux@michaelgeng.de>.
22715
22716 2008-06-19  Bruno Haible  <bruno@clisp.org>
22717
22718         Fix CVS-ism.
22719         * doc/gnulib.texi: Include updated-stamp.texi.
22720         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22721         (updated-stamp.texi): New rule.
22722         (gnulib.info): Depend on it.
22723         * doc/.gitignore: Add updated-stamp.texi.
22724         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22725
22726 2008-06-19  Bruno Haible  <bruno@clisp.org>
22727
22728         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22729         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22730
22731 2008-06-19  Eric Blake  <ebb9@byu.net>
22732
22733         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22734         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22735         Reported by Stepan Kasal.
22736
22737 2008-06-18  Bruno Haible  <bruno@clisp.org>
22738
22739         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22740         Reported by Eric Blake.
22741
22742 2008-06-18  Eric Blake  <ebb9@byu.net>
22743
22744         Work around cygwin 1.5.25 strsignal bug.
22745         * tests/test-strsignal.c: Allow for const char *.
22746         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22747
22748 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22749
22750         * users.txt: Update URL to article and add author/date
22751         information.
22752
22753 2008-06-17  Bruno Haible  <bruno@clisp.org>
22754
22755         New macro gl_DISABLE_THREADS.
22756         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22757         if the user did not pass --enable-threads or --disable-threads option.
22758         (gl_DISABLE_THREADS): New macro.
22759         Reported by Eric Blake <ebb9@byu.net>.
22760
22761 2008-06-17  Bruno Haible  <bruno@clisp.org>
22762
22763         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22764         when the macro ignores it.
22765         Based on a patch by Eric Blake <ebb9@byu.net>.
22766
22767 2008-06-17  Bruno Haible  <bruno@clisp.org>
22768
22769         * modules/tls (License): Change to LGPLv2+.
22770         Reported by Eric Blake.
22771
22772 2008-06-17  Eric Blake  <ebb9@byu.net>
22773
22774         Simplify c-stack prerequisites.
22775         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22777         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22778         check.
22779         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22780         <sys/resource.h>.
22781
22782         Move c-stack test into testsuite.
22783         * modules/c-stack-tests: New file.
22784         * lib/c-stack.c [DEBUG]: Move test program...
22785         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22786         fail test if sigaltstack is lacking.
22787         * tests/test-c-stack.sh: New driver file.
22788
22789 2008-06-16  Eric Blake  <ebb9@byu.net>
22790
22791         Use raise module consistently.
22792         * modules/fatal-signal (Depends-on): Add raise.
22793         * modules/sigprocmask (Depends-on): Likewise.
22794         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22795         * lib/sigprocmask.c (sigprocmask): Likewise.
22796         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22797         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22798
22799         Fix compliance bug in sigpending.
22800         * lib/sigprocmask.c (sigpending): Return pending array via
22801         parameter, not return value.
22802
22803 2008-06-14  Eric Blake  <ebb9@byu.net>
22804
22805         Improve obstack-printf test code.
22806         * tests/test-obstack-printf.c (test_function): Fix comment, and
22807         simplify usage of obstack_* in macros.  Add a test for coverage.
22808         Reported by Bruno Haible.
22809
22810 2008-06-14  Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22813         array size as a constant, not as a const variable.
22814         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22815         AC_USE_SYSTEM_EXTENSIONS.
22816         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22817         Test whether the obstack_printf function actually exists.
22818         * modules/obstack-printf (Depends-on): Add extensions.
22819         (Include): Remove obstack.h.
22820         * modules/obstack-printf-posix (Depends-on): Add extensions.
22821         (Include): Remove obstack.h.
22822
22823 2008-06-13  Eric Blake  <ebb9@byu.net>
22824
22825         Add obstack-printf and obstack-printf-posix modules.
22826         * modules/obstack-printf: New file.
22827         * modules/obstack-printf-posix: Likewise.
22828         * MODULES.html.sh (Misc): Mention them.
22829         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22830         Likewise.
22831         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22832         Likewise.
22833         * modules/stdio (Makefile.am): Accomodate new modules.
22834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22835         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22836         Declare.
22837         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22838         functions.
22839         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22840         (gl_REPLACE_OBSTACK_PRINTF): New macros
22841         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22842         * tests/test-obstack-printf.c: New file.
22843         * modules/obstack-printf-tests: Likewise.
22844         * modules/obstack-printf-posix-tests: Likewise.
22845
22846 2008-06-11  Bruno Haible  <bruno@clisp.org>
22847
22848         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22849         * lib/open.c: Include errno.h.
22850         (open): Fail when attempting to write to a file that has a trailing
22851         slash.
22852         * tests/test-open.c (main): Test against trailing slash bug.
22853         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22854
22855 2008-06-10  Bruno Haible  <bruno@clisp.org>
22856
22857         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22858         for $? to work inside the trap command, with various /bin/sh-s.
22859         * tests/test-vc-list-files-cvs.sh: Likewise.
22860
22861 2008-06-10  Bruno Haible  <bruno@clisp.org>
22862
22863         * lib/acl-internal.h: Don't include gettext.h here.
22864         * lib/set-mode-acl.c: Include gettext.h here.
22865         * lib/copy-acl.c: Likewise.
22866
22867 2008-06-10  Bruno Haible  <bruno@clisp.org>
22868
22869         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22870         * lib/wait-process.c (wait_subprocess): Likewise.
22871         * lib/execute.h (execute): Add termsigp argument.
22872         * lib/execute.c (execute): Likewise.
22873         * lib/csharpcomp.c (compile_csharp_using_pnet,
22874         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22875         * lib/csharpexec.c (execute_csharp_using_pnet,
22876         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22877         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22878         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22879         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22880         is_jikes_present): Update.
22881         * lib/javaexec.c (execute_java_class): Update.
22882         * lib/javaversion.c (execute_and_read_line): Update.
22883         * NEWS: Document the changes.
22884         Reported by Eric Blake.
22885
22886 2008-06-10  Eric Blake  <ebb9@byu.net>
22887
22888         Add missing include.
22889         * tests/test-strstr.c (includes): Add <signal.h>.
22890         * tests/test-strcasestr.c (includes): Likewise.
22891         * tests/test-memmem.c (includes): Likewise.
22892
22893 2008-06-10  Bruno Haible  <bruno@clisp.org>
22894
22895         * lib/wait-process.c (wait_subprocess): Add an assertion.
22896
22897 2008-06-10  Bruno Haible  <bruno@clisp.org>
22898
22899         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22900
22901 2008-06-10  Bruno Haible  <bruno@clisp.org>
22902
22903         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22904         using alarm().
22905         * tests/test-strcasestr.c (main): Likewise.
22906         * tests/test-strstr.c (main): Likewise.
22907
22908 2008-06-09  Bruno Haible  <bruno@clisp.org>
22909
22910         Work around the Solaris 10 ACE ACLs ABI change.
22911         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22912         declare if ACL_NO_TRIVIAL is present.
22913         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22914         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22915         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22916         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22917         define if ACL_NO_TRIVIAL is present.
22918         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22919         and use the current ABI.
22920         (file_has_acl): Use same #if condition as elsewhere.
22921         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22922         in use, and use the current ABI.
22923         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22924         Reported by Jim Meyering.
22925
22926 2008-06-09  Eric Blake  <ebb9@byu.net>
22927
22928         Work around environments that (stupidly) ignore SIGALRM.
22929         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22930         before using alarm().
22931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22933         Reported by Ian Beckwith <ianb@erislabs.net>.
22934
22935         Produce autobuild blurb earlier in log.
22936         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22937
22938 2008-06-09  Jim Meyering  <meyering@redhat.com>
22939         and OndÅ™ej Vašík  <ovasik@redhat.com>
22940
22941         utimens.c: correct kernel bug work-around
22942         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22943         failure, not success, and the kernel bug we're trying to work
22944         around affects not just the utimensat call, but also the fallback
22945         futimens call.
22946         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22947         not success.
22948         [HAVE_FUTIMENS]: Use the same work-around, here.
22949
22950 2008-06-09  Jim Meyering  <meyering@redhat.com>
22951
22952         add more guards around definition of ACE_-related code
22953         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22954         ALLOW and ACE_OWNER are also defined.
22955
22956 2008-06-08  Bruno Haible  <bruno@clisp.org>
22957
22958         * lib/acl-internal.h: Add me as co-author.
22959         * lib/file-has-acl.c: Likewise.
22960         * lib/set-mode-acl.c: Likewise.
22961         * lib/copy-acl.c: Likewise.
22962
22963 2008-06-08  Bruno Haible  <bruno@clisp.org>
22964
22965         Add support for AIX ACLs.
22966         * lib/acl-internal.h (acl_nontrivial): New declaration.
22967         * lib/file-has-acl.c (acl_nontrivial): New function.
22968         (file_has_acl): Add implementation using AIX 4 ACL API.
22969         * lib/set-mode-acl.c (qset_acl): Likewise.
22970         * lib/copy-acl.c (qcopy_acl): Likewise.
22971
22972 2008-06-08  Bruno Haible  <bruno@clisp.org>
22973
22974         Add support for HP-UX ACLs.
22975         * lib/acl-internal.h (acl_nontrivial): New declaration.
22976         * lib/file-has-acl.c (acl_nontrivial): New function.
22977         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22978         * lib/set-mode-acl.c (qset_acl): Likewise.
22979         * lib/copy-acl.c (qcopy_acl): Likewise.
22980
22981 2008-06-08  Bruno Haible  <bruno@clisp.org>
22982
22983         Add support for Cygwin ACLs.
22984         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22985         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22986         the chmod_or_fchmod call.
22987         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22988
22989 2008-06-08  Bruno Haible  <bruno@clisp.org>
22990
22991         Fix bug with setuid modes in Solaris 10+ code.
22992         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22993         succeeded, when the mode contains some special bits.
22994
22995 2008-06-08  Bruno Haible  <bruno@clisp.org>
22996
22997         Add support for Solaris 7..10 ACLs.
22998         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22999         declarations.
23000         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23001         functions.
23002         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23003         * lib/set-mode-acl.c (qset_acl): Likewise.
23004         * lib/copy-acl.c (qcopy_acl): Likewise.
23005
23006 2008-06-08  Bruno Haible  <bruno@clisp.org>
23007
23008         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23009         declaration.
23010         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23011         (acl_access_nontrivial): Remove MacOS X case.
23012         (file_has_acl): Use acl_extended_nontrivial.
23013         * lib/copy-acl.c (qcopy_acl): Likewise.
23014
23015 2008-06-08  Bruno Haible  <bruno@clisp.org>
23016
23017         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23018
23019 2008-06-08  Jim Meyering  <meyering@redhat.com>
23020
23021         * modules/acl (Maintainer): Add Bruno Haible.
23022
23023 2008-06-07  Bruno Haible  <bruno@clisp.org>
23024
23025         Improve support for Tru64 ACLs.
23026         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23027         ACL on OSF/1.
23028
23029 2008-06-07  Bruno Haible  <bruno@clisp.org>
23030
23031         Add support for MacOS X ACLs.
23032         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23033         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23034         * lib/set-mode-acl.c (qset_acl): Likewise.
23035         * lib/copy-acl.c (qcopy_acl): Likewise.
23036
23037 2008-06-07  Bruno Haible  <bruno@clisp.org>
23038
23039         Fix memory leak introduced on 2008-05-22.
23040         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23041         use.
23042
23043 2008-06-07  Bruno Haible  <bruno@clisp.org>
23044
23045         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23046         to construct an empty ACL.
23047
23048 2008-06-07  Bruno Haible  <bruno@clisp.org>
23049
23050         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23051         precisely.
23052         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23053
23054 2008-06-07  Bruno Haible  <bruno@clisp.org>
23055
23056         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23057         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23058
23059 2008-06-07  Bruno Haible  <bruno@clisp.org>
23060
23061         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23062         regardless of POSIX.
23063         * doc/posix-functions/_longjmp.texi: Likewise.
23064         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23065         SystemV platform in this case.
23066
23067 2008-06-06  Eric Blake  <ebb9@byu.net>
23068
23069         Document abort() bugs.
23070         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23071
23072         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23073         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23074         sigsetjmp.
23075         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23076         siglongjmp, but only as a macro.
23077         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23078         is obsolete.
23079         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23080
23081         Tweak documentation to cover cygwin argz bugs.
23082         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23083         argz bug fix; no code change needed since no cygwin releases
23084         occurred between the last fix and the bug being tested.
23085         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23086         module and recently fixed cygwin bugs.
23087         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23088         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23089         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23090         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23091         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23092         Likewise.
23093         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23094         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23095         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23096         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23097         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23098         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23099         Likewise.
23100
23101         Avoid gcc warning on cygwin.
23102         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23103         !ACL_NO_TRIVIAL]: Avoid unused variable.
23104
23105 2008-06-05  Eric Blake  <ebb9@byu.net>
23106
23107         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23108         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23109         git-version-gen fails to come up with a version.
23110         Reported by Simon Josefsson.
23111
23112 2008-06-05  Jim Meyering  <meyering@redhat.com>
23113             Paul Eggert  <eggert@cs.ucla.edu>
23114
23115         utimens.c: work around a probable Linux kernel bug
23116         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23117         appears to be a kernel bug that causes utimensat to return 280
23118         instead of 0, indicating success.
23119
23120 2008-06-04  Bruno Haible  <bruno@clisp.org>
23121
23122         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23123         2008-06-01 commit.
23124
23125 2008-06-04  Bruno Haible  <bruno@clisp.org>
23126
23127         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23128         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23129         (file_has_acl): Use it. Save errno afterwards.
23130         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23131
23132 2008-06-03  Bruno Haible  <bruno@clisp.org>
23133
23134         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23135         draft code. Simplify #ifs.
23136         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23137         Put Solaris code after POSIX-draft code. Fix comments regarding
23138         Solaris 10, HP-UX. Mention Cygwin.
23139         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23140
23141 2008-06-03  Eric Blake  <ebb9@byu.net>
23142
23143         Provide fallback for older kernels.
23144         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23145         Provide runtime fallback if kernel lacks support.
23146         Reported by Mike Frysinger.
23147
23148 2008-06-02  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23151         it exists.
23152
23153 2008-06-02  Bruno Haible  <bruno@clisp.org>
23154
23155         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23156         * lib/copy-acl.c (qcopy_acl): Update comment.
23157
23158 2008-06-02  Bruno Haible  <bruno@clisp.org>
23159
23160         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23161         like ACL APIs.
23162
23163 2008-06-02  Bruno Haible  <bruno@clisp.org>
23164
23165         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23166         * tests/test-set-mode-acl.sh: Likewise.
23167         * tests/test-copy-acl.sh: Likewise.
23168         * tests/test-copy-file.sh: Likewise.
23169
23170 2008-06-02  Bruno Haible  <bruno@clisp.org>
23171
23172         * tests/test-file-has-acl.sh: Remove unused code.
23173
23174 2008-06-01  Bruno Haible  <bruno@clisp.org>
23175
23176         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23177         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23178         messages.
23179         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23180
23181 2008-06-01  Bruno Haible  <bruno@clisp.org>
23182
23183         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23184         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23185         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23186         APIs.
23187         * modules/acl-tests (configure.ac): Remove tests now contained in
23188         m4/acl.m4.
23189
23190 2008-06-02  Jim Meyering  <meyering@redhat.com>
23191
23192         announce-gen: use a better key-server host name
23193         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23194         it may be more consistently reliable.  Suggested by Werner Koch
23195         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23196
23197 2008-06-01  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23200         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23201
23202 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23203
23204         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23205
23206 2008-06-01  Bruno Haible  <bruno@clisp.org>
23207
23208         New ACL tests.
23209         * tests/test-file-has-acl.sh: New file.
23210         * tests/test-file-has-acl.c: New file.
23211         * tests/test-set-mode-acl.sh: New file.
23212         * tests/test-set-mode-acl.c: New file.
23213         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23214         * tests/test-copy-acl.c: New file.
23215         * modules/acl-tests: New file, based on modules/copy-file-tests.
23216         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23217         (Depends-on): Add acl-tests.
23218         (configure.ac): Remove checks.
23219         (Makefile.am): Don't create test-sameacls program here any more.
23220
23221 2008-06-01  Bruno Haible  <bruno@clisp.org>
23222
23223         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23224         * tests/test-sameacls.c: Include progname.h.
23225         (main): Invoke set_program_name. Portability fixes for MacOS X,
23226         Solaris, HP-UX.
23227
23228 2008-06-01  Bruno Haible  <bruno@clisp.org>
23229
23230         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23231         function.
23232         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23233
23234 2008-06-01  Bruno Haible  <bruno@clisp.org>
23235
23236         * modules/rpmatch (Depends-on): Add strdup.
23237
23238 2008-06-01  Bruno Haible  <bruno@clisp.org>
23239
23240         * lib/pipe.c: Include unistd-safer.h.
23241         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23242         * modules/pipe (Depends-on): Add unistd-safer.
23243
23244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23245
23246         * modules/autobuild (configure.ac): Call AB_INIT.
23247
23248 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23249
23250         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23251         Suggested by Bruno Haible <bruno@clisp.org>.
23252
23253 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23254
23255         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23256         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23257         <bruno@clisp.org>.
23258
23259 2008-05-29  Eric Blake  <ebb9@byu.net>
23260
23261         Prefer new POSIX 200x interfaces over futimesat.
23262         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23263         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23264         when available.
23265         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23266
23267 2008-05-28  Bruno Haible  <bruno@clisp.org>
23268
23269         * modules/stpcpy (License): Change to LGPLv2+.
23270         Requested by David Lutterkort <dlutter@redhat.com>.
23271
23272 2008-05-27  Bruno Haible  <bruno@clisp.org>
23273
23274         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23275         current mingw.
23276         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23277
23278 2008-05-27  Bruno Haible  <bruno@clisp.org>
23279
23280         * modules/iconv_open (Link): New section, from module 'iconv'.
23281         * modules/striconv (Link): Likewise.
23282         * modules/striconveh (Link): Likewise.
23283         * modules/xstriconv (Link): Likewise.
23284         * modules/unicodeio (Link): Likewise.
23285         * modules/propername (Link): Likewise.
23286         Reported by Jim Meyering.
23287
23288 2008-05-26  Jim Meyering  <meyering@redhat.com>
23289
23290         sha256: do not artificially restrict buffer length to be < 2^32
23291         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23292         uint32_t to size_t.
23293         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23294         to match.
23295
23296         avoid unaligned access errors, e.g., on sparc
23297         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23298         direct access through a possibly-unaligned uint64* pointer.
23299         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23300         direct access through a possibly-unaligned uint32* pointer.
23301         Prompted by this patch from Tom "spot" Callaway:
23302         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23303
23304         sha512.c: fix typo in comment
23305         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23306
23307 2008-05-25  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23310         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23311         (Makefile.am): Update lib_SOURCES.
23312
23313 2008-05-25  Bruno Haible  <bruno@clisp.org>
23314
23315         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23316
23317 2008-05-25  Jim Meyering  <meyering@redhat.com>
23318
23319         useless-if-before-free: freed expr may have white-space differences
23320         * build-aux/useless-if-before-free: Recognize cases in which the
23321         freed expression differs from the tested one in embedded white
23322         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23323         $1 was used, so we can't make any regexp shy.  Improved tests now
23324         detect this.
23325
23326         useless-if-before-free: accept white space in the expression.
23327         * build-aux/useless-if-before-free: For now, any white space
23328         in the expression must be identical in the free argument.
23329
23330         useless-if-before-free: efficiency tweak
23331         * build-aux/useless-if-before-free: Make the expression-matching
23332         regexp "shy".
23333         Make the *outer* regexp shy, not the expr-matching one.
23334
23335         update code-in-comment to accept cast of free arg
23336         * build-aux/useless-if-before-free: Update regexp.
23337
23338 2008-05-25  Bruno Haible  <bruno@clisp.org>
23339
23340         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23341         * modules/copy-file-tests (Files, Makefile.am): Update.
23342         * tests/test-copy-file.c (func_test_copy): Update.
23343
23344 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23345
23346         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23347
23348 2008-05-23  Bruno Haible  <bruno@clisp.org>
23349
23350         Improve support for ACLs on OSF/1.
23351         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23352         Remove fallback for unknown flavors of ACLs.
23353
23354 2008-05-22  Bruno Haible  <bruno@clisp.org>
23355
23356         Add support for ACLs on OSF/1.
23357         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23358         replacements.
23359         (acl_free_text): New macro fallback.
23360         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23361         acl_free.
23362         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23363         acl_free_text function. Require AC_C_INLINE.
23364
23365 2008-05-22  Bruno Haible  <bruno@clisp.org>
23366
23367         Make copy_acl work on MacOS X 10.5.
23368         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23369         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23370         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23371         If MODE_INSIDE_ACL, don't assume that every system has the same text
23372         representation for ACLs as FreeBSD.
23373         * lib/copy-acl.c (copy_acl): Add support for platforms with
23374         !MODE_INSIDE_ACL.
23375         * lib/file-has-acl.c (file_has_acl): Likewise.
23376         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23377         FreeBSD, MacOS X, or IRIX, respectively.
23378
23379 2008-05-22  Bruno Haible  <bruno@clisp.org>
23380
23381         * lib/acl.h: Don't include <sys/acl.h>.
23382         (GETACLCNT): Move fallback to lib/acl-internal.h.
23383         * lib/acl-internal.h: Include <sys/acl.h> here.
23384         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23385
23386 2008-05-22  Bruno Haible  <bruno@clisp.org>
23387
23388         Split off copy_acl function to separate file.
23389         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23390         * lib/acl.c (copy_acl): Moved function to separate file.
23391         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23392         * modules/acl (Files): Add lib/copy-acl.c.
23393         (Makefiles.am): Augment lib_SOURCES.
23394
23395 2008-05-22  Bruno Haible  <bruno@clisp.org>
23396
23397         * modules/copy-file-tests: New file.
23398         * tests/test-copy-file.sh: New file.
23399         * tests/test-copy-file.c: New file.
23400         * tests/test-copy-file-sameacls.c: New file.
23401
23402 2008-05-22  Eric Blake  <ebb9@byu.net>
23403
23404         Avoid gcc warning.
23405         * tests/test-memcmp.c (main): Pass NULL indirectly.
23406
23407 2008-05-21  Bruno Haible  <bruno@clisp.org>
23408
23409         Add reference doc about ACLs.
23410         * doc/acl-resources.txt: New file.
23411         * doc/acl-cygwin.txt: New file.
23412
23413 2008-05-21  Bruno Haible  <bruno@clisp.org>
23414
23415         Avoid one more warning from gcc.
23416         * lib/vasnprintf.c (IF_LINT): Update comments.
23417         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23418
23419 2008-05-21  Jim Meyering  <meyering@redhat.com>
23420
23421         avoid a warning from gcc
23422         * lib/vasnprintf.c (IF_LINT): Define.
23423         (scale10_round_decimal_long_double):
23424         Use it to avoid a "may be used uninitialized" warning.
23425         (scale10_round_decimal_double): Likewise.
23426
23427 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23428
23429         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23430         declared.
23431
23432 2008-05-20  Bruno Haible  <bruno@clisp.org>
23433
23434         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23435         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23436
23437 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23438
23439         * modules/memcmp-tests: New file.
23440         * tests/test-memcmp.c: New file.
23441
23442 2008-05-19  Bruno Haible  <bruno@clisp.org>
23443
23444         * modules/propername (Notice, configure.ac): Put quoted "..." into
23445         --keyword option.
23446         * lib/propername.h: Update comments accordingly.
23447         Reported by Eric Blake.
23448
23449 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23450
23451         * modules/getpass-gnu (Depends-on): Add fseeko.
23452
23453 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23454
23455         * modules/base64-tests: New file.
23456
23457 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23458
23459         * lib/base64.c (base64_decode_ctx): If a decode context structure
23460         was passed in use it to ignore newlines.  If a context structure
23461         was _not_ passed in, continue to treat newlines as garbage (this
23462         is the historical behavior).  Formerly base64_decode.
23463         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23464         takes a decode context structure.
23465         * lib/base64.h (base64_decode): Macro for four-argument calls.
23466         (base64_decode_alloc): Likewise.
23467         * lib/base64.c (base64_decode_ctx): If a decode context structure
23468         was passed in use it to ignore newlines.  If a context structure
23469         was _not_ passed in, continue to treat newlines as garbage (this
23470         is the historical behavior).  Formerly base64_decode.
23471         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23472         takes a decode context structure.
23473         * lib/base64.h (base64_decode): Macro for four-argument calls.
23474         (base64_decode_alloc): Likewise.
23475
23476 2008-05-19  Jim Meyering  <meyering@redhat.com>
23477
23478         avoid a warning from gcc
23479         * lib/trim.c (IF_LINT): Define.
23480         (trim2): Use it to avoid a "may be used uninitialized" warning.
23481
23482         Fix doc typo.
23483         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23484
23485 2008-05-19  Bruno Haible  <bruno@clisp.org>
23486
23487         * doc/glibc-functions/getpass.texi: Document limits of other
23488         implementations.
23489
23490 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23491             Bruno Haible <bruno@clisp.org>
23492
23493         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23494
23495 2008-05-18  Bruno Haible  <bruno@clisp.org>
23496
23497         * modules/propername: New file, from GNU gettext.
23498         * lib/propername.h: New file, from GNU gettext.
23499         * lib/propername.c: New file, from GNU gettext.
23500         * MODULES.html.sh (Internationalization functions): Add propername.
23501
23502 2008-05-16  Jim Meyering  <meyering@redhat.com>
23503             Bruno Haible  <bruno@clisp.org>
23504
23505         Avoid some warnings from "gcc -Wshadow".
23506         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23507
23508 2008-05-15  Eric Blake  <ebb9@byu.net>
23509
23510         Extend previous patch to cygwin 1.7.0.
23511         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23512         fast implementation in cygwin >= 1.7.0.
23513         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23515
23516 2008-05-15  Bruno Haible  <bruno@clisp.org>
23517
23518         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23519         implementation in glibc >= 2.9.
23520         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23522
23523 2008-05-15  Bruno Haible  <bruno@clisp.org>
23524
23525         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23526         (Unicode string functions): Add unilbrk/*.
23527         Reported by Karl Berry.
23528
23529 2008-05-15  Eric Blake  <ebb9@byu.net>
23530
23531         Fix violation of <stdbool.h> replacement in regex.
23532         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23533         * lib/regexec.c (re_search_internal): Likewise.
23534         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23535
23536 2008-05-15  Jim Meyering  <meyering@redhat.com>
23537
23538         avoid distracting test output when git or cvs is not found
23539         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23540         * tests/test-vc-list-files-git.sh: Likewise.
23541
23542 2008-05-15  Eric Blake  <ebb9@byu.net>
23543
23544         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23545         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23546         glibc version.
23547         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23548         * doc/posix-functions/strstr.texi (strstr): Likewise.
23549         * lib/str-two-way.h (MAX): Sychronize with glibc.
23550
23551 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23552
23553         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23554         opr.ctx_type.
23555         (calc_first): Initialize constraint field.
23556         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23557         Fix grammar.
23558         (duplicate_node): Merge constraint field for all node types.
23559         (calc_eclosure_iter): Look at constraint field for all node types.
23560         * lib/regex_internal.c (create_cd_newstate): Don't look at
23561         opr.ctx_type.
23562
23563 2008-05-14  Bruno Haible  <bruno@clisp.org>
23564
23565         Help GCC to do better code generation.
23566         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23567         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23568         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23569         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23570         Declare with attribute 'malloc' if supported.
23571
23572 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23573
23574         use "echo STR|wc -c" rather than unportable "expr length STR"
23575         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23576         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23577
23578 2008-05-14  Jim Meyering  <meyering@redhat.com>
23579
23580         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23581         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23582         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23583         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23584         via Collin Lasse.
23585
23586 2008-05-14  Eric Blake  <ebb9@byu.net>
23587
23588         Avoid quadratic growth in gl_LIBSOURCES.
23589         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23590         Suggested by Bruno Haible.
23591
23592         Test xmemdup0.
23593         * modules/xmemdup0-tests: New file.
23594         * tests/test-xmemdup0.c: Likewise.
23595
23596 2008-05-13  Eric Blake  <ebb9@byu.net>
23597
23598         Split xmemdup0 into its own module.
23599         * modules/xmemdup0: New file.
23600         * lib/xmemdup0.h: Likewise.
23601         * lib/xmemdup0.c: Likewise.
23602         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23603         * lib/xalloc.h (xmemdup0): Remove.
23604         * lib/xmalloc.c (xmemdup0): Likewise.
23605
23606 2008-05-13  Eric Blake  <ebb9@byu.net>
23607             Bruno Haible  <bruno@clisp.org>
23608
23609         Reduce number of forks required during autoconf.
23610         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23611         and gl_LIBSOURCES_DIR.
23612         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23613         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23614         m4_syscmd per file.
23615         <m4_foreach_w>: Move...
23616         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23617
23618 2008-05-13  Eric Blake  <ebb9@byu.net>
23619
23620         * gnulib-tool: Fix various comment typos.
23621
23622 2008-05-12  Bruno Haible  <bruno@clisp.org>
23623
23624         Tailor the linebreaking algorithm.
23625         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23626
23627 2008-05-12  Bruno Haible  <bruno@clisp.org>
23628
23629         Update to Unicode 5.0.0.
23630         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23631         LBP_JV, LBP_JT. Redistribute values.
23632         (unilbrk_table): Change size.
23633         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23634         Unicode TR#14 rev. 22.
23635         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23636         LBP_JV, LBP_JT. Redistribute values.
23637         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23638         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23639         Update.
23640         * lib/unilbrk/lbrkprop1.h: Regenerated.
23641         * lib/unilbrk/lbrkprop2.h: Regenerated.
23642         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23643         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23644         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23645         Likewise.
23646         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23647         Likewise.
23648         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23649         result.
23650         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23651         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23652         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23653         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23654         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23655         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23656
23657 2008-05-11  Bruno Haible  <bruno@clisp.org>
23658
23659         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23660
23661 2008-05-11  Bruno Haible  <bruno@clisp.org>
23662
23663         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23664         * modules/unilbrk/gen-lbrk: New file.
23665
23666 2008-05-11  Bruno Haible  <bruno@clisp.org>
23667
23668         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23669         * m4/sha512.m4 (gl_SHA512): Likewise.
23670
23671 2008-05-11  Jim Meyering  <meyering@redhat.com>
23672
23673         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23674         * modules/crypto/sha256: New file.
23675         * modules/crypto/sha512: Likewise.
23676         * lib/sha256.c: Likewise.
23677         * lib/sha256.h: Likewise.
23678         * lib/sha512.c: Likewise.
23679         * lib/sha512.h: Likewise.
23680         * lib/u64.h: Likewise.
23681         * m4/sha256.m4: Likewise.
23682         * m4/sha512.m4: Likewise.
23683         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23684
23685 2008-05-10  Bruno Haible  <bruno@clisp.org>
23686
23687         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23688         (Input/Output <stdio.h>): Add xprintf.
23689         (Signal handling <signal.h>): Add strsignal.
23690         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23691         (Core language properties): Add func.
23692         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23693         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23694         strings.
23695         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23696         (Input/output): New section.
23697         (File system functions): Add openat-die, stat-macros.
23698         (Networking functions): Add sockets.
23699         (Unicode string functions): Add unictype/*.
23700         (Support for building libraries and executables): Add gperf.
23701         (Support for building documentation): Add agpl-3.0.
23702         (Misc): Add nocrash.
23703
23704 2008-05-10  Bruno Haible  <bruno@clisp.org>
23705
23706         * modules/unictype/gen-ctype: New file.
23707
23708 2008-05-10  Jim Meyering  <meyering@redhat.com>
23709
23710         Make chdir-safer.c more efficient on a system with no symlinks.
23711         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23712         also if ELOOP is zero.  Suggested by Bruno Haible.
23713
23714         Make chdir-safer.c slightly safer.
23715         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23716         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23717
23718         Avoid compile failure on systems without ELOOP (like mingw).
23719         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23720         Reported by Bruno Haible.
23721
23722 2008-05-10  Bruno Haible  <bruno@clisp.org>
23723
23724         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23725         (is_utf8_encoding): Use a case-insensitive comparison.
23726         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23727         streq.
23728
23729 2008-05-10  Bruno Haible  <bruno@clisp.org>
23730
23731         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23732         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23733         * lib/unilbrk/ulc-common.h (iconv_string_length,
23734         iconv_string_keeping_offsets): Remove declarations.
23735         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23736         Don't include <iconv.h>, streq.h, xsize.h.
23737         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23738         conversion.
23739         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23740         <iconv.h>, streq.h, xsize.h.
23741         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23742         conversion.
23743         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23744         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23745         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23746         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23747
23748 2008-05-10  Bruno Haible  <bruno@clisp.org>
23749
23750         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23751         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23752
23753         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23754         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23755
23756         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23757         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23758
23759         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23760         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23761
23762         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23763         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23764
23765         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23766         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23767
23768         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23769         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23770
23771         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23772         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23773
23774 2008-05-10  Bruno Haible  <bruno@clisp.org>
23775
23776         Split up 'linebreak' module.
23777         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23778         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23779         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23780         modifications.
23781         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23782         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23783         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23784         lib/linebreak.c.
23785         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23786         lib/linebreak.c.
23787         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23788         lib/linebreak.c.
23789         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23790         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23791         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23792         lib/linebreak.c.
23793         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23794         lib/linebreak.c.
23795         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23796         lib/linebreak.c.
23797         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23798         lib/linebreak.c.
23799         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23800         lib/linebreak.c.
23801         * modules/unilbrk/base: New file.
23802         * modules/unilbrk/tables: New file.
23803         * modules/unilbrk/u8-possible-linebreaks: New file.
23804         * modules/unilbrk/u16-possible-linebreaks: New file.
23805         * modules/unilbrk/u32-possible-linebreaks: New file.
23806         * modules/unilbrk/ulc-common: New file.
23807         * modules/unilbrk/ulc-possible-linebreaks: New file.
23808         * modules/unilbrk/u8-width-linebreaks: New file.
23809         * modules/unilbrk/u16-width-linebreaks: New file.
23810         * modules/unilbrk/u32-width-linebreaks: New file.
23811         * modules/unilbrk/ulc-width-linebreaks: New file.
23812         * lib/linebreak.h: Remove file.
23813         * lib/linebreak.c: Remove file.
23814         * m4/linebreak.m4: Remove file.
23815         * modules/linebreak: Remove file.
23816         * NEWS: Mention the changes.
23817
23818 2008-05-09  Eric Blake  <ebb9@byu.net>
23819
23820         Add xmemdup0.
23821         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23822         implementation.
23823         * lib/xmalloc.c (xmemdup0): New C implementation.
23824
23825 2008-05-08  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23828
23829 2008-05-07  Eric Blake  <ebb9@byu.net>
23830
23831         Support cross-compilation of <wctype.h>.
23832         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23833         AC_CACHE_CHECK.
23834
23835 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23836
23837         * build-aux/vc-list-files: Add support for bzr.
23838
23839 2008-05-03  Jim Meyering  <meyering@redhat.com>
23840
23841         avoid failed assertion with tight malloc
23842         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23843
23844 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23845
23846         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23847         are needed from arpa/inet.h.
23848         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23849         Reported by Bruno Haible.
23850
23851 2008-05-02  Jim Meyering  <meyering@redhat.com>
23852
23853         avoid compilation error on FreeBSD 6
23854         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23855
23856 2008-05-01  Jim Meyering  <meyering@redhat.com>
23857
23858         useless-if-before-free: correct --help's exit status description
23859         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23860         for one or more matches, etc.  Reported by Bruno Haible.
23861
23862         vc-list-files: make the stand-alone gnulib test work
23863         * modules/vc-list-files-tests (configure.ac):
23864         Define and AC_SUBST abs_aux_dir.
23865         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23866         $(abs_top_srcdir) to each script and having each of them
23867         duplicate the work of setting PATH, set PATH here, using
23868         the new variable, abs_aux_dir instead.
23869         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23870         * tests/test-vc-list-files-git.sh: Likewise.
23871         Reported by Bruno Haible.
23872
23873 2008-05-01  Bruno Haible  <bruno@clisp.org>
23874
23875         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23876         reallocation. Rename 'done' to 'found_delimiter'.
23877
23878 2008-05-01  Jim Meyering  <meyering@redhat.com>
23879
23880         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23881         * build-aux/vc-list-files: Use `...`, not $(...).
23882
23883 2008-04-30  Jim Meyering  <meyering@redhat.com>
23884
23885         add tests for vc-list-files
23886         * modules/vc-list-files-tests: New module.
23887         * tests/test-vc-list-files-cvs.sh: New file.
23888         * tests/test-vc-list-files-git.sh: New file.
23889
23890         avoid a warning from gcc
23891         * lib/getndelim2.c (IF_LINT): Define.
23892         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23893
23894         vc-list-files: work properly with build-aux/cvsu, too
23895         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23896         to all cvs-based clauses.
23897
23898         vc-list-files: work properly in the CVS+awk case, too
23899         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23900
23901         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23902         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23903         take more than one file argument, so .  Add quotes, just in case $dir
23904         ever contains a shell meta-character.  Prompted by Soren Hansen in
23905         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23906
23907 2008-04-29  Eric Blake  <ebb9@byu.net>
23908
23909         Optimize getndelim2 to use block operations when possible.
23910         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23911         freadseek, and memchr2.
23912         * lib/getndelim2.c (getndelim2): Use them for block reads.
23913
23914 2008-04-29  Bruno Haible  <bruno@clisp.org>
23915
23916         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23917         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23918         * modules/inet_ntop (Depends-on): Add extensions.
23919         * modules/inet_pton (Depends-on): Likewise.
23920         Reported by Simon Josefsson.
23921
23922 2008-04-29  Jim Meyering  <meyering@redhat.com>
23923
23924         When the is more than one match in a block, match all of them.
23925         * build-aux/useless-if-before-free: Iterate through each block
23926         until there are no more matches.
23927
23928         Fix broken useless-if-before-free script.
23929         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23930         the expression to match cast of argument to free-like function.
23931
23932 2008-04-29  Eric Blake  <ebb9@byu.net>
23933
23934         Use new header.
23935         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23936
23937 2008-04-29  Jim Meyering  <meyering@redhat.com>
23938
23939         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23940         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23941         by gnulib to exist and to declare e.g., inet_ntop.
23942         Don't include "inet_ntop.h", now removed.
23943
23944         * m4/arpa_inet_h.m4: Remove trailing blanks.
23945
23946 2008-04-29  Eric Blake  <ebb9@byu.net>
23947
23948         Silence valgrind on safe reads beyond potential array bounds.
23949         * lib/rawmemchr.valgrind: New file.
23950         * lib/strchrnul.valgrind: Likewise.
23951         * modules/rawmemchr (Files): Distribute new file.
23952         * modules/strchrnul (Files): Likewise.
23953         Suggested by Bruno Haible.
23954
23955 2008-04-29  Bruno Haible  <bruno@clisp.org>
23956
23957         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23958         (inet_ntop, inet_pton): Change portability warning's wording.
23959         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23960         Invoke gl_CHECK_NEXT_HEADERS.
23961         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23962         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23963         set ARPA_INET_H.
23964         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23965         * modules/arpa_inet (Description): No longer only for systems that
23966         lack it.
23967         (Depends-on): Add include_next.
23968         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23969         HAVE_ARPA_INET_H.
23970
23971 2008-04-29  Jim Meyering  <meyering@redhat.com>
23972
23973         * modules/mkdir (License): Re-license as LGPLv2+.
23974
23975 2008-04-29  Bruno Haible  <bruno@clisp.org>
23976
23977         * modules/rawmemchr (Maintainer): Set to Eric.
23978         * modules/strchrnul (Maintainer): Likewise.
23979
23980 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23981
23982         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23983         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23984
23985         * modules/arpa_inet (arpa/inet.h): Use them.
23986
23987 2008-04-28  Eric Blake  <ebb9@byu.net>
23988
23989         Test getndelim2.
23990         * modules/getndelim2-tests: New file.
23991         * tests/test-getndelim2.c: Likewise.
23992         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23993         stream.
23994         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23995
23996         * MODULES.html.sh: Document new module.
23997
23998 2008-04-20  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/c-stack.c (die): Use raise.
24001         * modules/c-stack (Depends-on): Add raise.
24002
24003 2008-04-28  Bruno Haible  <bruno@clisp.org>
24004
24005         Expect rpmatch to be declared.
24006         * lib/yesno.c (rpmatch): Remove declaration.
24007
24008         Declare rpmatch.
24009         * lib/stdlib.in.h (rpmatch): New declaration.
24010         * lib/rpmatch.c: Include <stdlib.h> first.
24011         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24012         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24014         HAVE_RPMATCH.
24015         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24016         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24017         (Include): Set to <stdlib.h>.
24018         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24019         HAVE_RPMATCH.
24020         * NEWS: Document the change.
24021
24022 2008-04-28  Bruno Haible  <bruno@clisp.org>
24023
24024         Change rpmatch to use nl_langinfo when appropriate.
24025         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24026         (N_): New macro.
24027         (localized_pattern): New function/macro.
24028         (try): Remove match, nomatch arguments. Copy the pattern into safe
24029         memory before caching it.
24030         (rpmatch): Use localized_pattern. Add translator comments.
24031         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24032         Suggested by Eric Blake.
24033         * modules/rpmatch (Depends-on): Add stdbool.
24034
24035 2008-04-28  Eric Blake  <ebb9@byu.net>
24036
24037         Add rawmemchr module, matching glibc.
24038         * modules/string (Makefile.am): New indicator.
24039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24040         * lib/string.in.h (rawmemchr): Declare when appropriate.
24041         * modules/rawmemchr: New file.
24042         * m4/rawmemchr.m4: Likewise.
24043         * lib/rawmemchr.c: Likewise.
24044         * modules/rawmemchr-tests: Likewise.
24045         * tests/test-rawmemchr.c: Likewise.
24046         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24047         module.
24048         * modules/strchrnul (Depends-on): Add rawmemchr.
24049         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24050
24051         Whitespace cleanup.
24052         * tests/test-strchrnul.c: Reindent.
24053         * lib/strchrnul.c: Likewise.
24054
24055         Optimize and test strchrnul.
24056         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24057         * modules/strchrnul-tests: New file.
24058         * tests/test-strchrnul.c: Likewise.
24059
24060         Remove intprops dependency.
24061         * modules/memchr (Depends-on): Remove intprops.
24062         * modules/memrchr (Depends-on): Likewise.
24063         * modules/memchr2 (Depends-on): Likewise.
24064         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24065         * lib/memrchr.c (__memrchr): Likewise.
24066         * lib/memrchr2.c (memchr2): Likewise.
24067         Reported by Simon Josefsson.
24068
24069 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24070
24071         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24072         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24073
24074 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24075
24076         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24077
24078         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24079
24080         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24081
24082         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24083         declarations.
24084         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24085
24086         * m4/inet_pton.m4: Don't check for header files.
24087
24088         * m4/inet_ntop.m4: Don't check for header files.
24089
24090 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24091
24092         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24093         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24094         trigger for cygwin).
24095         Reported by Bruno Haible  <bruno@clisp.org>.
24096
24097 2008-04-28  Bruno Haible  <bruno@clisp.org>
24098
24099         * doc/posix-functions/strdup.texi: Mention mingw problem.
24100
24101 2008-04-27  Bruno Haible  <bruno@clisp.org>
24102
24103         * modules/stat-time-tests (Depends-on): Add sleep.
24104         * tests/test-stat-time.c (force_unlink): New function.
24105         (cleanup): Use it.
24106         (test_mtime): Remove the ctime related tests.
24107         (test_ctime): New function, containing the ctime related tests.
24108         (main): Call test_ctime, except on native Windows platforms.
24109
24110 2008-04-27  Bruno Haible  <bruno@clisp.org>
24111
24112         * lib/rpmatch.c (rpmatch): Add some comments.
24113         Reported by James Youngman <jay@gnu.org>.
24114
24115 2008-04-27  Bruno Haible  <bruno@clisp.org>
24116
24117         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24118         quiet NaNs.
24119
24120 2008-04-27  Bruno Haible  <bruno@clisp.org>
24121
24122         Make test-yesno.sh work on mingw.
24123         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24124         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24125         (main): Set stdin to binary mode.
24126         * modules/yesno-tests (Depends-on): Add binary-io.
24127
24128 2008-04-27  Bruno Haible  <bruno@clisp.org>
24129
24130         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24131         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24132         argument that lie outside the IEEE 854 domain.
24133         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24134         (gl_ISFINITE): Use it.
24135         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24136
24137 2008-04-27  Bruno Haible  <bruno@clisp.org>
24138
24139         Allow local renaming in config.h.
24140         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24141
24142 2008-04-27  Bruno Haible  <bruno@clisp.org>
24143
24144         * lib/memchr.c (__memchr): Change type of 'i'.
24145         * lib/memchr2.c (memchr2): Likewise.
24146
24147 2008-04-26  Eric Blake  <ebb9@byu.net>
24148         and Bruno Haible  <bruno@clisp.org>
24149
24150         Optimize and test memrchr.
24151         * modules/memrchr (Depends-on): Add intprops.
24152         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24153         * modules/memrchr-tests: New file.
24154         * tests/test-memrchr.c: New file.
24155
24156 2008-04-26  Bruno Haible  <bruno@clisp.org>
24157
24158         Add tentative support for DragonFly BSD.
24159         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24160         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24161         fp.
24162         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24163         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24164         * lib/fpurge.c (fpurge): Likewise.
24165         * lib/freadable.c (freaadable): Likewise.
24166         * lib/freadahead.c (freadahead): Likewise.
24167         * lib/freading.c (freading): Likewise.
24168         * lib/freadptr.c (freadptr): Likewise.
24169         * lib/freadseek.c (freadptrinc): Likewise.
24170         * lib/fseeko.c (fseeko): Likewise.
24171         * lib/fseterr.c (fseterr): Likewise.
24172         * lib/fwritable.c (fwritable): Likewise.
24173         * lib/fwriting.c (fwriting): Likewise.
24174
24175 2008-04-26  Bruno Haible  <bruno@clisp.org>
24176
24177         * lib/stdio-impl.h: New file.
24178         * lib/fbufmode.c: Include stdio-impl.h.
24179         (fbufmode): Use fp_, remove redundant #defines.
24180         * lib/fflush.c: Include stdio-impl.h.
24181         (clear_ungetc_buffer): Remove redundant #defines.
24182         * lib/fpurge.c: Include stdio-impl.h.
24183         (fpurge): Remove redundant #defines.
24184         * lib/freadable.c: Include stdio-impl.h.
24185         (freadable): Remove redundant #defines.
24186         * lib/freadahead.c: Include stdio-impl.h.
24187         (freadahead): Remove redundant #defines.
24188         * lib/freading.c: Include stdio-impl.h.
24189         (freading): Remove redundant #defines.
24190         * lib/freadptr.c: Include stdio-impl.h.
24191         (freadptr): Remove redundant #defines.
24192         * lib/freadseek.c: Include stdio-impl.h.
24193         (freadptrinc): Remove redundant #defines.
24194         * lib/fseeko.c: Include stdio-impl.h.
24195         (rpl_fseeko): Remove redundant #defines.
24196         * lib/fseterr.c: Include stdio-impl.h.
24197         (fseterr): Remove redundant #defines.
24198         * lib/fwritable.c: Include stdio-impl.h.
24199         (fwritable: Remove redundant #defines.
24200         * lib/fwriting.c: Include stdio-impl.h.
24201         (fwriting): Remove redundant #defines.
24202         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24203         * modules/fflush (Files): Likewise.
24204         * modules/fpurge (Files): Likewise.
24205         * modules/freadable (Files): Likewise.
24206         * modules/freadahead (Files): Likewise.
24207         * modules/freading (Files): Likewise.
24208         * modules/freadptr (Files): Likewise.
24209         * modules/freadseek (Files): Likewise.
24210         * modules/fseeko (Files): Likewise.
24211         * modules/fseterr (Files): Likewise.
24212         * modules/fwritable (Files): Likewise.
24213         * modules/fwriting (Files): Likewise.
24214
24215 2008-04-26  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24218         restore_seek_optimization, update_fpos_cache): New functions, extracted
24219         from rpl_fflush.
24220         (rpl_fflush): Use them.
24221         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24222         (gl_REPLACE_FFLUSH): Use it.
24223
24224 2008-04-26  Bruno Haible  <bruno@clisp.org>
24225
24226         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24227         on Solaris.
24228         * tests/test-xstrtoimax.sh: Likewise.
24229         * tests/test-xstrtoumax.sh: Likewise.
24230         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24231
24232 2008-04-26  Bruno Haible  <bruno@clisp.org>
24233
24234         * modules/memchr-tests: New file.
24235         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24236
24237 2008-04-26  Eric Blake  <ebb9@byu.net>
24238             Bruno Haible  <bruno@clisp.org>
24239
24240         * lib/memchr.c: Include intprops.h.
24241         (__memchr): Optimize parallel detection of matching bytes. Rename local
24242         variables. Add explanatory comments.
24243
24244 2008-04-26  Bruno Haible  <bruno@clisp.org>
24245
24246         Fix module 'memchr', broken since 2000-10-28.
24247         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24248
24249 2008-04-26  Bruno Haible  <bruno@clisp.org>
24250
24251         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24252         comments.
24253
24254 2008-04-25  Eric Blake  <ebb9@byu.net>
24255
24256         Use native fstatat on cygwin 1.7.0.
24257         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24258         first.
24259
24260 2008-04-23  Eric Blake  <ebb9@byu.net>
24261
24262         Improve memchr2 performance.
24263         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24264         NUL bytes.
24265         * modules/memchr2 (Depends-on): Use intprops.h.
24266
24267 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24268
24269         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24270         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24271         <blp@cs.stanford.edu>.
24272
24273 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24274
24275         * lib/arpa_inet.in.h: New file.
24276
24277         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24278         (Makefile.am): Sed in substitute header file.
24279
24280         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24281         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24282
24283         * modules/inet_ntop (configure.ac): Use
24284         gl_ARPA_INET_MODULE_INDICATOR.
24285
24286         * modules/inet_pton (configure.ac): Use
24287         gl_ARPA_INET_MODULE_INDICATOR.
24288
24289 2008-04-22  Jim Meyering  <meyering@redhat.com>
24290
24291         * modules/verify (License): Re-license as LGPLv2+.
24292
24293 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24294
24295         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24296         parameter to void* as per POSIX standard (MinGW uses char*).
24297
24298 2008-04-21  Bruno Haible  <bruno@clisp.org>
24299
24300         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24301         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24302         Define to replacements if REPLACE_ISWCNTRL is 1.
24303         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24304         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24305         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24306         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24307         what it fixes.
24308         * doc/posix-functions/iswalpha.texi: Likewise.
24309         * doc/posix-functions/iswblank.texi: Likewise.
24310         * doc/posix-functions/iswcntrl.texi: Likewise.
24311         * doc/posix-functions/iswdigit.texi: Likewise.
24312         * doc/posix-functions/iswgraph.texi: Likewise.
24313         * doc/posix-functions/iswlower.texi: Likewise.
24314         * doc/posix-functions/iswprint.texi: Likewise.
24315         * doc/posix-functions/iswpunct.texi: Likewise.
24316         * doc/posix-functions/iswspace.texi: Likewise.
24317         * doc/posix-functions/iswupper.texi: Likewise.
24318         * doc/posix-functions/iswxdigit.texi: Likewise.
24319         Reported by Alain Guibert.
24320
24321 2008-04-21  Bruno Haible  <bruno@clisp.org>
24322
24323         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24324         Patch by Alain Guibert.
24325
24326 2008-04-21  Bruno Haible  <bruno@clisp.org>
24327
24328         Fix test failures on mingw.
24329         * tests/test-xstrtol.c (print_no_progname): New function.
24330         (main): Install it in error_print_progname hook.
24331         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24332         * tests/test-xstrtoimax.sh: Likewise.
24333         * tests/test-xstrtoumax.sh: Likewise.
24334
24335 2008-04-21  Bruno Haible  <bruno@clisp.org>
24336
24337         Fix test failure on mingw.
24338         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24339
24340 2008-04-21  Bruno Haible  <bruno@clisp.org>
24341
24342         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24343         Actually assign a value.
24344
24345 2008-04-20  Bruno Haible  <bruno@clisp.org>
24346
24347         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24348         take 2.
24349         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24350         'canonicalize-lgpl' module is also used.
24351         * lib/canonicalize-lgpl.c: Undo last change.
24352         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24353
24354 2008-04-20  Bruno Haible  <bruno@clisp.org>
24355
24356         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24357         config.h. Provide _mkdir based fallback for mingw.
24358         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24359         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24360         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24361         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24362         rather than defining mkdir in config.h.
24363         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24364         (gl_SYS_STAT_H_DEFAULTS): New macro.
24365         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24366         HAVE_IO_H any more.
24367         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24368         HAVE_DECL_MKDIR and HAVE_IO_H.
24369
24370 2008-04-20  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/isapipe.c: Port to native Windows platforms.
24373
24374 2008-04-20  Bruno Haible  <bruno@clisp.org>
24375
24376         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24377
24378 2008-04-21  Eric Blake  <ebb9@byu.net>
24379
24380         Work around preprocessors that don't handle UINTMAX_MAX.
24381         * lib/memchr2.c (memchr2): Avoid embedded #if.
24382         Reported by Alain Guibert, fix suggested by Bruno Haible.
24383
24384 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24385
24386         * doc/posix-functions/strftime.texi (strftime): Explain better
24387         Windows incompatibility.  Suggested by Micah Cowan
24388         <micah@cowan.name>.
24389
24390 2008-04-20  Bruno Haible  <bruno@clisp.org>
24391
24392         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24393         unistr/u8-mblen.
24394
24395 2008-04-20  Bruno Haible  <bruno@clisp.org>
24396
24397         Fix test failure on platforms with non-GNU iconv.
24398         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24399         (U_TO_U8): Use it, rather than u16_to_u8.
24400         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24401         units at the end of the input string.
24402         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24403
24404 2008-04-20  Bruno Haible  <bruno@clisp.org>
24405
24406         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24407         when the resulting length is 0.
24408         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24409
24410 2008-04-20  Bruno Haible  <bruno@clisp.org>
24411
24412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24413         works.
24414         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24415
24416 2008-04-20  Bruno Haible  <bruno@clisp.org>
24417
24418         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24419         * modules/tsearch-tests (configure.ac): Test for initstate function.
24420
24421 2008-04-20  Bruno Haible  <bruno@clisp.org>
24422
24423         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24424         for nlink_t if missing.
24425         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24426
24427 2008-04-19  Bruno Haible  <bruno@clisp.org>
24428
24429         Work around snprintf bug on Linux libc5.
24430         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24432         gl_SNPRINTF_SIZE1.
24433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24434         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24435         that test failed.
24436         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24437         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24438         * modules/snprintf (Files): Add m4/printf.m4.
24439         * modules/vsnprintf (Files): Likewise.
24440         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24441         * doc/posix-functions/vsnprintf.texi: Likewise.
24442
24443 2008-04-19  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24446         from 0.0058 to less than 10^-7.
24447
24448 2008-04-19  Bruno Haible  <bruno@clisp.org>
24449
24450         Fix rounding when a precision is given.
24451         * lib/vasnprintf.c (is_borderline): New function.
24452         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24453         9...9x.
24454         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24455         %e, %g.
24456         * tests/test-vasprintf-posix.c (test_function): Likewise.
24457         * tests/test-snprintf-posix.h (test_function): Likewise.
24458         * tests/test-sprintf-posix.h (test_function): Likewise.
24459         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24460         * tests/test-printf-posix.h (test_function): Likewise.
24461         * tests/test-printf-posix.output: Update.
24462         Reported by John Darrington <john@darrington.wattle.id.au> via
24463         Ben Pfaff <blp@cs.stanford.edu>.
24464
24465 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24466
24467         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24468         Suggested by Bruno Haible <bruno@clisp.org>.
24469
24470 2008-04-17  Bruno Haible  <bruno@clisp.org>
24471
24472         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24473         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24474         implementation.
24475         Patch by Bruce Merry <bmerry@gmail.com>.
24476
24477 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24478
24479         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24480         doesn't work under Windows.
24481
24482 2008-04-16  Bruno Haible  <bruno@clisp.org>
24483
24484         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24485         New macros.
24486         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24487         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24488         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24489         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24490         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24491         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24492         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24493         macros.
24494         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24495         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24496         Northern Sotho, Uighur.
24497
24498 2008-04-16  Bruno Haible  <bruno@clisp.org>
24499
24500         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24501         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24502         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24503         Reported by Daniel Bergström <daniel@octocode.com>.
24504
24505 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24506             Bruno Haible  <bruno@clisp.org>
24507
24508         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24509         function.
24510         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24511         New functions, mostly extracted from gl_locale_name_default.
24512         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24513
24514 2008-04-16  Eric Blake  <ebb9@byu.net>
24515
24516         Adjust strtod detection to catch glibc 2.7 bug.
24517         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24518         Reported by John Gatewood Ham.
24519
24520 2008-04-16  Bruno Haible  <bruno@clisp.org>
24521
24522         Add tentative support for Linux libc5.
24523         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24524         * lib/fpurge.c (fpurge): Likewise.
24525         * lib/freadable.c (freadable): Likewise.
24526         * lib/freadahead.c (freadahead): Likewise.
24527         * lib/freading.c (freading): Likewise.
24528         * lib/freadptr.c (freadptr): Likewise.
24529         * lib/freadseek.c (freadptrinc): Likewise.
24530         * lib/fseeko.c (rpl_fseeko): Likewise.
24531         * lib/fseterr.c (fseterr): Likewise.
24532         * lib/fwritable.c (fwritable): Likewise.
24533         * lib/fwriting.c (fwriting): Likewise.
24534         Reported by Alain Guibert <alguibert+bts@free.fr>.
24535
24536 2008-04-15  Bruno Haible  <bruno@clisp.org>
24537
24538         * modules/mathl (configure.ac): Define module indicator.
24539
24540 2008-04-15  Bruno Haible  <bruno@clisp.org>
24541
24542         * lib/logl.c (logl): Remove unused variables.
24543
24544 2008-04-15  Bruno Haible  <bruno@clisp.org>
24545
24546         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24547         fails.
24548
24549 2008-04-15  Bruno Haible  <bruno@clisp.org>
24550
24551         * lib/trim.c (trim2): Fix argument of isspace() macro.
24552
24553 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24554
24555         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24556         to 0.
24557         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24558
24559 2008-04-14  Bruno Haible  <bruno@clisp.org>
24560
24561         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24562         AC_LANG_PROGRAM argument.
24563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24564         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24566         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24567         * m4/math_h.m4 (gl_MATH_H): Likewise.
24568         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24570         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24571         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24572         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24573         * m4/regex.m4 (gl_REGEX): Likewise.
24574         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24575         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24577         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24579         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24582
24583 2008-04-14  Jim Meyering  <meyering@redhat.com>
24584
24585         test-strtod: fix typos: s/abs/fabs/
24586         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24587
24588 2008-04-13  Bruno Haible  <bruno@clisp.org>
24589
24590         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24591         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24592         module is also used and while not building the reloc-wrapper.
24593
24594 2008-04-13  Bruno Haible  <bruno@clisp.org>
24595
24596         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24597
24598 2008-04-13  Bruno Haible  <bruno@clisp.org>
24599
24600         Fix AIX compilation failure introduced on 2008-04-02.
24601         * tests/test-frexp.c (exp): Undefine before redefining.
24602         * tests/test-frexpl.c (exp): Likewise.
24603
24604 2008-04-13  Bruno Haible  <bruno@clisp.org>
24605
24606         Work around a HP-UX stdio bug.
24607         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24608         * tests/test-ftello.c (main): Likewise.
24609         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24610         * doc/posix-functions/ftello.texi: Likewise.
24611
24612 2008-04-13  Bruno Haible  <bruno@clisp.org>
24613
24614         Make test-signbit pass on HP-UX/hppa.
24615         * tests/test-signbit.c (minus_zerol): New variable.
24616         (test_signbitl): Use it.
24617
24618 2008-04-13  Bruno Haible  <bruno@clisp.org>
24619
24620         Make truncl work on OSF/1 4.0.
24621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24622         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24623         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24625         HAVE_DECL_TRUNCL.
24626         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24627         HAVE_DECL_TRUNCL.
24628         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24629
24630 2008-04-13  Bruno Haible  <bruno@clisp.org>
24631
24632         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24633
24634 2008-04-13  Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24637         expression, so as to avoid HP-UX 11 cc compiler bug.
24638
24639 2008-04-13  Bruno Haible  <bruno@clisp.org>
24640
24641         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24642
24643 2008-04-13  Bruno Haible  <bruno@clisp.org>
24644
24645         * lib/git-merge-changelog.c: Remove empty declaration outside of
24646         functions.
24647
24648 2008-04-13  Bruno Haible  <bruno@clisp.org>
24649
24650         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24651
24652 2008-04-13  Bruno Haible  <bruno@clisp.org>
24653
24654         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24655         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24657         also if it exists but lacks definitions of the SHUT_* macros.
24658         * modules/sys_socket (Description): Update.
24659         Reported by Elbert Pol <e.pol@chello.nl>.
24660
24661 2008-04-13  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/localcharset.c (OS2): Don't redefine if already defined.
24664         Reported by Elbert Pol <e.pol@chello.nl>.
24665
24666 2008-04-13  Bruno Haible  <bruno@clisp.org>
24667
24668         * lib/binary-io.h [__EMX__]: Include <io.h>.
24669         Reported by Elbert Pol <e.pol@chello.nl>.
24670
24671 2008-04-12  Bruno Haible  <bruno@clisp.org>
24672
24673         * lib/fpucw.h: Enable the definitions also for x86_64.
24674         Needed for NetBSD/x86_64.
24675         Reported by Thomas Klausner <tk@giga.or.at>.
24676
24677 2008-04-12  Bruno Haible  <bruno@clisp.org>
24678
24679         * tests/test-strtod.c: Include isnand.h.
24680         (main): Use isnand instead of isnan.
24681         Reported by Jim Meyering.
24682
24683 2008-04-12  Bruno Haible  <bruno@clisp.org>
24684
24685         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24686         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24687
24688 2008-04-12  Jim Meyering  <meyering@redhat.com>
24689
24690         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24691
24692 2008-04-12  Bruno Haible  <bruno@clisp.org>
24693
24694         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24695         Reported by Elbert Pol <e.pol@chello.nl>.
24696
24697 2008-04-12  Eric Blake  <ebb9@byu.net>
24698
24699         Work around Solaris 10 math.h bug.
24700         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24701         (gl_MATH_H_DEFAULTS): Set up default.
24702         * modules/math (Makefile.am): Replace new indicators.
24703         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24704         * tests/test-math.c (main): Test this.
24705         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24706         * doc/posix-headers/math.texi (math.h): Mention bug.
24707         Reported by Nelson H. F. Beebe and Jim Meyering.
24708
24709 2008-04-11  Bruno Haible  <bruno@clisp.org>
24710
24711         Adapt to future versions of Apple GCC.
24712         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24713         Reported by Peter O'Gorman <peter@pogma.com>.
24714
24715 2008-04-11  Bruno Haible  <bruno@clisp.org>
24716
24717         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24718
24719 2008-04-11  Bruno Haible  <bruno@clisp.org>
24720
24721         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24722
24723         * modules/getaddrinfo-tests (Makefile.am): Define
24724         test_getaddrinfo_LDADD.
24725
24726 2008-04-11  Bruno Haible  <bruno@clisp.org>
24727
24728         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24729         (init): Fix syntax error.
24730         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24731         is declared.
24732
24733 2008-04-11  Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24736         * modules/glob (Depends-on): Add stdbool.
24737
24738 2008-04-11  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/trim.c: Include <string.h>.
24741
24742 2008-04-11  Eric Blake  <ebb9@byu.net>
24743
24744         Avoid compile failure on OS/2.
24745         * lib/regex_internal.h (internal_function): Disable optimization
24746         on OS/2 (__EMX__), where it caused compiler error.
24747         Reported by Elbert Pol.
24748
24749 2008-04-11  Bruno Haible  <bruno@clisp.org>
24750
24751         Flush the standard error stream before aborting. Needed on mingw.
24752         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24753         * tests/test-array_list.c (ASSERT): Likewise.
24754         * tests/test-array_oset.c (ASSERT): Likewise.
24755         * tests/test-avltree_list.c (ASSERT): Likewise.
24756         * tests/test-avltree_oset.c (ASSERT): Likewise.
24757         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24758         * tests/test-binary-io.c (ASSERT): Likewise.
24759         * tests/test-byteswap.c (ASSERT): Likewise.
24760         * tests/test-c-ctype.c (ASSERT): Likewise.
24761         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24762         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24763         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24764         * tests/test-c-strstr.c (ASSERT): Likewise.
24765         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24766         * tests/test-canonicalize.c (ASSERT): Likewise.
24767         * tests/test-carray_list.c (ASSERT): Likewise.
24768         * tests/test-ceilf1.c (ASSERT): Likewise.
24769         * tests/test-ceilf2.c (ASSERT): Likewise.
24770         * tests/test-ceill.c (ASSERT): Likewise.
24771         * tests/test-count-one-bits.c (ASSERT): Likewise.
24772         * tests/test-fbufmode.c (ASSERT): Likewise.
24773         * tests/test-fflush2.c (ASSERT): Likewise.
24774         * tests/test-floorf1.c (ASSERT): Likewise.
24775         * tests/test-floorf2.c (ASSERT): Likewise.
24776         * tests/test-floorl.c (ASSERT): Likewise.
24777         * tests/test-fopen.c (ASSERT): Likewise.
24778         * tests/test-fpending.c (ASSERT): Likewise.
24779         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24780         * tests/test-fpurge.c (ASSERT): Likewise.
24781         * tests/test-freadable.c (ASSERT): Likewise.
24782         * tests/test-freadahead.c (ASSERT): Likewise.
24783         * tests/test-freading.c (ASSERT): Likewise.
24784         * tests/test-freadptr.c (ASSERT): Likewise.
24785         * tests/test-freadptr2.c (ASSERT): Likewise.
24786         * tests/test-freadseek.c (ASSERT): Likewise.
24787         * tests/test-freopen.c (ASSERT): Likewise.
24788         * tests/test-frexp.c (ASSERT): Likewise.
24789         * tests/test-frexpl.c (ASSERT): Likewise.
24790         * tests/test-fseek.c (ASSERT): Likewise.
24791         * tests/test-fseeko.c (ASSERT): Likewise.
24792         * tests/test-fstrcmp.c (ASSERT): Likewise.
24793         * tests/test-ftell.c (ASSERT): Likewise.
24794         * tests/test-ftello.c (ASSERT): Likewise.
24795         * tests/test-func.c (ASSERT): Likewise.
24796         * tests/test-fwritable.c (ASSERT): Likewise.
24797         * tests/test-fwriting.c (ASSERT): Likewise.
24798         * tests/test-getdelim.c (ASSERT): Likewise.
24799         * tests/test-getline.c (ASSERT): Likewise.
24800         * tests/test-i-ring.c (ASSERT): Likewise.
24801         * tests/test-iconv-utf.c (ASSERT): Likewise.
24802         * tests/test-iconv.c (ASSERT): Likewise.
24803         * tests/test-isfinite.c (ASSERT): Likewise.
24804         * tests/test-isnand.c (ASSERT): Likewise.
24805         * tests/test-isnanf.c (ASSERT): Likewise.
24806         * tests/test-isnanl.h (ASSERT): Likewise.
24807         * tests/test-ldexpl.c (ASSERT): Likewise.
24808         * tests/test-linked_list.c (ASSERT): Likewise.
24809         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24810         * tests/test-localename.c (ASSERT): Likewise.
24811         * tests/test-lseek.c (ASSERT): Likewise.
24812         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24813         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24814         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24815         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24816         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24817         * tests/test-mbschr.c (ASSERT): Likewise.
24818         * tests/test-mbscspn.c (ASSERT): Likewise.
24819         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24820         * tests/test-mbspbrk.c (ASSERT): Likewise.
24821         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24822         * tests/test-mbsrchr.c (ASSERT): Likewise.
24823         * tests/test-mbsspn.c (ASSERT): Likewise.
24824         * tests/test-mbsstr1.c (ASSERT): Likewise.
24825         * tests/test-mbsstr2.c (ASSERT): Likewise.
24826         * tests/test-mbsstr3.c (ASSERT): Likewise.
24827         * tests/test-memchr2.c (ASSERT): Likewise.
24828         * tests/test-memmem.c (ASSERT): Likewise.
24829         * tests/test-open.c (ASSERT): Likewise.
24830         * tests/test-printf-frexp.c (ASSERT): Likewise.
24831         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24832         * tests/test-printf-posix.c (ASSERT): Likewise.
24833         * tests/test-quotearg.c (ASSERT): Likewise.
24834         * tests/test-rbtree_list.c (ASSERT): Likewise.
24835         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24836         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24837         * tests/test-round1.c (ASSERT): Likewise.
24838         * tests/test-roundf1.c (ASSERT): Likewise.
24839         * tests/test-roundl.c (ASSERT): Likewise.
24840         * tests/test-signbit.c (ASSERT): Likewise.
24841         * tests/test-sleep.c (ASSERT): Likewise.
24842         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24843         * tests/test-snprintf.c (ASSERT): Likewise.
24844         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24845         * tests/test-stat-time.c (ASSERT): Likewise.
24846         * tests/test-strcasestr.c (ASSERT): Likewise.
24847         * tests/test-strerror.c (ASSERT): Likewise.
24848         * tests/test-striconv.c (ASSERT): Likewise.
24849         * tests/test-striconveh.c (ASSERT): Likewise.
24850         * tests/test-striconveha.c (ASSERT): Likewise.
24851         * tests/test-strsignal.c (ASSERT): Likewise.
24852         * tests/test-strstr.c (ASSERT): Likewise.
24853         * tests/test-strtod.c (ASSERT): Likewise.
24854         * tests/test-trunc1.c (ASSERT): Likewise.
24855         * tests/test-trunc2.c (ASSERT): Likewise.
24856         * tests/test-truncf1.c (ASSERT): Likewise.
24857         * tests/test-truncf2.c (ASSERT): Likewise.
24858         * tests/test-truncl.c (ASSERT): Likewise.
24859         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24860         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24861         * tests/test-vasnprintf.c (ASSERT): Likewise.
24862         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24863         * tests/test-vasprintf.c (ASSERT): Likewise.
24864         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24865         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24866         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24867         * tests/test-vsnprintf.c (ASSERT): Likewise.
24868         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24869         * tests/test-wcwidth.c (ASSERT): Likewise.
24870         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24871         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24872         * tests/test-xvasprintf.c (ASSERT): Likewise.
24873         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24874         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24875         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24876         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24877         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24878         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24879         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24880         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24881         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24882         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24883         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24884         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24885         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24886         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24887         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24888         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24889         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24890         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24891         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24892         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24893         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24894         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24895         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24896         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24897         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24898         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24899         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24900         * tests/unictype/test-combining.c (ASSERT): Likewise.
24901         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24902         * tests/unictype/test-digit.c (ASSERT): Likewise.
24903         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24904         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24905         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24906         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24907         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24908         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24909         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24910         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24911         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24912         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24913         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24914         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24915         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24916         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24917         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24918         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24919         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24920         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24921         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24922         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24923         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24924         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24925         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24926         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24927         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24928         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24929         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24930         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24931         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24932         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24933         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24934         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24935         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24936         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24937         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24938         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24939         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24940         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24941         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24942         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24943         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24944         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24945         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24946         Reported by Eric Blake.
24947
24948 2008-04-11  Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/wchar.in.h: Tweak comment.
24951
24952 2008-04-11  Bruno Haible  <bruno@clisp.org>
24953
24954         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24955         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24956         gl_COMMON.
24957         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24958
24959 2008-04-11  Bruno Haible  <bruno@clisp.org>
24960
24961         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24962
24963 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24964
24965         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24966         of attempting to use non-existing /dev/*random.  Based on patch
24967         from Adam Strzelecki <ono@java.pl> in
24968         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24969
24970 2008-04-08  Bruno Haible  <bruno@clisp.org>
24971
24972         Add tentative support for emx+gcc.
24973         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24974         * lib/fpurge.c (fpurge): Likewise.
24975         * lib/freadable.c (freadable): Likewise.
24976         * lib/freadahead.c (freadahead): Likewise.
24977         * lib/freading.c (freading): Likewise.
24978         * lib/freadptr.c (freadptr): Likewise.
24979         * lib/freadseek.c (freadptrinc): Likewise.
24980         * lib/fseeko.c (rpl_fseeko): Likewise.
24981         * lib/fseterr.c (fseterr): Likewise.
24982         * lib/fwritable.c (fwritable): Likewise.
24983         * lib/fwriting.c (fwriting): Likewise.
24984         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24985
24986 2008-04-09  Eric Blake  <ebb9@byu.net>
24987
24988         Avoid some autoconf warnings.
24989         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24990         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24991         * m4/afs.m4 (gl_AFS): Likewise.
24992         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24993         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24994         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24995         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24996         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24997         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24998         (AC_CHECK_DECLS_ONCE): Likewise.
24999         Rename file...
25000         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25001         gnulib-tool requires autoconf 2.59 or better.
25002         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25003
25004 2008-04-08  Eric Blake  <ebb9@byu.net>
25005
25006         Use 'git describe --match' if present (added in git 1.5.5).
25007         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25008         if possible.
25009
25010 2008-04-08  Bruno Haible  <bruno@clisp.org>
25011
25012         Add tentative support for OpenServer.
25013         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25014         _ptr, _cnt.
25015         * lib/fpurge.c (fpurge): Likewise.
25016         * lib/freadable.c (freadable): Likewise.
25017         * lib/freadahead.c (freadahead): Likewise.
25018         * lib/freading.c (freading): Likewise.
25019         * lib/freadptr.c (freadptr): Likewise.
25020         * lib/freadseek.c (freadptrinc): Likewise.
25021         * lib/fseeko.c (rpl_fseeko): Likewise.
25022         * lib/fseterr.c (fseterr): Likewise.
25023         * lib/fwritable.c (fwritable): Likewise.
25024         * lib/fwriting.c (fwriting): Likewise.
25025         Reported by Roger Cornelius <rac@tenzing.org> and
25026         Brian K. White <brian@aljex.com>.
25027
25028 2008-04-06  Jim Meyering  <meyering@redhat.com>
25029
25030         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25031
25032 2008-04-06  Bruno Haible  <bruno@clisp.org>
25033
25034         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25035         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25036         * tests/test-printf-posix.sh: Likewise.
25037         * tests/test-vfprintf-posix.sh: Likewise.
25038         * tests/test-vprintf-posix.sh: Likewise.
25039         * tests/test-xprintf-posix.sh: Likewise.
25040
25041 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25042
25043         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25044         hide error from 'ls', needed on OS/2.
25045         Report by Elbert Pol <elbert.pol@gmail.com>.
25046
25047 2008-04-04  Eric Blake  <ebb9@byu.net>
25048
25049         Make test-fseeko.c failures meaningful.
25050         * tests/test-fseeko.c: Print line number on failure.
25051         * tests/test-fseek.c: Likewise.
25052         Reported by Nelson H. F. Beebe.
25053
25054         Improve strtod bug detection check.
25055         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25056         required for Solaris 10.
25057         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25058
25059 2008-04-04  Bruno Haible  <bruno@clisp.org>
25060
25061         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25062         by m4/setenv.m4.
25063
25064 2008-04-03  Eric Blake  <ebb9@byu.net>
25065
25066         Ensure sane .version contents.
25067         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25068         version string.
25069         * build-aux/git-version-gen: Improve documentation.
25070
25071         Make GNU make output nicer.
25072         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25073         MAKECMDGOALS to enforce message for all command line targets.  Set
25074         srcdir for use in maint.mk.
25075
25076         Another maintainer tweak.
25077         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25078         a target that regenerates version.
25079
25080 2008-04-03  Jim Meyering  <meyering@redhat.com>
25081
25082         vc-list-files: don't cause coreutils "make po-check" failure
25083         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25084
25085 2008-04-03  Eric Blake  <ebb9@byu.net>
25086
25087         Allow VPATH usage of vc-list-files.
25088         * build-aux/vc-list-files (scriptversion): Add timestamp.
25089         (options): Add --help, --version, -C.
25090         (CVS): Support installed cvsu.
25091
25092 2008-04-02  Bruno Haible  <bruno@clisp.org>
25093
25094         Avoid some "statement with no effect" warnings from gcc.
25095         * tests/test-wctype.c (main): Explicitly ignore unused values.
25096         Reported by Jim Meyering.
25097
25098 2008-04-02  Jim Meyering  <meyering@redhat.com>
25099
25100         Avoid some warnings from "gcc -Wshadow".
25101         * tests/test-frexp.c (exp): Define to a different identifier.
25102         * tests/test-frexpl.c (exp): Likewise.
25103
25104 2008-04-03  Jim Meyering  <meyering@redhat.com>
25105
25106         bootstrap: remove dangling *.[ch] symlinks from lib
25107         * build-aux/bootstrap [dangling symlink removal]: Move find's
25108         -depth option to precede all others, to avoid a warning.
25109         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25110
25111 2008-04-02  Bruno Haible  <bruno@clisp.org>
25112
25113         Avoid some warnings from "gcc -Wshadow".
25114         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25115         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25116         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25117         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25118         Reported by Jim Meyering.
25119
25120 2008-04-01  Bruno Haible  <bruno@clisp.org>
25121
25122         Fix test to work on IRIX 6.5 with cc.
25123         * tests/test-math.c (numeric_equal): New function.
25124         (main): Use it.
25125
25126 2008-04-01  Bruno Haible  <bruno@clisp.org>
25127
25128         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25129
25130 2008-04-01  Bruno Haible  <bruno@clisp.org>
25131
25132         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25133         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25134         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25135         (Depends-on): Remove math.
25136
25137         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25138         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25139         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25140         (Depends-on): Remove math.
25141
25142         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25143         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25144         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25145         (Depends-on): Remove math.
25146         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25147         (Depends-on): Remove math.
25148
25149         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25150         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25151         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25152         (Depends-on): Remove math.
25153         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25154         (Depends-on): Remove math.
25155
25156         * tests/test-round1.c: Include nan.h.
25157         (main): Use NaNd instead of NAN.
25158         * modules/round-tests (Files): Add tests/nan.h.
25159
25160         * tests/test-trunc1.c: Include nan.h.
25161         (main): Use NaNd instead of NAN.
25162         * modules/trunc-tests (Files): Add tests/nan.h.
25163
25164         * tests/test-roundf1.c: Include nan.h.
25165         (main): Use NaNf instead of NAN.
25166         * modules/roundf-tests (Files): Add tests/nan.h.
25167
25168         * tests/test-truncf1.c: Include nan.h.
25169         (main): Use NaNf instead of NAN.
25170         * modules/truncf-tests (Files): Add tests/nan.h.
25171
25172         * tests/test-ceilf1.c: Include nan.h.
25173         (main): Use NaNf instead of NAN.
25174         * modules/ceilf-tests (Files): Add tests/nan.h.
25175
25176         * tests/test-floorf1.c: Include nan.h.
25177         (main): Use NaNf instead of NAN.
25178         * modules/floorf-tests (Files): Add tests/nan.h.
25179
25180         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25181         (main): Use NaNf instead of NAN.
25182         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25183
25184         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25185         (main): Use NaNd instead of NAN.
25186         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25187
25188         * tests/test-frexp.c: Include nan.h.
25189         (main): Use NaNd instead of NAN.
25190         * modules/frexp-tests (Files): Add tests/nan.h.
25191
25192         * lib/isnan.c: Don't include <math.h>.
25193         (FUNC): Don't use NAN macro.
25194         * modules/isnand-nolibm (Depends-on): Remove math.
25195         * modules/isnanf-nolibm (Depends-on): Remove math.
25196         * modules/isnanl (Depends-on): Remove math.
25197         * modules/isnanl-nolibm (Depends-on): Remove math.
25198
25199         * tests/nan.h: New file.
25200
25201 2008-04-01  Eric Blake  <ebb9@byu.net>
25202
25203         Fix typos.
25204         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25205         values to be the right type.
25206
25207         For now, cater to gnulib strtod inaccuracies.
25208         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25209         fractional results.  While not as nice from a QoI perspective, it
25210         is a quicker patch than correctly implementing decimal to binary
25211         rounding.
25212
25213 2008-03-31  Eric Blake  <ebb9@byu.net>
25214
25215         Guarantee a definition of NAN.
25216         * lib/math.in.h (NAN): Define if missing.
25217         * tests/test-math.c (main): Test it.
25218         * doc/posix-headers/math.texi (math.h): Document this.
25219         * lib/isnan.c (rpl_isnand): Use it.
25220         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25221         * tests/test-floorf1.c (NaN): Likewise.
25222         * tests/test-frexp.c (NaN): Likewise.
25223         * tests/test-isnand.c (NaN): Likewise.
25224         * tests/test-isnanf.c (NaN): Likewise.
25225         * tests/test-round1.c (NaN): Likewise.
25226         * tests/test-roundf1.c (NaN): Likewise.
25227         * tests/test-snprintf-posix.h (NaN): Likewise.
25228         * tests/test-sprintf-posix.h (NaN): Likewise.
25229         * tests/test-trunc1.c (NaN): Likewise.
25230         * tests/test-truncf1.c (NaN): Likewise.
25231         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25232         * tests/test-vasprintf-posix.c (NaN): Likewise.
25233         * modules/isnand-nolibm (Depends-on): Add math.
25234         * modules/isnanf-nolibm (Depends-on): Likewise.
25235         * modules/isnanl (Depends-on): Likewise.
25236         * modules/isnanl-nolibm (Depends-on): Likewise.
25237         * modules/snprintf-posix-tests (Depends-on): Likewise.
25238         * modules/sprintf-posix-tests (Depends-on): Likewise.
25239         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25240         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25241         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25242         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25243
25244 2008-03-31  Bruno Haible  <bruno@clisp.org>
25245
25246         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25247         * doc/posix-functions/strtod.texi: Likewise.
25248
25249 2008-03-31  Bruno Haible  <bruno@clisp.org>
25250
25251         * tests/test-strtod.c (main): Don't use C99 syntax.
25252
25253 2008-03-31  Bruno Haible  <bruno@clisp.org>
25254
25255         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25256         Reported by Eric Blake.
25257
25258 2008-03-31  Jim Meyering  <meyering@redhat.com>
25259
25260         Don't compare actual signbit return values.
25261         * tests/test-strtod.c (main): Rather, compare only their
25262         zero/non-zero nature.
25263
25264 2008-03-31  Eric Blake  <ebb9@byu.net>
25265
25266         More strtod documentation.
25267         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25268         failures as distinct bugs.
25269
25270 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25271
25272         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25273         Problem reported by Erik Benada in
25274         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25275
25276 2008-03-30  Bruno Haible  <bruno@clisp.org>
25277
25278         * tests/test-strtod.c: Add comments about which assertion fails on which
25279         platform.
25280         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25281
25282 2008-03-30  Eric Blake  <ebb9@byu.net>
25283
25284         Test signbit behavior on zeros.
25285         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25286         (test_signbitd, test_signbitl): Likewise.
25287
25288         More strtod touchups.
25289         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25290         sign of negative underflow, for now.  Use .5, not .1.
25291         * doc/posix-functions/strtod.texi (strtod): Mention these
25292         limitations.
25293         Reported by Jim Meyering.
25294
25295 2008-03-30  Bruno Haible  <bruno@clisp.org>
25296
25297         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25298         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25299
25300 2008-03-30  Bruno Haible  <bruno@clisp.org>
25301
25302         Avoid failure when attempting to return empty iconv results on some
25303         platforms.
25304         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25305         allocation, don't report ENOMEM when the resulting string is empty.
25306
25307 2008-03-30  Bruno Haible  <bruno@clisp.org>
25308
25309         Fix buffer overrun.
25310         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25311         Don't consider the width for tmp_length. Check count against tmp_length
25312         before doing the padding. Ensure enough allocation during padding.
25313
25314 2008-03-30  Eric Blake  <ebb9@byu.net>
25315
25316         strtod touchups.
25317         * lib/strtod.c (strtod): Avoid compiler warnings.
25318         Reported by Jim Meyering.
25319
25320 2008-03-30  Bruno Haible  <bruno@clisp.org>
25321
25322         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25323         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25324         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25325         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25326         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25327         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25328         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25329         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25330
25331         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25332         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25333         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25334         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25335         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25336         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25337         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25338         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25339
25340         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25341         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25342         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25343         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25344         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25345         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25346         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25347         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25348
25349         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25350         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25351
25352         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25353         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25354
25355         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25356         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25357
25358         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25359         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25360         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25361
25362         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25364         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25365
25366         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25368         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25369
25370         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25372         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25373
25374         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25375         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25377         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25378         (Depends-on): Add EOVERFLOW.
25379         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25380         (Depends-on): Add EOVERFLOW.
25381         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25382         (Depends-on): Add EOVERFLOW.
25383         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25384         (Depends-on): Add EOVERFLOW.
25385         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25386         (Depends-on): Add EOVERFLOW.
25387         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25388         (Depends-on): Add EOVERFLOW.
25389         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25390         (Depends-on): Add EOVERFLOW.
25391         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25392         (Depends-on): Add EOVERFLOW.
25393
25394         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25396         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25397
25398         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25400         * modules/snprintf (Depends-on): Add EOVERFLOW.
25401
25402         * lib/poll.c (EOVERFLOW): Remove fallback.
25403         * modules/poll (Depends-on): Add EOVERFLOW.
25404
25405         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25406         * modules/getugroups (Depends-on): Add EOVERFLOW.
25407
25408         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25409         * modules/getdelim (Depends-on): Add EOVERFLOW.
25410
25411         * lib/ftell.c (EOVERFLOW): Remove fallback.
25412         * modules/ftell (Depends-on): Add EOVERFLOW.
25413
25414         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25416         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25417
25418         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25419
25420         * modules/EOVERFLOW-tests: New file.
25421         * tests/test-EOVERFLOW.c: New file.
25422
25423         * modules/EOVERFLOW: New file.
25424         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25425
25426 2008-03-30  Bruno Haible  <bruno@clisp.org>
25427
25428         Fix bug introduced on 2007-06-10.
25429         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25430         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25431
25432 2008-03-30  Bruno Haible  <bruno@clisp.org>
25433
25434         Improve freadseek's efficiency after ungetc.
25435         * lib/freadseek.c: Include freadahead.h.
25436         (freadptrinc): New function, extracted from freadseek.
25437         (freadseek): Use it in a loop. Use freadahead to determine the number
25438         of loop iterations.
25439         * modules/freadseek (Depends-on): Add freadahead.
25440         (configure.ac): Require AC_C_INLINE.
25441
25442 2008-03-30  Bruno Haible  <bruno@clisp.org>
25443
25444         * lib/freadseek.c (freadseek): Don't ignore the return value of
25445         freadptr.
25446
25447 2008-03-29  Eric Blake  <ebb9@byu.net>
25448
25449         Add hex float support.
25450         * modules/strtod (Depends-on): Add c-ctype.
25451         (Link): Mention POW_LIB.
25452         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25453         whitespace between 'e' and exponent.
25454         * tests/test-strtod.c (main): Enable hex float tests.
25455         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25456         now provides.
25457
25458         Document various strtod bugs, with some fixes.
25459         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25460         "-0x", "inf", "nan", and hex constants.
25461         * doc/posix-functions/atof.texi (atof): Likewise.
25462         * modules/stdlib (Makefile.am): Support strtod.
25463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25464         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25465         detect additional strtod bugs.
25466         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25467         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25468         bool where appropriate.  Parse 'inf' and 'nan'.
25469         * tests/test-strtod.c: New file.
25470         * modules/strtod (Depends-on): Add stdbool, stdlib.
25471         (configure.ac): Turn on module indicator.
25472         * modules/strtod-tests: New module.
25473
25474 2008-03-29  Eric Blake  <ebb9@byu.net>
25475
25476         Fix ftell on mingw.
25477         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25478         * modules/ftell-tests (Depends-on): Add binary-io.
25479         * modules/ftello-tests (Depends-on): Likewise.
25480         * tests/test-ftell.c (main): Enhance test to cover behavior after
25481         ungetc.  Enforce binary mode.
25482         * tests/test-ftello.c (main): Likewise.
25483
25484         Pass test-freadseek on cygwin.
25485         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25486         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25487         ungetc buffer.
25488
25489         * tests/test-fflush2.c (main): Fix typo.
25490
25491 2008-03-29  Bruno Haible  <bruno@clisp.org>
25492
25493         * tests/test-fflush2.c (main): Temporarily disable the contents of
25494         this test.
25495         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25496         Reported by Eric Blake.
25497
25498 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25499
25500         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25501         (GC_SHA224_DIGEST_SIZE): Add.
25502
25503         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25504         (gc_hash_digest_length): Likewise.
25505         (gc_hash_buffer): Likewise.
25506
25507 2008-03-25  Bruno Haible  <bruno@clisp.org>
25508
25509         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25510         detail which gettext release to use.
25511         Reported by Simon Josefsson.
25512
25513 2008-03-26  Jim Meyering  <meyering@redhat.com>
25514
25515         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25516         * modules/gnumakefile (clean-GNUmakefile): Also, use
25517         test ... && ... || : syntax rather than if-then ... fi.
25518
25519         gnumakefile: Don't double-quote-expand $(VPATH) value.
25520         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25521
25522 2008-03-24  Eric Blake  <ebb9@byu.net>
25523
25524         Alter GNUmakefile to install into top directory.
25525         * modules/maintainer-makefile: Split, and add dependency...
25526         * modules/gnumakefile: to this new module.
25527         * build-aux/GNUmakefile: Move...
25528         * top/GNUmakefile: ...here.
25529         * build-aux/maint.mk: Move...
25530         * top/maint.mk: ...here.
25531         * MODULES.html.sh (Support for maintaining...): Document new
25532         module.
25533
25534 2008-03-23  Bruno Haible  <bruno@clisp.org>
25535
25536         * gnulib-tool: New options --vc-files, --no-vc-files.
25537         (func_usage): Document them.
25538         (vc_files): New variable.
25539         (func_import): Consider vc_files.
25540         (func_create_testdir): Set vc_files to empty.
25541         Suggested by Jim Meyering and Karl Berry.
25542
25543 2008-03-23  Bruno Haible  <bruno@clisp.org>
25544
25545         Fix regex compilation error on HP-UX 11.
25546         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25547         * modules/regex (Files): Add m4/mbstate_t.m4.
25548         Reported by Ton Voon <ton.voon@altinity.com>.
25549
25550 2008-03-23  Bruno Haible  <bruno@clisp.org>
25551
25552         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25553
25554 2008-03-23  Eric Blake  <ebb9@byu.net>
25555             Bruno Haible  <bruno@clisp.org>
25556
25557         Install files from top/ in the destination directory.
25558         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25559         augmentation also for the files from top/.
25560         (func_import, func_create_testdir): Rewrite file names:
25561         top/filename -> filename.
25562
25563 2008-03-23  Bruno Haible  <bruno@clisp.org>
25564
25565         Tweak "gnulib --version" output.
25566         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25567
25568 2008-03-23  Bruno Haible  <bruno@clisp.org>
25569
25570         Tweak "gnulib --version" output.
25571         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25572         rather than contents of ChangeLog, when possible.
25573
25574 2008-03-21  Eric Blake  <ebb9@byu.net>
25575
25576         More --version tweaks.
25577         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25578         date of last ChangeLog entry.
25579
25580 2008-03-21  Jim Meyering  <meyering@redhat.com>
25581
25582         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25583
25584 2008-03-20  Eric Blake  <ebb9@byu.net>
25585
25586         VPATH fix.
25587         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25588
25589 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25590
25591         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25592         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25593
25594 2008-03-20  Eric Blake  <ebb9@byu.net>
25595
25596         Sync GNUmakefile with coreutils.
25597         * build-aux/GNUmakefile (have-Makefile): Rename...
25598         (_have-Makefile): ...to this, for namespace consideration.
25599         (GNUmakefile.cfg): Include, if present.
25600         (_autoreconf): Define a default.
25601         (_is-dist-target): New rule for rebuilds to pick up intra-release
25602         version.
25603         (maint-cfg.mk): Rename...
25604         (cfg.mk): ...to this.
25605
25606 2008-03-18  Jim Meyering  <meyering@redhat.com>
25607
25608         New script and module: mktempd
25609         * MODULES.html.sh (maint+release support): Add mktempd.
25610         * build-aux/mktempd: New file.
25611         * modules/mktempd: New file.
25612
25613 2008-03-15  Jim Meyering  <meyering@redhat.com>
25614
25615         Undo last change.
25616         * lib/sha1.c, lib/md5.c: 63 != ~63.
25617         Reported by Andreas Schwab.
25618
25619         sha1.c, md5.c: Hoist a redundant expression.
25620         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25621         "ctx->buflen" only once, before calling *_process_block.
25622         * lib/md5.c (md5_process_bytes): Likewise.
25623
25624 2008-03-14  Eric Blake  <ebb9@byu.net>
25625
25626         Bump copyright year in files generated by gnulib-tool.
25627         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25628         gnulib-tool, rather than hard-coding it.
25629
25630         Fix 'gnulib-tool --version' output to work with git.
25631         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25632         (startup): ...here.
25633         (func_version): Use it to invoke git-version-gen, rather than
25634         relying on CVS keyword expansion.  Modernize wording.
25635         (cvsdatestamp, last_checkin_date, version): Kill unused
25636         variables.
25637
25638 2008-03-12  Jim Meyering  <meyering@redhat.com>
25639
25640         Recognize optional cast of the argument to free.
25641         * build-aux/useless-if-before-free: Update regexps.
25642
25643         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25644
25645 2008-03-11  Bruno Haible  <bruno@clisp.org>
25646
25647         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25648         by a single package.
25649         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25650         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25651         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25652         Reported by Sam Steingold <sds@gnu.org>.
25653
25654 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25655
25656         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25657         repositories.
25658
25659 2008-03-11  Bruno Haible  <bruno@clisp.org>
25660
25661         Avoid conflicts between local macro definitions.
25662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25663         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25664
25665 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25666             Bruno Haible  <bruno@clisp.org>
25667
25668         Make va_copy work with some version of xlc on AIX 5.1.
25669         * lib/stdarg.in.h: New file.
25670         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25671         On AIX, use a <stdarg.h> file substitute.
25672         * modules/stdarg (Files): Add lib/stdarg.in.h.
25673         (Depends-on): Add include_next.
25674         (Makefile.am): Build a stdarg.h substitute if requested.
25675         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25676
25677 2008-03-10  Bruno Haible  <bruno@clisp.org>
25678
25679         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25681         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25682
25683 2008-03-10  Bruno Haible  <bruno@clisp.org>
25684
25685         * modules/stdlib (Depends-on): Add include_next, remove
25686         absolute-header.
25687
25688 2008-03-09  Bruno Haible  <bruno@clisp.org>
25689
25690         * lib/freadahead.h (freadahead): Document more precisely.
25691         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25692         the sum of both buffer sizes.
25693         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25694         * NEWS: Document the change.
25695
25696 2008-03-09  Bruno Haible  <bruno@clisp.org>
25697
25698         Extend freadptr to return also the buffer size.
25699         * lib/freadptr.h (freadptr): Add sizep argument.
25700         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25701         (freadptr): Add sizep argument. Determine buffer size like freadahead
25702         does.
25703         * tests/test-freadptr.c: Don't include freadahead.h.
25704         (main): Adapt for new calling convention of freadptr.
25705         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25706         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25707         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25708         tests/test-freadptr2.sh.
25709         (Depends): Remove freadahead.
25710         (TESTS): Add test-freadptr2.sh.
25711         (check_PROGRAMS): Add test-freadptr2.
25712
25713 2008-03-09  Bruno Haible  <bruno@clisp.org>
25714
25715         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25716         Report and solution by Simon Josefsson.
25717
25718 2008-03-06  Bruno Haible  <bruno@clisp.org>
25719
25720         Make fflush after ungetc work on BSD platforms.
25721         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25722         * tests/test-fflush2.c: New file.
25723         * tests/test-fflush2.sh: New file.
25724         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25725         tests/test-fflush2.c.
25726         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25727         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25728
25729 2008-03-06  Eric Blake  <ebb9@byu.net>
25730
25731         Likewise for ftello.
25732         * modules/ftello (Dependencies): Add extensions.
25733         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25734
25735 2008-03-06  Bruno Haible  <bruno@clisp.org>
25736
25737         * modules/fseeko (Dependencies): Add extensions.
25738         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25739         Needed on glibc systems.
25740
25741 2008-03-06  Bruno Haible  <bruno@clisp.org>
25742
25743         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25744         email address.
25745         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25746
25747 2008-03-06  Bruno Haible  <bruno@clisp.org>
25748
25749         * users.txt: Add libgnupdf.
25750
25751 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25752
25753         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25754         (Header File Substitutes, Function Substitutes,
25755         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25756         (Build robot for gnulib): Fix typo.
25757
25758 2008-03-06  Bruno Haible  <bruno@clisp.org>
25759
25760         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25761         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25762
25763 2008-03-06  Bruno Haible  <bruno@clisp.org>
25764
25765         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25766         * doc/gnulib.texi: Include it.
25767
25768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25769
25770         * modules/func (License): Change license to unlimited; there was
25771         no LGPL parts in the module anyway.
25772
25773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25774
25775         * modules/__func__: Renamed to modules/func.
25776         * modules/__func__-tests: Renamed to modules/func-tests.
25777         * tests/test-__func__.c: Renamed to tests/test-func.c.
25778         * m4/__func__.m4: Renamed to m4/func.m4.
25779         * doc/gnulib.texi (__func__): Section renamed to func.
25780         Suggested by Eric Blake <ebb9@byu.net>.
25781
25782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25783
25784         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25785         about __func__.  Make example self-contained.  Suggested by Eric
25786         Blake <ebb9@byu.net>.
25787
25788         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25789         Suggested by Eric Blake <ebb9@byu.net>.
25790
25791 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25792
25793         * modules/__func__: New file.
25794         * modules/__func__-tests: New file.
25795         * tests/test-__func__.c: New file.
25796         * m4/__func__.m4: New file.
25797         * doc/gnulib.texi (__func__): Document __func__ module.
25798
25799 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25800
25801         * modules/byteswap (License): Re-license as LGPLv2+.
25802
25803 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25804
25805         * doc/Makefile: Add pdf target.
25806
25807 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25808
25809         * modules/inline (License): Use 'unlimited', since there are only
25810         *.m4 files in this module.
25811
25812 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25813             Bruno Haible  <bruno@clisp.org>
25814
25815         Add support for HP C 7.1 on OpenVMS 8.3.
25816         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25817
25818 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25819
25820         Update VMS specifics.
25821         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25822
25823 2008-03-02  Jim Meyering  <meyering@redhat.com>
25824
25825         Remove the last dependency on the "free" module.
25826         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25827         Reported by Bob Proulx.
25828
25829         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25830
25831         Remove useless "if" tests before free.  Deprecate "free" module.
25832         * doc/posix-functions/free.texi: Mention that this
25833         module is no longer useful.
25834         * modules/free (Notice): Say this module is obsolete.
25835         * modules/readutmp (Depends-on): Remove free.
25836         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25837         * lib/putenv.c (putenv): Likewise.
25838         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25839         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25840         * tests/test-c-strcasestr.c (main): Likewise.
25841         * tests/test-c-strstr.c (main): Likewise.
25842         * tests/test-mbscasestr1.c (main): Likewise.
25843         * tests/test-mbscasestr2.c (main): Likewise.
25844         * tests/test-mbsstr1.c (main): Likewise.
25845         * tests/test-mbsstr2.c (main): Likewise.
25846         * tests/test-memmem.c (main): Likewise.
25847         * tests/test-strcasestr.c (main): Likewise.
25848         * tests/test-striconv.c (main): Likewise.
25849         * tests/test-striconveh.c (main): Likewise.
25850         * tests/test-striconveha.c (main): Likewise.
25851         * tests/test-strstr.c (main): Likewise.
25852
25853         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25854
25855         bootstrap: sync from coreutils again
25856         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25857
25858 2008-03-01  Jim Meyering  <meyering@redhat.com>
25859
25860         bootstrap: sync from coreutils
25861         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25862         also when the target doesn't exist.
25863
25864 2008-03-01  Eric Blake  <ebb9@byu.net>
25865
25866         Fix bugs in last patch.
25867         * lib/memchr2.c (memchr2): Fix typo.
25868         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25869         extension.
25870         Reported by Bruce Korb.
25871
25872         New module 'memchr2'.
25873         * modules/memchr2: New file.
25874         * modules/memchr2-tests: Likewise.
25875         * lib/memchr2.h: Likewise.
25876         * lib/memchr2.c: Likewise, based on memchr.c.
25877         * tests/test-memchr2.c: New test.
25878         * MODULES.html.sh (String handling): Add memchr2.
25879
25880 2008-02-29  Bruno Haible  <bruno@clisp.org>
25881
25882         * modules/freadseek-tests: New file.
25883         * tests/test-freadseek.sh: New file.
25884         * tests/test-freadseek.c: New file.
25885
25886         New module 'freadseek'.
25887         * modules/freadseek: New file.
25888         * lib/freadseek.h: New file.
25889         * lib/freadseek.c: New file.
25890         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25891
25892 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25893
25894         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25895         wydawca.
25896
25897         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25898         program_invocation_name and program_invocation_short_name are
25899         present.
25900
25901 2008-02-28  Bruno Haible  <bruno@clisp.org>
25902
25903         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25904         * tests/test-freadptr.sh: Also test non-seekable stdin.
25905
25906 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25907
25908         * build-aux/bootstrap (source_base, m4_base)
25909         (doc_base, tests_base): New variables.
25910         (gnulib_tool_options): Do not hardcode base directories, use
25911         the above variables instead.
25912
25913 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25914
25915         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25916
25917 2008-02-28  Bruno Haible  <bruno@clisp.org>
25918
25919         * modules/freadptr-tests: New file.
25920         * tests/test-freadptr.sh: New file.
25921         * tests/test-freadptr.c: New file.
25922
25923         New module 'freadptr'.
25924         * modules/freadptr: New file.
25925         * lib/freadptr.h: New file.
25926         * lib/freadptr.c: New file.
25927         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25928
25929 2008-02-26  Karl Berry  <karl@freefriends.org>
25930
25931         Sync from Libtool:
25932         * libltdl/argz.c (argz_add, argz_count): New functions.
25933         * libltdl/argz.in.h: Declare them.
25934         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25935
25936 2008-02-22  Bruno Haible  <bruno@clisp.org>
25937
25938         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25939         is a pointer type.  Needed for HP-UX 10.
25940         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25941         * doc/posix-functions/gmtime_r.texi: Likewise.
25942         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25943
25944 2008-02-24  Bruno Haible  <bruno@clisp.org>
25945
25946         * modules/environ-tests: New file.
25947         * tests/test-environ.c: New file.
25948
25949         New module 'environ'.
25950         * modules/environ: New file.
25951         * lib/unistd.in.h (environ): New declaration.
25952         * m4/environ.m4: New file.
25953         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25954         after use.
25955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25956         HAVE_DECL_ENVIRON.
25957         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25958         HAVE_DECL_ENVIRON.
25959         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25960         wrong claim that 'environ' is missing on some systems.
25961         * modules/execute (Depends-on): Add environ.
25962         * lib/execute.c (environ): Remove fallback declaration.
25963         * modules/pipe (Depends-on): Add environ.
25964         * lib/pipe.c (environ): Remove fallback declaration.
25965         * modules/setenv (Depends-on): Add environ.
25966         * lib/setenv.c (environ): Remove fallback declaration.
25967         * modules/unsetenv (Depends-on): Add environ.
25968         * lib/unsetenv.c (environ): Remove fallback declaration.
25969         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25970         m4/environ.m4.
25971         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25972         (gl_PREREQ_UNSETENV): Likewise.
25973
25974 2008-02-24  Bruno Haible  <bruno@clisp.org>
25975
25976         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25977
25978 2008-02-20  Bob Proulx  <bob@proulx.com>
25979
25980         Enable use of older two part flavor 'git describe'.
25981         * build-aux/git-version-gen: If using the older two part flavor of
25982         git version then recreate the third part now present in the
25983         newer three part flavor of git describe.
25984
25985 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25986
25987         * lib/fts.c (fts_build): Typo correction to comment.
25988
25989 2008-02-17  Bruno Haible  <bruno@clisp.org>
25990
25991         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25992         generating no-op conflicts.
25993
25994 2008-02-17  Bruno Haible  <bruno@clisp.org>
25995
25996         Speed up by 10%.
25997         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25998         result_entries, rather than an index-based loop.
25999
26000 2008-02-17  Bruno Haible  <bruno@clisp.org>
26001
26002         Speed up by 25%.
26003         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26004         'hashcode_cached'.
26005         (entry_create): New function.
26006         (entry_hashcode): Use the cached hashcode if possible.
26007         (read_changelog_file, try_split_merged_entry): Use entry_create.
26008
26009 2008-02-17  Bruno Haible  <bruno@clisp.org>
26010
26011         Speed up from O(n^2) to O(n) for long ChangeLog files.
26012         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26013         (read_changelog_file): Change implementation of entries_reversed list
26014         to rbtreehash.
26015         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26016
26017 2008-02-17  Bruno Haible  <bruno@clisp.org>
26018
26019         New option --split-merged-entry.
26020         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26021         (find_paragraph_end, try_split_merged_entry): New functions.
26022         (long_options): Add option --split-merged-entry.
26023         (usage): Document option --split-merged-entry.
26024         (main): Implement option --split-merged-entry.
26025         Reported by Eric Blake.
26026
26027 2008-02-17  Bruno Haible  <bruno@clisp.org>
26028
26029         * lib/git-merge-changelog.c: Include c-strstr.h.
26030         (main): Support the "git pull --rebase" situation.
26031         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26032         Reported by Eric Blake.
26033
26034 2008-02-16  Eric Blake  <ebb9@byu.net>
26035
26036         Avoid doubling \ in common case of "c-maybe" quoting style.
26037         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26038         eliding outer quotes.
26039         * lib/quotearg.h: Document this.
26040         * tests/test-quotearg.c (result_strings, inputs, results_g)
26041         (flag_results, locale_results): Test it by adding a new string to
26042         each test group.
26043         (compare_strings): Test new string.
26044
26045 2008-02-13  Eric Blake  <ebb9@byu.net>
26046
26047         Avoid trigraph quoting in default output.
26048         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26049         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26050         unless explicitly requested.
26051         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26052
26053 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26054
26055         Don't rely on signed integer overflowing to negative value.
26056         * lib/getugroups.c (getugroups): Include <limits.h>.
26057         Instead, compare against INT_MAX, and increment only if the test passes.
26058
26059 2008-02-13  Jim Meyering  <meyering@redhat.com>
26060         and Eric Blake  <ebb9@byu.net>
26061
26062         Avoid shadowing warning and compile errors on Linux.
26063         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26064         forwarding macros on Linux.
26065         (dcgettext): Define a stub, for Linux.
26066         (results_g, main): Avoid warnings.
26067
26068 2008-02-12  Eric Blake  <ebb9@byu.net>
26069
26070         Silence warning in last patch.
26071         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26072
26073         Quotearg part 4: add tests, fix c-maybe colon quoting.
26074         * lib/quotearg.h: Improve documentation.
26075         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26076         escapes when adding outer quotes.  When quoting trigraphs, use
26077         valid C notation.  When quoting NUL, omit extra characters if next
26078         character is not digit.  Alter prototype.
26079         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26080         callers.
26081         * modules/quotearg-tests: New module.
26082         * tests/test-quotearg.c: New test.
26083
26084 2008-02-07  Eric Blake  <ebb9@byu.net>
26085
26086         Quotearg part 3: add flag to control outer quote elision.
26087         * lib/quotearg.h (c_maybe_quoting_style): New style.
26088         (enum quoting_flags): Better documentation of flags.
26089         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26090         c-maybe style.
26091         (quotearg_buffer_restyled): Handle new flag to elide outer
26092         quotes.
26093
26094         Quotearg part 2: add flag that can control NUL elision.
26095         * lib/quotearg.h (set_quoting_flags): New prototype.
26096         * lib/quotearg.c (struct quoting_options): Add flag field.
26097         (set_quoting_flags): New function.
26098         (quotearg_buffer_restyled): Add flags parameter.
26099         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26100         (quotearg_n_options): Set the flag, since length cannot be
26101         returned.
26102         (quoting_options_from_style): Default flags correctly.
26103
26104         Quotearg part 1: more wrappers, restore quotearg_char state.
26105         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26106         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26107         (quotearg_colon_mem): New wrappers.
26108         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26109         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26110         functions.
26111         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26112         (quotearg_colon_mem): New functions.
26113
26114 2008-02-11  Bruno Haible  <bruno@clisp.org>
26115
26116         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26117         library in the current directory: it does not work with parallel make.
26118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26119
26120 2008-02-11  Bruno Haible  <bruno@clisp.org>
26121
26122         * .gitattributes: New file.
26123
26124 2008-02-11  Jim Meyering  <meyering@redhat.com>
26125
26126         useless-if-before-free: Fix reversed exit values.
26127         * build-aux/useless-if-before-free: Use correct values
26128         for EXIT_MATCH and EXIT_NO_MATCH.
26129
26130         * build-aux/useless-if-before-free: Close stdout carefully.
26131
26132 2008-02-10  Bruno Haible  <bruno@clisp.org>
26133
26134         New module 'git-merge-changelog'.
26135         * modules/git-merge-changelog: New file.
26136         * lib/git-merge-changelog.c: New file.
26137
26138 2008-02-10  Jim Meyering  <meyering@redhat.com>
26139
26140         useless-if-before-free: New option: --list (-l).
26141
26142         useless-if-before-free: Don't exit immediately upon open failure.
26143         * build-aux/useless-if-before-free: Exit 2 for errors.
26144         Upon failure to open a file, don't exit immediately.
26145         Rather, just warn and continue with any remaining files.
26146
26147 2008-02-10  Bruno Haible  <bruno@clisp.org>
26148
26149         New abstract list operation 'node_set_value'.
26150         * lib/gl_list.h (gl_list_node_set_value): New function.
26151         (struct gl_list_implementation): New field node_set_value.
26152         * lib/gl_list.c (gl_list_node_set_value): New function.
26153         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26154         (gl_array_list_implementation): Update.
26155         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26156         (gl_carray_list_implementation): Update.
26157         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26158         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26159         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26160         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26161         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26162         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26163         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26164         Update.
26165         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26166         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26167         (gl_sublist_list_implementation): Update.
26168
26169 2008-02-10  Bruno Haible  <bruno@clisp.org>
26170
26171         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26172         Needed when ELEMENT is #defined to 'some_type *'.
26173
26174 2008-02-10  Jim Meyering  <meyering@redhat.com>
26175
26176         New script and module: useless-if-before-free
26177         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26178         * build-aux/useless-if-before-free: New file.
26179         * modules/useless-if-before-free: New file.
26180
26181         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26182
26183         xstrtol_error: Fix typo.
26184         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26185         s/exit_failure/exit_status/.
26186
26187 2008-02-09  Jim Meyering  <meyering@redhat.com>
26188
26189         New script and module: gitlog-to-changelog
26190         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26191         * modules/gitlog-to-changelog: New file.
26192         * build-aux/gitlog-to-changelog: New file.
26193
26194 2008-02-08  Jim Meyering  <meyering@redhat.com>
26195
26196         Avoid two "parameter unused" warnings.
26197         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26198         Mark "st" as used.
26199
26200         Use "git COMMAND", not "git-COMMAND".
26201         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26202         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26203         * build-aux/git-version-gen: Use "git status", not "git-status".
26204
26205 2008-02-07  Bruno Haible  <bruno@clisp.org>
26206
26207         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26208         Avoids a crash on Windows Vista.
26209         Reported by Adam Strzelecki <ono@java.pl> via
26210         Simon Josefsson <simon@josefsson.org>.
26211
26212 2008-02-06  Bruno Haible  <bruno@clisp.org>
26213
26214         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26215         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26216         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26218         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26220         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26221         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26222         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26229         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26230         left-adjust flag.
26231         * tests/test-snprintf-posix.h (test_function): Likewise.
26232         * tests/test-sprintf-posix.h (test_function): Likewise.
26233         * tests/test-vasprintf-posix.c (test_function): Likewise.
26234         * doc/posix-functions/fprintf.texi: Update.
26235         * doc/posix-functions/printf.texi: Update.
26236         * doc/posix-functions/snprintf.texi: Update.
26237         * doc/posix-functions/sprintf.texi: Update.
26238         * doc/posix-functions/vfprintf.texi: Update.
26239         * doc/posix-functions/vprintf.texi: Update.
26240         * doc/posix-functions/vsnprintf.texi: Update.
26241         * doc/posix-functions/vsprintf.texi: Update.
26242         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26243
26244 2008-02-06  Bruno Haible  <bruno@clisp.org>
26245
26246         Fix bug introduced on 2008-01-26.
26247         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26248
26249 2008-02-06  Bruno Haible  <bruno@clisp.org>
26250
26251         Fix bug introduced on 2007-06-10.
26252         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26253         !NEED_PRINTF_FLAG_ZERO.
26254
26255 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26256
26257         getloadavg: use libperfstat on AIX5
26258         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26259
26260 2008-02-03  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/diffseq.h: Add comments about required #includes.
26263         Reported by Michael Biggs <gnulib@doubleplum.net>.
26264
26265 2008-02-01  Bruno Haible  <bruno@clisp.org>
26266
26267         * users.txt: Add gnuit.
26268
26269 2008-01-31  Bruno Haible  <bruno@clisp.org>
26270
26271         * lib/md4.c (set_uint32): Mark as inline.
26272         * lib/md5.c (set_uint32): Likewise.
26273         * lib/sha1.c (set_uint32): Likewise.
26274         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26275         * m4/md5.m4 (gl_MD5): Likewise.
26276         * m4/sha1.m4 (gl_SHA1): Likewise.
26277
26278 2008-01-31  Jim Meyering  <meyering@redhat.com>
26279
26280         Use "sizeof VAR", rather than a literal "4".
26281         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26282         * lib/md4.c (md4_read_ctx): Likewise.
26283         * lib/sha1.c (sha1_read_ctx): Likewise.
26284
26285 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26286
26287         * tests/test-sha1.c: New file, based on test-md5.c.
26288
26289         * modules/crypto/sha1-tests: New file.
26290
26291 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26292
26293         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26294
26295 2008-01-31  Jim Meyering  <meyering@redhat.com>
26296
26297         Prefer "sizeof v" over the equivalent "4".
26298         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26299         * lib/md5.c (set_uint32): Likewise.
26300         * lib/sha1.c (set_uint32): Likewise.
26301
26302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26303
26304         * lib/sha1.c (set_uint32): Mark function as static.
26305
26306 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26307
26308         md2: clarify comments to say that alignment is not required.
26309         * lib/md2.h: Remove warning about alignment in comment.
26310         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26311         never been required.
26312
26313 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26314
26315         md4: adapt alignment constraint fix from sha1.
26316         * lib/md4.c (set_uint32): New function, from sha1.c
26317         (md4_read_ctx): Use it.
26318         (md4_finish_ctx): Doc fix.
26319         * lib/md4.h: Doc fix.
26320
26321 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26322
26323         md5: adapt alignment constraint fix from sha1.
26324         * lib/md5.c (set_uint32): New function, from sha1.c
26325         (md5_read_ctx): Use it.
26326         (md5_finish_ctx): Doc fix.
26327         * lib/md5.h: Doc fix.
26328
26329 2008-01-30  Peter Palfrader  <weasel@debian.org>
26330
26331         sha1: remove the result buffer alignment constraint
26332         * lib/sha1.c (set_uint32): New function.
26333         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26334         constraint.
26335         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26336         * lib/sha1.h: Likewise.
26337
26338 2008-01-30  Andreas Schwab  <schwab@suse.de>
26339             Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26342         correct definition of LDBL_MIN_EXP.
26343
26344 2008-01-30  Karl Berry  <karl@gnu.org>
26345
26346         * config/srclist-update: try to preserve x bit on updates.
26347         * config/srclistvars.sh: update for karl.
26348
26349 2008-01-29  Jim Meyering  <meyering@redhat.com>
26350
26351         vasnprintf.c: Avoid warning about unused label
26352         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26353         "overflow" label definition and associated code with the
26354         same cpp condition that guards the sole use of that label.
26355
26356 2008-01-26  Bruno Haible  <bruno@clisp.org>
26357
26358         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26359         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26360         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26361         * lib/isnanl-nolibm.h (isnanl): Likewise.
26362         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26363
26364 2008-01-26  Bruno Haible  <bruno@clisp.org>
26365
26366         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26367         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26368
26369 2008-01-26  Bruno Haible  <bruno@clisp.org>
26370
26371         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26372         GCC >= 4.0 built-in.
26373         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26374
26375 2008-01-26  Bruno Haible  <bruno@clisp.org>
26376
26377         Rename isnan, applicable to 'double' only, to isnand.
26378         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26379         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26380         (configure.ac): Update.
26381         (Include): Replace "isnan.h" with "isnand.h".
26382         * m4/isnand.m4: Renamed from m4/isnan.m4.
26383         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26384         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26385         instead of isnan.c.
26386         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26387         instead of HAVE_ISNAN_IN_LIBC.
26388         (isnand): Renamed from isnan.
26389         * lib/isnand.c: New file.
26390         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26391         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26392         (Makefile.am): Update.
26393         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26394         Include isnand.h instead of isnan.h.
26395         (main): Test isnand instead of isnan.
26396         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26397         isnan-nolibm.
26398         * modules/frexp (Depends-on): Likewise.
26399         * modules/frexp-tests (Depends-on): Likewise.
26400         * modules/frexp-nolibm (Depends-on): Likewise.
26401         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26402         * modules/isfinite (Depends-on): Likewise.
26403         * modules/round-tests (Depends-on): Likewise.
26404         * modules/signbit (Depends-on): Likewise.
26405         * modules/signbit-tests (Depends-on): Likewise.
26406         * modules/snprintf-posix (Depends-on): Likewise.
26407         * modules/sprintf-posix (Depends-on): Likewise.
26408         * modules/trunc-tests (Depends-on): Likewise.
26409         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26410         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26411         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26412         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26413         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26414         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26415         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26416         * modules/vasnprintf-posix (Depends-on): Likewise.
26417         * modules/vasprintf-posix (Depends-on): Likewise.
26418         * modules/vfprintf-posix (Depends-on): Likewise.
26419         * modules/vsnprintf-posix (Depends-on): Likewise.
26420         * modules/vsprintf-posix (Depends-on): Likewise.
26421         * lib/frexp.c: Include isnand.h instead of isnan.h.
26422         (ISNAN): Set to isnand instead of isnan.
26423         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26424         (gl_isfinited): Use isnand instead of isnan.
26425         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26426         (gl_signbitd): Use isnand instead of isnan.
26427         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26428         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26429         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26430         (main): Use isnand instead of isnan.
26431         * tests/test-round1.c: Include isnand.h.
26432         (main): Use isnand instead of isnan.
26433         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26434         (ISNAN): Set to isnand instead of isnan.
26435         * tests/test-trunc1.c: Include isnand.h.
26436         (main): Use isnand instead of isnan.
26437         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26438         (equal): Use isnand instead of isnan.
26439         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26440         isnand-nolibm.
26441         * NEWS: Mention the change.
26442
26443 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26444             Bruno Haible  <bruno@clisp.org>
26445
26446         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26447         the GCC builtins for signbits are present and set
26448         REPLACE_SIGNBIT_USING_GCC if so.
26449         * lib/math.in.h (signbit): Define using GCC builtins if
26450         REPLACE_SIGNBIT_USING_GCC is set.
26451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26452         REPLACE_SIGNBIT_USING_GCC.
26453         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26454
26455 2008-01-25  Jim Meyering  <meyering@redhat.com>
26456
26457         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26458         * lib/poll.c: Include <config.h>, not "config.h".
26459         * tests/test-getaddrinfo.c: Likewise.
26460
26461 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26462
26463         * modules/sockets-tests: New file.
26464
26465 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26466
26467         * modules/sockets: New module, can be used to call WSA_Startup and
26468         WSA_Cleanup when needed.
26469
26470         * lib/sockets.h, lib/sockets.c: New files.
26471
26472         * m4/sockets.m4: New file.
26473
26474         * tests/test-sockets.c: New file.
26475
26476 2008-01-19  Bruno Haible  <bruno@clisp.org>
26477
26478         * doc/posix-headers: Renamed from doc/headers.
26479         * doc/posix-functions: Renamed from doc/functions.
26480         * doc/gnulib.texi: Update.
26481
26482 2008-01-19  Bruno Haible  <bruno@clisp.org>
26483
26484         * doc/glibc-functions/strcasestr.texi: Include contents of
26485         doc/functions/strcasestr.texi, fixing the list of platforms.
26486         * doc/functions/strcasestr.texi: Remove file.
26487
26488 2008-01-19  Bruno Haible  <bruno@clisp.org>
26489
26490         * doc/glibc-functions/memmem.texi: Include contents of
26491         doc/functions/memmem.texi.
26492         * doc/functions/memmem.texi: Remove file.
26493
26494 2008-01-18  Bruno Haible  <bruno@clisp.org>
26495
26496         * doc/glibc-functions/*.texi: New files.
26497         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26498         to use the new files.
26499
26500 2008-01-17  Bruno Haible  <bruno@clisp.org>
26501
26502         * tests/test-gethostname.c (main): Fix printf statement.
26503
26504 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26505
26506         * modules/gethostname-tests: New file.
26507
26508         * tests/test-gethostname.c: New file.
26509
26510 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26511
26512         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26513         used by the UNAME case.  Reported by Bruno Haible
26514         <bruno@clisp.org>.
26515
26516 2008-01-17  Eric Blake  <ebb9@byu.net>
26517
26518         Convert c-strcasestr to be more efficient.
26519         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26520         (Depends-on): Add c-strcase, remove malloca, strnlen.
26521         * tests/test-c-strcasestr.c (main): Enhance test.
26522         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26523
26524 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26525
26526         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26527         Use it in creating po/Makevars.
26528
26529 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26530
26531         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26532         Applications that requires it should initialize libgcrypt
26533         manually.
26534
26535 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26536
26537         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26538
26539 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         Fix problem with getdate on mingw32 reported by Simon Josefsson
26542         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26543         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26544         tzname", when deciding whether to declare tzname.
26545         * lib/strftime.c (tzname): Likewise.
26546
26547 2008-01-15  Bruno Haible  <bruno@clisp.org>
26548
26549         Work around a MacOS X 10.5 bug in frexpl().
26550         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26551         * doc/functions/frexpl.texi: Document the bug.
26552         Reported by Elias Pipping <pipping@gentoo.org>.
26553
26554 2008-01-14  Eric Blake  <ebb9@byu.net>
26555
26556         Touch up previous patch.
26557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26558         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26559
26560         Convert strcasestr module to use Two-Way algorithm.
26561         * modules/strcasestr-simple: New module, based on the old
26562         strcasestr, but with Two-Way rather than KMP.
26563         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26564         * lib/string.in.h (rpl_strcasestr): Declare.
26565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26566         performance.
26567         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26568         * modules/string (Makefile.am): Support strcasestr.
26569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26570         * modules/strcasestr-tests (Depends-on): Check for alarm.
26571         * tests/test-strcasestr.c: Augment test.
26572         * lib/str-two-way.h: Clean up stray macro.
26573         * NEWS: Document new module.
26574         * MODULES.html.sh (string handling): Likewise.
26575         * doc/functions/strcasestr.texi: New file.
26576         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26577         here, since it is not a POSIX function.
26578
26579 2008-01-14  Colin Watson  <cjwatson@debian.org>
26580             Bruno Haible  <bruno@clisp.org>
26581
26582         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26583         works fine; if not, set REPLACE_STRSIGNAL.
26584         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26586         REPLACE_STRSIGNAL.
26587         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26588         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26589         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26590
26591 2008-01-14  Bruno Haible  <bruno@clisp.org>
26592
26593         * modules/strsignal (Include): Change to <string.h>.
26594
26595 2008-01-14  Colin Watson  <cjwatson@debian.org>
26596
26597         * modules/argp (Notice): Add a notice recommending to change
26598         XGETTEXT_OPTIONS.
26599         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26600
26601 2008-01-13  Colin Watson  <cjwatson@debian.org>
26602
26603         * modules/strsignal-tests: New file.
26604         * tests/test-strsignal.c: New file.
26605
26606         * lib/strsignal.c: New file, from glibc with modifications.
26607         * lib/siglist.h: New file, from glibc with modifications.
26608         * lib/string.in.h (strsignal): New declaration.
26609         * m4/strsignal.m4: New file.
26610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26611         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26612         * modules/strsignal: New file.
26613         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26614         HAVE_DECL_STRSIGNAL.
26615
26616 2008-01-13  Bruno Haible  <bruno@clisp.org>
26617
26618         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26619         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26621         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26622
26623 2008-01-13  Bruno Haible  <bruno@clisp.org>
26624
26625         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26626         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26627         * lib/argp.h (__attribute__): Likewise.
26628         * lib/c-stack.c (__attribute__): Likewise.
26629         * lib/error.h (__attribute__): Likewise.
26630         * lib/fts.c (__attribute__): Likewise.
26631         * lib/openat.h (__attribute__): Likewise.
26632         * lib/stdio.in.h (__attribute__): Likewise.
26633         * lib/string.in.h (__attribute__): Likewise.
26634         * lib/utimens.c (__attribute__): Likewise.
26635         * lib/vasnprintf.h (__attribute__): Likewise.
26636         * lib/xalloc.h (__attribute__): Likewise.
26637         * lib/xprintf.h (__attribute__): Likewise.
26638         * lib/xstrtol.h (__attribute__): Likewise.
26639         * lib/xvasprintf.h (__attribute__): Likewise.
26640
26641 2008-01-12  Bruno Haible  <bruno@clisp.org>
26642
26643         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26644         * doc/glibc-headers/a.out.texi: New file.
26645         * doc/glibc-headers/aliases.texi: New file.
26646         * doc/glibc-headers/alloca.texi: New file.
26647         * doc/glibc-headers/ar.texi: New file.
26648         * doc/glibc-headers/argp.texi: New file.
26649         * doc/glibc-headers/argz.texi: New file.
26650         * doc/glibc-headers/byteswap.texi: New file.
26651         * doc/glibc-headers/crypt.texi: New file.
26652         * doc/glibc-headers/endian.texi: New file.
26653         * doc/glibc-headers/envz.texi: New file.
26654         * doc/glibc-headers/err.texi: New file.
26655         * doc/glibc-headers/error.texi: New file.
26656         * doc/glibc-headers/execinfo.texi: New file.
26657         * doc/glibc-headers/fpu_control.texi: New file.
26658         * doc/glibc-headers/fstab.texi: New file.
26659         * doc/glibc-headers/fts.texi: New file.
26660         * doc/glibc-headers/getopt.texi: New file.
26661         * doc/glibc-headers/ieee754.texi: New file.
26662         * doc/glibc-headers/ifaddrs.texi: New file.
26663         * doc/glibc-headers/libintl.texi: New file.
26664         * doc/glibc-headers/mcheck.texi: New file.
26665         * doc/glibc-headers/mntent.texi: New file.
26666         * doc/glibc-headers/obstack.texi: New file.
26667         * doc/glibc-headers/paths.texi: New file.
26668         * doc/glibc-headers/printf.texi: New file.
26669         * doc/glibc-headers/pty.texi: New file.
26670         * doc/glibc-headers/resolv.texi: New file.
26671         * doc/glibc-headers/shadow.texi: New file.
26672         * doc/glibc-headers/sysexits.texi: New file.
26673         * doc/glibc-headers/ttyent.texi: New file.
26674
26675 2008-01-12  Jim Meyering  <meyering@redhat.com>
26676
26677         announce-gen: emit Gnulib's git-based version string.
26678         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26679         New option --gnulib-version=V, where V is expected to be
26680         the output of running git describe in the gnulib directory.
26681         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26682         not useful, and plan to stop publishing an xdelta file with each
26683         coreutils release.
26684
26685         * build-aux/announce-gen: Also check for lzma-compressed files.
26686
26687 2008-01-11  Bruno Haible  <bruno@clisp.org>
26688
26689         * tests/test-memmem.c (main): Increase maximum allowed time.
26690         * tests/test-strstr.c (main): Likewise.
26691
26692 2008-01-11  Bruno Haible  <bruno@clisp.org>
26693
26694         * doc/functions/memmem.texi: Add more precisions about platforms.
26695         * doc/functions/strstr.texi: Likewise.
26696
26697 2008-01-10  Eric Blake  <ebb9@byu.net>
26698
26699         * m4/strstr.m4: Delete cruft from copy-n-paste.
26700         Reported by Bruno Haible.
26701
26702 2008-01-10  Bruno Haible  <bruno@clisp.org>
26703
26704         Make c-strstr rely on strstr.
26705         * lib/c-strstr.c: Don't include str-kmp.h.
26706         (c_strstr): Define in terms of strstr.
26707         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26708         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26709
26710 2008-01-10  Bruno Haible  <bruno@clisp.org>
26711
26712         * doc/gnulib.texi (String Functions in C Locale): New section.
26713         * doc/c-ctype.texi: New file.
26714         * doc/c-strcase.texi: New file.
26715         * doc/c-strcaseeq.texi: New file.
26716         * doc/c-strcasestr.texi: New file.
26717         * doc/c-strstr.texi: New file.
26718         * doc/c-strtod.texi: New file.
26719         * doc/c-strtold.texi: New file.
26720
26721 2008-01-10  Eric Blake  <ebb9@byu.net>
26722
26723         * lib/relocatable.h: Fix a comment.
26724
26725 2008-01-10  Eric Blake  <ebb9@byu.net>
26726
26727         Share two-way algorithm.
26728         * lib/str-two-way.h: New file, merged from...
26729         * lib/memmem.c: ...here...
26730         * lib/strstr.c: ...and here.
26731         * modules/memmem (Files): Use it.
26732         * modules/strstr (Files): Likewise.
26733
26734         Avoid quadratic strstr implementations.
26735         * lib/strstr.c: New file.
26736         * m4/strstr.m4: Likewise.
26737         * modules/strstr: Likewise.
26738         * modules/strstr-tests: Likewise.
26739         * tests/test-strstr.c: Likewise.
26740         * lib/string.in.h (rpl_strstr): Declare.
26741         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26743         * modules/string (Makefile.am): Likewise.
26744         * MODULES.html.sh (string handling): Mention new module.
26745         * doc/functions/strstr.texi (strstr): Document the bug.
26746
26747 2008-01-10  Bruno Haible  <bruno@clisp.org>
26748
26749         * lib/relocatable.h (relocate): State whether result is freshly
26750         allocated or not.
26751         * lib/relocatable.c (relocate): Return a freshly allocated string
26752         instead of a pointer to a privately held string.
26753         Reported by Sylvain Beucler <beuc@gnu.org>.
26754
26755 2008-01-10  Colin Watson  <cjwatson@debian.org>
26756
26757         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26758         s/S_ISNLK/S_ISLNK/.
26759
26760 2008-01-09  Bruno Haible  <bruno@clisp.org>
26761
26762         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26763         and other files.
26764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26765         if it's only a guess.
26766         * modules/memmem: Simplify by depending on memmem-simple.
26767
26768 2008-01-09  Bruno Haible  <bruno@clisp.org>
26769
26770         Work around OpenBSD 4.0 tdelete() bug.
26771         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26772         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26773         macros and don't redefine the enum values.
26774         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26775         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26776         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26777
26778 2008-01-09  Bruno Haible  <bruno@clisp.org>
26779
26780         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26781         (main): Don't perform the tests if setlocale did not install a UTF-8
26782         locale. Needed on OpenBSD 4.0.
26783         * modules/wcwidth-tests (Depends-on): Add localcharset.
26784
26785 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26786
26787         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26788         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26789         * NEWS: announce this.
26790         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26791
26792 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26793         and Eric Blake  <ebb9@byu.net>
26794
26795         Add memmem-simple module.
26796         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26797         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26798         * modules/memmem-simple: New file.
26799         * modules/memmem (Description): Tweak.
26800         * MODULES.html.sh (string handling): Mention new module.
26801         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26802         addressed by memmem-simple.
26803         * NEWS: Document the difference.
26804
26805 2008-01-09  Eric Blake  <ebb9@byu.net>
26806
26807         Give gcc some memmem optimization hints.
26808         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26809         (strcasestr): Declare as pure.
26810         * modules/memmem (Maintainer): Claim my implementation.
26811
26812 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26813
26814         Support AIX 6.1 and higher.
26815         * build-aux/config.libpath: Likewise.
26816         * build-aux/config.rpath: Likewise.
26817
26818 2008-01-08  Jim Meyering  <meyering@redhat.com>
26819             Bruno Haible  <bruno@clisp.org>
26820
26821         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26822         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26823         Reported by Peter Fales in
26824         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26825
26826 2008-01-08  Bruno Haible  <bruno@clisp.org>
26827
26828         * modules/unictype/category-of (Depends-on): Add
26829         unictype/category-none.
26830         * modules/unictype/category-and-tests (Depends-on): Add
26831         unictype/category-{L,N,Lu,Nd}.
26832         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26833         * modules/unictype/category-or-tests (Depends-on): Add
26834         unictype/category-{L,N}.
26835         * modules/unictype/category-name-tests (Depends-on): Add
26836         unictype/category-{Z,Nl}.
26837         Reported by Simon Josefsson.
26838
26839 2008-01-08  Bruno Haible  <bruno@clisp.org>
26840
26841         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26842         convention better.
26843         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26844         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26845         Reported by Peter Miller <millerp@canb.auug.org.au>.
26846
26847 2008-01-08  Eric Blake  <ebb9@byu.net>
26848
26849         Rewrite memmem to guarantee linear complexity without malloc.
26850         * lib/memmem.c (memmem): Use Two-Way rather than
26851         Knuth-Morris-Pratt, to allow O(1) space usage.
26852         (critical_factorization, two_way_short_needle)
26853         (two_way_long_needle): New functions.
26854         (knuth_morris_pratt): Delete.
26855         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26856         Add stdint.
26857         * tests/test-memmem.c (main): Add tests for periodic needle and
26858         sublinear performance.
26859         * doc/functions/memmem.texi (memmem): Document other deficiencies
26860         in cygwin and older glibc.
26861
26862 2008-01-08  Bruno Haible  <bruno@clisp.org>
26863
26864         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26865         augmentation.
26866
26867 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26868
26869         Add a configure time option: --disable-acl.
26870         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26871         AC_ARG_ENABLE(acl).
26872
26873 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26874
26875         * tests/test-localename.c: Don't include obsolete "setenv.h".
26876
26877         * modules/localename-tests (Depends-on): Need unsetenv.
26878
26879 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26880
26881         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26882
26883 2008-01-06  Colin Watson  <cjwatson@debian.org>
26884
26885         * users.txt: Add man-db.
26886
26887 2008-01-07  Bruno Haible  <bruno@clisp.org>
26888
26889         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26890         previous section name.
26891
26892 2008-01-07  Bruno Haible  <bruno@clisp.org>
26893
26894         * lib/progname.c (set_program_name): Don't strip off a leading
26895         "lt-" prefix outside a .libs directory.
26896         Suggested by Paul Eggert.
26897
26898 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26899             Bruno Haible  <bruno@clisp.org>
26900
26901         Improve memory cleanup in 'relocatable' module.
26902         * lib/relocatable.h (compute_curr_prefix): Change return type to
26903         'char *'.
26904         * lib/relocatable.c (compute_curr_prefix): Change return type to
26905         'char *'. Free curr_installdir after use.
26906         (relocate): Free curr_prefix_better after use.
26907         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26908
26909 2008-01-01  Bruno Haible  <bruno@clisp.org>
26910
26911         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26912         failure on older glibc systems.
26913         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26914
26915 2008-01-05  Eric Blake  <ebb9@byu.net>
26916
26917         Avoid quadratic system memmem.
26918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26919         Reported by Ralf Wildenhues.
26920
26921         Fix memmem test for mingw.
26922         * modules/memmem-tests (configure.ac): Check for alarm.
26923         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26924         it.
26925         * doc/functions/memmem.texi: New file.
26926         * doc/gnulib.texi (Function Substitutes): Add memmem.
26927         Reported by Bruno Haible.
26928
26929 2008-01-04  Bruno Haible  <bruno@clisp.org>
26930
26931         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26932         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26933         gl_HEADER_STRING_H_DEFAULTS.
26934
26935 2008-01-04  Eric Blake  <ebb9@byu.net>
26936
26937         Shorten duration of memmem test.
26938         * tests/test-memmem.c (main): Use alarm to declare failure if test
26939         is taking too long.
26940         Reported by Ralf Wildenhues.
26941
26942 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26943
26944         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26945         string, needed by strerror.
26946
26947 2008-01-03  Colin Watson  <cjwatson@debian.org>
26948             Bruno Haible  <bruno@clisp.org>
26949
26950         * doc/gnulib-tool.texi (Localization): New section.
26951
26952 2008-01-02  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26955         variables to 'unsigned char *' type.
26956         Reported by Paul Eggert.
26957
26958 2008-01-02  Jim Meyering  <jim@meyering.net>
26959
26960         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26961
26962 2007-12-31  Jim Meyering  <jim@meyering.net>
26963
26964         Avoid use of private FTS type name.
26965         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26966
26967 2007-12-30  Karl Berry  <karl@gnu.org>
26968
26969         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26970         work around defect in Texinfo and/or the standalone Info browser.
26971
26972 2007-12-30  Bruno Haible  <bruno@clisp.org>
26973
26974         Unify 5 copies of the KMP code.
26975         * lib/str-kmp.h: New file.
26976         * lib/c-strcasestr.c: Include str-kmp.h.
26977         (knuth_morris_pratt): Remove function.
26978         (c_strcasestr): Update.
26979         * lib/c-strstr.c: Include str-kmp.h.
26980         (knuth_morris_pratt): Remove function.
26981         (c_strcasestr): Update.
26982         * lib/mbscasestr.c: Include str-kmp.h.
26983         (knuth_morris_pratt_unibyte): Remove function.
26984         * lib/mbsstr.c: Include str-kmp.h.
26985         (knuth_morris_pratt_unibyte): Remove function.
26986         * lib/strcasestr.c: Include str-kmp.h.
26987         (knuth_morris_pratt): Remove function.
26988         (strcasestr): Update.
26989         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26990         * modules/c-strstr (Files): Likewise.
26991         * modules/mbscasestr (Files): Likewise.
26992         * modules/mbsstr (Files): Likewise.
26993         * modules/strcasestr (Files): Likewise.
26994         Suggested by Paul Eggert.
26995
26996 2007-12-30  Bruno Haible  <bruno@clisp.org>
26997
26998         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26999         defined.
27000
27001 2007-12-30  Bruno Haible  <bruno@clisp.org>
27002
27003         * lib/xmalloca.h: Include xalloc.h.
27004         (xnmalloca): New macro.
27005
27006 2007-12-30  Bruno Haible  <bruno@clisp.org>
27007
27008         * lib/malloca.h (nmalloca): New macro.
27009         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27010         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27011         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27012         knuth_morris_pratt_multibyte): Likewise.
27013         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27014         knuth_morris_pratt_multibyte): Likewise.
27015         * lib/memmem.c (knuth_morris_pratt): Likewise.
27016         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27017
27018 2007-12-25  Bruno Haible  <bruno@clisp.org>
27019
27020         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27021         * lib/glob.c: Don't include openat.h.
27022         (link_exists2_p): Add back the code that deals with the
27023         !GLOB_ALTDIRFUNC case.
27024         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27025         let it do the filename concatenation.
27026         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27027         * modules/glob (Depends-on): Remove openat.
27028
27029 2007-12-31  Bruno Haible  <bruno@clisp.org>
27030
27031         * modules/dirfd (License): Change to LGPLv2+.
27032         Approved by Jim Meyering.
27033
27034 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27037         when multiplying M by sizeof (size_t).
27038
27039 2007-12-10  Martin Lambers  <marlam@marlam.de>
27040
27041         Override getpagesize on mingw.
27042         * lib/getpagesize.c: New file.
27043         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27044         * modules/getpagesize (Files): Add lib/getpagesize.c.
27045         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27047         REPLACE_GETPAGESIZE.
27048         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27049
27050 2007-12-25  Bruno Haible  <bruno@clisp.org>
27051
27052         * modules/localcharset (Notice): New field.
27053         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27054         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27055
27056 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27057             Bruno Haible  <bruno@clisp.org>
27058
27059         Avoid using the syntax symbol() in formatted documentation.
27060         * MODULES.html.sh (func_module): When replacing symbol() with a
27061         hyperlink, remove the parentheses. Show an error if some remain.
27062         Recognize and render the '...' syntax.
27063         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27064         Rework. Add paragraph about GCC's inlining.
27065         * doc/alloca.texi: Likewise.
27066         * doc/error.texi: Remove parentheses from symbol reference.
27067         * doc/gnulib-intro.texi: Likewise.
27068         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27069         * modules/fnmatch (Description): Reword to say "the ... function".
27070         * modules/full-read (Description): Likewise.
27071         * modules/full-write (Description): Likewise.
27072         * modules/safe-read (Description): Likewise.
27073         * modules/safe-write (Description): Likewise.
27074         * modules/strchrnul (Description): Likewise.
27075         * modules/trim (Description): Likewise.
27076         * modules/error (Description): Remove parentheses from symbol
27077         references.
27078         * modules/verror (Description): Likewise.
27079         Reported by Karl Berry.
27080
27081 2007-12-25  Bruno Haible  <bruno@clisp.org>
27082
27083         Fixup after 2007-10-16 commit.
27084         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27085
27086 2007-12-24  Bruno Haible  <bruno@clisp.org>
27087
27088         Make --enable-relocatable work with DESTDIR.
27089         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27090         to compute installdir from destprog.
27091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27092         also set the RELOC_DESTDIR variable.
27093         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27094
27095 2007-12-24  Bruno Haible  <bruno@clisp.org>
27096
27097         Fix link error due to xalloc_die().
27098         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27099         of xreadlink.
27100         * lib/relocwrapper.c: Update comments.
27101         * build-aux/install-reloc: Remove xreadlink.c from file list.
27102         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27103         xreadlink.c.
27104         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27105
27106 2007-12-24  Bruno Haible  <bruno@clisp.org>
27107
27108         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27109         * lib/setenv.h: Remove file.
27110         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27111         lib/setenv.h.
27112         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27113         (Depends-on): Add stdlib.
27114         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27115         gl_FUNC_UNSETENV.
27116         (Include): Replace setenv.h with <stdlib.h>.
27117         * modules/unsetenv: New file.
27118         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27119         * lib/unsetenv.c: Include <stdlib.h> first.
27120         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27121         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27122         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27123         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27124         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27125         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27127         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27128         * doc/functions/unsetenv.texi: Update.
27129         * modules/xsetenv (Depends-on): Add unsetenv.
27130         * modules/getdate (Depends-on): Likewise.
27131         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27132         * lib/xsetenv.c: Don't include setenv.h.
27133         * lib/getdate.y: Likewise.
27134         * lib/relocwrapper.c: Likewise.
27135         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27136         (Depends-on): Add stdlib.
27137         * NEWS: Mention the changes.
27138         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
27139
27140 2007-12-23  Bruno Haible  <bruno@clisp.org>
27141
27142         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27143         indentation.
27144
27145 2007-12-23  Bruno Haible  <bruno@clisp.org>
27146
27147         * lib/c-strcasestr.c: Add more comments.
27148         * lib/c-strstr.c: Likewise.
27149         * lib/mbscasestr.c: Likewise.
27150         * lib/mbsstr.c: Likewise.
27151         * lib/strcasestr.c: Likewise.
27152         * lib/memmem.c: Likewise.
27153
27154 2007-12-23  Bruno Haible  <bruno@clisp.org>
27155
27156         * tests/test-memmem.c: Include <string.h> first.
27157
27158 2007-12-22  Bruno Haible  <bruno@clisp.org>
27159
27160         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27161         the contents of $testsbase.
27162         Reported by Ralf Wildenhues.
27163
27164 2007-12-22  Bruno Haible  <bruno@clisp.org>
27165
27166         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27167         two variables local_ldadd_before, local_ldadd_last.
27168
27169 2007-12-20  Eric Blake  <ebb9@byu.net>
27170
27171         Work around circular library issue when cross-compiling.
27172         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27173         that progname.o does not need to pull in rpl_memcmp.
27174
27175 2007-12-19  Eric Blake  <ebb9@byu.net>
27176
27177         Fix memmem to avoid O(n^2) worst-case complexity.
27178         * lib/memmem.c (knuth_morris_pratt): New function.
27179         (memmem): Use it if first few naive iterations fail.
27180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27181         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27182         * modules/memchr (License): Likewise.
27183         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27184         malloca.
27185         * tests/test-memmem.c: Rewrite, borrowing ideas from
27186         test-mbsstr1.c; the old version wouldn't even compile!
27187         * modules/memmem-tests: New file.
27188         * lib/string.in.h (rpl_memmem): Add declaration.
27189         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27191         REPLACE_MEMMEM.
27192
27193 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27194
27195         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27196         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27197         before any system include files, and undef after them all.  This
27198         should fix a problem on VMS reported by John E. Malmberg in
27199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27200
27201 2007-12-17  Eric Blake  <ebb9@byu.net>
27202
27203         Revert addition of verify, for BSD/OS.
27204         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27205         can't handle large files, for the sake of obsolete platforms.
27206         * modules/fseeko (Depends-on): Remove verify.
27207         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27208         * doc/functions/ftello.texi (ftello): Likewise.
27209         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27210         Reported by Larry Jones.
27211
27212 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27213
27214         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27215         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27216
27217 2007-12-17  Jim Meyering  <meyering@redhat.com>
27218
27219         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27220         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27221         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27222         * modules/getcwd (Depends-on): Add openat.
27223         Reported by Petr Salinger.
27224
27225 2007-12-17  Bruno Haible  <bruno@clisp.org>
27226
27227         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27228         avoid a segmentation fault of the configure test on x86_64 systems.
27229
27230 2007-12-15  Jim Meyering  <meyering@redhat.com>
27231
27232         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27233
27234 2007-12-13  Eric Blake  <ebb9@byu.net>
27235
27236         Another fseek test.
27237         * tests/test-fseek.c (main): Also test ungetc handling.
27238         * tests/test-fseeko.c (main): Likewise.
27239         * modules/fseeko (Depends-on): Add verify.
27240         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27241         large.
27242         Reported by Larry Jones.
27243
27244         Fix fseeko on mingw.
27245         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27246         seek.
27247
27248         Beef up fseek tests.
27249         * tests/test-fseek.c (main): Also test eof handling.
27250         * tests/test-fseeko.c (main): Likewise.
27251         Reported by Larry Jones.
27252
27253 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27254
27255         Fix fseeko on BSD-based platforms.
27256         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27257         successful seek.
27258
27259 2007-12-12  Eric Blake  <ebb9@byu.net>
27260
27261         Allow circular dependency of separate libtests.a
27262         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27263         when use_libtests.
27264
27265 2007-12-11  Eric Blake  <ebb9@byu.net>
27266
27267         Fix bug with -0.0L in previous patch.
27268         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27269         * tests/test-isnan.c (main): Also test on zeroes.
27270         * tests/test-isnanf.c (main): Likewise.
27271         * tests/test-isnanl.h (main): Likewise.
27272
27273         Detect pseudo-denormals on x86 even when cross-compiling.
27274         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27275         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27276         invalid bit patterns that happen to satisfy ==.
27277
27278         Avoid link failures with separate libtests.a.
27279         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27280         last, to satisfy circular dependencies.
27281
27282 2007-12-11  Eric Blake  <ebb9@byu.net>
27283         and Bruno Haible  <bruno@clisp.org>
27284
27285         Fix OpenBSD 4.0 <float.h> handling of long double.
27286         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27287         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27288         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27289
27290 2007-12-11  Jim Meyering  <meyering@redhat.com>
27291
27292         * users.txt: Add libvirt.
27293
27294         Support versions of autoconf prior to 2.59c.
27295         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27296         if it is not already defined.
27297
27298 2007-12-09  Bruno Haible  <bruno@clisp.org>
27299
27300         Let 'gnulib-tool --import' collect sources needed for the tests in
27301         tests/ rather than in lib/.
27302         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27303         argument. If true, add rules to generate libtests.a, and put libtests.a
27304         into $(LDADD). Consider source files in subdirectories and set
27305         uses_subdirs.
27306         (func_emit_initmacro_start, func_emit_initmacro_end,
27307         func_emit_initmacro_done): Pass all arguments explicitly.
27308         (func_import): Determine two module lists main_modules,
27309         testsrelated_modules. Determine use_libtests. Determine two variables
27310         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27311         instead of just sed_transform_lib_file. Determine two variables
27312         main_files and testsrelated_files. Compute 'files' as the union of
27313         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27314         func_add_or_update. In the generated gnulib-comp.m4, collect the
27315         object files for tests/ in different variables than those for lib/.
27316         Substitute LIBTESTS_LIBDEPS.
27317         (func_create_testdir): Combine the uses_subdirs results from
27318         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27319
27320 2007-12-09  Bruno Haible  <bruno@clisp.org>
27321
27322         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27323         the build-aux directory.
27324
27325 2007-12-09  Bruno Haible  <bruno@clisp.org>
27326
27327         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27328         introduced on 2006-09-09.
27329
27330 2007-12-07  Jim Meyering  <meyering@redhat.com>
27331
27332         Let these macros work also with autoconf-2.59.
27333         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27334         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27335         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27336
27337 2007-12-06  Jim Meyering  <meyering@redhat.com>
27338
27339         Avoid a configure-time syntax error in gl_FUNC_ACL.
27340         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27341         function in each branch, before testing the cache variable.
27342
27343 2007-12-04  Eric Blake  <ebb9@byu.net>
27344
27345         Make scripts executable.
27346         * build-aux/config.guess: Add execute permissions.
27347         * build-aux/config.sub: Likewise.
27348         * build-aux/gendocs.sh: Likewise.
27349
27350         Fix frexp on mingw.
27351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27352         cross-compiling.
27353         * doc/functions/frexp.texi (frexp): Document the bug.
27354
27355         Make cygwin fseeko check more reliable.
27356         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27357         version numbers, rather than unrelated feature check.
27358         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27359         * doc/functions/ftello.texi (ftello): Likewise.
27360         Reported by Bruno Haible.
27361
27362         * m4/strerror.m4: Bump version number.
27363
27364 2007-12-03  Bruno Haible  <bruno@clisp.org>
27365
27366         * doc/functions/mprotect.texi: Mention the mingw problem.
27367
27368 2007-12-03  Eric Blake  <ebb9@byu.net>
27369
27370         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27371         REPLACE_STRERROR is initialized before this macro.
27372
27373 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27376         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27377         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27378         put -lsec in even for programs other than 'ls'.  This fixes a problem
27379         for gettext reported by Bruno Haible in
27380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27381         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27382         Add support for Solaris 10.  This isn't efficient, but should get the
27383         job done for now.
27384
27385 2007-12-03  James Youngman  <jay@gnu.org>
27386
27387         * doc/regexprops-generic.texi: change "an close-group" to "a
27388         close-group" and "illegal" to "not allowed".
27389
27390 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27391
27392         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27393         pr_byname.h. Needed for the rare case when the maintainer has done
27394         "make maintainer-clean" in the source directory and then attempts a
27395         build outside the source directory.
27396         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27397         scripts_byname.h.
27398
27399 2007-12-02  Martin Lambers <marlam@marlam.de>
27400             Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/getpagesize.h: Remove file.
27403         * lib/unistd.in.h: Include declaration of getpagesize here.
27404         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27405         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27406         HAVE_SYS_PARAM_H.
27407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27408         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27409         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27410         (Depends-on): Add unistd.
27411         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27412         (Include): Use <unistd.h> instead of getpagesize.h.
27413         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27414         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27415         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27416         gl_GETPAGESIZE invocation, already handled by module dependency.
27417         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27418
27419 2007-12-02  Bruno Haible  <bruno@clisp.org>
27420
27421         * modules/strings-tests: New file.
27422         * tests/test-strings.c: New file.
27423
27424         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27425         * lib/strings.in.h: New file.
27426         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27427         * m4/strings_h.m4: New file.
27428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27429         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27430         * modules/strings: New file.
27431         * modules/string (Makefile.am): Update.
27432         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27433         Reported by Karl Berry.
27434
27435 2007-12-01  Eric Blake  <ebb9@byu.net>
27436
27437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27438         accomodate fix in cygwin 1.5.25.
27439
27440 2007-12-01  Jim Meyering  <meyering@redhat.com>
27441
27442         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27443         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27444         that would inhibit utf8-optimization of a regexp containing line-
27445         or buffer-anchors, e.g., `^', `$'.
27446
27447 2007-11-30  Bruno Haible  <bruno@clisp.org>
27448
27449         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27450         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27451         glthread_recursive_lock_init.
27452         * lib/lock.c (glthread_recursive_lock_init)
27453         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27454         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27455
27456 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27457
27458         New function qset_acl, like set_acl but with syscall semantics.
27459         * lib/acl.h (qset_acl): New decl.
27460         * lib/acl.c (qset_acl): New function.
27461         (set_acl): Use new function.  Use more-consistent diagnostics.
27462
27463 2007-11-28  Jim Meyering  <meyering@redhat.com>
27464
27465         * modules/physmem (License): Change from GPL to LGPLv2+.
27466
27467 2007-11-26  Bruno Haible  <bruno@clisp.org>
27468
27469         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27470         'long double' type has excess precision.
27471         Reported by Jim Meyering in
27472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27473
27474 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27475
27476         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27477         Sync from <http://gnu.org/licenses>.
27478         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27479         with license text from same location.
27480         * doc/maintain.texi, doc/standards.texi:  Sync from
27481         <http://savannah.gnu.org/projects/gnustandards>.
27482
27483 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
27484         and Jim Meyering  <meyering@redhat.com>
27485
27486         Adjust getdate' grammar to accept a slightly more regular language.
27487         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27488         Before, the former was rejected.
27489         * lib/getdate.y (digits_to_date_time): New function, factored
27490         out of ...
27491         (number): ...here.  Just call digits_to_date_time.
27492         (hybrid): New non-terminal to handle an <unsigned number,
27493         signed relative offset> sequence consistently.
27494
27495 2007-11-18  Jim Meyering  <meyering@redhat.com>
27496
27497         Pull my changes from coreutils:
27498         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27499         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27500         use of $gnulib_tool_option_extras, so that it's separated from the
27501         preceding argument.
27502
27503         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27504         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27505         parent destination directories before copying a file into place.
27506
27507 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27508
27509         bootstrap: work also with 4-argument variant of AC_INIT
27510         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27511
27512 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27513
27514         Port test-getaddrinfo to Solaris.
27515         Problem reported by Bruno Haible in
27516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27517         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27518         explanation of setting 'hints'.
27519         Don't reject an implementation merely because it returns EAI_SERVICE.
27520         (EAI_SERVICE): Define to 0 if not defined.
27521
27522 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27523
27524         The license of gnu-make and posix-shell is now "GPLed build tool".
27525         * modules/gnu-make (License): Likewise.
27526         * modules/posix-shell (License): Likewise.
27527
27528         New module posix-shell, for determining a POSIX shell
27529         or perhaps something that is close enough to a POSIX shell.
27530         * m4/posix-shell.m4: New file.
27531         * modules/posix-shell: New file.
27532
27533         * MODULES.html.sh: Mention new module.
27534
27535         New module gnu-make, for determining whether we're using GNU Make.
27536         * m4/gnu-make.m4: New file.
27537         * modules/gnu-make: New file.
27538         * MODULES.html.sh: Mention new module.
27539
27540 2007-11-14  Jim Meyering  <meyering@redhat.com>
27541
27542         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27543         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27544         use this macro to create a function _definition_.
27545         Remove useless "#undef ARGMATCH_DIE".
27546
27547 2007-11-14  Bruno Haible  <bruno@clisp.org>
27548
27549         * lib/config.charset: Update for OpenBSD 4.1.
27550         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27551
27552 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27553
27554         Document 64-bit #if problems in stdint.texi.
27555         * doc/headers/stdint.texi (stdint.h): Mention problems with
27556         64-bit-#if, and how to work around them.
27557
27558         Don't insist on 'long long int' support in the preprocessor.  It
27559         breaks too many things.  For example, PRIdMAX still uses a 'long
27560         long int' format with the latest Sun compiler, even though
27561         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27562         preprocessor problem.  This causes the latest coreutils to dump
27563         core on Solaris 10 sparc with the Sun C compiler.
27564         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27565         the troublesome expressions at configure-time, not at #if-time.
27566         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27567         preprocessor.
27568         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27569         compile-time C checks, done at 'configure'-time.
27570         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27571         * modules/inttypes (Makefile): Substitute the new symbols that
27572         gl_INTTYPES_H now generates.
27573         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27574
27575 2007-11-12  Bruno Haible  <bruno@clisp.org>
27576
27577         Tests for Unicode character classification functions.
27578
27579         * modules/unictype/bidicategory-byname-tests: New file.
27580         * modules/unictype/bidicategory-name-tests: New file.
27581         * modules/unictype/bidicategory-of-tests: New file.
27582         * modules/unictype/bidicategory-test-tests: New file.
27583         * modules/unictype/block-list-tests: New file.
27584         * modules/unictype/block-of-tests: New file.
27585         * modules/unictype/block-test-tests: New file.
27586         * modules/unictype/category-C-tests: New file.
27587         * modules/unictype/category-Cc-tests: New file.
27588         * modules/unictype/category-Cf-tests: New file.
27589         * modules/unictype/category-Cn-tests: New file.
27590         * modules/unictype/category-Co-tests: New file.
27591         * modules/unictype/category-Cs-tests: New file.
27592         * modules/unictype/category-L-tests: New file.
27593         * modules/unictype/category-Ll-tests: New file.
27594         * modules/unictype/category-Lm-tests: New file.
27595         * modules/unictype/category-Lo-tests: New file.
27596         * modules/unictype/category-Lt-tests: New file.
27597         * modules/unictype/category-Lu-tests: New file.
27598         * modules/unictype/category-M-tests: New file.
27599         * modules/unictype/category-Mc-tests: New file.
27600         * modules/unictype/category-Me-tests: New file.
27601         * modules/unictype/category-Mn-tests: New file.
27602         * modules/unictype/category-N-tests: New file.
27603         * modules/unictype/category-Nd-tests: New file.
27604         * modules/unictype/category-Nl-tests: New file.
27605         * modules/unictype/category-No-tests: New file.
27606         * modules/unictype/category-P-tests: New file.
27607         * modules/unictype/category-Pc-tests: New file.
27608         * modules/unictype/category-Pd-tests: New file.
27609         * modules/unictype/category-Pe-tests: New file.
27610         * modules/unictype/category-Pf-tests: New file.
27611         * modules/unictype/category-Pi-tests: New file.
27612         * modules/unictype/category-Po-tests: New file.
27613         * modules/unictype/category-Ps-tests: New file.
27614         * modules/unictype/category-S-tests: New file.
27615         * modules/unictype/category-Sc-tests: New file.
27616         * modules/unictype/category-Sk-tests: New file.
27617         * modules/unictype/category-Sm-tests: New file.
27618         * modules/unictype/category-So-tests: New file.
27619         * modules/unictype/category-Z-tests: New file.
27620         * modules/unictype/category-Zl-tests: New file.
27621         * modules/unictype/category-Zp-tests: New file.
27622         * modules/unictype/category-Zs-tests: New file.
27623         * modules/unictype/category-and-not-tests: New file.
27624         * modules/unictype/category-and-tests: New file.
27625         * modules/unictype/category-byname-tests: New file.
27626         * modules/unictype/category-name-tests: New file.
27627         * modules/unictype/category-none-tests: New file.
27628         * modules/unictype/category-of-tests: New file.
27629         * modules/unictype/category-or-tests: New file.
27630         * modules/unictype/category-test-withtable-tests: New file.
27631         * modules/unictype/combining-class-tests: New file.
27632         * modules/unictype/ctype-alnum-tests: New file.
27633         * modules/unictype/ctype-alpha-tests: New file.
27634         * modules/unictype/ctype-blank-tests: New file.
27635         * modules/unictype/ctype-cntrl-tests: New file.
27636         * modules/unictype/ctype-digit-tests: New file.
27637         * modules/unictype/ctype-graph-tests: New file.
27638         * modules/unictype/ctype-lower-tests: New file.
27639         * modules/unictype/ctype-print-tests: New file.
27640         * modules/unictype/ctype-punct-tests: New file.
27641         * modules/unictype/ctype-space-tests: New file.
27642         * modules/unictype/ctype-upper-tests: New file.
27643         * modules/unictype/ctype-xdigit-tests: New file.
27644         * modules/unictype/decimal-digit-tests: New file.
27645         * modules/unictype/digit-tests: New file.
27646         * modules/unictype/mirror-tests: New file.
27647         * modules/unictype/numeric-tests: New file.
27648         * modules/unictype/property-alphabetic-tests: New file.
27649         * modules/unictype/property-ascii-hex-digit-tests: New file.
27650         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27651         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27652         * modules/unictype/property-bidi-block-separator-tests: New file.
27653         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27654         * modules/unictype/property-bidi-common-separator-tests: New file.
27655         * modules/unictype/property-bidi-control-tests: New file.
27656         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27657         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27658         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27659         * modules/unictype/property-bidi-european-digit-tests: New file.
27660         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27661         * modules/unictype/property-bidi-left-to-right-tests: New file.
27662         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27663         * modules/unictype/property-bidi-other-neutral-tests: New file.
27664         * modules/unictype/property-bidi-pdf-tests: New file.
27665         * modules/unictype/property-bidi-segment-separator-tests: New file.
27666         * modules/unictype/property-bidi-whitespace-tests: New file.
27667         * modules/unictype/property-byname-tests: New file.
27668         * modules/unictype/property-combining-tests: New file.
27669         * modules/unictype/property-composite-tests: New file.
27670         * modules/unictype/property-currency-symbol-tests: New file.
27671         * modules/unictype/property-dash-tests: New file.
27672         * modules/unictype/property-decimal-digit-tests: New file.
27673         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27674         * modules/unictype/property-deprecated-tests: New file.
27675         * modules/unictype/property-diacritic-tests: New file.
27676         * modules/unictype/property-extender-tests: New file.
27677         * modules/unictype/property-format-control-tests: New file.
27678         * modules/unictype/property-grapheme-base-tests: New file.
27679         * modules/unictype/property-grapheme-extend-tests: New file.
27680         * modules/unictype/property-grapheme-link-tests: New file.
27681         * modules/unictype/property-hex-digit-tests: New file.
27682         * modules/unictype/property-hyphen-tests: New file.
27683         * modules/unictype/property-id-continue-tests: New file.
27684         * modules/unictype/property-id-start-tests: New file.
27685         * modules/unictype/property-ideographic-tests: New file.
27686         * modules/unictype/property-ids-binary-operator-tests: New file.
27687         * modules/unictype/property-ids-trinary-operator-tests: New file.
27688         * modules/unictype/property-ignorable-control-tests: New file.
27689         * modules/unictype/property-iso-control-tests: New file.
27690         * modules/unictype/property-join-control-tests: New file.
27691         * modules/unictype/property-left-of-pair-tests: New file.
27692         * modules/unictype/property-line-separator-tests: New file.
27693         * modules/unictype/property-logical-order-exception-tests: New file.
27694         * modules/unictype/property-lowercase-tests: New file.
27695         * modules/unictype/property-math-tests: New file.
27696         * modules/unictype/property-non-break-tests: New file.
27697         * modules/unictype/property-not-a-character-tests: New file.
27698         * modules/unictype/property-numeric-tests: New file.
27699         * modules/unictype/property-other-alphabetic-tests: New file.
27700         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27701         * modules/unictype/property-other-grapheme-extend-tests: New file.
27702         * modules/unictype/property-other-id-continue-tests: New file.
27703         * modules/unictype/property-other-id-start-tests: New file.
27704         * modules/unictype/property-other-lowercase-tests: New file.
27705         * modules/unictype/property-other-math-tests: New file.
27706         * modules/unictype/property-other-uppercase-tests: New file.
27707         * modules/unictype/property-paired-punctuation-tests: New file.
27708         * modules/unictype/property-paragraph-separator-tests: New file.
27709         * modules/unictype/property-pattern-syntax-tests: New file.
27710         * modules/unictype/property-pattern-white-space-tests: New file.
27711         * modules/unictype/property-private-use-tests: New file.
27712         * modules/unictype/property-punctuation-tests: New file.
27713         * modules/unictype/property-quotation-mark-tests: New file.
27714         * modules/unictype/property-radical-tests: New file.
27715         * modules/unictype/property-sentence-terminal-tests: New file.
27716         * modules/unictype/property-soft-dotted-tests: New file.
27717         * modules/unictype/property-space-tests: New file.
27718         * modules/unictype/property-terminal-punctuation-tests: New file.
27719         * modules/unictype/property-test-tests: New file.
27720         * modules/unictype/property-titlecase-tests: New file.
27721         * modules/unictype/property-unassigned-code-value-tests: New file.
27722         * modules/unictype/property-unified-ideograph-tests: New file.
27723         * modules/unictype/property-uppercase-tests: New file.
27724         * modules/unictype/property-variation-selector-tests: New file.
27725         * modules/unictype/property-white-space-tests: New file.
27726         * modules/unictype/property-xid-continue-tests: New file.
27727         * modules/unictype/property-xid-start-tests: New file.
27728         * modules/unictype/property-zero-width-tests: New file.
27729         * modules/unictype/scripts-tests: New file.
27730         * modules/unictype/syntax-c-ident-tests: New file.
27731         * modules/unictype/syntax-c-whitespace-tests: New file.
27732         * modules/unictype/syntax-java-ident-tests: New file.
27733         * modules/unictype/syntax-java-whitespace-tests: New file.
27734         * tests/unictype/test-bidi_byname.c: New file.
27735         * tests/unictype/test-bidi_name.c: New file.
27736         * tests/unictype/test-bidi_of.c: New file.
27737         * tests/unictype/test-bidi_test.c: New file.
27738         * tests/unictype/test-block_list.c: New file.
27739         * tests/unictype/test-block_of.c: New file.
27740         * tests/unictype/test-block_test.c: New file.
27741         * tests/unictype/test-categ_and.c: New file.
27742         * tests/unictype/test-categ_and_not.c: New file.
27743         * tests/unictype/test-categ_byname.c: New file.
27744         * tests/unictype/test-categ_name.c: New file.
27745         * tests/unictype/test-categ_none.c: New file.
27746         * tests/unictype/test-categ_of.c: New file.
27747         * tests/unictype/test-categ_or.c: New file.
27748         * tests/unictype/test-categ_test_withtable.c: New file.
27749         * tests/unictype/test-combining.c: New file.
27750         * tests/unictype/test-decdigit.c: New file.
27751         * tests/unictype/test-digit.c: New file.
27752         * tests/unictype/test-mirror.c: New file.
27753         * tests/unictype/test-numeric.c: New file.
27754         * tests/unictype/test-pr_byname.c: New file.
27755         * tests/unictype/test-pr_test.c: New file.
27756         * tests/unictype/test-predicate-part1.h: New file.
27757         * tests/unictype/test-predicate-part2.h: New file.
27758         * tests/unictype/test-scripts.c: New file.
27759         * tests/unictype/test-sy_c_ident.c: New file.
27760         * tests/unictype/test-sy_java_ident.c: New file.
27761
27762         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27763         for Unicode 5.0.0.
27764         * tests/unictype/test-categ_Cc.c: Likewise.
27765         * tests/unictype/test-categ_Cf.c: Likewise.
27766         * tests/unictype/test-categ_Cn.c: Likewise.
27767         * tests/unictype/test-categ_Co.c: Likewise.
27768         * tests/unictype/test-categ_Cs.c: Likewise.
27769         * tests/unictype/test-categ_L.c: Likewise.
27770         * tests/unictype/test-categ_Ll.c: Likewise.
27771         * tests/unictype/test-categ_Lm.c: Likewise.
27772         * tests/unictype/test-categ_Lo.c: Likewise.
27773         * tests/unictype/test-categ_Lt.c: Likewise.
27774         * tests/unictype/test-categ_Lu.c: Likewise.
27775         * tests/unictype/test-categ_M.c: Likewise.
27776         * tests/unictype/test-categ_Mc.c: Likewise.
27777         * tests/unictype/test-categ_Me.c: Likewise.
27778         * tests/unictype/test-categ_Mn.c: Likewise.
27779         * tests/unictype/test-categ_N.c: Likewise.
27780         * tests/unictype/test-categ_Nd.c: Likewise.
27781         * tests/unictype/test-categ_Nl.c: Likewise.
27782         * tests/unictype/test-categ_No.c: Likewise.
27783         * tests/unictype/test-categ_P.c: Likewise.
27784         * tests/unictype/test-categ_Pc.c: Likewise.
27785         * tests/unictype/test-categ_Pd.c: Likewise.
27786         * tests/unictype/test-categ_Pe.c: Likewise.
27787         * tests/unictype/test-categ_Pf.c: Likewise.
27788         * tests/unictype/test-categ_Pi.c: Likewise.
27789         * tests/unictype/test-categ_Po.c: Likewise.
27790         * tests/unictype/test-categ_Ps.c: Likewise.
27791         * tests/unictype/test-categ_S.c: Likewise.
27792         * tests/unictype/test-categ_Sc.c: Likewise.
27793         * tests/unictype/test-categ_Sk.c: Likewise.
27794         * tests/unictype/test-categ_Sm.c: Likewise.
27795         * tests/unictype/test-categ_So.c: Likewise.
27796         * tests/unictype/test-categ_Z.c: Likewise.
27797         * tests/unictype/test-categ_Zl.c: Likewise.
27798         * tests/unictype/test-categ_Zp.c: Likewise.
27799         * tests/unictype/test-categ_Zs.c: Likewise.
27800         * tests/unictype/test-ctype_alnum.c: Likewise.
27801         * tests/unictype/test-ctype_alpha.c: Likewise.
27802         * tests/unictype/test-ctype_blank.c: Likewise.
27803         * tests/unictype/test-ctype_cntrl.c: Likewise.
27804         * tests/unictype/test-ctype_digit.c: Likewise.
27805         * tests/unictype/test-ctype_graph.c: Likewise.
27806         * tests/unictype/test-ctype_lower.c: Likewise.
27807         * tests/unictype/test-ctype_print.c: Likewise.
27808         * tests/unictype/test-ctype_punct.c: Likewise.
27809         * tests/unictype/test-ctype_space.c: Likewise.
27810         * tests/unictype/test-ctype_upper.c: Likewise.
27811         * tests/unictype/test-ctype_xdigit.c: Likewise.
27812         * tests/unictype/test-decdigit.h: Likewise.
27813         * tests/unictype/test-digit.h: Likewise.
27814         * tests/unictype/test-numeric.h: Likewise.
27815         * tests/unictype/test-pr_alphabetic.c: Likewise.
27816         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27817         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27818         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27819         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27820         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27821         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27822         * tests/unictype/test-pr_bidi_control.c: Likewise.
27823         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27824         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27825         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27826         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27827         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27828         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27829         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27830         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27831         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27832         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27833         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27834         * tests/unictype/test-pr_combining.c: Likewise.
27835         * tests/unictype/test-pr_composite.c: Likewise.
27836         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27837         * tests/unictype/test-pr_dash.c: Likewise.
27838         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27839         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27840         * tests/unictype/test-pr_deprecated.c: Likewise.
27841         * tests/unictype/test-pr_diacritic.c: Likewise.
27842         * tests/unictype/test-pr_extender.c: Likewise.
27843         * tests/unictype/test-pr_format_control.c: Likewise.
27844         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27845         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27846         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27847         * tests/unictype/test-pr_hex_digit.c: Likewise.
27848         * tests/unictype/test-pr_hyphen.c: Likewise.
27849         * tests/unictype/test-pr_id_continue.c: Likewise.
27850         * tests/unictype/test-pr_id_start.c: Likewise.
27851         * tests/unictype/test-pr_ideographic.c: Likewise.
27852         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27853         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27854         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27855         * tests/unictype/test-pr_iso_control.c: Likewise.
27856         * tests/unictype/test-pr_join_control.c: Likewise.
27857         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27858         * tests/unictype/test-pr_line_separator.c: Likewise.
27859         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27860         * tests/unictype/test-pr_lowercase.c: Likewise.
27861         * tests/unictype/test-pr_math.c: Likewise.
27862         * tests/unictype/test-pr_non_break.c: Likewise.
27863         * tests/unictype/test-pr_not_a_character.c: Likewise.
27864         * tests/unictype/test-pr_numeric.c: Likewise.
27865         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27866         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27867         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27868         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27869         * tests/unictype/test-pr_other_id_start.c: Likewise.
27870         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27871         * tests/unictype/test-pr_other_math.c: Likewise.
27872         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27873         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27874         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27875         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27876         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27877         * tests/unictype/test-pr_private_use.c: Likewise.
27878         * tests/unictype/test-pr_punctuation.c: Likewise.
27879         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27880         * tests/unictype/test-pr_radical.c: Likewise.
27881         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27882         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27883         * tests/unictype/test-pr_space.c: Likewise.
27884         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27885         * tests/unictype/test-pr_titlecase.c: Likewise.
27886         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27887         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27888         * tests/unictype/test-pr_uppercase.c: Likewise.
27889         * tests/unictype/test-pr_variation_selector.c: Likewise.
27890         * tests/unictype/test-pr_white_space.c: Likewise.
27891         * tests/unictype/test-pr_xid_continue.c: Likewise.
27892         * tests/unictype/test-pr_xid_start.c: Likewise.
27893         * tests/unictype/test-pr_zero_width.c: Likewise.
27894         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27895         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27896
27897 2007-11-12  Bruno Haible  <bruno@clisp.org>
27898
27899         Unicode character classification functions.
27900         * lib/unictype.h: New file.
27901         * modules/unictype/base: New file.
27902         * modules/unictype/category-L: New file.
27903         * modules/unictype/category-Lu: New file.
27904         * modules/unictype/category-Ll: New file.
27905         * modules/unictype/category-Lt: New file.
27906         * modules/unictype/category-Lm: New file.
27907         * modules/unictype/category-Lo: New file.
27908         * modules/unictype/category-M: New file.
27909         * modules/unictype/category-Mn: New file.
27910         * modules/unictype/category-Mc: New file.
27911         * modules/unictype/category-Me: New file.
27912         * modules/unictype/category-N: New file.
27913         * modules/unictype/category-Nd: New file.
27914         * modules/unictype/category-Nl: New file.
27915         * modules/unictype/category-No: New file.
27916         * modules/unictype/category-P: New file.
27917         * modules/unictype/category-Pc: New file.
27918         * modules/unictype/category-Pd: New file.
27919         * modules/unictype/category-Ps: New file.
27920         * modules/unictype/category-Pe: New file.
27921         * modules/unictype/category-Pi: New file.
27922         * modules/unictype/category-Pf: New file.
27923         * modules/unictype/category-Po: New file.
27924         * modules/unictype/category-S: New file.
27925         * modules/unictype/category-Sm: New file.
27926         * modules/unictype/category-Sc: New file.
27927         * modules/unictype/category-Sk: New file.
27928         * modules/unictype/category-So: New file.
27929         * modules/unictype/category-Z: New file.
27930         * modules/unictype/category-Zs: New file.
27931         * modules/unictype/category-Zl: New file.
27932         * modules/unictype/category-Zp: New file.
27933         * modules/unictype/category-C: New file.
27934         * modules/unictype/category-Cc: New file.
27935         * modules/unictype/category-Cf: New file.
27936         * modules/unictype/category-Cs: New file.
27937         * modules/unictype/category-Co: New file.
27938         * modules/unictype/category-Cn: New file.
27939         * modules/unictype/category-or: New file.
27940         * modules/unictype/category-of: New file.
27941         * modules/unictype/category-test: New file.
27942         * modules/unictype/category-test-withtable: New file.
27943         * modules/unictype/category-byname: New file.
27944         * modules/unictype/category-none: New file.
27945         * modules/unictype/category-and: New file.
27946         * modules/unictype/category-and-not: New file.
27947         * modules/unictype/category-name: New file.
27948         * modules/unictype/combining-class: New file.
27949         * modules/unictype/category-all: New file.
27950         * modules/unictype/bidicategory-all: New file.
27951         * modules/unictype/bidicategory-byname: New file.
27952         * modules/unictype/bidicategory-name: New file.
27953         * modules/unictype/bidicategory-of: New file.
27954         * modules/unictype/bidicategory-test: New file.
27955         * modules/unictype/decimal-digit: New file.
27956         * modules/unictype/digit: New file.
27957         * modules/unictype/numeric: New file.
27958         * modules/unictype/mirror: New file.
27959         * modules/unictype/property-white-space: New file.
27960         * modules/unictype/property-alphabetic: New file.
27961         * modules/unictype/property-other-alphabetic: New file.
27962         * modules/unictype/property-not-a-character: New file.
27963         * modules/unictype/property-default-ignorable-code-point: New file.
27964         * modules/unictype/property-other-default-ignorable-code-point: New
27965         file.
27966         * modules/unictype/property-deprecated: New file.
27967         * modules/unictype/property-logical-order-exception: New file.
27968         * modules/unictype/property-variation-selector: New file.
27969         * modules/unictype/property-private-use: New file.
27970         * modules/unictype/property-unassigned-code-value: New file.
27971         * modules/unictype/property-uppercase: New file.
27972         * modules/unictype/property-other-uppercase: New file.
27973         * modules/unictype/property-lowercase: New file.
27974         * modules/unictype/property-other-lowercase: New file.
27975         * modules/unictype/property-titlecase: New file.
27976         * modules/unictype/property-soft-dotted: New file.
27977         * modules/unictype/property-id-start: New file.
27978         * modules/unictype/property-other-id-start: New file.
27979         * modules/unictype/property-id-continue: New file.
27980         * modules/unictype/property-other-id-continue: New file.
27981         * modules/unictype/property-xid-start: New file.
27982         * modules/unictype/property-xid-continue: New file.
27983         * modules/unictype/property-pattern-white-space: New file.
27984         * modules/unictype/property-pattern-syntax: New file.
27985         * modules/unictype/property-join-control: New file.
27986         * modules/unictype/property-grapheme-base: New file.
27987         * modules/unictype/property-grapheme-extend: New file.
27988         * modules/unictype/property-other-grapheme-extend: New file.
27989         * modules/unictype/property-grapheme-link: New file.
27990         * modules/unictype/property-bidi-control: New file.
27991         * modules/unictype/property-bidi-left-to-right: New file.
27992         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27993         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27994         * modules/unictype/property-bidi-european-digit: New file.
27995         * modules/unictype/property-bidi-eur-num-separator: New file.
27996         * modules/unictype/property-bidi-eur-num-terminator: New file.
27997         * modules/unictype/property-bidi-arabic-digit: New file.
27998         * modules/unictype/property-bidi-common-separator: New file.
27999         * modules/unictype/property-bidi-block-separator: New file.
28000         * modules/unictype/property-bidi-segment-separator: New file.
28001         * modules/unictype/property-bidi-whitespace: New file.
28002         * modules/unictype/property-bidi-non-spacing-mark: New file.
28003         * modules/unictype/property-bidi-boundary-neutral: New file.
28004         * modules/unictype/property-bidi-pdf: New file.
28005         * modules/unictype/property-bidi-embedding-or-override: New file.
28006         * modules/unictype/property-bidi-other-neutral: New file.
28007         * modules/unictype/property-hex-digit: New file.
28008         * modules/unictype/property-ascii-hex-digit: New file.
28009         * modules/unictype/property-ideographic: New file.
28010         * modules/unictype/property-unified-ideograph: New file.
28011         * modules/unictype/property-radical: New file.
28012         * modules/unictype/property-ids-binary-operator: New file.
28013         * modules/unictype/property-ids-trinary-operator: New file.
28014         * modules/unictype/property-zero-width: New file.
28015         * modules/unictype/property-space: New file.
28016         * modules/unictype/property-non-break: New file.
28017         * modules/unictype/property-iso-control: New file.
28018         * modules/unictype/property-format-control: New file.
28019         * modules/unictype/property-dash: New file.
28020         * modules/unictype/property-hyphen: New file.
28021         * modules/unictype/property-punctuation: New file.
28022         * modules/unictype/property-line-separator: New file.
28023         * modules/unictype/property-paragraph-separator: New file.
28024         * modules/unictype/property-quotation-mark: New file.
28025         * modules/unictype/property-sentence-terminal: New file.
28026         * modules/unictype/property-terminal-punctuation: New file.
28027         * modules/unictype/property-currency-symbol: New file.
28028         * modules/unictype/property-math: New file.
28029         * modules/unictype/property-other-math: New file.
28030         * modules/unictype/property-paired-punctuation: New file.
28031         * modules/unictype/property-left-of-pair: New file.
28032         * modules/unictype/property-combining: New file.
28033         * modules/unictype/property-composite: New file.
28034         * modules/unictype/property-decimal-digit: New file.
28035         * modules/unictype/property-numeric: New file.
28036         * modules/unictype/property-diacritic: New file.
28037         * modules/unictype/property-extender: New file.
28038         * modules/unictype/property-ignorable-control: New file.
28039         * modules/unictype/property-test: New file.
28040         * modules/unictype/property-byname: New file.
28041         * modules/unictype/property-all: New file.
28042         * modules/unictype/scripts: New file.
28043         * modules/unictype/scripts-all: New file.
28044         * modules/unictype/block-of: New file.
28045         * modules/unictype/block-test: New file.
28046         * modules/unictype/block-list: New file.
28047         * modules/unictype/block-all: New file.
28048         * modules/unictype/syntax-c-whitespace: New file.
28049         * modules/unictype/syntax-java-whitespace: New file.
28050         * modules/unictype/syntax-c-ident: New file.
28051         * modules/unictype/syntax-java-ident: New file.
28052         * modules/unictype/ctype-alnum: New file.
28053         * modules/unictype/ctype-alpha: New file.
28054         * modules/unictype/ctype-cntrl: New file.
28055         * modules/unictype/ctype-digit: New file.
28056         * modules/unictype/ctype-graph: New file.
28057         * modules/unictype/ctype-lower: New file.
28058         * modules/unictype/ctype-print: New file.
28059         * modules/unictype/ctype-punct: New file.
28060         * modules/unictype/ctype-space: New file.
28061         * modules/unictype/ctype-upper: New file.
28062         * modules/unictype/ctype-xdigit: New file.
28063         * modules/unictype/ctype-blank: New file.
28064         * lib/unictype/bidi_byname.c: New file.
28065         * lib/unictype/bidi_name.c: New file.
28066         * lib/unictype/bidi_of.c: New file.
28067         * lib/unictype/bidi_test.c: New file.
28068         * lib/unictype/bitmap.h: New file.
28069         * lib/unictype/block_test.c: New file.
28070         * lib/unictype/blocks.c: New file.
28071         * lib/unictype/categ_C.c: New file.
28072         * lib/unictype/categ_Cc.c: New file.
28073         * lib/unictype/categ_Cf.c: New file.
28074         * lib/unictype/categ_Cn.c: New file.
28075         * lib/unictype/categ_Co.c: New file.
28076         * lib/unictype/categ_Cs.c: New file.
28077         * lib/unictype/categ_L.c: New file.
28078         * lib/unictype/categ_Ll.c: New file.
28079         * lib/unictype/categ_Lm.c: New file.
28080         * lib/unictype/categ_Lo.c: New file.
28081         * lib/unictype/categ_Lt.c: New file.
28082         * lib/unictype/categ_Lu.c: New file.
28083         * lib/unictype/categ_M.c: New file.
28084         * lib/unictype/categ_Mc.c: New file.
28085         * lib/unictype/categ_Me.c: New file.
28086         * lib/unictype/categ_Mn.c: New file.
28087         * lib/unictype/categ_N.c: New file.
28088         * lib/unictype/categ_Nd.c: New file.
28089         * lib/unictype/categ_Nl.c: New file.
28090         * lib/unictype/categ_No.c: New file.
28091         * lib/unictype/categ_P.c: New file.
28092         * lib/unictype/categ_Pc.c: New file.
28093         * lib/unictype/categ_Pd.c: New file.
28094         * lib/unictype/categ_Pe.c: New file.
28095         * lib/unictype/categ_Pf.c: New file.
28096         * lib/unictype/categ_Pi.c: New file.
28097         * lib/unictype/categ_Po.c: New file.
28098         * lib/unictype/categ_Ps.c: New file.
28099         * lib/unictype/categ_S.c: New file.
28100         * lib/unictype/categ_Sc.c: New file.
28101         * lib/unictype/categ_Sk.c: New file.
28102         * lib/unictype/categ_Sm.c: New file.
28103         * lib/unictype/categ_So.c: New file.
28104         * lib/unictype/categ_Z.c: New file.
28105         * lib/unictype/categ_Zl.c: New file.
28106         * lib/unictype/categ_Zp.c: New file.
28107         * lib/unictype/categ_Zs.c: New file.
28108         * lib/unictype/categ_and.c: New file.
28109         * lib/unictype/categ_and_not.c: New file.
28110         * lib/unictype/categ_byname.c: New file.
28111         * lib/unictype/categ_name.c: New file.
28112         * lib/unictype/categ_none.c: New file.
28113         * lib/unictype/categ_of.c: New file.
28114         * lib/unictype/categ_or.c: New file.
28115         * lib/unictype/categ_test.c: New file.
28116         * lib/unictype/combining.c: New file.
28117         * lib/unictype/ctype_alnum.c: New file.
28118         * lib/unictype/ctype_alpha.c: New file.
28119         * lib/unictype/ctype_blank.c: New file.
28120         * lib/unictype/ctype_cntrl.c: New file.
28121         * lib/unictype/ctype_digit.c: New file.
28122         * lib/unictype/ctype_graph.c: New file.
28123         * lib/unictype/ctype_lower.c: New file.
28124         * lib/unictype/ctype_print.c: New file.
28125         * lib/unictype/ctype_punct.c: New file.
28126         * lib/unictype/ctype_space.c: New file.
28127         * lib/unictype/ctype_upper.c: New file.
28128         * lib/unictype/ctype_xdigit.c: New file.
28129         * lib/unictype/decdigit.c: New file.
28130         * lib/unictype/digit.c: New file.
28131         * lib/unictype/identsyntaxmap.h: New file.
28132         * lib/unictype/mirror.c: New file.
28133         * lib/unictype/numeric.c: New file.
28134         * lib/unictype/pr_alphabetic.c: New file.
28135         * lib/unictype/pr_ascii_hex_digit.c: New file.
28136         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28137         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28138         * lib/unictype/pr_bidi_block_separator.c: New file.
28139         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28140         * lib/unictype/pr_bidi_common_separator.c: New file.
28141         * lib/unictype/pr_bidi_control.c: New file.
28142         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28143         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28144         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28145         * lib/unictype/pr_bidi_european_digit.c: New file.
28146         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28147         * lib/unictype/pr_bidi_left_to_right.c: New file.
28148         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28149         * lib/unictype/pr_bidi_other_neutral.c: New file.
28150         * lib/unictype/pr_bidi_pdf.c: New file.
28151         * lib/unictype/pr_bidi_segment_separator.c: New file.
28152         * lib/unictype/pr_bidi_whitespace.c: New file.
28153         * lib/unictype/pr_byname.c: New file.
28154         * lib/unictype/pr_byname.gperf: New file.
28155         * lib/unictype/pr_combining.c: New file.
28156         * lib/unictype/pr_composite.c: New file.
28157         * lib/unictype/pr_currency_symbol.c: New file.
28158         * lib/unictype/pr_dash.c: New file.
28159         * lib/unictype/pr_decimal_digit.c: New file.
28160         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28161         * lib/unictype/pr_deprecated.c: New file.
28162         * lib/unictype/pr_diacritic.c: New file.
28163         * lib/unictype/pr_extender.c: New file.
28164         * lib/unictype/pr_format_control.c: New file.
28165         * lib/unictype/pr_grapheme_base.c: New file.
28166         * lib/unictype/pr_grapheme_extend.c: New file.
28167         * lib/unictype/pr_grapheme_link.c: New file.
28168         * lib/unictype/pr_hex_digit.c: New file.
28169         * lib/unictype/pr_hyphen.c: New file.
28170         * lib/unictype/pr_id_continue.c: New file.
28171         * lib/unictype/pr_id_start.c: New file.
28172         * lib/unictype/pr_ideographic.c: New file.
28173         * lib/unictype/pr_ids_binary_operator.c: New file.
28174         * lib/unictype/pr_ids_trinary_operator.c: New file.
28175         * lib/unictype/pr_ignorable_control.c: New file.
28176         * lib/unictype/pr_iso_control.c: New file.
28177         * lib/unictype/pr_join_control.c: New file.
28178         * lib/unictype/pr_left_of_pair.c: New file.
28179         * lib/unictype/pr_line_separator.c: New file.
28180         * lib/unictype/pr_logical_order_exception.c: New file.
28181         * lib/unictype/pr_lowercase.c: New file.
28182         * lib/unictype/pr_math.c: New file.
28183         * lib/unictype/pr_non_break.c: New file.
28184         * lib/unictype/pr_not_a_character.c: New file.
28185         * lib/unictype/pr_numeric.c: New file.
28186         * lib/unictype/pr_other_alphabetic.c: New file.
28187         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28188         * lib/unictype/pr_other_grapheme_extend.c: New file.
28189         * lib/unictype/pr_other_id_continue.c: New file.
28190         * lib/unictype/pr_other_id_start.c: New file.
28191         * lib/unictype/pr_other_lowercase.c: New file.
28192         * lib/unictype/pr_other_math.c: New file.
28193         * lib/unictype/pr_other_uppercase.c: New file.
28194         * lib/unictype/pr_paired_punctuation.c: New file.
28195         * lib/unictype/pr_paragraph_separator.c: New file.
28196         * lib/unictype/pr_pattern_syntax.c: New file.
28197         * lib/unictype/pr_pattern_white_space.c: New file.
28198         * lib/unictype/pr_private_use.c: New file.
28199         * lib/unictype/pr_punctuation.c: New file.
28200         * lib/unictype/pr_quotation_mark.c: New file.
28201         * lib/unictype/pr_radical.c: New file.
28202         * lib/unictype/pr_sentence_terminal.c: New file.
28203         * lib/unictype/pr_soft_dotted.c: New file.
28204         * lib/unictype/pr_space.c: New file.
28205         * lib/unictype/pr_terminal_punctuation.c: New file.
28206         * lib/unictype/pr_test.c: New file.
28207         * lib/unictype/pr_titlecase.c: New file.
28208         * lib/unictype/pr_unassigned_code_value.c: New file.
28209         * lib/unictype/pr_unified_ideograph.c: New file.
28210         * lib/unictype/pr_uppercase.c: New file.
28211         * lib/unictype/pr_variation_selector.c: New file.
28212         * lib/unictype/pr_white_space.c: New file.
28213         * lib/unictype/pr_xid_continue.c: New file.
28214         * lib/unictype/pr_xid_start.c: New file.
28215         * lib/unictype/pr_zero_width.c: New file.
28216         * lib/unictype/scripts.c: New file.
28217         * lib/unictype/sy_c_ident.c: New file.
28218         * lib/unictype/sy_c_whitespace.c: New file.
28219         * lib/unictype/sy_java_ident.c: New file.
28220         * lib/unictype/sy_java_whitespace.c: New file.
28221
28222         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28223         Unicode 5.0.0.
28224         * lib/unictype/blocks.h: Likewise.
28225         * lib/unictype/categ_C.h: Likewise.
28226         * lib/unictype/categ_Cc.h: Likewise.
28227         * lib/unictype/categ_Cf.h: Likewise.
28228         * lib/unictype/categ_Cn.h: Likewise.
28229         * lib/unictype/categ_Co.h: Likewise.
28230         * lib/unictype/categ_Cs.h: Likewise.
28231         * lib/unictype/categ_L.h: Likewise.
28232         * lib/unictype/categ_Ll.h: Likewise.
28233         * lib/unictype/categ_Lm.h: Likewise.
28234         * lib/unictype/categ_Lo.h: Likewise.
28235         * lib/unictype/categ_Lt.h: Likewise.
28236         * lib/unictype/categ_Lu.h: Likewise.
28237         * lib/unictype/categ_M.h: Likewise.
28238         * lib/unictype/categ_Mc.h: Likewise.
28239         * lib/unictype/categ_Me.h: Likewise.
28240         * lib/unictype/categ_Mn.h: Likewise.
28241         * lib/unictype/categ_N.h: Likewise.
28242         * lib/unictype/categ_Nd.h: Likewise.
28243         * lib/unictype/categ_Nl.h: Likewise.
28244         * lib/unictype/categ_No.h: Likewise.
28245         * lib/unictype/categ_P.h: Likewise.
28246         * lib/unictype/categ_Pc.h: Likewise.
28247         * lib/unictype/categ_Pd.h: Likewise.
28248         * lib/unictype/categ_Pe.h: Likewise.
28249         * lib/unictype/categ_Pf.h: Likewise.
28250         * lib/unictype/categ_Pi.h: Likewise.
28251         * lib/unictype/categ_Po.h: Likewise.
28252         * lib/unictype/categ_Ps.h: Likewise.
28253         * lib/unictype/categ_S.h: Likewise.
28254         * lib/unictype/categ_Sc.h: Likewise.
28255         * lib/unictype/categ_Sk.h: Likewise.
28256         * lib/unictype/categ_Sm.h: Likewise.
28257         * lib/unictype/categ_So.h: Likewise.
28258         * lib/unictype/categ_Z.h: Likewise.
28259         * lib/unictype/categ_Zl.h: Likewise.
28260         * lib/unictype/categ_Zp.h: Likewise.
28261         * lib/unictype/categ_Zs.h: Likewise.
28262         * lib/unictype/categ_of.h: Likewise.
28263         * lib/unictype/combining.h: Likewise.
28264         * lib/unictype/ctype_alnum.h: Likewise.
28265         * lib/unictype/ctype_alpha.h: Likewise.
28266         * lib/unictype/ctype_blank.h: Likewise.
28267         * lib/unictype/ctype_cntrl.h: Likewise.
28268         * lib/unictype/ctype_digit.h: Likewise.
28269         * lib/unictype/ctype_graph.h: Likewise.
28270         * lib/unictype/ctype_lower.h: Likewise.
28271         * lib/unictype/ctype_print.h: Likewise.
28272         * lib/unictype/ctype_punct.h: Likewise.
28273         * lib/unictype/ctype_space.h: Likewise.
28274         * lib/unictype/ctype_upper.h: Likewise.
28275         * lib/unictype/ctype_xdigit.h: Likewise.
28276         * lib/unictype/decdigit.h: Likewise.
28277         * lib/unictype/digit.h: Likewise.
28278         * lib/unictype/mirror.h: Likewise.
28279         * lib/unictype/numeric.h: Likewise.
28280         * lib/unictype/pr_alphabetic.h: Likewise.
28281         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28282         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28283         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28284         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28285         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28286         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28287         * lib/unictype/pr_bidi_control.h: Likewise.
28288         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28289         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28290         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28291         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28292         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28293         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28294         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28295         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28296         * lib/unictype/pr_bidi_pdf.h: Likewise.
28297         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28298         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28299         * lib/unictype/pr_combining.h: Likewise.
28300         * lib/unictype/pr_composite.h: Likewise.
28301         * lib/unictype/pr_currency_symbol.h: Likewise.
28302         * lib/unictype/pr_dash.h: Likewise.
28303         * lib/unictype/pr_decimal_digit.h: Likewise.
28304         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28305         * lib/unictype/pr_deprecated.h: Likewise.
28306         * lib/unictype/pr_diacritic.h: Likewise.
28307         * lib/unictype/pr_extender.h: Likewise.
28308         * lib/unictype/pr_format_control.h: Likewise.
28309         * lib/unictype/pr_grapheme_base.h: Likewise.
28310         * lib/unictype/pr_grapheme_extend.h: Likewise.
28311         * lib/unictype/pr_grapheme_link.h: Likewise.
28312         * lib/unictype/pr_hex_digit.h: Likewise.
28313         * lib/unictype/pr_hyphen.h: Likewise.
28314         * lib/unictype/pr_id_continue.h: Likewise.
28315         * lib/unictype/pr_id_start.h: Likewise.
28316         * lib/unictype/pr_ideographic.h: Likewise.
28317         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28318         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28319         * lib/unictype/pr_ignorable_control.h: Likewise.
28320         * lib/unictype/pr_iso_control.h: Likewise.
28321         * lib/unictype/pr_join_control.h: Likewise.
28322         * lib/unictype/pr_left_of_pair.h: Likewise.
28323         * lib/unictype/pr_line_separator.h: Likewise.
28324         * lib/unictype/pr_logical_order_exception.h: Likewise.
28325         * lib/unictype/pr_lowercase.h: Likewise.
28326         * lib/unictype/pr_math.h: Likewise.
28327         * lib/unictype/pr_non_break.h: Likewise.
28328         * lib/unictype/pr_not_a_character.h: Likewise.
28329         * lib/unictype/pr_numeric.h: Likewise.
28330         * lib/unictype/pr_other_alphabetic.h: Likewise.
28331         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28332         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28333         * lib/unictype/pr_other_id_continue.h: Likewise.
28334         * lib/unictype/pr_other_id_start.h: Likewise.
28335         * lib/unictype/pr_other_lowercase.h: Likewise.
28336         * lib/unictype/pr_other_math.h: Likewise.
28337         * lib/unictype/pr_other_uppercase.h: Likewise.
28338         * lib/unictype/pr_paired_punctuation.h: Likewise.
28339         * lib/unictype/pr_paragraph_separator.h: Likewise.
28340         * lib/unictype/pr_pattern_syntax.h: Likewise.
28341         * lib/unictype/pr_pattern_white_space.h: Likewise.
28342         * lib/unictype/pr_private_use.h: Likewise.
28343         * lib/unictype/pr_punctuation.h: Likewise.
28344         * lib/unictype/pr_quotation_mark.h: Likewise.
28345         * lib/unictype/pr_radical.h: Likewise.
28346         * lib/unictype/pr_sentence_terminal.h: Likewise.
28347         * lib/unictype/pr_soft_dotted.h: Likewise.
28348         * lib/unictype/pr_space.h: Likewise.
28349         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28350         * lib/unictype/pr_titlecase.h: Likewise.
28351         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28352         * lib/unictype/pr_unified_ideograph.h: Likewise.
28353         * lib/unictype/pr_uppercase.h: Likewise.
28354         * lib/unictype/pr_variation_selector.h: Likewise.
28355         * lib/unictype/pr_white_space.h: Likewise.
28356         * lib/unictype/pr_xid_continue.h: Likewise.
28357         * lib/unictype/pr_xid_start.h: Likewise.
28358         * lib/unictype/pr_zero_width.h: Likewise.
28359         * lib/unictype/scripts.h: Likewise.
28360         * lib/unictype/scripts_byname.gperf: Likewise.
28361         * lib/unictype/sy_c_ident.h: Likewise.
28362         * lib/unictype/sy_c_whitespace.h: Likewise.
28363         * lib/unictype/sy_java_ident.h: Likewise.
28364         * lib/unictype/sy_java_whitespace.h: Likewise.
28365
28366         * lib/unictype/Makefile: New file.
28367         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28368         glibc.
28369         * lib/unictype/3level.h: New file, copied from glibc.
28370         * lib/unictype/3levelbit.h: New file.
28371
28372 2007-11-11  Bruno Haible  <bruno@clisp.org>
28373
28374         * modules/gperf: New file.
28375         * modules/iconv_open (Depends-on): Add it.
28376         (Makefile.am): Remove the GPERF definition.
28377
28378 2007-11-11  Bruno Haible  <bruno@clisp.org>
28379
28380         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28381         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28382
28383 2007-11-11  Bruno Haible  <bruno@clisp.org>
28384
28385         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28386         (usage): Remove function.
28387
28388 2007-11-11  Bruno Haible  <bruno@clisp.org>
28389
28390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28391         gl_FUNC_CEILF_LIBS.
28392         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28393         gl_FUNC_CEIL_LIBS.
28394         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28395         gl_FUNC_CEILL_LIBS.
28396         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28397         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28398         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28399
28400 2007-11-11  Bruno Haible  <bruno@clisp.org>
28401
28402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28403         roundf were declared but do not exist on functions.
28404         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28405         roundl were declared but do not exist on functions.
28406         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28407         HAVE_FLOORL_AND_CEILL, respectively.
28408         Needed for Sun C on Solaris 10.
28409
28410 2007-11-11  Bruno Haible  <bruno@clisp.org>
28411
28412         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28413         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28414         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28415         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28417         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28418         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28419         HAVE_DECL_ROUNDF.
28420         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28421         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28423         of HAVE_DECL_ROUND*.
28424         * modules/math (Makefile.am): Update.
28425
28426 2007-11-10  Bruno Haible  <bruno@clisp.org>
28427
28428         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28429         ptrdiff_t as m4/intl.m4.
28430
28431 2007-11-10  Jim Meyering  <meyering@redhat.com>
28432
28433         Avoid link failure for the argmatch test.
28434         * tests/test-argmatch.c (usage): Define function to avoid a link
28435         failure: argmatch_die requires a usage function.
28436
28437 2007-11-09  Bruno Haible  <bruno@clisp.org>
28438
28439         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28440         * doc/functions/vsnprintf.texi: Likewise.
28441         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28442         with a size argument < 2.
28443
28444 2007-11-09  Bruno Haible  <bruno@clisp.org>
28445
28446         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28447         buffer. Fixes an inefficiency introduced on 2007-11-03.
28448
28449 2007-11-09  Bruno Haible  <bruno@clisp.org>
28450
28451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28452         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28453
28454 2007-11-08  Jim Meyering  <meyering@redhat.com>
28455
28456         Change cache variable name prefix "jm_" to "gl_" everywhere.
28457         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28458         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28459         * m4/uptime.m4: s/gl_/jm_/
28460
28461 2007-11-07  Bruno Haible  <bruno@clisp.org>
28462
28463         Update to GNU gettext 0.17.
28464         * m4/intl.m4: Update to GNU gettext 0.17.
28465         * m4/po.m4: Likewise.
28466         * modules/gettext (Files): Remove m4/ulonglong.m4.
28467         (configure.ac): Require gettext infrastructure from version 0.17.
28468
28469 2007-11-06  Bruno Haible  <bruno@clisp.org>
28470
28471         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28472         symbolic values are not defined in a public header.
28473         * lib/freadable.c (freadable) [QNX]: Likewise.
28474         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28475         * lib/freading.c (freading) [QNX]: Likewise.
28476         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28477         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28478         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28479         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28480         Reported by Alain Magloire.
28481
28482         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28483
28484 2007-11-05  Bruno Haible  <bruno@clisp.org>
28485
28486         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28487         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28488         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28489         Reported by Eric Blake.
28490
28491 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28492             Bruno Haible  <bruno@clisp.org>
28493
28494         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28495         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28496         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28497         (malloc): Undefine also before including <stdlib.h>.
28498         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28499         Needed on OSF/1 4.0.
28500
28501 2007-11-05  Jim Meyering  <meyering@redhat.com>
28502
28503         git-version-gen: sync from coreutils.
28504         * build-aux/git-version-gen: Add comments.
28505         Change the first '-' to '.' in the snapshot version string,
28506         e.g., 6.9-377-08144 -> 6.9.377-08144
28507         Remove first parameter.
28508         Don't declare a version "-dirty" merely because a time
28509         stamp has changed.
28510
28511 2007-11-04  Bruno Haible  <bruno@clisp.org>
28512
28513         * lib/lock.h: Protect all macro definitions containing an 'if'
28514         statement through a "do { ... } while (0)".
28515         * lib/tls.h: Likewise.
28516
28517 2007-11-04  Bruno Haible  <bruno@clisp.org>
28518
28519         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28520
28521 2007-11-04  Bruno Haible  <bruno@clisp.org>
28522
28523         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28524         * modules/fprintf-posix (Depends-on): Add nocrash.
28525         * modules/snprintf-posix (Depends-on): Likewise.
28526         * modules/sprintf-posix (Depends-on): Likewise.
28527         * modules/vasnprintf-posix (Depends-on): Likewise.
28528         * modules/vasprintf-posix (Depends-on): Likewise.
28529         * modules/vfprintf-posix (Depends-on): Likewise.
28530         * modules/vsnprintf-posix (Depends-on): Likewise.
28531         * modules/vsprintf-posix (Depends-on): Likewise.
28532         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28533         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28534         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28535         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28536         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28537         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28538         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28539
28540 2007-11-04  Bruno Haible  <bruno@clisp.org>
28541
28542         * modules/nocrash: New file.
28543         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28544         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28545
28546 2007-11-04  Bruno Haible  <bruno@clisp.org>
28547
28548         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28549         precision handling.
28550         * tests/test-vasprintf-posix.c (test_function): Likewise.
28551         * tests/test-snprintf-posix.h (test_function): Likewise.
28552         * tests/test-sprintf-posix.h (test_function): Likewise.
28553
28554         Fix *printf behaviour for large precisions on mingw and BeOS.
28555         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28556         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28560         gl_PRINTF_PRECISION and test its result. Invoke
28561         gl_PREREQ_VASNPRINTF_PRECISION.
28562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28569         * doc/functions/fprintf.texi: Update.
28570         * doc/functions/printf.texi: Update.
28571         * doc/functions/snprintf.texi: Update.
28572         * doc/functions/sprintf.texi: Update.
28573         * doc/functions/vfprintf.texi: Update.
28574         * doc/functions/vprintf.texi: Update.
28575         * doc/functions/vsnprintf.texi: Update.
28576         * doc/functions/vsprintf.texi: Update.
28577
28578 2007-11-04  Bruno Haible  <bruno@clisp.org>
28579
28580         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28581
28582 2007-11-04  Bruno Haible  <bruno@clisp.org>
28583
28584         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28585         Reported by Sylvain Beucler <beuc@gnu.org>.
28586
28587 2007-11-03  Bruno Haible  <bruno@clisp.org>
28588
28589         * tests/test-fprintf-posix2.sh: New file.
28590         * tests/test-fprintf-posix2.c: New file.
28591         * modules/fprintf-posix-tests (Files): Add them.
28592         (TESTS): Add test-fprintf-posix2.sh.
28593         (configure.ac): Check for getrlimit and setrlimit.
28594         (check_PROGRAMS): Add test-fprintf-posix2.
28595
28596         * tests/test-printf-posix2.sh: New file.
28597         * tests/test-printf-posix2.c: New file.
28598         * modules/printf-posix-tests (Files): Add them.
28599         (TESTS): Add test-printf-posix2.sh.
28600         (configure.ac): Check for getrlimit and setrlimit.
28601         (check_PROGRAMS): Add test-printf-posix2.
28602
28603         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28604         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28605         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28606         (decode_double): New function, copied from decode_long_double.
28607         (scale10_round_decimal_decoded): New function, extracted from
28608         scale10_round_decimal_long_double.
28609         (scale10_round_decimal_long_double): Use it.
28610         (scale10_round_decimal_double): New function.
28611         (floorlog10): New function.
28612         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28614         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28615         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28616         gl_PRINTF_ENOMEM and test its result. Invoke
28617         gl_PREREQ_VASNPRINTF_ENOMEM.
28618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28625         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28626         * modules/snprintf-posix (Depends-on): Likewise.
28627         * modules/sprintf-posix (Depends-on): Likewise.
28628         * modules/vasnprintf-posix (Depends-on): Likewise.
28629         * modules/vasprintf-posix (Depends-on): Likewise.
28630         * modules/vfprintf-posix (Depends-on): Likewise.
28631         * modules/vsnprintf-posix (Depends-on): Likewise.
28632         * modules/vsprintf-posix (Depends-on): Likewise.
28633         * doc/functions/fprintf.texi: Update.
28634         * doc/functions/printf.texi: Update.
28635         * doc/functions/snprintf.texi: Update.
28636         * doc/functions/sprintf.texi: Update.
28637         * doc/functions/vfprintf.texi: Update.
28638         * doc/functions/vprintf.texi: Update.
28639         * doc/functions/vsnprintf.texi: Update.
28640         * doc/functions/vsprintf.texi: Update.
28641
28642 2007-11-03  Bruno Haible  <bruno@clisp.org>
28643
28644         * modules/frexp-nolibm-tests: New file.
28645
28646         * modules/frexp-nolibm: New file.
28647         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28648
28649 2007-11-03  Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28652         value is C99 compliant.
28653         Needed for OSF/1 5.1.
28654
28655 2007-11-03  Bruno Haible  <bruno@clisp.org>
28656
28657         Fix out-of-memory handling of vasnprintf.
28658         * lib/printf-parse.c: Include <errno.h>.
28659         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28660         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28661         is already set.
28662
28663 2007-11-02  Eric Blake  <ebb9@byu.net>
28664
28665         Fix tests on cygwin.
28666         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28667
28668 2007-11-01  Bruno Haible  <bruno@clisp.org>
28669
28670         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28671         warning.
28672         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28673         needed for POSIX compatibility.
28674
28675 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28676
28677         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28678         for compatibility with GNU.
28679
28680 2007-11-01  Bruno Haible  <bruno@clisp.org>
28681
28682         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28683         (putenv): Renamed from rpl_putenv. Change argument type from
28684         'const char *' to 'char *'.
28685         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28686         of defining putenv in config.h, just set REPLACE_PUTENV.
28687         * modules/putenv (Depends-on): Add stdlib.
28688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28689         (Include): Use <stdlib.h>.
28690         * lib/stdlib.in.h (putenv): New declaration.
28691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28692         REPLACE_PUTENV.
28693         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28694         REPLACE_PUTENV.
28695         Needed for MacOS X 10.5.0.
28696         Reported by Peter O'Gorman <peter@pogma.com>.
28697
28698 2007-11-01  Jim Meyering  <meyering@redhat.com>
28699
28700         Treat an empty date string exactly like "0".
28701         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28702         if the remaining date string (to be parsed) is empty, use "0".
28703         Reported by Mischa Molhoek and discussed in this thread:
28704         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28705
28706 2007-10-31  Bruno Haible  <bruno@clisp.org>
28707
28708         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28709         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28710         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28711         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28712         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28713         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28714
28715 2007-10-31  Bruno Haible  <bruno@clisp.org>
28716
28717         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28718         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28719         (AC_TYPE_LONG_LONG_INT): Use it.
28720         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28721         it as well.
28722         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28723         to m4/longlong.m4.
28724         * modules/stdint (Files): Remove m4/ulonglong.m4.
28725         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28726         m4/ulonglong.m4.
28727         * modules/strtoumax (Files): Likewise.
28728
28729 2007-10-30  Bruno Haible  <bruno@clisp.org>
28730
28731         * modules/xvasprintf-posix: New file.
28732         Suggested by Eric Blake.
28733
28734 2007-10-30  Bruno Haible  <bruno@clisp.org>
28735
28736         * modules/xprintf-posix-tests: New file.
28737         * tests/test-xprintf-posix.sh: New file.
28738         * tests/test-xprintf-posix.c: New file.
28739         * tests/test-xfprintf-posix.c: New file.
28740
28741         * modules/xprintf-posix: New file.
28742
28743 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28744
28745         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28746         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28747         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28748
28749 2007-10-29  Bruno Haible  <bruno@clisp.org>
28750
28751         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28752         contain the special marker '_cv_'.
28753         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28754         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28755         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28756         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28757         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28758         Reported by Ralf Wildenhues.
28759
28760 2007-10-29  Bruno Haible  <bruno@clisp.org>
28761
28762         * gnulib-tool (func_import): When --lgpl is not specified, set
28763         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28764         GPLv3.
28765         Reported by Simon Josefsson.
28766
28767 2007-10-28  Bruno Haible  <bruno@clisp.org>
28768
28769         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28770         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28771         HAVE_DECL_ISFINITE.
28772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28773         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28774         HAVE_DECL_ISFINITE.
28775
28776 2007-10-28  Bruno Haible  <bruno@clisp.org>
28777
28778         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28779         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28780
28781 2007-10-28  Bruno Haible  <bruno@clisp.org>
28782
28783         Fix link errors with Sun C 5.0 on Solaris 10.
28784         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28785         function is declared but not present in the compiler's libm.
28786         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28787         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28788         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28789         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28790         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28791         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28792         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28794         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28795         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28796         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28797         HAVE_DECL_FLOORL.
28798
28799 2007-10-28  Bruno Haible  <bruno@clisp.org>
28800
28801         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28802         gl_FUNC_FLOORL. Cache the result.
28803         (gl_FUNC_FLOORL): Use it.
28804         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28805         gl_FUNC_CEILL. Cache the result.
28806         (gl_FUNC_CEILL): Use it.
28807
28808         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28809         gl_FUNC_FLOOR. Cache the result.
28810         (gl_FUNC_FLOOR): Use it.
28811         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28812         gl_FUNC_CEIL. Cache the result.
28813         (gl_FUNC_CEIL): Use it.
28814
28815         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28816         gl_FUNC_FLOORF. Cache the result.
28817         (gl_FUNC_FLOORF): Use it.
28818         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28819         gl_FUNC_CEILF. Cache the result.
28820         (gl_FUNC_CEILF): Use it.
28821
28822 2007-10-28  Bruno Haible  <bruno@clisp.org>
28823
28824         * gnulib-tool: Allow specifying the LGPL version number through
28825         --lgpl=2 or --lgpl=3.
28826         (func_usage): Document --lgpl with argument.
28827         Handle --lgpl=... arguments.
28828         (func_import): Recognize also gl_LGPL calls with an argument. When
28829         --lgpl=2 is used and the module's license is just LGPL, report an
28830         error. Set sed_transform_lib_file according to the lgpl variable. In
28831         the generated files, use --lgpl or gl_LGPL invocations with argument,
28832         if necessary.
28833         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28834         an LGPv2+ license.
28835         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28836         gl_LGPL macro.
28837
28838 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28839             Bruno Haible  <bruno@clisp.org>
28840
28841         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28842         (u16_uctomb_aux): Likewise.
28843         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28844         !HAVE_INLINE.
28845         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28846
28847 2007-10-28  Bruno Haible  <bruno@clisp.org>
28848
28849         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28850         Invoke AM_GETTEXT_OPTION if it exists.
28851         * modules/vasprintf: Likewise.
28852         * modules/verror: Likewise.
28853         * modules/xprintf: Likewise.
28854         * modules/xvasprintf: Likewise.
28855
28856 2007-10-27  Ben Pfaff  <blp@gnu.org>
28857
28858         * lib/math.in.h: Define isfinite macro and prototypes for
28859         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28860         implementations.
28861         * m4/math_h.m4: New substitutions for isfinite module.
28862         * lib/isfinite.c: New file.
28863         * m4/isfinite.m4: New file.
28864         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28865         * modules/isfinite: New file.
28866         * modules/isfinite-tests: New file.
28867         * tests/tests-isfinite.c: New file.
28868         * doc/functions/isfinite.texi: Mention isfinite module.
28869         * MODULES.html.sh: Mention new module.
28870
28871 2007-10-27  Ben Pfaff  <blp@gnu.org>
28872
28873         Ralf Wildenhues reported that Tru64 4.0D declares the round
28874         functions but does not have definitions.
28875         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28876         cannot be found in any library, set the output variable to
28877         "missing" instead of "".
28878         * m4/round.m4: Also use our substitute if we cannot find round in
28879         any library, even if it is declared.
28880         * m4/roundf.m4: Likewise for roundf.
28881         * m4/roundl.m4: Likewise for roundl.
28882         * lib/math.in.h: Undefine roundf, round, roundl before defining
28883         their replacements, to allow for hypothetical systems where these
28884         may be defined as macros but not available in libraries.
28885
28886 2007-10-27  Bruno Haible  <bruno@clisp.org>
28887
28888         * doc/gnulib.texi: Invoke @firstparagraphindent.
28889         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28890         changes in gnulib.
28891         (Source changes): New section.
28892
28893 2007-10-26  Bruno Haible  <bruno@clisp.org>
28894
28895         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28896         borrowed from autoconf.
28897
28898 2007-10-26  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28901         strerror returned the empty string. Needed on HP-UX 11.00.
28902
28903 2007-10-24  Micah Cowan  <micah@cowan.name>
28904
28905         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28906         * build-aux/bootstrap: Remove support for now-unnecessary option,
28907         --cvs-user, and envvars CVS_USER, CVS_RSH.
28908
28909 2007-10-24  Jim Meyering  <meyering@redhat.com>
28910
28911         Avoid diagnostics from sha1sum when there is no cached checksum.
28912         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28913         if the po.s1 file hasn't been created yet.
28914
28915         * build-aux/bootstrap: Sync from coreutils:
28916         2007-10-24  Jim Meyering  <meyering@redhat.com>
28917         Get gnulib from the git repository, not from an obsolete cvs one.
28918         * build-aux/bootstrap: Suggestion from Micah Cowan.
28919         2007-10-04  Jim Meyering  <jim@meyering.net>
28920         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28921         (update_po_files): Work also when there are no .po files in po/.
28922
28923 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28924
28925         * README: Append ".git" to git and cg examples.
28926         Problem reported by Benoit Sigoure.
28927
28928 2007-10-23  Micah Cowan  <micah@cowan.name>
28929
28930         * users.txt: Add wget.
28931
28932 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28933
28934         Fix linking of some unistdio tests on FreeBSD.
28935         * modules/unistdio/u16-vsnprintf-tests
28936         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28937         * modules/unistdio/u16-vsprintf-tests
28938         (test_u16_vsnprintf1_LDADD): Likewise.
28939         * modules/unistdio/u32-vsnprintf-tests
28940         (test_u32_vsnprintf1_LDADD): Likewise.
28941         * modules/unistdio/u32-vsprintf-tests
28942         (test_u32_vsprintf1_LDADD): Likewise.
28943         * modules/unistdio/u8-vsnprintf-tests
28944         (test_u8_vsnprintf1_LDADD): Likewise.
28945         * modules/unistdio/u8-vsprintf-tests
28946         (test_u8_vsprintf1_LDADD): Likewise.
28947         * modules/unistdio/ulc-vsnprintf-tests
28948         (test_ulc_vsnprintf1_LDADD): Likewise.
28949         * modules/unistdio/ulc-vsprintf-tests
28950         (test_ulc_vsprintf1_LDADD): Likewise.
28951
28952         Fix linking of some uniconv tests on FreeBSD.
28953         * modules/uniconv/u16-conv-from-enc-tests
28954         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28955         * modules/uniconv/u16-conv-to-enc-tests
28956         (test_u16_conv_to_enc_LDADD): Likewise.
28957         * modules/uniconv/u16-strconv-from-enc-tests
28958         (test_u16_strconv_from_enc_LDADD): Likewise.
28959         * modules/uniconv/u16-strconv-to-enc-tests
28960         (test_u16_strconv_to_enc_LDADD): Likewise.
28961         * modules/uniconv/u32-conv-from-enc-tests
28962         (test_u32_conv_from_enc_LDADD): Likewise.
28963         * modules/uniconv/u32-conv-to-enc-tests
28964         (test_u32_conv_to_enc_LDADD): Likewise.
28965         * modules/uniconv/u32-strconv-from-enc-tests
28966         (test_u32_strconv_from_enc_LDADD): Likewise.
28967         * modules/uniconv/u32-strconv-to-enc-tests
28968         (test_u32_strconv_to_enc_LDADD): Likewise.
28969         * modules/uniconv/u8-conv-from-enc-tests
28970         (test_u8_conv_from_enc_LDADD): Likewise.
28971         * modules/uniconv/u8-conv-to-enc-tests
28972         (test_u8_conv_to_enc_LDADD): Likewise.
28973         * modules/uniconv/u8-strconv-from-enc-tests
28974         (test_u8_strconv_from_enc_LDADD): Likewise.
28975         * modules/uniconv/u8-strconv-to-enc-tests
28976         (test_u8_strconv_to_enc_LDADD): Likewise.
28977
28978 2007-10-22  Bruno Haible  <bruno@clisp.org>
28979
28980         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28981         size.
28982
28983 2007-10-22  Eric Blake  <ebb9@byu.net>
28984
28985         Tweak x*printf documentation.
28986         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28987         variable name and comments.
28988         Suggested by Bruno Haible.
28989
28990 2007-10-22  Bruno Haible  <bruno@clisp.org>
28991
28992         * lib/acl.c (copy_acl): Fix file name in comment.
28993
28994 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28995
28996         Fix Tru64 problem with stdbool.h.
28997         * lib/stdbool.in.h (false, true):
28998         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28999         Don't declare as an enum in this situation; it runs afoul of Tru64.
29000         Problem reported by Steven M. Schweda in
29001         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29002
29003 2007-10-22  Eric Blake  <ebb9@byu.net>
29004
29005         Also wrap vf?printf.
29006         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29007         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29008         (xvprintf, xvfprintf): New functions.
29009
29010 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29011
29012         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29013         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29014
29015         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29016         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29017
29018 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29019
29020         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29021         by Bruno Haible.
29022
29023 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29024
29025         * lib/getloadavg.c
29026         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29027         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29028
29029         * tests/test-i-ring.c: Work for C89.
29030
29031 2007-10-22  Bruno Haible  <bruno@clisp.org>
29032
29033         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29034         -1u, in preprocessor expression, so that we don't test for the bug
29035         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29037
29038 2007-10-22  Eric Blake  <ebb9@byu.net>
29039
29040         * tests/test-yesno.sh: Silence stderr during test.
29041
29042 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29043
29044         * modules/crypto/gc-camellia: New file.
29045
29046         * m4/gc-camellia.m4: New file.
29047
29048         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29049
29050         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29051
29052 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29053
29054         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29055         --help to stdout.  Reported by sms@antinode.org (Steven
29056         M. Schweda).
29057
29058 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29059
29060         * users.txt: Fix link to libksba.
29061
29062 2007-10-21  Ben Pfaff  <blp@gnu.org>
29063
29064         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29065         round.c roundf implementation that depends on floorf and ceilf to
29066         be tested unconditionally.
29067
29068 2007-10-21  Ben Pfaff  <blp@gnu.org>
29069
29070         * m4/check-libm-func.m4: Removed.
29071         * m4/check-math-lib.m4: New file.
29072         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29073         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29074         definition and lack of AC_LIBOBJ([roundf]).
29075         * m4/roundl.m4: Ditto, and similarly for roundl.
29076         * modules/round: Reference new m4 file.
29077         * modules/roundf: Ditto.
29078         * modules/roundl: Ditto.
29079         * tests/test-round2.c (main): Use ROUND instead of round.
29080         Bug report from Bruno Haible.
29081
29082 2007-10-21  Bruno Haible  <bruno@clisp.org>
29083
29084         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29085         context.
29086
29087 2007-10-21  Bruno Haible  <bruno@clisp.org>
29088
29089         * tests/test-wcwidth.c (main): Allow negative result for some control
29090         characters.
29091
29092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29093         Needed on OSF/1 5.1.
29094
29095 2007-10-21  Bruno Haible  <bruno@clisp.org>
29096
29097         * tests/test-floorf1.c: Include isnanf.h.
29098         (main): Use isnanf() instead of isnan().
29099         * tests/test-ceilf1.c: Include isnanf.h.
29100         (main): Use isnanf() instead of isnan().
29101         * tests/test-truncf1.c: Include isnanf.h.
29102         (main): Use isnanf() instead of isnan().
29103         * tests/test-roundf1.c: Include isnanf.h.
29104         (main): Use isnanf() instead of isnan().
29105
29106 2007-10-21  Eric Blake  <ebb9@byu.net>
29107
29108         * users.txt: Update URL for m4.
29109
29110 2007-10-21  Bruno Haible  <bruno@clisp.org>
29111
29112         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29113
29114 2007-10-21  Bruno Haible  <bruno@clisp.org>
29115
29116         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29117         Git's management files if the CVS files are not present.
29118
29119 2007-10-20  Bruno Haible  <bruno@clisp.org>
29120
29121         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29122         gcc-3.4.x.
29123
29124 2007-10-20  Ben Pfaff  <blp@gnu.org>
29125
29126         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29127         implementations.
29128         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29129         * lib/round.c: New file.
29130         * lib/roundf.c: New file.
29131         * lib/roundl.c: New file.
29132         * m4/round.m4: New file.
29133         * m4/roundf.m4: New file.
29134         * m4/roundl.m4: New file.
29135         * m4/check-libm-func-m4: New file.
29136         * modules/math: Replace round, roundf, roundl related @VARS@ in
29137         math.in.h.
29138         * modules/round: New file.
29139         * modules/round-tests: New file.
29140         * modules/roundf: New file.
29141         * modules/roundf-tests: New file.
29142         * modules/roundl: New file.
29143         * modules/roundl-tests: New file.
29144         * tests/test-round1.c: New file.
29145         * tests/test-round2.c: New file.
29146         * tests/test-roundf1.c: New file.
29147         * tests/test-roundf2.c: New file.
29148         * tests/test-roundl.c: New file.
29149         * doc/functions/round.texi: Mention round module.
29150         * doc/functions/roundf.texi: Mention roundf module.
29151         * doc/functions/roundl.texi: Mention roundl module.
29152         * MODULES.html.sh: Mention new modules.
29153         Thanks to Bruno Haible for suggestions.
29154
29155 2007-10-20  Jim Meyering  <meyering@redhat.com>
29156
29157         * lib/xprintf.c: Include <config.h> unconditionally.
29158
29159         Change xprintf's license to GPL.
29160         * modules/xprintf (License): s/LGPL/GPL/, since this module
29161         depends on modules (exit and exitfail) which are GPL.
29162         Suggestion from Bruno Haible.
29163
29164         xprintf fixes.
29165         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29166         Use a clearer diagnostic.
29167         Patch from Bruno Haible.
29168
29169 2007-10-20  Bruno Haible  <bruno@clisp.org>
29170
29171         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29172         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29174
29175 2007-10-20  Bruno Haible  <bruno@clisp.org>
29176
29177         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29178         precision in the comparison result > x - 1 or similar.
29179         * tests/test-ceilf2.c (correct_result_p): Likewise.
29180         * tests/test-truncf2.c (correct_result_p): Likewise.
29181         * tests/test-trunc2.c (correct_result_p): Likewise.
29182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29183
29184 2007-10-20  Bruno Haible  <bruno@clisp.org>
29185
29186         * modules/ceil: New file.
29187         * m4/ceil.m4: New file.
29188         * doc/functions/ceil.texi: Mention the 'ceil' module.
29189
29190 2007-10-20  Bruno Haible  <bruno@clisp.org>
29191
29192         * modules/floor: New file.
29193         * m4/floor.m4: New file.
29194         * doc/functions/floor.texi: Mention the 'floor' module.
29195
29196 2007-10-20  Bruno Haible  <bruno@clisp.org>
29197
29198         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29199         of %a.
29200         * modules/floorf-tests (Depends-on): Likewise.
29201         * modules/truncf-tests (Depends-on): Likewise.
29202         * modules/trunc-tests (Depends-on): Likewise.
29203         Reported by Ben Pfaff.
29204
29205 2007-10-19  Jim Meyering  <meyering@redhat.com>
29206
29207         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29208         Don't bother testing specific errno values.  Just test ferror.
29209
29210         New module: xprintf
29211         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29212
29213 2007-10-19  Bruno Haible  <bruno@clisp.org>
29214
29215         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29216         syntax.
29217         * modules/javaexec (Makefile.am): Likewise.
29218         * modules/relocatable-prog (Makefile.am): Likewise.
29219         Suggested by Jim Meyering.
29220
29221 2007-10-18  Bruno Haible  <bruno@clisp.org>
29222
29223         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29224         Reported by Jim Meyering.
29225
29226 2007-10-18  Eric Blake  <ebb9@byu.net>
29227
29228         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29229
29230 2007-10-18  Bruno Haible  <bruno@clisp.org>
29231
29232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29233         the format string into writable memory. Needed in Fortify conditions.
29234
29235 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29236             Bruno Haible  <bruno@clisp.org>
29237
29238         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29239         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29240         * modules/trim (Depends-on): Add mbchar.
29241         (configure.ac): Add gl_FUNC_MBRTOWC.
29242         (Makefile.am): Augment lib_SOURCES.
29243
29244 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29245
29246         Modify glob.c to use fstatat and dirfd, to simplify it.
29247         Suggested by Eric Blake.
29248         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29249         Don't include <stdbool.h>; not used.
29250         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29251         (link_exists_p): Simplify implementation, since we can now assume
29252         dirfd and fstatat.
29253         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29254
29255 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29256
29257         * gnulib-tool (func_get_dependencies): Fix sed script to
29258         match only tests.
29259
29260 2007-10-17  Bruno Haible  <bruno@clisp.org>
29261
29262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29263         allow locale names without encoding suffix.
29264         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29266
29267 2007-10-16  Bruno Haible  <bruno@clisp.org>
29268
29269         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29270         * lib/getgroups.c (getgroups): Likewise.
29271         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29272
29273 2007-10-16  Bruno Haible  <bruno@clisp.org>
29274
29275         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29276         * modules/malloc-posix (License): Likewise.
29277         * modules/realloc-posix (License): Likewise.
29278         * modules/calloc-posix (License): Likewise.
29279         * modules/intprops (License): Change from GPL to LGPL, with
29280         Paul Eggert's approval.
29281
29282 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29283
29284         Merge glibc changes into lib/glob.c.
29285
29286         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29287         2007-10-15 04:59:03 UTC.  Here are the changes:
29288
29289         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29290
29291         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29292
29293         * lib/glob.c: Add some branch prediction throughout.
29294
29295         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29296
29297         [BZ #5103]
29298         * lib/glob.c (glob): Recognize patterns starting \/.
29299
29300         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29301
29302         [BZ #3996]
29303         * lib/glob.c (attribute_hidden): Define if not defined.
29304         (glob): Unescape dirname, filename or username when needed and not
29305         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29306         is NULL.  Handle unescaped [ in pattern without closing ].
29307         Don't pass GLOB_CHECK down to recursive glob for directories.
29308         (__glob_pattern_type): New function.
29309         (__glob_pattern_p): Implement using __glob_pattern_type.
29310         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29311         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29312         Remove unreachable code.
29313
29314         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29315
29316         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29317         explain why there are no leaks.
29318
29319         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29320
29321         [BZ #3253]
29322         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29323         time, rather allocate increasingly bigger arrays of pointers, if
29324         possible with alloca, if too large with malloc.
29325
29326 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29329         Problem reported by H.Merijn Brand in
29330         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29331         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29332         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29333
29334 2007-10-15  Bruno Haible  <bruno@clisp.org>
29335
29336         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29337         with explicit rpl_ prefix.
29338         * lib/fopen.c (fopen): Likewise.
29339         * lib/freopen.c (freopen): Likewise.
29340         * lib/iconv.c (iconv): Likewise.
29341         * lib/iconv_close.c (iconv_close): Likewise.
29342
29343 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29344
29345         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29346
29347 2007-10-15  Bruno Haible  <bruno@clisp.org>
29348
29349         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29350         <stddef.h> instead of <stdlib.h> since we only need NULL.
29351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29352
29353 2007-10-15  Bruno Haible  <bruno@clisp.org>
29354
29355         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29356         Replace paragraph talking about LIBOBJS.
29357         Reported by Colin Watson <cjwatson@debian.org>.
29358
29359 2007-10-15  Bruno Haible  <bruno@clisp.org>
29360
29361         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29362         <stdlib.h> before using NULL.
29363
29364 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29365
29366         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29367         Reported by Albert Chin <china@thewrittenword.com>.
29368
29369 2007-10-14  Bruno Haible  <bruno@clisp.org>
29370
29371         * modules/iconv_open-utf-tests: New file.
29372         * tests/test-iconv-utf.c: New file.
29373
29374         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29375         * modules/iconv_open-utf: New file.
29376         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29377         (iconv, iconv_close): New declarations.
29378         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29379         be defined.
29380         (iconv_open): Add special handling of conversion between UTF-8 and
29381         UTF-{16,32}{BE,LE}.
29382         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29383         * lib/iconv_close.c: New file.
29384         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29385         gl_FUNC_ICONV_OPEN.
29386         (gl_FUNC_ICONV_OPEN): Use it.
29387         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29388         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29389         and REPLACE_ICONV_UTF.
29390         * modules/iconv_open (Depends-on): Add c-strcase.
29391         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29392         ICONV_CONST.
29393         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29394
29395 2007-10-13  Albert Chin  <china@thewrittenword.com>
29396             Bruno Haible  <bruno@clisp.org>
29397
29398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29399         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29400
29401 2007-10-13  Bruno Haible  <bruno@clisp.org>
29402
29403         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29404         defined, use the ISO C99 inline semantics.
29405         * lib/argp.h (ARGP_EI): Likewise.
29406
29407 2007-10-13  Bruno Haible  <bruno@clisp.org>
29408
29409         Handle 'inline' change in gcc 4.3.0.
29410         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29411         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29412         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29413         argp_fmtstream_point): Disable 'extern' declaration if the function
29414         definition is going to be provided inline.
29415         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29416         semantics, not the ISO C99 inline semantics.
29417         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29418         'extern' declaration if the function definition is going to be provided
29419         inline.
29420         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29421         the GNU C inline semantics, not the ISO C99 inline semantics. With
29422         GCC 4.2, avoid a warning.
29423
29424 2007-10-13  Bruno Haible  <bruno@clisp.org>
29425
29426         * lib/freading.h (freading): Enable the use of __freading for
29427         glibc >= 2.7.
29428         * lib/freading.c (freading): Likewise.
29429
29430 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29433         "warning: C99 inline functions are not supported; using GNU89".
29434
29435 2007-10-12  Bruno Haible  <bruno@clisp.org>
29436
29437         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29438         of 2.
29439         * tests/test-ceilf2.c: New file.
29440         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29441
29442         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29443         * modules/ceilf-tests: Update.
29444
29445 2007-10-12  Bruno Haible  <bruno@clisp.org>
29446
29447         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29448         of 2.
29449         * tests/test-floorf2.c: New file.
29450         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29451
29452         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29453         * modules/floorf-tests: Update.
29454
29455 2007-10-12  Bruno Haible  <bruno@clisp.org>
29456
29457         * tests/test-trunc2.c: New file.
29458         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29459
29460         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29461         * modules/trunc-tests: Update.
29462
29463 2007-10-12  Bruno Haible  <bruno@clisp.org>
29464
29465         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29466         of 2.
29467         * tests/test-truncf2.c: New file.
29468         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29469
29470         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29471         * modules/truncf-tests: Update.
29472
29473 2007-10-11  Eric Blake  <ebb9@byu.net>
29474
29475         Don't claim strerror is broken on Interix.
29476         * doc/functions/strerror.texi (strerror): Known broken systems are
29477         now Solaris 8, and not Interix.
29478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29479         Interix on cross-compile.
29480         Reported by Martin Koeppe in
29481         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29482
29483 2007-10-11  Bruno Haible  <bruno@clisp.org>
29484
29485         * modules/i-ring-tests: New file.
29486         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29487         instead of assert.
29488
29489 2007-10-11  Bruno Haible  <bruno@clisp.org>
29490
29491         * modules/filenamecat-tests: New file.
29492         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29493         * lib/filenamecat.c: Remove test code.
29494
29495 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29496
29497         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29498
29499         * lib/strerror.c: Include <string.h> always, to test interface,
29500         and to remove the need for the dummy.
29501         Include intprops.h to compute width instead of doing it ourselves
29502         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29503         (strerror): Define it to return NULL if there's no system strerror.
29504         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29505         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29506         ancient pre-strerror Unix systems well any more.  Saying "unknown
29507         system error" is enough.
29508         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29509         simpler strerror.c implementation.
29510         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29511         Simplify the tests to reflect the simpler strerror implementation.
29512         * modules/strerror (Depends-on): Add intprops.
29513
29514 2007-10-09  Eric Blake  <ebb9@byu.net>
29515
29516         Silence test-fpending.
29517         * modules/fpending-tests (Files): Add wrapper script.
29518         * tests/test-fpending.sh: New file.
29519
29520 2007-10-09  Bruno Haible  <bruno@clisp.org>
29521
29522         * MODULES.html.sh (func_module): Don't create a hyperlink for
29523         function names like 'printf_frexp'.
29524         (Misc): Add crc, memxor.
29525         (Characteristics of floating types): New section.
29526         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29527         isnanf-nolibm, signbit, trunc, truncf, truncl.
29528         (Enhancements for ISO C 99 functions): New subsection Input/output.
29529         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29530         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29531         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29532         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29533         (Enhancements for POSIX:2001 functions): Add chdir-long.
29534         (File system functions): Add areadlink, chdir-safer, read-file.
29535         Remove cycle-check.
29536         (File system as inode set): New section.
29537         (Date and time): Add gethrxtime.
29538         (Multithreading): Add openmp.
29539         (Internationalization functions): Add localename.
29540         (Unicode string functions): Add unistr/u*-mbsnlen.
29541         (Support for maintaining and releasing projects): Add git-version-gen.
29542         (Lone files): Remove directories.
29543
29544 2007-10-08  Ben Pfaff  <blp@gnu.org>
29545
29546         * lib/xmalloca.h: Fix typo in comment.
29547
29548 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29549
29550         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29551         when avoiding problems with integer overflow.  Use a portable test
29552         instead.
29553
29554 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29555
29556         * modules/dummy (License): Change to LGPLv2+.
29557         * modules/float (License): Likewise
29558         * modules/realloc (License): Likewise
29559         * modules/stdlib (License): Likewise
29560
29561 2007-10-07  Bruno Haible  <bruno@clisp.org>
29562
29563         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29564         * floor.c (TWO_MANT_DIG): Likewise.
29565         * ceil.c (TWO_MANT_DIG): Likewise.
29566         Reported by Ben Pfaff.
29567
29568 2007-10-07  Bruno Haible  <bruno@clisp.org>
29569
29570         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29571         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29572         * lib/frexp.c (FUNC): Likewise.
29573         * lib/printf-frexp.h (printf_frexp): Likewise.
29574         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29575         * lib/printf-frexp.c (FUNC): Likewise.
29576         Suggested by Jim Meyering.
29577
29578 2007-10-07  Jim Meyering  <meyering@redhat.com>
29579
29580         Make xnanosleep's integer overflow test more robust.
29581         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29582         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29583
29584 2007-10-07  Bruno Haible  <bruno@clisp.org>
29585
29586         * NEWS: Mention the license change.
29587
29588         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29589         abbreviations in the modules files.
29590
29591         Change copyright notice from GPLv2+ to GPLv3+.
29592         * README: Change copyright notice.
29593         * MODULES.html.sh: Likewise.
29594         * build-aux/bootstrap.conf: Likewise.
29595         * build-aux/config.libpath: Likewise.
29596         * build-aux/csharpcomp.sh.in: Likewise.
29597         * build-aux/csharpexec.sh.in: Likewise.
29598         * build-aux/install-reloc: Likewise.
29599         * build-aux/javacomp.sh.in: Likewise.
29600         * build-aux/javaexec.sh.in: Likewise.
29601         * build-aux/ldd.sh.in: Likewise.
29602         * build-aux/reloc-ldflags: Likewise.
29603         * build-aux/relocatable.sh.in: Likewise.
29604         * build-aux/x-to-1.in: Likewise.
29605         * check-module: Likewise.
29606         * config/srclistvars.sh: Likewise.
29607         * gnulib-tool: Likewise.
29608         * lib/acl-internal.h: Likewise.
29609         * lib/acl.c: Likewise.
29610         * lib/acl.h: Likewise.
29611         * lib/acl_entries.c: Likewise.
29612         * lib/areadlink-with-size.c: Likewise.
29613         * lib/areadlink.c: Likewise.
29614         * lib/areadlink.h: Likewise.
29615         * lib/argmatch.c: Likewise.
29616         * lib/argmatch.h: Likewise.
29617         * lib/argp-ba.c: Likewise.
29618         * lib/argp-eexst.c: Likewise.
29619         * lib/argp-fmtstream.c: Likewise.
29620         * lib/argp-fmtstream.h: Likewise.
29621         * lib/argp-fs-xinl.c: Likewise.
29622         * lib/argp-help.c: Likewise.
29623         * lib/argp-namefrob.h: Likewise.
29624         * lib/argp-parse.c: Likewise.
29625         * lib/argp-pin.c: Likewise.
29626         * lib/argp-pv.c: Likewise.
29627         * lib/argp-pvh.c: Likewise.
29628         * lib/argp-xinl.c: Likewise.
29629         * lib/argp.h: Likewise.
29630         * lib/at-func.c: Likewise.
29631         * lib/atanl.c: Likewise.
29632         * lib/backupfile.c: Likewise.
29633         * lib/backupfile.h: Likewise.
29634         * lib/basename.c: Likewise.
29635         * lib/binary-io.h: Likewise.
29636         * lib/byteswap.in.h: Likewise.
29637         * lib/c-stack.c: Likewise.
29638         * lib/c-stack.h: Likewise.
29639         * lib/c-strcasestr.c: Likewise.
29640         * lib/c-strcasestr.h: Likewise.
29641         * lib/c-strstr.c: Likewise.
29642         * lib/c-strstr.h: Likewise.
29643         * lib/c-strtod.c: Likewise.
29644         * lib/calloc.c: Likewise.
29645         * lib/canon-host.c: Likewise.
29646         * lib/canon-host.h: Likewise.
29647         * lib/canonicalize-lgpl.c: Likewise.
29648         * lib/canonicalize.c: Likewise.
29649         * lib/canonicalize.h: Likewise.
29650         * lib/ceil.c: Likewise.
29651         * lib/ceilf.c: Likewise.
29652         * lib/ceill.c: Likewise.
29653         * lib/chdir-long.c: Likewise.
29654         * lib/chdir-long.h: Likewise.
29655         * lib/chdir-safer.c: Likewise.
29656         * lib/chdir-safer.h: Likewise.
29657         * lib/chown.c: Likewise.
29658         * lib/classpath.c: Likewise.
29659         * lib/classpath.h: Likewise.
29660         * lib/clean-temp.c: Likewise.
29661         * lib/clean-temp.h: Likewise.
29662         * lib/cloexec.c: Likewise.
29663         * lib/close-stream.c: Likewise.
29664         * lib/closein.c: Likewise.
29665         * lib/closein.h: Likewise.
29666         * lib/closeout.c: Likewise.
29667         * lib/closeout.h: Likewise.
29668         * lib/concat-filename.c: Likewise.
29669         * lib/copy-file.c: Likewise.
29670         * lib/copy-file.h: Likewise.
29671         * lib/count-one-bits.h: Likewise.
29672         * lib/crc.c: Likewise.
29673         * lib/crc.h: Likewise.
29674         * lib/creat-safer.c: Likewise.
29675         * lib/csharpcomp.c: Likewise.
29676         * lib/csharpcomp.h: Likewise.
29677         * lib/csharpexec.c: Likewise.
29678         * lib/csharpexec.h: Likewise.
29679         * lib/cycle-check.c: Likewise.
29680         * lib/cycle-check.h: Likewise.
29681         * lib/diacrit.c: Likewise.
29682         * lib/diacrit.h: Likewise.
29683         * lib/diffseq.h: Likewise.
29684         * lib/dirchownmod.c: Likewise.
29685         * lib/dirent.in.h: Likewise.
29686         * lib/dirfd.c: Likewise.
29687         * lib/dirfd.h: Likewise.
29688         * lib/dirname.c: Likewise.
29689         * lib/dirname.h: Likewise.
29690         * lib/dummy.c: Likewise.
29691         * lib/dup-safer.c: Likewise.
29692         * lib/dup2.c: Likewise.
29693         * lib/eealloc.h: Likewise.
29694         * lib/error.c: Likewise.
29695         * lib/error.h: Likewise.
29696         * lib/euidaccess.c: Likewise.
29697         * lib/exclude.c: Likewise.
29698         * lib/exclude.h: Likewise.
29699         * lib/execute.c: Likewise.
29700         * lib/execute.h: Likewise.
29701         * lib/exitfail.c: Likewise.
29702         * lib/exitfail.h: Likewise.
29703         * lib/expl.c: Likewise.
29704         * lib/fatal-signal.c: Likewise.
29705         * lib/fatal-signal.h: Likewise.
29706         * lib/fbufmode.c: Likewise.
29707         * lib/fbufmode.h: Likewise.
29708         * lib/fchdir.c: Likewise.
29709         * lib/fchmodat.c: Likewise.
29710         * lib/fchownat.c: Likewise.
29711         * lib/fcntl--.h: Likewise.
29712         * lib/fcntl-safer.h: Likewise.
29713         * lib/fcntl.in.h: Likewise.
29714         * lib/fd-safer.c: Likewise.
29715         * lib/fflush.c: Likewise.
29716         * lib/file-has-acl.c: Likewise.
29717         * lib/file-set.c: Likewise.
29718         * lib/file-type.c: Likewise.
29719         * lib/file-type.h: Likewise.
29720         * lib/fileblocks.c: Likewise.
29721         * lib/filemode.c: Likewise.
29722         * lib/filemode.h: Likewise.
29723         * lib/filename.h: Likewise.
29724         * lib/filenamecat.c: Likewise.
29725         * lib/filenamecat.h: Likewise.
29726         * lib/findprog.c: Likewise.
29727         * lib/findprog.h: Likewise.
29728         * lib/float.in.h: Likewise.
29729         * lib/floor.c: Likewise.
29730         * lib/floorf.c: Likewise.
29731         * lib/floorl.c: Likewise.
29732         * lib/fopen-safer.c: Likewise.
29733         * lib/fopen.c: Likewise.
29734         * lib/fpending.c: Likewise.
29735         * lib/fpending.h: Likewise.
29736         * lib/fprintf.c: Likewise.
29737         * lib/fprintftime.h: Likewise.
29738         * lib/fpucw.h: Likewise.
29739         * lib/fpurge.c: Likewise.
29740         * lib/fpurge.h: Likewise.
29741         * lib/freadable.c: Likewise.
29742         * lib/freadable.h: Likewise.
29743         * lib/freadahead.c: Likewise.
29744         * lib/freadahead.h: Likewise.
29745         * lib/freading.c: Likewise.
29746         * lib/freading.h: Likewise.
29747         * lib/free.c: Likewise.
29748         * lib/freopen.c: Likewise.
29749         * lib/frexp.c: Likewise.
29750         * lib/frexpl.c: Likewise.
29751         * lib/fseek.c: Likewise.
29752         * lib/fseterr.c: Likewise.
29753         * lib/fseterr.h: Likewise.
29754         * lib/fstatat.c: Likewise.
29755         * lib/fstrcmp.c: Likewise.
29756         * lib/fstrcmp.h: Likewise.
29757         * lib/fsusage.c: Likewise.
29758         * lib/fsusage.h: Likewise.
29759         * lib/ftell.c: Likewise.
29760         * lib/ftello.c: Likewise.
29761         * lib/fts-cycle.c: Likewise.
29762         * lib/fts.c: Likewise.
29763         * lib/fts_.h: Likewise.
29764         * lib/full-read.c: Likewise.
29765         * lib/full-read.h: Likewise.
29766         * lib/full-write.c: Likewise.
29767         * lib/full-write.h: Likewise.
29768         * lib/fwritable.c: Likewise.
29769         * lib/fwritable.h: Likewise.
29770         * lib/fwriteerror.c: Likewise.
29771         * lib/fwriteerror.h: Likewise.
29772         * lib/fwriting.c: Likewise.
29773         * lib/fwriting.h: Likewise.
29774         * lib/gcd.c: Likewise.
29775         * lib/gcd.h: Likewise.
29776         * lib/getcwd.c: Likewise.
29777         * lib/getdate.h: Likewise.
29778         * lib/getdate.y: Likewise.
29779         * lib/getdomainname.c: Likewise.
29780         * lib/getdomainname.h: Likewise.
29781         * lib/getgroups.c: Likewise.
29782         * lib/gethostname.c: Likewise.
29783         * lib/gethrxtime.c: Likewise.
29784         * lib/gethrxtime.h: Likewise.
29785         * lib/getloadavg.c: Likewise.
29786         * lib/getndelim2.c: Likewise.
29787         * lib/getndelim2.h: Likewise.
29788         * lib/getnline.c: Likewise.
29789         * lib/getnline.h: Likewise.
29790         * lib/getopt.c: Likewise.
29791         * lib/getopt.in.h: Likewise.
29792         * lib/getopt1.c: Likewise.
29793         * lib/getopt_int.h: Likewise.
29794         * lib/getpagesize.h: Likewise.
29795         * lib/getsubopt.c: Likewise.
29796         * lib/gettime.c: Likewise.
29797         * lib/getugroups.c: Likewise.
29798         * lib/getugroups.h: Likewise.
29799         * lib/getusershell.c: Likewise.
29800         * lib/gl_anyavltree_list1.h: Likewise.
29801         * lib/gl_anyavltree_list2.h: Likewise.
29802         * lib/gl_anyhash_list1.h: Likewise.
29803         * lib/gl_anyhash_list2.h: Likewise.
29804         * lib/gl_anylinked_list1.h: Likewise.
29805         * lib/gl_anylinked_list2.h: Likewise.
29806         * lib/gl_anyrbtree_list1.h: Likewise.
29807         * lib/gl_anyrbtree_list2.h: Likewise.
29808         * lib/gl_anytree_list1.h: Likewise.
29809         * lib/gl_anytree_list2.h: Likewise.
29810         * lib/gl_anytree_oset.h: Likewise.
29811         * lib/gl_anytreehash_list1.h: Likewise.
29812         * lib/gl_anytreehash_list2.h: Likewise.
29813         * lib/gl_array_list.c: Likewise.
29814         * lib/gl_array_list.h: Likewise.
29815         * lib/gl_array_oset.c: Likewise.
29816         * lib/gl_array_oset.h: Likewise.
29817         * lib/gl_avltree_list.c: Likewise.
29818         * lib/gl_avltree_list.h: Likewise.
29819         * lib/gl_avltree_oset.c: Likewise.
29820         * lib/gl_avltree_oset.h: Likewise.
29821         * lib/gl_avltreehash_list.c: Likewise.
29822         * lib/gl_avltreehash_list.h: Likewise.
29823         * lib/gl_carray_list.c: Likewise.
29824         * lib/gl_carray_list.h: Likewise.
29825         * lib/gl_linked_list.c: Likewise.
29826         * lib/gl_linked_list.h: Likewise.
29827         * lib/gl_linkedhash_list.c: Likewise.
29828         * lib/gl_linkedhash_list.h: Likewise.
29829         * lib/gl_list.c: Likewise.
29830         * lib/gl_list.h: Likewise.
29831         * lib/gl_oset.c: Likewise.
29832         * lib/gl_oset.h: Likewise.
29833         * lib/gl_rbtree_list.c: Likewise.
29834         * lib/gl_rbtree_list.h: Likewise.
29835         * lib/gl_rbtree_oset.c: Likewise.
29836         * lib/gl_rbtree_oset.h: Likewise.
29837         * lib/gl_rbtreehash_list.c: Likewise.
29838         * lib/gl_rbtreehash_list.h: Likewise.
29839         * lib/gl_sublist.c: Likewise.
29840         * lib/gl_sublist.h: Likewise.
29841         * lib/group-member.c: Likewise.
29842         * lib/group-member.h: Likewise.
29843         * lib/hard-locale.c: Likewise.
29844         * lib/hard-locale.h: Likewise.
29845         * lib/hash-pjw.c: Likewise.
29846         * lib/hash-pjw.h: Likewise.
29847         * lib/hash-triple.c: Likewise.
29848         * lib/hash.c: Likewise.
29849         * lib/hash.h: Likewise.
29850         * lib/human.c: Likewise.
29851         * lib/human.h: Likewise.
29852         * lib/i-ring.c: Likewise.
29853         * lib/i-ring.h: Likewise.
29854         * lib/idcache.c: Likewise.
29855         * lib/imaxabs.c: Likewise.
29856         * lib/imaxdiv.c: Likewise.
29857         * lib/inet_pton.c: Likewise.
29858         * lib/inet_pton.h: Likewise.
29859         * lib/intprops.h: Likewise.
29860         * lib/inttostr.c: Likewise.
29861         * lib/inttostr.h: Likewise.
29862         * lib/inttypes.in.h: Likewise.
29863         * lib/isapipe.c: Likewise.
29864         * lib/isdir.c: Likewise.
29865         * lib/isnan.c: Likewise.
29866         * lib/isnan.h: Likewise.
29867         * lib/isnanf.c: Likewise.
29868         * lib/isnanf.h: Likewise.
29869         * lib/isnanl-nolibm.h: Likewise.
29870         * lib/isnanl.c: Likewise.
29871         * lib/isnanl.h: Likewise.
29872         * lib/javacomp.c: Likewise.
29873         * lib/javacomp.h: Likewise.
29874         * lib/javaexec.c: Likewise.
29875         * lib/javaexec.h: Likewise.
29876         * lib/javaversion.c: Likewise.
29877         * lib/javaversion.h: Likewise.
29878         * lib/javaversion.java: Likewise.
29879         * lib/lbrkprop.h: Likewise.
29880         * lib/lchmod.h: Likewise.
29881         * lib/lchown.c: Likewise.
29882         * lib/ldexpl.c: Likewise.
29883         * lib/linebreak.c: Likewise.
29884         * lib/linebreak.h: Likewise.
29885         * lib/linebuffer.c: Likewise.
29886         * lib/linebuffer.h: Likewise.
29887         * lib/locale.in.h: Likewise.
29888         * lib/logl.c: Likewise.
29889         * lib/long-options.c: Likewise.
29890         * lib/long-options.h: Likewise.
29891         * lib/lstat.c: Likewise.
29892         * lib/lstat.h: Likewise.
29893         * lib/math.in.h: Likewise.
29894         * lib/mbchar.c: Likewise.
29895         * lib/mbchar.h: Likewise.
29896         * lib/mbfile.h: Likewise.
29897         * lib/mbiter.h: Likewise.
29898         * lib/mbscasecmp.c: Likewise.
29899         * lib/mbscasestr.c: Likewise.
29900         * lib/mbschr.c: Likewise.
29901         * lib/mbscspn.c: Likewise.
29902         * lib/mbslen.c: Likewise.
29903         * lib/mbsncasecmp.c: Likewise.
29904         * lib/mbsnlen.c: Likewise.
29905         * lib/mbspbrk.c: Likewise.
29906         * lib/mbspcasecmp.c: Likewise.
29907         * lib/mbsrchr.c: Likewise.
29908         * lib/mbssep.c: Likewise.
29909         * lib/mbsspn.c: Likewise.
29910         * lib/mbsstr.c: Likewise.
29911         * lib/mbstok_r.c: Likewise.
29912         * lib/mbswidth.c: Likewise.
29913         * lib/mbswidth.h: Likewise.
29914         * lib/mbuiter.h: Likewise.
29915         * lib/memcasecmp.c: Likewise.
29916         * lib/memcasecmp.h: Likewise.
29917         * lib/memchr.c: Likewise.
29918         * lib/memcmp.c: Likewise.
29919         * lib/memcoll.c: Likewise.
29920         * lib/memcoll.h: Likewise.
29921         * lib/memcpy.c: Likewise.
29922         * lib/memrchr.c: Likewise.
29923         * lib/mkancesdirs.c: Likewise.
29924         * lib/mkdir-p.c: Likewise.
29925         * lib/mkdir-p.h: Likewise.
29926         * lib/mkdir.c: Likewise.
29927         * lib/mkdirat.c: Likewise.
29928         * lib/mkdtemp.c: Likewise.
29929         * lib/mkstemp-safer.c: Likewise.
29930         * lib/mkstemp.c: Likewise.
29931         * lib/modechange.c: Likewise.
29932         * lib/modechange.h: Likewise.
29933         * lib/mountlist.c: Likewise.
29934         * lib/mountlist.h: Likewise.
29935         * lib/mpsort.c: Likewise.
29936         * lib/nanosleep.c: Likewise.
29937         * lib/obstack.c: Likewise.
29938         * lib/obstack.h: Likewise.
29939         * lib/open-safer.c: Likewise.
29940         * lib/open.c: Likewise.
29941         * lib/openat-die.c: Likewise.
29942         * lib/openat-priv.h: Likewise.
29943         * lib/openat-proc.c: Likewise.
29944         * lib/openat.c: Likewise.
29945         * lib/openat.h: Likewise.
29946         * lib/pagealign_alloc.c: Likewise.
29947         * lib/pagealign_alloc.h: Likewise.
29948         * lib/physmem.c: Likewise.
29949         * lib/physmem.h: Likewise.
29950         * lib/pipe-safer.c: Likewise.
29951         * lib/pipe.c: Likewise.
29952         * lib/pipe.h: Likewise.
29953         * lib/posixtm.c: Likewise.
29954         * lib/posixtm.h: Likewise.
29955         * lib/posixver.c: Likewise.
29956         * lib/printf-frexp.c: Likewise.
29957         * lib/printf-frexp.h: Likewise.
29958         * lib/printf-frexpl.c: Likewise.
29959         * lib/printf-frexpl.h: Likewise.
29960         * lib/printf.c: Likewise.
29961         * lib/progname.c: Likewise.
29962         * lib/progname.h: Likewise.
29963         * lib/progreloc.c: Likewise.
29964         * lib/putenv.c: Likewise.
29965         * lib/quote.c: Likewise.
29966         * lib/quote.h: Likewise.
29967         * lib/quotearg.c: Likewise.
29968         * lib/quotearg.h: Likewise.
29969         * lib/raise.c: Likewise.
29970         * lib/readline.c: Likewise.
29971         * lib/readline.h: Likewise.
29972         * lib/readlink.c: Likewise.
29973         * lib/readtokens.c: Likewise.
29974         * lib/readtokens.h: Likewise.
29975         * lib/readtokens0.c: Likewise.
29976         * lib/readtokens0.h: Likewise.
29977         * lib/readutmp.c: Likewise.
29978         * lib/readutmp.h: Likewise.
29979         * lib/realloc.c: Likewise.
29980         * lib/relocwrapper.c: Likewise.
29981         * lib/rename-dest-slash.c: Likewise.
29982         * lib/rename.c: Likewise.
29983         * lib/rmdir.c: Likewise.
29984         * lib/rpmatch.c: Likewise.
29985         * lib/safe-read.c: Likewise.
29986         * lib/safe-read.h: Likewise.
29987         * lib/safe-write.c: Likewise.
29988         * lib/safe-write.h: Likewise.
29989         * lib/same-inode.h: Likewise.
29990         * lib/same.c: Likewise.
29991         * lib/same.h: Likewise.
29992         * lib/save-cwd.c: Likewise.
29993         * lib/save-cwd.h: Likewise.
29994         * lib/savedir.c: Likewise.
29995         * lib/savedir.h: Likewise.
29996         * lib/savewd.c: Likewise.
29997         * lib/savewd.h: Likewise.
29998         * lib/search.in.h: Likewise.
29999         * lib/setenv.c: Likewise.
30000         * lib/setenv.h: Likewise.
30001         * lib/settime.c: Likewise.
30002         * lib/sh-quote.c: Likewise.
30003         * lib/sh-quote.h: Likewise.
30004         * lib/sig2str.c: Likewise.
30005         * lib/sig2str.h: Likewise.
30006         * lib/signal.in.h: Likewise.
30007         * lib/signbitd.c: Likewise.
30008         * lib/signbitf.c: Likewise.
30009         * lib/signbitl.c: Likewise.
30010         * lib/sigprocmask.c: Likewise.
30011         * lib/sincosl.c: Likewise.
30012         * lib/sleep.c: Likewise.
30013         * lib/sprintf.c: Likewise.
30014         * lib/sqrtl.c: Likewise.
30015         * lib/stat-time.h: Likewise.
30016         * lib/stdio--.h: Likewise.
30017         * lib/stdio-safer.h: Likewise.
30018         * lib/stdlib--.h: Likewise.
30019         * lib/stdlib-safer.h: Likewise.
30020         * lib/stdlib.in.h: Likewise.
30021         * lib/stpcpy.c: Likewise.
30022         * lib/stpncpy.c: Likewise.
30023         * lib/strchrnul.c: Likewise.
30024         * lib/strcspn.c: Likewise.
30025         * lib/strerror.c: Likewise.
30026         * lib/strftime.c: Likewise.
30027         * lib/strftime.h: Likewise.
30028         * lib/striconveh.c: Likewise.
30029         * lib/striconveh.h: Likewise.
30030         * lib/striconveha.c: Likewise.
30031         * lib/striconveha.h: Likewise.
30032         * lib/stripslash.c: Likewise.
30033         * lib/strnlen1.c: Likewise.
30034         * lib/strnlen1.h: Likewise.
30035         * lib/strtod.c: Likewise.
30036         * lib/strtoimax.c: Likewise.
30037         * lib/strtok_r.c: Likewise.
30038         * lib/strtol.c: Likewise.
30039         * lib/strtoll.c: Likewise.
30040         * lib/strtoul.c: Likewise.
30041         * lib/strtoull.c: Likewise.
30042         * lib/sysexits.in.h: Likewise.
30043         * lib/tempname.c: Likewise.
30044         * lib/tempname.h: Likewise.
30045         * lib/timespec.h: Likewise.
30046         * lib/tls.c: Likewise.
30047         * lib/tls.h: Likewise.
30048         * lib/tmpdir.c: Likewise.
30049         * lib/tmpdir.h: Likewise.
30050         * lib/tmpfile-safer.c: Likewise.
30051         * lib/tmpfile.c: Likewise.
30052         * lib/trigl.c: Likewise.
30053         * lib/trigl.h: Likewise.
30054         * lib/trim.c: Likewise.
30055         * lib/trim.h: Likewise.
30056         * lib/trunc.c: Likewise.
30057         * lib/truncf.c: Likewise.
30058         * lib/truncl.c: Likewise.
30059         * lib/tsearch.c: Likewise.
30060         * lib/unicodeio.c: Likewise.
30061         * lib/unicodeio.h: Likewise.
30062         * lib/unistd--.h: Likewise.
30063         * lib/unistd-safer.h: Likewise.
30064         * lib/unistdio/ulc-fprintf.c: Likewise.
30065         * lib/unistdio/ulc-vfprintf.c: Likewise.
30066         * lib/unlinkdir.c: Likewise.
30067         * lib/unlinkdir.h: Likewise.
30068         * lib/unlocked-io.h: Likewise.
30069         * lib/unsetenv.c: Likewise.
30070         * lib/userspec.c: Likewise.
30071         * lib/utime.c: Likewise.
30072         * lib/utimecmp.c: Likewise.
30073         * lib/utimecmp.h: Likewise.
30074         * lib/utimens.c: Likewise.
30075         * lib/verify.h: Likewise.
30076         * lib/verror.c: Likewise.
30077         * lib/verror.h: Likewise.
30078         * lib/version-etc-fsf.c: Likewise.
30079         * lib/version-etc.c: Likewise.
30080         * lib/version-etc.h: Likewise.
30081         * lib/vfprintf.c: Likewise.
30082         * lib/vprintf.c: Likewise.
30083         * lib/vsprintf.c: Likewise.
30084         * lib/w32spawn.h: Likewise.
30085         * lib/wait-process.c: Likewise.
30086         * lib/wait-process.h: Likewise.
30087         * lib/wcwidth.c: Likewise.
30088         * lib/write-any-file.c: Likewise.
30089         * lib/xalloc-die.c: Likewise.
30090         * lib/xalloc.h: Likewise.
30091         * lib/xasprintf.c: Likewise.
30092         * lib/xgetcwd.c: Likewise.
30093         * lib/xgetcwd.h: Likewise.
30094         * lib/xgetdomainname.c: Likewise.
30095         * lib/xgetdomainname.h: Likewise.
30096         * lib/xgethostname.c: Likewise.
30097         * lib/xmalloc.c: Likewise.
30098         * lib/xmalloca.c: Likewise.
30099         * lib/xmalloca.h: Likewise.
30100         * lib/xmemcoll.c: Likewise.
30101         * lib/xnanosleep.c: Likewise.
30102         * lib/xreadlink.c: Likewise.
30103         * lib/xreadlink.h: Likewise.
30104         * lib/xsetenv.c: Likewise.
30105         * lib/xsetenv.h: Likewise.
30106         * lib/xstriconv.c: Likewise.
30107         * lib/xstriconv.h: Likewise.
30108         * lib/xstrndup.c: Likewise.
30109         * lib/xstrndup.h: Likewise.
30110         * lib/xstrtod.c: Likewise.
30111         * lib/xstrtod.h: Likewise.
30112         * lib/xstrtol-error.c: Likewise.
30113         * lib/xstrtol.c: Likewise.
30114         * lib/xstrtol.h: Likewise.
30115         * lib/xtime.h: Likewise.
30116         * lib/xvasprintf.c: Likewise.
30117         * lib/xvasprintf.h: Likewise.
30118         * lib/yesno.c: Likewise.
30119         * lib/yesno.h: Likewise.
30120         * posix-modules: Likewise.
30121         * tests/test-alloca-opt.c: Likewise.
30122         * tests/test-arcfour.c: Likewise.
30123         * tests/test-arctwo.c: Likewise.
30124         * tests/test-argmatch.c: Likewise.
30125         * tests/test-argp-2.sh: Likewise.
30126         * tests/test-argp.c: Likewise.
30127         * tests/test-arpa_inet.c: Likewise.
30128         * tests/test-array_list.c: Likewise.
30129         * tests/test-array_oset.c: Likewise.
30130         * tests/test-atexit.c: Likewise.
30131         * tests/test-avltree_list.c: Likewise.
30132         * tests/test-avltree_oset.c: Likewise.
30133         * tests/test-avltreehash_list.c: Likewise.
30134         * tests/test-base64.c: Likewise.
30135         * tests/test-binary-io.c: Likewise.
30136         * tests/test-byteswap.c: Likewise.
30137         * tests/test-c-ctype.c: Likewise.
30138         * tests/test-c-strcasecmp.c: Likewise.
30139         * tests/test-c-strcasestr.c: Likewise.
30140         * tests/test-c-strncasecmp.c: Likewise.
30141         * tests/test-c-strstr.c: Likewise.
30142         * tests/test-canonicalize-lgpl.c: Likewise.
30143         * tests/test-canonicalize.c: Likewise.
30144         * tests/test-carray_list.c: Likewise.
30145         * tests/test-ceilf.c: Likewise.
30146         * tests/test-ceill.c: Likewise.
30147         * tests/test-count-one-bits.c: Likewise.
30148         * tests/test-crc.c: Likewise.
30149         * tests/test-dirname.c: Likewise.
30150         * tests/test-fbufmode.c: Likewise.
30151         * tests/test-fcntl.c: Likewise.
30152         * tests/test-fflush.c: Likewise.
30153         * tests/test-floorf.c: Likewise.
30154         * tests/test-floorl.c: Likewise.
30155         * tests/test-fopen.c: Likewise.
30156         * tests/test-fprintf-posix.c: Likewise.
30157         * tests/test-fprintf-posix.h: Likewise.
30158         * tests/test-fpurge.c: Likewise.
30159         * tests/test-freadable.c: Likewise.
30160         * tests/test-freadahead.c: Likewise.
30161         * tests/test-freading.c: Likewise.
30162         * tests/test-freopen.c: Likewise.
30163         * tests/test-frexp.c: Likewise.
30164         * tests/test-frexpl.c: Likewise.
30165         * tests/test-fseek.c: Likewise.
30166         * tests/test-fseeko.c: Likewise.
30167         * tests/test-fseterr.c: Likewise.
30168         * tests/test-fstrcmp.c: Likewise.
30169         * tests/test-ftell.c: Likewise.
30170         * tests/test-ftello.c: Likewise.
30171         * tests/test-fwritable.c: Likewise.
30172         * tests/test-fwriting.c: Likewise.
30173         * tests/test-getaddrinfo.c: Likewise.
30174         * tests/test-getpass.c: Likewise.
30175         * tests/test-gettimeofday.c: Likewise.
30176         * tests/test-hmac-md5.c: Likewise.
30177         * tests/test-hmac-sha1.c: Likewise.
30178         * tests/test-iconv.c: Likewise.
30179         * tests/test-iconvme.c: Likewise.
30180         * tests/test-inttypes.c: Likewise.
30181         * tests/test-isnan.c: Likewise.
30182         * tests/test-isnanf.c: Likewise.
30183         * tests/test-isnanl-nolibm.c: Likewise.
30184         * tests/test-isnanl.c: Likewise.
30185         * tests/test-isnanl.h: Likewise.
30186         * tests/test-ldexpl.c: Likewise.
30187         * tests/test-linked_list.c: Likewise.
30188         * tests/test-linkedhash_list.c: Likewise.
30189         * tests/test-locale.c: Likewise.
30190         * tests/test-localename.c: Likewise.
30191         * tests/test-lock.c: Likewise.
30192         * tests/test-lseek.c: Likewise.
30193         * tests/test-malloca.c: Likewise.
30194         * tests/test-math.c: Likewise.
30195         * tests/test-mbscasecmp.c: Likewise.
30196         * tests/test-mbscasestr1.c: Likewise.
30197         * tests/test-mbscasestr2.c: Likewise.
30198         * tests/test-mbscasestr3.c: Likewise.
30199         * tests/test-mbscasestr4.c: Likewise.
30200         * tests/test-mbschr.c: Likewise.
30201         * tests/test-mbscspn.c: Likewise.
30202         * tests/test-mbsncasecmp.c: Likewise.
30203         * tests/test-mbspbrk.c: Likewise.
30204         * tests/test-mbspcasecmp.c: Likewise.
30205         * tests/test-mbsrchr.c: Likewise.
30206         * tests/test-mbsspn.c: Likewise.
30207         * tests/test-mbsstr1.c: Likewise.
30208         * tests/test-mbsstr2.c: Likewise.
30209         * tests/test-mbsstr3.c: Likewise.
30210         * tests/test-md5.c: Likewise.
30211         * tests/test-memmem.c: Likewise.
30212         * tests/test-netinet_in.c: Likewise.
30213         * tests/test-open.c: Likewise.
30214         * tests/test-printf-frexp.c: Likewise.
30215         * tests/test-printf-frexpl.c: Likewise.
30216         * tests/test-printf-posix.c: Likewise.
30217         * tests/test-printf-posix.h: Likewise.
30218         * tests/test-rbtree_list.c: Likewise.
30219         * tests/test-rbtree_oset.c: Likewise.
30220         * tests/test-rbtreehash_list.c: Likewise.
30221         * tests/test-read-file.c: Likewise.
30222         * tests/test-rijndael.c: Likewise.
30223         * tests/test-search.c: Likewise.
30224         * tests/test-signbit.c: Likewise.
30225         * tests/test-sleep.c: Likewise.
30226         * tests/test-snprintf-posix.c: Likewise.
30227         * tests/test-snprintf-posix.h: Likewise.
30228         * tests/test-snprintf.c: Likewise.
30229         * tests/test-sprintf-posix.c: Likewise.
30230         * tests/test-sprintf-posix.h: Likewise.
30231         * tests/test-stat-time.c: Likewise.
30232         * tests/test-stdbool.c: Likewise.
30233         * tests/test-stdint.c: Likewise.
30234         * tests/test-stdio.c: Likewise.
30235         * tests/test-stdlib.c: Likewise.
30236         * tests/test-stpncpy.c: Likewise.
30237         * tests/test-strcasestr.c: Likewise.
30238         * tests/test-striconv.c: Likewise.
30239         * tests/test-striconveh.c: Likewise.
30240         * tests/test-striconveha.c: Likewise.
30241         * tests/test-string.c: Likewise.
30242         * tests/test-sys_select.c: Likewise.
30243         * tests/test-sys_socket.c: Likewise.
30244         * tests/test-sys_stat.c: Likewise.
30245         * tests/test-sys_time.c: Likewise.
30246         * tests/test-sysexits.c: Likewise.
30247         * tests/test-time.c: Likewise.
30248         * tests/test-tls.c: Likewise.
30249         * tests/test-trunc.c: Likewise.
30250         * tests/test-truncf.c: Likewise.
30251         * tests/test-truncl.c: Likewise.
30252         * tests/test-unistd.c: Likewise.
30253         * tests/test-vasnprintf-posix.c: Likewise.
30254         * tests/test-vasnprintf-posix2.c: Likewise.
30255         * tests/test-vasnprintf.c: Likewise.
30256         * tests/test-vasprintf-posix.c: Likewise.
30257         * tests/test-vasprintf.c: Likewise.
30258         * tests/test-verify.c: Likewise.
30259         * tests/test-vfprintf-posix.c: Likewise.
30260         * tests/test-vprintf-posix.c: Likewise.
30261         * tests/test-vsnprintf-posix.c: Likewise.
30262         * tests/test-vsnprintf.c: Likewise.
30263         * tests/test-vsprintf-posix.c: Likewise.
30264         * tests/test-wchar.c: Likewise.
30265         * tests/test-wctype.c: Likewise.
30266         * tests/test-wcwidth.c: Likewise.
30267         * tests/test-xstrtol.c: Likewise.
30268         * tests/test-xvasprintf.c: Likewise.
30269         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30270         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30271         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30272         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30273         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30274         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30275         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30276         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30277         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30278         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30279         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30280         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30281         * tests/uniname/test-uninames.c: Likewise.
30282         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30283         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30284         * tests/unistdio/test-u16-printf1.h: Likewise.
30285         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30286         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30287         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30288         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30289         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30290         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30291         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30292         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30293         * tests/unistdio/test-u32-printf1.h: Likewise.
30294         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30295         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30296         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30297         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30298         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30299         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30300         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30301         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30302         * tests/unistdio/test-u8-printf1.h: Likewise.
30303         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30304         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30305         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30306         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30307         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30308         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30309         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30310         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30311         * tests/unistdio/test-ulc-printf1.h: Likewise.
30312         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30313         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30314         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30315         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30316         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30317         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30318         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30319         * tests/uniwidth/test-u16-width.c: Likewise.
30320         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30321         * tests/uniwidth/test-u32-width.c: Likewise.
30322         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30323         * tests/uniwidth/test-u8-width.c: Likewise.
30324         * tests/uniwidth/test-uc_width.c: Likewise.
30325         * config/srclist-update: Likewise.
30326         (fixlicense): Update to GPLv3+.
30327
30328         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30329         * tests/test-tsearch.c: Change copyright notice.
30330
30331         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30332         * lib/c-strcaseeq.h: Change copyright notice.
30333         * lib/streq.h: Likewise.
30334         * lib/uniconv.h: Likewise.
30335         * lib/uniconv/u-conv-from-enc.h: Likewise.
30336         * lib/uniconv/u-conv-to-enc.h: Likewise.
30337         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30338         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30339         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30340         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30341         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30342         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30343         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30344         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30345         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30346         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30347         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30348         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30349         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30350         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30351         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30352         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30353         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30354         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30355         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30356         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30357         * lib/uniname.h: Likewise.
30358         * lib/uniname/uniname.c: Likewise.
30359         * lib/unistdio.h: Likewise.
30360         * lib/unistdio/u-asnprintf.h: Likewise.
30361         * lib/unistdio/u-asprintf.h: Likewise.
30362         * lib/unistdio/u-printf-args.c: Likewise.
30363         * lib/unistdio/u-printf-args.h: Likewise.
30364         * lib/unistdio/u-printf-parse.h: Likewise.
30365         * lib/unistdio/u-snprintf.h: Likewise.
30366         * lib/unistdio/u-sprintf.h: Likewise.
30367         * lib/unistdio/u-vasprintf.h: Likewise.
30368         * lib/unistdio/u-vsnprintf.h: Likewise.
30369         * lib/unistdio/u-vsprintf.h: Likewise.
30370         * lib/unistdio/u16-asnprintf.c: Likewise.
30371         * lib/unistdio/u16-asprintf.c: Likewise.
30372         * lib/unistdio/u16-printf-parse.c: Likewise.
30373         * lib/unistdio/u16-snprintf.c: Likewise.
30374         * lib/unistdio/u16-sprintf.c: Likewise.
30375         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30376         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30377         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30378         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30379         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30380         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30381         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30382         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30383         * lib/unistdio/u16-vasnprintf.c: Likewise.
30384         * lib/unistdio/u16-vasprintf.c: Likewise.
30385         * lib/unistdio/u16-vsnprintf.c: Likewise.
30386         * lib/unistdio/u16-vsprintf.c: Likewise.
30387         * lib/unistdio/u32-asnprintf.c: Likewise.
30388         * lib/unistdio/u32-asprintf.c: Likewise.
30389         * lib/unistdio/u32-printf-parse.c: Likewise.
30390         * lib/unistdio/u32-snprintf.c: Likewise.
30391         * lib/unistdio/u32-sprintf.c: Likewise.
30392         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30393         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30394         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30395         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30396         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30397         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30398         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30399         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30400         * lib/unistdio/u32-vasnprintf.c: Likewise.
30401         * lib/unistdio/u32-vasprintf.c: Likewise.
30402         * lib/unistdio/u32-vsnprintf.c: Likewise.
30403         * lib/unistdio/u32-vsprintf.c: Likewise.
30404         * lib/unistdio/u8-asnprintf.c: Likewise.
30405         * lib/unistdio/u8-asprintf.c: Likewise.
30406         * lib/unistdio/u8-printf-parse.c: Likewise.
30407         * lib/unistdio/u8-snprintf.c: Likewise.
30408         * lib/unistdio/u8-sprintf.c: Likewise.
30409         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30410         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30411         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30412         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30413         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30414         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30415         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30416         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30417         * lib/unistdio/u8-vasnprintf.c: Likewise.
30418         * lib/unistdio/u8-vasprintf.c: Likewise.
30419         * lib/unistdio/u8-vsnprintf.c: Likewise.
30420         * lib/unistdio/u8-vsprintf.c: Likewise.
30421         * lib/unistdio/ulc-asnprintf.c: Likewise.
30422         * lib/unistdio/ulc-asprintf.c: Likewise.
30423         * lib/unistdio/ulc-printf-parse.c: Likewise.
30424         * lib/unistdio/ulc-snprintf.c: Likewise.
30425         * lib/unistdio/ulc-sprintf.c: Likewise.
30426         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30427         * lib/unistdio/ulc-vasprintf.c: Likewise.
30428         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30429         * lib/unistdio/ulc-vsprintf.c: Likewise.
30430         * lib/unistr.h: Likewise.
30431         * lib/unistr/u-cpy-alloc.h: Likewise.
30432         * lib/unistr/u-cpy.h: Likewise.
30433         * lib/unistr/u-endswith.h: Likewise.
30434         * lib/unistr/u-move.h: Likewise.
30435         * lib/unistr/u-set.h: Likewise.
30436         * lib/unistr/u-startswith.h: Likewise.
30437         * lib/unistr/u-stpcpy.h: Likewise.
30438         * lib/unistr/u-stpncpy.h: Likewise.
30439         * lib/unistr/u-strcat.h: Likewise.
30440         * lib/unistr/u-strcpy.h: Likewise.
30441         * lib/unistr/u-strcspn.h: Likewise.
30442         * lib/unistr/u-strdup.h: Likewise.
30443         * lib/unistr/u-strlen.h: Likewise.
30444         * lib/unistr/u-strncat.h: Likewise.
30445         * lib/unistr/u-strncpy.h: Likewise.
30446         * lib/unistr/u-strnlen.h: Likewise.
30447         * lib/unistr/u-strpbrk.h: Likewise.
30448         * lib/unistr/u-strspn.h: Likewise.
30449         * lib/unistr/u-strstr.h: Likewise.
30450         * lib/unistr/u-strtok.h: Likewise.
30451         * lib/unistr/u16-check.c: Likewise.
30452         * lib/unistr/u16-chr.c: Likewise.
30453         * lib/unistr/u16-cmp.c: Likewise.
30454         * lib/unistr/u16-cpy-alloc.c: Likewise.
30455         * lib/unistr/u16-cpy.c: Likewise.
30456         * lib/unistr/u16-endswith.c: Likewise.
30457         * lib/unistr/u16-mblen.c: Likewise.
30458         * lib/unistr/u16-mbsnlen.c: Likewise.
30459         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30460         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30461         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30462         * lib/unistr/u16-mbtouc.c: Likewise.
30463         * lib/unistr/u16-mbtoucr.c: Likewise.
30464         * lib/unistr/u16-move.c: Likewise.
30465         * lib/unistr/u16-next.c: Likewise.
30466         * lib/unistr/u16-prev.c: Likewise.
30467         * lib/unistr/u16-set.c: Likewise.
30468         * lib/unistr/u16-startswith.c: Likewise.
30469         * lib/unistr/u16-stpcpy.c: Likewise.
30470         * lib/unistr/u16-stpncpy.c: Likewise.
30471         * lib/unistr/u16-strcat.c: Likewise.
30472         * lib/unistr/u16-strchr.c: Likewise.
30473         * lib/unistr/u16-strcmp.c: Likewise.
30474         * lib/unistr/u16-strcpy.c: Likewise.
30475         * lib/unistr/u16-strcspn.c: Likewise.
30476         * lib/unistr/u16-strdup.c: Likewise.
30477         * lib/unistr/u16-strlen.c: Likewise.
30478         * lib/unistr/u16-strmblen.c: Likewise.
30479         * lib/unistr/u16-strmbtouc.c: Likewise.
30480         * lib/unistr/u16-strncat.c: Likewise.
30481         * lib/unistr/u16-strncmp.c: Likewise.
30482         * lib/unistr/u16-strncpy.c: Likewise.
30483         * lib/unistr/u16-strnlen.c: Likewise.
30484         * lib/unistr/u16-strpbrk.c: Likewise.
30485         * lib/unistr/u16-strrchr.c: Likewise.
30486         * lib/unistr/u16-strspn.c: Likewise.
30487         * lib/unistr/u16-strstr.c: Likewise.
30488         * lib/unistr/u16-strtok.c: Likewise.
30489         * lib/unistr/u16-to-u32.c: Likewise.
30490         * lib/unistr/u16-to-u8.c: Likewise.
30491         * lib/unistr/u16-uctomb-aux.c: Likewise.
30492         * lib/unistr/u16-uctomb.c: Likewise.
30493         * lib/unistr/u32-check.c: Likewise.
30494         * lib/unistr/u32-chr.c: Likewise.
30495         * lib/unistr/u32-cmp.c: Likewise.
30496         * lib/unistr/u32-cpy-alloc.c: Likewise.
30497         * lib/unistr/u32-cpy.c: Likewise.
30498         * lib/unistr/u32-endswith.c: Likewise.
30499         * lib/unistr/u32-mblen.c: Likewise.
30500         * lib/unistr/u32-mbsnlen.c: Likewise.
30501         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30502         * lib/unistr/u32-mbtouc.c: Likewise.
30503         * lib/unistr/u32-mbtoucr.c: Likewise.
30504         * lib/unistr/u32-move.c: Likewise.
30505         * lib/unistr/u32-next.c: Likewise.
30506         * lib/unistr/u32-prev.c: Likewise.
30507         * lib/unistr/u32-set.c: Likewise.
30508         * lib/unistr/u32-startswith.c: Likewise.
30509         * lib/unistr/u32-stpcpy.c: Likewise.
30510         * lib/unistr/u32-stpncpy.c: Likewise.
30511         * lib/unistr/u32-strcat.c: Likewise.
30512         * lib/unistr/u32-strchr.c: Likewise.
30513         * lib/unistr/u32-strcmp.c: Likewise.
30514         * lib/unistr/u32-strcpy.c: Likewise.
30515         * lib/unistr/u32-strcspn.c: Likewise.
30516         * lib/unistr/u32-strdup.c: Likewise.
30517         * lib/unistr/u32-strlen.c: Likewise.
30518         * lib/unistr/u32-strmblen.c: Likewise.
30519         * lib/unistr/u32-strmbtouc.c: Likewise.
30520         * lib/unistr/u32-strncat.c: Likewise.
30521         * lib/unistr/u32-strncmp.c: Likewise.
30522         * lib/unistr/u32-strncpy.c: Likewise.
30523         * lib/unistr/u32-strnlen.c: Likewise.
30524         * lib/unistr/u32-strpbrk.c: Likewise.
30525         * lib/unistr/u32-strrchr.c: Likewise.
30526         * lib/unistr/u32-strspn.c: Likewise.
30527         * lib/unistr/u32-strstr.c: Likewise.
30528         * lib/unistr/u32-strtok.c: Likewise.
30529         * lib/unistr/u32-to-u16.c: Likewise.
30530         * lib/unistr/u32-to-u8.c: Likewise.
30531         * lib/unistr/u32-uctomb.c: Likewise.
30532         * lib/unistr/u8-check.c: Likewise.
30533         * lib/unistr/u8-chr.c: Likewise.
30534         * lib/unistr/u8-cmp.c: Likewise.
30535         * lib/unistr/u8-cpy-alloc.c: Likewise.
30536         * lib/unistr/u8-cpy.c: Likewise.
30537         * lib/unistr/u8-endswith.c: Likewise.
30538         * lib/unistr/u8-mblen.c: Likewise.
30539         * lib/unistr/u8-mbsnlen.c: Likewise.
30540         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30541         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30542         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30543         * lib/unistr/u8-mbtouc.c: Likewise.
30544         * lib/unistr/u8-mbtoucr.c: Likewise.
30545         * lib/unistr/u8-move.c: Likewise.
30546         * lib/unistr/u8-next.c: Likewise.
30547         * lib/unistr/u8-prev.c: Likewise.
30548         * lib/unistr/u8-set.c: Likewise.
30549         * lib/unistr/u8-startswith.c: Likewise.
30550         * lib/unistr/u8-stpcpy.c: Likewise.
30551         * lib/unistr/u8-stpncpy.c: Likewise.
30552         * lib/unistr/u8-strcat.c: Likewise.
30553         * lib/unistr/u8-strchr.c: Likewise.
30554         * lib/unistr/u8-strcmp.c: Likewise.
30555         * lib/unistr/u8-strcpy.c: Likewise.
30556         * lib/unistr/u8-strcspn.c: Likewise.
30557         * lib/unistr/u8-strdup.c: Likewise.
30558         * lib/unistr/u8-strlen.c: Likewise.
30559         * lib/unistr/u8-strmblen.c: Likewise.
30560         * lib/unistr/u8-strmbtouc.c: Likewise.
30561         * lib/unistr/u8-strncat.c: Likewise.
30562         * lib/unistr/u8-strncmp.c: Likewise.
30563         * lib/unistr/u8-strncpy.c: Likewise.
30564         * lib/unistr/u8-strnlen.c: Likewise.
30565         * lib/unistr/u8-strpbrk.c: Likewise.
30566         * lib/unistr/u8-strrchr.c: Likewise.
30567         * lib/unistr/u8-strspn.c: Likewise.
30568         * lib/unistr/u8-strstr.c: Likewise.
30569         * lib/unistr/u8-strtok.c: Likewise.
30570         * lib/unistr/u8-to-u16.c: Likewise.
30571         * lib/unistr/u8-to-u32.c: Likewise.
30572         * lib/unistr/u8-uctomb-aux.c: Likewise.
30573         * lib/unistr/u8-uctomb.c: Likewise.
30574         * lib/unitypes.h: Likewise.
30575         * lib/uniwidth.h: Likewise.
30576         * lib/uniwidth/cjk.h: Likewise.
30577         * lib/uniwidth/u16-strwidth.c: Likewise.
30578         * lib/uniwidth/u16-width.c: Likewise.
30579         * lib/uniwidth/u32-strwidth.c: Likewise.
30580         * lib/uniwidth/u32-width.c: Likewise.
30581         * lib/uniwidth/u8-strwidth.c: Likewise.
30582         * lib/uniwidth/u8-width.c: Likewise.
30583         * lib/uniwidth/width.c: Likewise.
30584
30585 2007-10-07  Bruno Haible  <bruno@clisp.org>
30586
30587         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30588         The file is still under LGPL (see modules/inttypes).
30589
30590 2007-10-06  Bruno Haible  <bruno@clisp.org>
30591
30592         * modules/trunc (Dependencies): Add 'extensions'.
30593         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30594         Reported by Ben Pfaff <blp@gnu.org>.
30595
30596 2007-10-06  Bruno Haible  <bruno@clisp.org>
30597
30598         * modules/freopen-tests: New file.
30599         * tests/test-freopen.c: New file.
30600
30601         * modules/fopen-tests: New file.
30602         * tests/test-fopen.c: New file.
30603
30604         * modules/fopen: New file.
30605         * lib/fopen.c: New file.
30606         * m4/fopen.m4: New file.
30607         * modules/freopen: New file.
30608         * lib/freopen.c: New file.
30609         * m4/freopen.m4: New file.
30610         * lib/stdio.in.h (fopen, freopen): New declarations.
30611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30612         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30613         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30614         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30615         * doc/functions/fopen.texi: Mention the 'fopen' module.
30616         * doc/functions/freopen.texi: Mention the 'freopen' module.
30617
30618 2007-10-06  Bruno Haible  <bruno@clisp.org>
30619
30620         * modules/open-tests: New file.
30621         * tests/test-open.c: New file.
30622
30623         * modules/open: New file.
30624         * lib/open.c: New file.
30625         * m4/open.m4: New file.
30626         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30627         lib/open.c does.
30628         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30629         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30630         macros.
30631         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30632         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30633         REPLACE_OPEN.
30634         * doc/functions/open.texi: Mention the 'open' module.
30635
30636 2007-10-04  Bruno Haible  <bruno@clisp.org>
30637
30638         * modules/ceill-tests: New file.
30639         * tests/test-ceill.c: New file.
30640
30641         * modules/ceill: New file.
30642         * lib/ceill.c: Replace entire file.
30643         * m4/ceill.m4: New file.
30644         * lib/math.in.h (ceill): Replace declaration.
30645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30646         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30647         * doc/functions/ceill.texi: Mention the 'ceill' module.
30648         * modules/mathl (Files): Remove lib/ceill.c.
30649         (Depends-on): Add ceill.
30650
30651 2007-10-04  Bruno Haible  <bruno@clisp.org>
30652
30653         * modules/ceilf-tests: New file.
30654         * tests/test-ceilf.c: New file.
30655
30656         * modules/ceilf: New file.
30657         * lib/ceil.c: New file.
30658         * lib/ceilf.c: New file.
30659         * m4/ceilf.m4: New file.
30660         * lib/math.in.h (ceilf): New declaration.
30661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30662         HAVE_DECL_CEILF.
30663         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30664         HAVE_DECL_CEILF.
30665         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30666
30667 2007-10-04  Bruno Haible  <bruno@clisp.org>
30668
30669         * modules/floorl-tests: New file.
30670         * tests/test-floorl.c: New file.
30671
30672         * modules/floorl: New file.
30673         * lib/floorl.c: Replace entire file.
30674         * m4/floorl.m4: New file.
30675         * lib/math.in.h (floorl): Replace declaration.
30676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30677         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30678         * doc/functions/floorl.texi: Mention the 'floorl' module.
30679         * modules/mathl (Files): Remove lib/floorl.c.
30680         (Depends-on): Add floorl.
30681
30682 2007-10-04  Bruno Haible  <bruno@clisp.org>
30683
30684         * modules/floorf-tests: New file.
30685         * tests/test-floorf.c: New file.
30686
30687         * modules/floorf: New file.
30688         * lib/floor.c: New file.
30689         * lib/floorf.c: New file.
30690         * m4/floorf.m4: New file.
30691         * lib/math.in.h (floorf): New declaration.
30692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30693         HAVE_DECL_FLOORF.
30694         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30695         HAVE_DECL_FLOORF.
30696         * doc/functions/floorf.texi: Mention the 'floorf' module.
30697
30698 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30699             Bruno Haible  <bruno@clisp.org>
30700
30701         Advertise for the Git server instead of the CVS server.
30702         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30703         repository instead of the CVS one.
30704         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30705         about all VCS systems generically.
30706         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30707
30708 2007-10-04  Bruno Haible  <bruno@clisp.org>
30709
30710         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30711         means.
30712         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30713
30714 2007-10-04  Bruno Haible  <bruno@clisp.org>
30715
30716         * modules/truncl-tests: New file.
30717         * tests/test-truncl.c: New file.
30718
30719         * modules/truncl: New file.
30720         * lib/truncl.c: New file.
30721         * m4/truncl.m4: New file.
30722         * lib/math.in.h (truncl): New declaration.
30723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30724         HAVE_DECL_TRUNCL.
30725         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30726         HAVE_DECL_TRUNCL.
30727         * doc/functions/truncl.texi: Mention the 'truncl' module.
30728
30729 2007-10-04  Bruno Haible  <bruno@clisp.org>
30730
30731         * modules/truncf-tests: New file.
30732         * tests/test-truncf.c: New file.
30733
30734         * modules/truncf: New file.
30735         * lib/trunc.c: Make paramerizable through USE_* macros.
30736         * lib/truncf.c: New file.
30737         * m4/truncf.m4: New file.
30738         * lib/math.in.h (truncf): New declaration.
30739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30740         HAVE_DECL_TRUNCF.
30741         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30742         HAVE_DECL_TRUNCF.
30743         * doc/functions/truncf.texi: Mention the 'truncf' module.
30744
30745 2007-10-03  Bruno Haible  <bruno@clisp.org>
30746
30747         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30748         augmentation also for tests modules.
30749         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30750         * modules/atexit-tests (Makefile.am): Likewise.
30751         * modules/binary-io-tests (Makefile.am): Likewise.
30752         * modules/c-strcase-tests (Makefile.am): Likewise.
30753         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30754         * modules/canonicalize-tests (Makefile.am): Likewise.
30755         * modules/closein-tests (Makefile.am): Likewise.
30756         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30757         * modules/freadahead-tests (Makefile.am): Likewise.
30758         * modules/fseek-tests (Makefile.am): Likewise.
30759         * modules/fseeko-tests (Makefile.am): Likewise.
30760         * modules/ftell-tests (Makefile.am): Likewise.
30761         * modules/ftello-tests (Makefile.am): Likewise.
30762         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30763         * modules/isnanl-tests (Makefile.am): Likewise.
30764         * modules/lseek-tests (Makefile.am): Likewise.
30765         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30766         * modules/mbscasestr-tests (Makefile.am): Likewise.
30767         * modules/mbschr-tests (Makefile.am): Likewise.
30768         * modules/mbscspn-tests (Makefile.am): Likewise.
30769         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30770         * modules/mbspbrk-tests (Makefile.am): Likewise.
30771         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30772         * modules/mbsrchr-tests (Makefile.am): Likewise.
30773         * modules/mbsspn-tests (Makefile.am): Likewise.
30774         * modules/mbsstr-tests (Makefile.am): Likewise.
30775         * modules/printf-posix-tests (Makefile.am): Likewise.
30776         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30777         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30778         * modules/tsearch-tests (Makefile.am): Likewise.
30779         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30780         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30781         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30782         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30783         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30784         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30785         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30786         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30787         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30788         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30789         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30790         * modules/xstrtol-tests (Makefile.am): Likewise.
30791         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30792         * modules/yesno-tests (Makefile.am): Likewise.
30793
30794 2007-10-03  Bruno Haible  <bruno@clisp.org>
30795
30796         * modules/trunc-tests: New file.
30797         * tests/test-trunc.c: New file.
30798
30799         * modules/trunc: New file.
30800         * lib/trunc.c: New file.
30801         * m4/trunc.m4: New file.
30802         * lib/math.in.h (trunc): New declaration.
30803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30804         HAVE_DECL_TRUNC.
30805         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30806         HAVE_DECL_TRUNC.
30807         * doc/functions/trunc.texi: Mention the 'trunc' module.
30808
30809 2007-10-03  Bruno Haible  <bruno@clisp.org>
30810
30811         * tests/test-fpending.c: New file, mostly copied
30812         from coreutils/lib/t-fpending.c.
30813         * modules/fpending-tests: New file.
30814
30815 2007-10-03  Bruno Haible  <bruno@clisp.org>
30816
30817         Port the stdio extensions to QNX (untested).
30818         * lib/fseterr.c (fseterr): Add support for QNX.
30819         * lib/fbufmode.c (fbufmode): Likewise.
30820         * lib/freadable.c (freadable): Likewise.
30821         * lib/fwritable.c (fwritable): Likewise.
30822         * lib/freading.c (freading): Likewise.
30823         * lib/fwriting.c (fwriting): Likewise.
30824         * lib/freadahead.c (freadahed): Likewise.
30825         * lib/fpurge.c (fpurge): Likewise.
30826         * lib/fseeko.c (rpl_fseeko): Likewise.
30827
30828 2007-10-03  Bruno Haible  <bruno@clisp.org>
30829             Jim Meyering  <jim@meyering.net>
30830             Eric Blake  <ebb9@byu.net>
30831
30832         * doc/relocatable.texi: Use @command instead of @program.
30833
30834 2007-10-02  Jim Meyering  <jim@meyering.net>
30835
30836         Perform one more "_.h" -> ".in.h" substitution.
30837         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30838         instead of unistd_.h here, too.
30839
30840 2007-10-01  Bruno Haible  <bruno@clisp.org>
30841
30842         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30843         Needed for the alloca-opt module.
30844
30845 2007-09-30  Bruno Haible  <bruno@clisp.org>
30846
30847         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30848         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30849         alloca_.h.
30850         * lib/argz.in.h: Renamed from lib/argz_.h.
30851         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30852         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30853         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30854         byteswap_.h.
30855         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30856         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30857         dirent_.h.
30858         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30859         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30860         fcntl_.h.
30861         * lib/float.in.h: Renamed from lib/float_.h.
30862         * modules/float (Files, Makefile.am): Use float.in.h instead of
30863         float_.h.
30864         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30865         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30866         fnmatch_.h.
30867         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30868         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30869         getopt_.h.
30870         * lib/glob.in.h: Renamed from lib/glob_.h.
30871         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30872         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30873         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30874         iconv_.h.
30875         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30876         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30877         inttypes_.h.
30878         * lib/locale.in.h: Renamed from lib/locale_.h.
30879         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30880         locale_.h.
30881         * lib/math.in.h: Renamed from lib/math_.h.
30882         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30883         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30884         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30885         of netinet_in_.h. Add dependency.
30886         * lib/poll.in.h: Renamed from lib/poll_.h.
30887         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30888         * lib/search.in.h: Renamed from lib/search_.h.
30889         * modules/search (Files, Makefile.am): Use search.in.h instead of
30890         search_.h.
30891         * lib/signal.in.h: Renamed from lib/signal_.h.
30892         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30893         _signal.h.
30894         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30895         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30896         stdbool_.h.
30897         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30898         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30899         stdint_.h.
30900         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30901         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30902         stdio_.h.
30903         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30904         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30905         stdlib_.h.
30906         * lib/string.in.h: Renamed from lib/string_.h.
30907         * modules/string (Files, Makefile.am): Use string.in.h instead of
30908         string_.h.
30909         * doc/gnulib-tool.texi (Initial import): Update.
30910         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30911         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30912         of sys_select_.h. Add dependency.
30913         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30914         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30915         of sys_socket_.h.
30916         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30917         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30918         sys_stat_.h.
30919         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30920         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30921         sys_time_.h.
30922         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30923         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30924         sysexits_.h.
30925         * lib/time.in.h: Renamed from lib/time_.h.
30926         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30927         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30928         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30929         unistd_.h.
30930         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30931         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30932         wchar_.h.
30933         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30934         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30935         wctype_.h.
30936         * build-aux/bootstrap (slurp): Update.
30937         * lib/.cppi-disable: Update.
30938
30939 2007-09-30  Bruno Haible  <bruno@clisp.org>
30940
30941         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30942         Needed on BeOS.
30943
30944 2007-09-30  Bruno Haible  <bruno@clisp.org>
30945
30946         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30947
30948 2007-09-29  Bruno Haible  <bruno@clisp.org>
30949
30950         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30951
30952 2007-09-29  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30955         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30956         * build-aux/install-reloc: Compile also areadlink.c.
30957         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30958
30959 2007-09-29  Bruno Haible  <bruno@clisp.org>
30960
30961         * gnulib-tool (func_emit_initmacro_done): Indentation.
30962
30963 2007-09-29  Bruno Haible  <bruno@clisp.org>
30964
30965         * README: Add CVS checkout update instructions.
30966         Info from Bob Proulx <bob@proulx.com>.
30967
30968 2007-09-28  Eric Blake  <ebb9@byu.net>
30969
30970         Provide move-if-change.
30971         * build-aux/move-if-change: New file, based on best practice
30972         rather than any canonical upstream location.
30973
30974 2007-09-28  Jim Meyering  <jim@meyering.net>
30975
30976         Fix canonicalize loop-detection corner case.
30977         Do not attempt to stat the symlink values stored via seen_triple.
30978         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30979         on linux-2.6.18, (but not 2.6.22).
30980         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30981         triple_compare.  The former compares dev,ino,filename, while the latter
30982         would actually stat dirname(filename) when dev and ino were equal.
30983         * lib/hash-triple.c: Install <string.h>.
30984         (STREQ): Define.
30985         (triple_compare_ino_str): New function.
30986         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30987
30988 2007-09-28  Eric Blake  <ebb9@byu.net>
30989
30990         Enforce that AC_REPLACE_FUNCS files exist.
30991         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30992         override check for typos.
30993
30994         Fix test-closein on Solaris 10.
30995         * tests/test-closein.c (main): Don't assume stdin can be inherited
30996         closed on all systems.
30997         * tests/test-closein.sh: Likewise.
30998         Reported by Piotr Tarnowski.
30999
31000 2007-09-28  Jim Meyering  <jim@meyering.net>
31001
31002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31003
31004 2007-09-27  Jim Meyering  <jim@meyering.net>
31005
31006         canonicalize: Avoid a false-positive cycle failure.
31007         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31008         Sort.  Remove cycle-check.
31009         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31010         not cycle-check.h.
31011         (seen_triple): New function.
31012         (canonicalize_filename_mode): Use it instead of cycle-check.
31013         * tests/test-canonicalize.c: Add a test for this bug.
31014         * tests/test-canonicalize.sh: Set up and run the test.
31015
31016         New module, file-set, from coreutils.
31017         * modules/file-set: Define it.
31018         * lib/file-set.c, lib/file-set.h: Implement.
31019
31020         New module, hash-triple, from coreutils.
31021         * modules/hash-triple: Define it.
31022         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31023
31024 2007-09-25  Eric Blake  <ebb9@byu.net>
31025
31026         Fix strerror on Interix.
31027         * lib/string_.h (strerror): Declare replacement.
31028         * doc/functions/strerror.texi (strerror): Document the Interix
31029         shortcoming.
31030         * modules/string (Makefile.am): Support new hooks.
31031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31032         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31033         gl_FUNC_STRERROR_SEPARATE.
31034         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31035         * lib/strerror.c (rpl_strerror): Provide replacement.
31036         * modules/strerror (Depends-on): Add string.
31037         (configure.ac): Detect use of module.
31038         * tests/test-strerror.c: New file.
31039         * modules/strerror-tests: New test module.
31040         * modules/argp (Depends-on): Add strerror.
31041         * modules/error (Depends-on): Likewise.
31042         Reported by Martin Koeppe.
31043
31044 2007-09-24  Bruno Haible  <bruno@clisp.org>
31045
31046         * README: Update git instructions.
31047
31048 2007-09-24  Eric Blake  <ebb9@byu.net>
31049
31050         Revert fpending breakage from 2007-09-08.
31051         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31052         __fpending.c.
31053
31054 2007-09-24  Jim Meyering  <jim@meyering.net>
31055
31056         filenamecat.c: Add a test.
31057         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31058         showing how the function works when DIR is the empty string.
31059
31060 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31061
31062         * tests/test-canonicalize.sh: Turn on executable bit.
31063
31064 2007-09-19  Eric Blake  <ebb9@byu.net>
31065
31066         * README: Update CVS instructions.
31067
31068 2007-09-18  Bruno Haible  <bruno@clisp.org>
31069
31070         * modules/areadlink: New file.
31071         * lib/areadlink.h (areadlink): New declaration.
31072         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31073
31074 2007-09-17  Jim Meyering  <jim@meyering.net>
31075
31076         * lib/savewd.c (ESTALE) [!defined]: Define.
31077         Reported to be required on Interix by Martin Koeppe.
31078
31079 2007-09-17  Bruno Haible  <bruno@clisp.org>
31080
31081         * gnulib-tool (func_version): Use $version.
31082
31083 2007-09-16  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31086         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31087         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31088         Reported by Greg Schafer <gschafer@zip.com.au>.
31089
31090 2007-09-15  Bruno Haible  <bruno@clisp.org>
31091
31092         * gnulib-tool (sed): Try a little harder to make bash understand the
31093         alias.
31094         Reported by Bruce Korb <bruce.korb@gmail.com>.
31095
31096 2007-09-13  Eric Blake  <ebb9@byu.net>
31097
31098         * ChangeLog: Remove conflict markers.
31099
31100 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31101
31102         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31103         Reported by Bruno Haible <bruno@clisp.org>.
31104
31105 2007-09-12  Bruno Haible  <bruno@clisp.org>
31106
31107         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31108         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31109         is not defined.
31110
31111 2007-09-12  Eric Blake  <ebb9@byu.net>
31112
31113         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31114         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31115         Autoconf definition.
31116         * modules/euidaccess (Depends-on): Add extensions, for
31117         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31118         * modules/fnmatch (Depends-on): Likewise.
31119         * modules/getaddrinfo (Depends-on): Likewise.
31120         * modules/getdelim (Depends-on): Likewise.
31121         * modules/getline (Depends-on): Likewise.
31122         * modules/getsubopt (Depends-on): Likewise.
31123         * modules/gettext (Depends-on): Likewise.
31124         * modules/group-member (Depends-on): Likewise.
31125         * modules/mbchar (Depends-on): Likewise.
31126         * modules/memmem (Depends-on): Likewise.
31127         * modules/mempcpy (Depends-on): Likewise.
31128         * modules/memrchr (Depends-on): Likewise.
31129         * modules/pagealign_alloc (Depends-on): Likewise.
31130         * modules/readutmp (Depends-on): Likewise.
31131         * modules/stpcpy (Depends-on): Likewise.
31132         * modules/stpncpy (Depends-on): Likewise.
31133         * modules/strchrnul (Depends-on): Likewise.
31134         * modules/strndup (Depends-on): Likewise.
31135         * modules/strsep (Depends-on): Likewise.
31136         * modules/strverscmp (Depends-on): Likewise.
31137         * modules/vasprintf (Depends-on): Likewise.
31138         * modules/wcwidth (Depends-on): Likewise.
31139         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31140         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31141         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31144         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31145         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31146         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31147         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31148         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31150         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31151         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31152         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31153         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31154         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31155         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31156         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31159         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31161         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31162         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31163         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31165         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31166         so that lock.m4 can be used in gettext without extensions module.
31167
31168 2007-09-11  Bruno Haible  <bruno@clisp.org>
31169
31170         * m4/isc-posix.m4: Remove file.
31171         Suggested by Eric Blake.
31172
31173 2007-09-11  Eric Blake  <ebb9@byu.net>
31174
31175         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31176
31177 2007-09-10  Bruno Haible  <bruno@clisp.org>
31178
31179         * posix-modules: Fix typo in error message.
31180         Reported by Matt <mkraai@beckman.com>.
31181
31182 2007-09-09  Bruno Haible  <bruno@clisp.org>
31183
31184         * doc/functions/getdelim.texi: Update list of platforms lacking the
31185         function.
31186         * doc/functions/getline.texi: Likewise.
31187
31188 2007-09-09  Jim Meyering  <jim@meyering.net>
31189
31190         * lib/hash.c (hash_initialize): Detect calloc failure.
31191         Reported by Bruno Haible.
31192
31193 2007-09-09  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31196         malloc or realloc fails.
31197
31198 2007-09-09  Bruno Haible  <bruno@clisp.org>
31199
31200         * modules/getcwd (Depends-on): Add malloc-posix.
31201         * modules/glob (Depends-on): Likewise.
31202         * modules/putenv (Depends-on): Likewise.
31203         * modules/strdup (Depends-on): Likewise.
31204         * modules/getdelim (Depends-on): Add realloc-posix.
31205         * modules/read-file (Depends-on): Likewise.
31206
31207 2007-09-09  Bruno Haible  <bruno@clisp.org>
31208
31209         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31210         (gl_FUNC_MALLOC_POSIX): Require it.
31211         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31212         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31213         * modules/realloc (Files): Add m4/malloc.m4.
31214         * modules/calloc (Files): Likewise.
31215
31216 2007-09-09  Bruno Haible  <bruno@clisp.org>
31217
31218         * modules/malloc-posix: New file.
31219         * modules/malloc (Depends-on): Add malloc-posix.
31220         * lib/malloc.c: Include errno.h.
31221         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31222         and a POSIX-compatible malloc into a single function. Set ENOMEM
31223         when returning NULL.
31224         * m4/malloc.m4: New file.
31225         * doc/functions/malloc.texi: Mention the malloc-posix module.
31226         * lib/stdlib_.h (malloc): New declaration.
31227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31228         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31229         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31230         and HAVE_MALLOC_POSIX.
31231
31232 2007-09-09  Bruno Haible  <bruno@clisp.org>
31233
31234         * modules/realloc-posix: New file.
31235         * modules/realloc (Depends-on): Add realloc-posix.
31236         * lib/realloc.c: Include errno.h.
31237         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31238         and a POSIX-compatible realloc into a single function. Set ENOMEM
31239         when returning NULL.
31240         * m4/realloc.m4: New file.
31241         * doc/functions/realloc.texi: Mention the realloc-posix module.
31242         * lib/stdlib_.h (realloc): New declaration.
31243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31244         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31245         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31246         and HAVE_REALLOC_POSIX.
31247
31248 2007-09-09  Bruno Haible  <bruno@clisp.org>
31249
31250         * modules/calloc-posix: New file.
31251         * modules/calloc (Depends-on): Add calloc-posix.
31252         * lib/calloc.c: Include errno.h.
31253         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31254         and a POSIX-compatible calloc into a single function. Set ENOMEM
31255         when returning NULL.
31256         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31257         * doc/functions/calloc.texi: Mention the calloc-posix module.
31258         * lib/stdlib_.h (calloc): New declaration.
31259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31260         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31261         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31262         and HAVE_CALLOC_POSIX.
31263
31264 2007-09-09  Bruno Haible  <bruno@clisp.org>
31265
31266         Allow for modules to show an arbitrary notice.
31267         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31268         * gnulib-tool: New option --extract-notice.
31269         (func_usage): Document it.
31270         (sed_extract_prog): Update.
31271         (func_get_notice): New function.
31272         (func_modules_notice): New function.
31273         (func_import, func_create_testdir): Invoke it.
31274         Suggested by Jim Meyering.
31275
31276 2007-09-09  Bruno Haible  <bruno@clisp.org>
31277
31278         * gnulib-tool: New options --verbose, --quiet.
31279         (func_usage): Document them.
31280         (verbose): New variable.
31281         (func_execute_command): New function.
31282         (func_import): Don't show the module list and the file list if
31283         $verbose < 0.
31284         (func_create_testdir): Likewise. Use func_execute_command.
31285         (func_create_megatestdir): Use func_execute_command.
31286
31287 2007-09-08  Bruno Haible  <bruno@clisp.org>
31288
31289         * gnulib-tool (func_import): Prefer rsync over wget when available,
31290         for fetching the PO files.
31291
31292 2007-09-08  Bruno Haible  <bruno@clisp.org>
31293
31294         * posix-modules: New file. Portions copied from gnulib-tool.
31295         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31296
31297 2007-09-08  Jim Meyering  <jim@meyering.net>
31298
31299         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31300         * lib/fpending.h: Rename from __fpending.h.
31301         * lib/fpending.c: Rename from __fpending.c.
31302         Include "fpending.h", not "__fpending.h".
31303         * lib/__fpending.h, lib/__fpending.c: Remove files.
31304         * modules/fpending (Files): Reflect new file names.
31305         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31306
31307 2007-09-08  Bruno Haible  <bruno@clisp.org>
31308
31309         * m4/inttypes-h.m4: Remove stub file.
31310
31311 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31312
31313         * doc/headers/stdint.texi: Discuss #include_next issue.
31314
31315 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31316
31317         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31318
31319 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31320
31321         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31322         in variable name.
31323
31324 2007-09-03  Jim Meyering  <jim@meyering.net>
31325
31326         New module: git-version-gen.
31327         * modules/git-version-gen: New file.
31328
31329         Import changes from coreutils for bootstrap script.
31330
31331         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31332
31333         bootstrap: uses rsync to download the .po files
31334         * build-aux/bootstrap (po_download_command_format): New global.
31335         (download_po_files): Use rsync.
31336         (update_po_files): Don't remove .po files after download,
31337         so future rsync runs can take advantage of the copies.
31338
31339         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31340
31341         Solve the unnecessary-.po-file-regeneration problem once and for all.
31342         * build-aux/bootstrap (download_po_files): New function, renamed from
31343         get_translations.  Now, downloads, but doesn't update LINGUAS.
31344         (update_po_files): New function.
31345
31346         bootstrap: Ignore more.
31347         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31348         uniwidth to e.g., lib/.gitignore.
31349         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31350
31351         * build-aux/bootstrap: New setting: vc_ignore.
31352         (insert_sorted_if_absent): Create $file if absent.
31353         Adapt to new, possibly empty, list: $vc_ignore.
31354
31355         bootstrap: generate more ignorable names
31356         * build-aux/bootstrap (slurp): When generating ignorable names,
31357         also map .sin to .sed, .gperf to .c, and .y to .c.
31358
31359 2007-09-03  Jim Meyering  <jim@meyering.net>
31360
31361         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31362         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31363
31364 2007-09-02  Bruno Haible  <bruno@clisp.org>
31365
31366         Fix mis-recognition of 'mcs' on QNX 6.
31367         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31368         output contains the string "Mono".
31369         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31370         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31371
31372 2007-09-01  Bruno Haible  <bruno@clisp.org>
31373
31374         Fix collision between uniwidth/* and linebreak modules.
31375         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31376         u32_width): Remove declarations.
31377         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31378         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31379         streq3, streq2, streq1, streq0): Remove functions.
31380         (STREQ): Remove macro.
31381         (is_cjk_encoding): Remove function.
31382         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31383         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31384         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31385         * NEWS: Document the change.
31386
31387 2007-09-01  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/streq.h: Add double-inclusion guard.
31390
31391 2007-09-01  Karl Berry  <karl@gnu.org>
31392
31393         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31394
31395 2007-08-28  Jim Meyering  <jim@meyering.net>
31396
31397         Rename mreadlink_with_size to areadlink_with_size.
31398         * NEWS: Document the change.
31399         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31400         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31401         * lib/mreadlink.h: Rename this to...
31402         * lib/areadlink.h: ...this.
31403         * modules/mreadlink-with-size: Rename this to...
31404         * modules/areadlink-with-size: ...this.
31405         * lib/canonicalize.c: Reflect the renaming.
31406         * modules/canonicalize: Likewise.
31407
31408 2007-08-26  Bruno Haible  <bruno@clisp.org>
31409
31410         * gnulib-tool (func_import): When deciding which files to remove,
31411         consider also dangling symbolic links.
31412         Reported by Eric Blake.
31413
31414 2007-08-26  Bruno Haible  <bruno@clisp.org>
31415
31416         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31417
31418 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31419
31420         * lib/readline.c: Don't include getline.h, the prototype is now
31421         found in stdio.h.
31422
31423 2007-08-23  Jim Meyering  <jim@meyering.net>
31424
31425         Getdelim touchup.
31426         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31427         around the funlockfile call, since funlockfile never sets errno.
31428         Don't set errno upon failed realloc.
31429
31430 2007-08-22  Eric Blake  <ebb9@byu.net>
31431
31432         Getline touchups.
31433         * lib/getdelim.c (getdelim): Revert regression that required *n to
31434         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31435         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31436         getdelim, rather than whether implementation is missing.
31437         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31438         * lib/stdio_.h (getline): Also declare if replacement is
31439         required.
31440         * doc/functions/getdelim.texi: New file.
31441         * doc/functions/getline.texi: Likewise.
31442         * doc/gnulib.texi (Function Substitutes): Add new files.
31443         Reported by Bruno Haible.
31444
31445 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31446
31447         * users.txt: Add Guile.
31448
31449 2007-08-22  Eric Blake  <ebb9@byu.net>
31450
31451         * tests/test-getdelim.c (main): Use remove, not unlink.
31452         * tests/test-getline.c (main): Likewise.
31453
31454         Move getline and getdelim into stdio.h, per POSIX 200x.
31455         * modules/getline (Files): Remove getline.h.
31456         (Depends-on): Add stdio.
31457         (configure.ac): Add module indicator.
31458         * modules/getdelim (Files): Remove getdelim.h.
31459         (Depends-on): Add stdio.
31460         (configure.ac): Add module indicator.
31461         * modules/stdio (Makefile.am): Work with new indicators.
31462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31464         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31465         * lib/getdelim.h: Delete.
31466         * lib/getline.h: Delete.
31467         * lib/stdio_.h (getdelim, getline): Declare.
31468         * modules/getdelim-tests: New module.
31469         * modules/getline-tests: Likewise.
31470         * tests/test-getdelim.c: New file.
31471         * tests/test-getline.c: Likewise.
31472         * NEWS: Document the change.
31473         * lib/getline.c: Update choice of header.
31474         * lib/csharpcomp.c: Likewise.
31475         * lib/getpass.c: Likewise.
31476         * lib/javacomp.c: Likewise.
31477         * lib/javaversion.c: Likewise.
31478         * lib/yesno.c: Likewise.
31479         * lib/getdelim.c: Likewise.
31480         (getdelim): Set errno on failure, and avoid memory leak.
31481
31482 2007-08-19  Bruno Haible  <bruno@clisp.org>
31483
31484         * modules/closein (Depends-on): Add freadahead.
31485         * lib/closein.c: Include freadahead.h.
31486         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31487         is zero.
31488
31489 2007-08-19  Bruno Haible  <bruno@clisp.org>
31490
31491         * modules/freadahead-tests: New file.
31492         * tests/test-freadahead.sh: New file.
31493         * tests/test-freadahead.c: New file.
31494
31495         * modules/freadahead: New file.
31496         * lib/freadahead.h: New file.
31497         * lib/freadahead.c: New file.
31498         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31499         fbufmode, fpurge, freadable, fwritable.
31500
31501 2007-08-19  Eric Blake  <ebb9@byu.net>
31502
31503         Test yesno in combination with closein.
31504         * lib/yesno.c (yesno): Document use of stdin.
31505         * modules/yesno-tests (Files): New module.
31506         * tests/test-yesno.c (main): New file.
31507         * tests/test-yesno.sh: Likewise.
31508
31509 2007-08-19  Bruno Haible  <bruno@clisp.org>
31510
31511         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31512         * lib/fseeko.c (rpl_fseeko): Likewise.
31513         * lib/fseterr.c (fseterr): Likewise.
31514
31515 2007-08-19  Bruno Haible  <bruno@clisp.org>
31516
31517         * tests/test-lseek.c (main): Disable a test for BeOS.
31518         * doc/functions/lseek.texi: Document the BeOS bug.
31519
31520 2007-08-19  Bruno Haible  <bruno@clisp.org>
31521             Eric Blake  <ebb9@byu.net>
31522
31523         * lib/lseek.c: Include <sys/stat.h>.
31524         (rpl_lseek): Add workaround code also for Unix platforms.
31525         Needed for BeOS.
31526         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31527         * doc/functions/lseek.texi: Document BeOS definiency.
31528
31529 2007-08-18  Bruno Haible  <bruno@clisp.org>
31530
31531         * modules/fstrcmp-tests: New file.
31532         * tests/test-fstrcmp.c: New file.
31533
31534 2007-08-18  Bruno Haible  <bruno@clisp.org>
31535
31536         * modules/fstrcmp: New file, from GNU gettext with modifications.
31537         * lib/fstrcmp.h: New file, from GNU gettext.
31538         * lib/fstrcmp.c: New file, from GNU gettext.
31539         * MODULES.html.sh (String handling): Add fstrcmp.
31540
31541 2007-08-18  Bruno Haible  <bruno@clisp.org>
31542
31543         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31544         'bool'.
31545         (diag, compareseq): Remove const from the ctxt argument.
31546         (USE_HEURISTIC): Undefine at the end.
31547
31548 2007-08-18  Jim Meyering  <jim@meyering.net>
31549
31550         New file: lib/idcache.h
31551         * NEWS: Mention the addition.
31552         * modules/idcache (Files): Add lib/idcache.h
31553         * lib/idcache.c: Include "idcache.h".
31554         Don't include <sys/types.h>.
31555         Add a FIXME comment.
31556         Move file-scoped "static" declarations to the top.
31557         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31558
31559 2007-08-17  Bruno Haible  <bruno@clisp.org>
31560         and Paul Eggert  <eggert@cs.ucla.edu>
31561
31562         * MODULES.html.sh: Add diffseq.
31563         * modules/diffseq: New file.
31564         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31565         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31566
31567 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31568
31569         Import changes from coreutils for bootstrap script.
31570
31571         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31572
31573         * build-aux/bootstrap (slurp): Work even in environments where
31574         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31575         current code does not slurp files whose names start with ".", and
31576         this looks like it might be a troublesome area.
31577
31578         2007-07-11  Jim Meyering  <jim@meyering.net>
31579
31580         If there's a GPL vN copyright comment, require that N == 3.
31581
31582         2007-07-08  Jim Meyering  <jim@meyering.net>
31583
31584         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31585         * build-aux/bootstrap (mam_template): Move definition out of loop.
31586
31587         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31588
31589         * build-aux/bootstrap (symlink_to_dir): Rename function from
31590         symlink_to_gnulib.  Add a directory parameter.  Update all
31591         callers.
31592         (cp_mark_as_generated): Also check for -- and link to -- files in
31593         gl/.
31594
31595         2007-07-08  Jim Meyering  <jim@meyering.net>
31596
31597         Adapt to deeper hierarchy in gnulib.
31598         * build-aux/bootstrap (symlink_to_dir): If the destination
31599         directory doesn't exist, create it. This is required at least for
31600         "lib/uniwidth/cjk.h".
31601
31602         2007-05-15  Jim Meyering  <jim@meyering.net>
31603
31604         * build-aux/bootstrap: Now that generated Makefile.am files
31605         are no longer under version control, they must be created at
31606         bootstrap time.
31607
31608 2007-08-14  Ben Pfaff  <blp@gnu.org>
31609
31610         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31611
31612 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31613
31614         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31615         given the changes below.
31616         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31617         even on hosts that have padding bits beyond the supported 64.
31618
31619 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31620
31621         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31622         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31623         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31624         depends on it.
31625         (xstrtol_error): Remove.
31626         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31627         but with a different signature.
31628         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31629         * lib/xstrtol-error.c: Include exitfail.h.
31630         (xstrtol_fatal): New function, with a different signature from the
31631         old xstrtol_error, so that the caller need not worry about passing
31632         in an exit status, or about storage management of the option argument.
31633         (xstrtol_error): Now a static function.  Redo signature to
31634         implement xstrtol_fatal.  Output the correct number of hyphens in
31635         front of the option so that the caller need not worry about
31636         storage management.
31637         (N_): New macro.
31638         (_): Remove; not used now.
31639         * modules/xstrtol: Depend on getopt.
31640         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31641         of old STRTOL_FATAL_ERROR macro.
31642         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31643         of test program.
31644         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31645         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31646
31647 2007-08-08  Eric Blake  <ebb9@byu.net>
31648
31649         * lib/xstrtol-error.c: Add missing include.
31650
31651         Move xstrtol messages into gnulib domain, when --pobase is used.
31652         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31653         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31654         * modules/xstrtol (Files): Distribute new file.
31655         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31656         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31657         * tests/test-xstrtol.c: ...into new file.
31658         * tests/test-xstrtoul.c: Also test xstrtoul.
31659         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31660         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31661         * tests/test-xstrtol.sh: Drive the tests.
31662         * tests/test-xstrtoimax.sh: Likewise.
31663         * tests/test-xstrtoumax.sh: Likewise.
31664         * modules/xstrtol-tests: New module.
31665         * modules/xstrtoimax-tests: Likewise.
31666         * modules/xstrtoumax-tests: Likewise.
31667
31668 2007-08-08  Jim Meyering  <jim@meyering.net>
31669
31670         New function: mfile_name_concat.
31671         * lib/filenamecat.c (mfile_name_concat): New function, just like
31672         file_name_concat, but return NULL upon failure rather than exiting
31673         with a diagnostic.
31674         * lib/filenamecat.h: Declare it.
31675
31676 2007-08-07  Bruno Haible  <bruno@clisp.org>
31677
31678         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31679         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31680         warning from gcc.
31681         Reported by Eric Blake.
31682
31683 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31684
31685         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31686         * modules/crypto/arcfour (License): Likewise.
31687         * modules/crypto/des-tests (License): Likewise.
31688         * modules/crypto/gc-arctwo-tests (License): Likewise.
31689         * modules/crypto/gc-des-tests (License): Likewise.
31690         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31691         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31692         * modules/crypto/gc-md2-tests (License): Likewise.
31693         * modules/crypto/gc-md4-tests (License): Likewise.
31694         * modules/crypto/gc-md5-tests (License): Likewise.
31695         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31696         * modules/crypto/gc-rijndael-tests (License): Likewise.
31697         * modules/crypto/gc-sha1-tests (License): Likewise.
31698         * modules/crypto/gc-tests (License): Likewise.
31699         * modules/crypto/hmac-md5 (License): Likewise.
31700         * modules/crypto/hmac-sha1 (License): Likewise.
31701         * modules/crypto/md2-tests (License): Likewise.
31702         * modules/crypto/md4-tests (License): Likewise.
31703         * modules/crypto/md5 (License): Likewise.
31704         * modules/crypto/rijndael (License): Likewise.
31705         * modules/crypto/sha1 (License): Likewise.
31706         * modules/memxor (License): Likewise.
31707
31708 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31709         and Bruno Haible  <bruno@clisp.org>
31710
31711         * NEWS: Describe interface changes to human, xstrtol.
31712         * lib/human.h: Include <xstrtol.h>.
31713         (human_options): Return enum strtol_error, not int.  Remove
31714         bool arg; take int * instead.
31715         * lib/human.c: Don't include "gettext.h".
31716         (_): Remove; no longer used.
31717         Don't include <xstrtol.h>, since human.h does it.
31718         (human_options): Adjust to abovementioned interface changes.
31719         Do not report error to stderr; that's now the caller's
31720         responsibility.
31721         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31722         interface change.
31723         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31724         Str, Argument_type_string.  All uses changed.  Put " argument"
31725         in diagnostics to make them clearer.  Change wording of suffix
31726         message for clarity.
31727         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31728         Argument_type_string.
31729         (STRTOL_FATAL_WARN): Remove; no longer used.
31730         * modules/human (Depends-on): Remove gettext-h.
31731
31732 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31733
31734         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31735
31736 2007-07-31  Bruno Haible  <bruno@clisp.org>
31737
31738         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31739         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31740         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31741
31742 2007-07-31  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31745         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31746
31747 2007-07-30  Bruno Haible  <bruno@clisp.org>
31748
31749         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31750         * modules/c-ctype (License): Likewise.
31751         * modules/c-strcase (License): Likewise.
31752         * modules/check-version (License): Likewise.
31753         * modules/iconv (License): Likewise.
31754         * modules/iconv_open (License): Likewise.
31755         * modules/read-file (License): Likewise.
31756         * modules/striconv (License): Likewise.
31757         * modules/strverscmp (License): Likewise.
31758         * modules/vasprintf (License): Likewise.
31759         * modules/crypto/des (License): Likewise.
31760         * modules/crypto/gc (License): Likewise.
31761         * modules/crypto/gc-arcfour (License): Likewise.
31762         * modules/crypto/gc-arctwo (License): Likewise.
31763         * modules/crypto/gc-des (License): Likewise.
31764         * modules/crypto/gc-hmac-md5 (License): Likewise.
31765         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31766         * modules/crypto/gc-md2 (License): Likewise.
31767         * modules/crypto/gc-md4 (License): Likewise.
31768         * modules/crypto/gc-md5 (License): Likewise.
31769         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31770         * modules/crypto/gc-random (License): Likewise.
31771         * modules/crypto/gc-rijndael (License): Likewise.
31772         * modules/crypto/gc-sha1 (License): Likewise.
31773         * modules/crypto/md2 (License): Likewise.
31774         * modules/crypto/md4 (License): Likewise.
31775
31776 2007-07-30  Jim Meyering  <jim@meyering.net>
31777
31778         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31779         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31780         it has valid stat data.  This bug would cause du not to count the
31781         sizes of inaccessible directories.
31782         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31783         in <http://bugzilla.redhat.com/250077>.
31784
31785 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31786             Bruno Haible  <bruno@clisp.org>
31787
31788         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31789         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31790         #include_next, gives a diagnostic about it, but reports no error in
31791         the exit code.
31792         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31793
31794 2007-07-24  Ben Pfaff  <blp@gnu.org>
31795
31796         Improve name: "count-one-bits" is better than "popcount".
31797         * MODULES.html.sh: Update name.
31798         * lib/popcount.h: Renamed lib/count-one-bits.h.
31799         (popcount): Renamed count_one_bits.
31800         (popcountl): Renamed count_one_bits_l.
31801         (popcountll): Renamed count_one_bits_ll.
31802         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31803         * modules/popcount: Renamed module/count-one-bits.
31804         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31805         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31806
31807 2007-07-23  Ben Pfaff  <blp@gnu.org>
31808
31809         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31810         better code generation, and add U to large constants to avoid
31811         warnings, in non-GCC case.
31812         Suggested by Bruno Haible.
31813
31814 2007-07-23  Ben Pfaff  <blp@gnu.org>
31815
31816         * lib/popcount.h: Use verify_true instead of if...abort.
31817         * modules/popcount: Depend on verify module.
31818         Suggested by Jim Meyering.
31819
31820 2007-07-23  Bruno Haible  <bruno@clisp.org>
31821
31822         * gnulib-tool (func_import): Create a .cvsignore file also when the
31823         directory is not yet in CVS but the toplevel directory is. When
31824         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31825         Reported by Karl Berry.
31826
31827 2007-07-22  Ben Pfaff  <blp@gnu.org>
31828
31829         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31830         case.
31831         Suggested by Eric Blake.
31832
31833 2007-07-22  Ben Pfaff  <blp@gnu.org>
31834
31835         New module: popcount.
31836         * MODULES.html.sh: Add popcount.
31837         * modules/popcount: New file.
31838         * modules/popcount-tests: New file.
31839         * tests/test-popcount.c: New file.
31840         * lib/popcount.h: New file.
31841         * m4/popcount.m4: New file.
31842
31843 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31844
31845         * build-aux/announce-gen: Update to GPLv3.
31846
31847         * build-aux/config.guess: Update from config.
31848
31849 2007-07-21  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31852         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31853
31854 2007-07-20  Jim Meyering  <jim@meyering.net>
31855
31856         * check-module: Diagnose a self-dependency.
31857
31858 2007-07-19  Bruno Haible  <bruno@clisp.org>
31859
31860         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31861         empty.
31862         Reported by Eric Blake.
31863
31864 2007-07-18  Bruno Haible  <bruno@clisp.org>
31865
31866         * gnulib-tool: New options --po-base, --po-domain.
31867         (func_usage): Document them.
31868         (pobase, po_domain): New variables.
31869         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31870         DEFAULT_TEXT_DOMAIN.
31871         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31872         (func_import): Consider pobase and po_domain. Create a po/ directory.
31873         (func_create_testdir): Set pobase and po_domain to empty.
31874         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31875         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31876
31877 2007-07-18  Bruno Haible  <bruno@clisp.org>
31878
31879         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31880         EXTRA_DIST augmentation for files in build-aux/.
31881
31882 2007-07-16  Bruno Haible  <bruno@clisp.org>
31883
31884         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31885         * modules/getdelim (License): Likewise.
31886
31887 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31888
31889         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31890         * modules/d-type (License): Likewise.
31891         * modules/extensions (License): Likewise.
31892         * modules/fnmatch (License): Likewise.
31893         * modules/fseeko (License): Likewise.
31894         * modules/getaddrinfo (License): Likewise.
31895         * modules/getline (License): Likewise.
31896         * modules/getlogin_r (License): Likewise.
31897         * modules/getpass (License): Likewise.
31898         * modules/gettimeofday (License): Likewise.
31899         * modules/glob (License): Likewise.
31900         * modules/inet_ntop (License): Likewise.
31901         * modules/malloc (License): Likewise.
31902         * modules/malloca (License): Likewise.
31903         * modules/memmem (License): Likewise.
31904         * modules/mempcpy (License): Likewise.
31905         * modules/memset (License): Likewise.
31906         * modules/minmax (License): Likewise.
31907         * modules/mktime (License): Likewise.
31908         * modules/netinet_in (License): Likewise.
31909         * modules/pathmax (License): Likewise.
31910         * modules/poll (License): Likewise.
31911         * modules/regex (License): Likewise.
31912         * modules/snprintf (License): Likewise.
31913         * modules/stdbool (License): Likewise.
31914         * modules/stdint (License): Likewise.
31915         * modules/stdio (License): Likewise.
31916         * modules/strcase (License): Likewise.
31917         * modules/strcasestr (License): Likewise.
31918         * modules/strdup (License): Likewise.
31919         * modules/string (License): Likewise.
31920         * modules/strndup (License): Likewise.
31921         * modules/strnlen (License): Likewise.
31922         * modules/strpbrk (License): Likewise.
31923         * modules/strptime (License): Likewise.
31924         * modules/strsep (License): Likewise.
31925         * modules/sys_select (License): Likewise.
31926         * modules/sys_socket (License): Likewise.
31927         * modules/sys_stat (License): Likewise.
31928         * modules/sys_time (License): Likewise.
31929         * modules/time (License): Likewise.
31930         * modules/time_r (License): Likewise.
31931         * modules/timegm (License): Likewise.
31932         * modules/unistd (License): Likewise.
31933         * modules/vsnprintf (License): Likewise.
31934         * modules/wctype (License): Likewise.
31935
31936 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31937
31938         * modules/argz (License): LGPLv2+.
31939
31940 2007-07-15  Karl Berry  <karl@gnu.org>
31941
31942         * doc/gnulib.texi: revise node structure per new fdl.texi.
31943
31944 2007-07-14  Bruno Haible  <bruno@clisp.org>
31945
31946         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31947         the output file.
31948         * lib/uniname/uninames.h: Regenerated.
31949
31950 2007-07-14  Karl Berry  <karl@gnu.org>
31951
31952         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31953         omitting sectioning and index commands.
31954
31955 2007-07-13  Bruno Haible  <bruno@clisp.org>
31956
31957         New gnulib-tool option --more-symlinks.
31958         * gnulib-tool (func_usage): Document --more-symlinks.
31959         (do_copyrights): New variable.
31960         Recognize option --more-symlinks.
31961         (func_import): Don't add a copyright notice transform to
31962         sed_transform_lib_file if do_copyrights is empty.
31963
31964 2007-07-13  Bruno Haible  <bruno@clisp.org>
31965
31966         * lib/vasnprintf.c (decimal_point_char): Define also if
31967         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31968         && !NEED_PRINTF_DIRECTIVE_A.
31969         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31970         Gary V. Vaughan <gary@gnu.org>.
31971
31972 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31973
31974         * lib/inttypes_.h: Undo previous change, since it was fixed
31975         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31976
31977 2007-07-13  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31980         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31981
31982 2007-07-13  Jim Meyering  <jim@meyering.net>
31983
31984         df: Don't fail for Tru64's "file-on-file mount".
31985         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31986         so we fall through and use statfs instead.  Details here:
31987         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31988         Reported by Albert Chin.
31989
31990 2007-07-13  Bruno Haible  <bruno@clisp.org>
31991
31992         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31993         * modules/configmake (License): Likewise.
31994         * modules/gettext (License): Likewise.
31995         * modules/gettext-h (License): Likewise.
31996         * modules/include_next (License): Likewise.
31997         * modules/link-warning (License): Likewise.
31998         * modules/localcharset (License): Likewise.
31999         * modules/localename (License): Likewise.
32000         * modules/lock (License): Likewise.
32001         * modules/relocatable-lib-lgpl (License): Likewise.
32002         * modules/size_max (License): Likewise.
32003         * modules/vasnprintf (License): Likewise.
32004         * modules/wchar (License): Likewise.
32005         * modules/xsize (License): Likewise.
32006
32007 2007-07-13  Bruno Haible  <bruno@clisp.org>
32008
32009         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32010         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32011
32012 2007-07-12  Bruno Haible  <bruno@clisp.org>
32013
32014         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32015         in the modules files.
32016
32017 2007-07-11  Karl Berry  <karl@gnu.org>
32018
32019         * MODULES.html.sh (func_module): use
32020          sed -e '\|^'"${includefile}"'$|d'
32021          instead of /.../d, to avoid errors on $includefile's containing /.
32022
32023 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32024
32025         * gnulib-tool (func_import): Avoid duplication of --avoid
32026         statements
32027         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32028         names to `_' in variable names.
32029
32030 2007-07-10  Eric Blake  <ebb9@byu.net>
32031
32032         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32033         * NEWS: Document this change.
32034
32035 2007-07-08  Bruno Haible  <bruno@clisp.org>
32036
32037         Update to Unicode 5.0.
32038         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32039         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32040         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32041         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32042         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32043         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32044         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32045         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32046         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32047         U+10A3F, U+1D242..U+1D244.
32048         (nonspacing_table_ind): Update.
32049         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32050         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32051
32052 2007-07-08  Bruno Haible  <bruno@clisp.org>
32053
32054         Update to Unicode 5.0.
32055         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32056         code transform. Extend the name index field of unicode_name_to_code and
32057         unicode_code_to_name from 16 to 24 bits.
32058         * lib/uniname/uniname.c (unicode_character_name,
32059         unicode_name_character): Add the range 0x12xxx to the code transform.
32060         * lib/uniname/uninames.h: Regenerated.
32061         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32062
32063 2007-07-07  Bruno Haible  <bruno@clisp.org>
32064
32065         * modules/wcwidth-tests: New file.
32066         * tests/test-wcwidth.c: New file.
32067
32068         Work around MacOS X wcwidth() bug.
32069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32070         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32071         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32072         original wcwidth in non-UTF-8 locales.
32073         * modules/wcwidth (Depends-on): Add localcharset, streq,
32074         uniwidth/width.
32075         * doc/functions/wcwidth.texi: Update.
32076
32077 2007-07-07  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32080         (wcwidth): New declaration.
32081         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32082         macros.
32083         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32084         here. Prepare for creating <wchar.h> unconditionally.
32085         * modules/wchar (Depends-on): Add link-warning.
32086         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32087         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32088         * lib/wcwidth.h: Remove file.
32089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32090         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32091         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32092         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32093         (Include): Replace wcwidth.h with <wchar.h>.
32094         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32095         * lib/mbchar.h: Don't include wcwidth.h.
32096         * lib/mbswidth.c: Likewise.
32097         * NEWS: Mention the change.
32098
32099 2007-07-07  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32102         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32103         definition with an external declaration.
32104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32105         defined as a function. Remove AC_C_INLINE requirement.
32106         * modules/wcwidth (Files): Add lib/wcwidth.c.
32107         (Makefile.am): Remove redundant statement.
32108
32109 2007-07-07  Bruno Haible  <bruno@clisp.org>
32110
32111         * MODULES.html.sh (Unicode string functions): Add the new modules.
32112
32113         * tests/uniwidth/test-u32-strwidth.c: New file.
32114         * modules/uniwidth/u32-strwidth-tests: New file.
32115
32116         * lib/uniwidth/u32-strwidth.c: New file.
32117         * modules/uniwidth/u32-strwidth: New file.
32118
32119         * tests/uniwidth/test-u16-strwidth.c: New file.
32120         * modules/uniwidth/u16-strwidth-tests: New file.
32121
32122         * lib/uniwidth/u16-strwidth.c: New file.
32123         * modules/uniwidth/u16-strwidth: New file.
32124
32125         * tests/uniwidth/test-u8-strwidth.c: New file.
32126         * modules/uniwidth/u8-strwidth-tests: New file.
32127
32128         * lib/uniwidth/u8-strwidth.c: New file.
32129         * modules/uniwidth/u8-strwidth: New file.
32130
32131         * tests/uniwidth/test-u32-width.c: New file.
32132         * modules/uniwidth/u32-width-tests: New file.
32133
32134         * lib/uniwidth/u32-width.c: New file.
32135         * modules/uniwidth/u32-width: New file.
32136
32137         * tests/uniwidth/test-u16-width.c: New file.
32138         * modules/uniwidth/u16-width-tests: New file.
32139
32140         * lib/uniwidth/u16-width.c: New file.
32141         * modules/uniwidth/u16-width: New file.
32142
32143         * tests/uniwidth/test-u8-width.c: New file.
32144         * modules/uniwidth/u8-width-tests: New file.
32145
32146         * lib/uniwidth/u8-width.c: New file.
32147         * modules/uniwidth/u8-width: New file.
32148
32149         * tests/uniwidth/test-uc_width.c: New file.
32150         * modules/uniwidth/width-tests: New file.
32151
32152         * lib/uniwidth/width.c: New file, from GNU libiconv.
32153         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32154         * modules/uniwidth/width: New file.
32155
32156         * lib/uniwidth.h: New file, from GNU libiconv.
32157         * modules/uniwidth/base: New file.
32158
32159 2007-07-07  Bruno Haible  <bruno@clisp.org>
32160
32161         * lib/uniname.h: New file, from GNU gettext.
32162         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32163         * lib/uniname/uninames.h: New file, from GNU gettext.
32164         * lib/uniname/uniname.c: New file, from GNU gettext.
32165         * tests/uniname/test-uninames.sh: New file.
32166         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32167         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32168         * modules/uniname/base: New file.
32169         * modules/uniname/uniname: New file.
32170         * modules/uniname/uniname-tests: New file.
32171         * MODULES.html.sh (Unicode string functions): Add the new modules.
32172
32173 2007-07-06  Bruno Haible  <bruno@clisp.org>
32174
32175         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32176
32177 2007-07-06  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32180         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32181         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32182         include <sys/time.h>.
32183         Reported by Eric Blake.
32184
32185 2007-07-06  Eric Blake  <ebb9@byu.net>
32186
32187         Fix testing canonicalize on cygwin.
32188         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32189         Revert patch from 2007-06-19.
32190         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32191         canonicalize module is also in use.
32192         * tests/test-canonicalize.c: New file.
32193         * tests/test-canonicalize.sh: Likewise.
32194         * modules/canonicalize-tests: Likewise.
32195
32196 2007-07-06  Jim Meyering  <jim@meyering.net>
32197
32198         * lib/getugroups.c (getugroups): Detect getgrent failure.
32199         Adjust comment to reflect reality: this function may return -1.
32200
32201 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32202
32203         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32204         the new TP address.
32205         (usage): Fix typo
32206         (gnulib_mk): New variable.
32207
32208 2007-07-05  Jim Meyering  <jim@meyering.net>
32209
32210         Don't let endgrent clobber errno, no matter how improbable.
32211         * lib/getugroups.c (getugroups): Save and restore errno around
32212         endgrent call.
32213
32214         Close the group DB even when failing with 2^31 or more members.
32215         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32216
32217 2007-07-04  Jim Meyering  <jim@meyering.net>
32218
32219         * lib/getugroups.h: New file.
32220         * lib/getugroups.c: Include "getugroups.h".
32221         Remove uses of "register" keyword.
32222         Move local variable, "cp", down into scope where used.
32223         Give "username" parameter the "const" attribute.
32224         * modules/getugroups (Files): Add lib/getugroups.h
32225
32226 2007-07-04  Karl Berry  <karl@gnu.org>
32227
32228         * MODULES.html.sh (func_all_modules): Complete rename of
32229         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32230
32231 2007-07-02  Bruno Haible  <bruno@clisp.org>
32232
32233         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32234         mode, when inttypes.h comes from gnulib.
32235         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32236
32237 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32238
32239         * NEWS: Mention lgpl module name change.
32240
32241         * modules/lgpl-2.1: Renamed from lgpl.
32242
32243         * NEWS: Mention gpl module name change.
32244
32245         * modules/gpl-3.0: New file, based on gpl-2.0.
32246
32247         * modules/gpl-2.0: Renamed from gpl.
32248
32249         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32250         doc/gpl-2.0.texi.
32251
32252 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32253
32254         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32255         #define __STDC_LIMIT_MACROS temporarily while including
32256         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32257         Problem reported by Joel E. Denny in
32258         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32259
32260 2007-07-01  Bruno Haible  <bruno@clisp.org>
32261
32262         * lib/unistdio.h: New file.
32263         * lib/unistdio/u-asnprintf.h: New file.
32264         * lib/unistdio/u-asprintf.h: New file.
32265         * lib/unistdio/u-printf-args.c: New file.
32266         * lib/unistdio/u-printf-args.h: New file.
32267         * lib/unistdio/u-printf-parse.h: New file.
32268         * lib/unistdio/u-snprintf.h: New file.
32269         * lib/unistdio/u-sprintf.h: New file.
32270         * lib/unistdio/u-vasprintf.h: New file.
32271         * lib/unistdio/u-vsnprintf.h: New file.
32272         * lib/unistdio/u-vsprintf.h: New file.
32273         * lib/unistdio/ulc-asnprintf.c: New file.
32274         * lib/unistdio/ulc-asprintf.c: New file.
32275         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32276         * lib/unistdio/ulc-printf-parse.c: New file.
32277         * lib/unistdio/ulc-snprintf.c: New file.
32278         * lib/unistdio/ulc-sprintf.c: New file.
32279         * lib/unistdio/ulc-vasnprintf.c: New file.
32280         * lib/unistdio/ulc-vasprintf.c: New file.
32281         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32282         * lib/unistdio/ulc-vsnprintf.c: New file.
32283         * lib/unistdio/ulc-vsprintf.c: New file.
32284         * lib/unistdio/u8-asnprintf.c: New file.
32285         * lib/unistdio/u8-asprintf.c: New file.
32286         * lib/unistdio/u8-printf-parse.c: New file.
32287         * lib/unistdio/u8-snprintf.c: New file.
32288         * lib/unistdio/u8-sprintf.c: New file.
32289         * lib/unistdio/u8-vasnprintf.c: New file.
32290         * lib/unistdio/u8-vasprintf.c: New file.
32291         * lib/unistdio/u8-vsnprintf.c: New file.
32292         * lib/unistdio/u8-vsprintf.c: New file.
32293         * lib/unistdio/u8-u8-asnprintf.c: New file.
32294         * lib/unistdio/u8-u8-asprintf.c: New file.
32295         * lib/unistdio/u8-u8-snprintf.c: New file.
32296         * lib/unistdio/u8-u8-sprintf.c: New file.
32297         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32298         * lib/unistdio/u8-u8-vasprintf.c: New file.
32299         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32300         * lib/unistdio/u8-u8-vsprintf.c: New file.
32301         * lib/unistdio/u16-asnprintf.c: New file.
32302         * lib/unistdio/u16-asprintf.c: New file.
32303         * lib/unistdio/u16-printf-parse.c: New file.
32304         * lib/unistdio/u16-snprintf.c: New file.
32305         * lib/unistdio/u16-sprintf.c: New file.
32306         * lib/unistdio/u16-vasnprintf.c: New file.
32307         * lib/unistdio/u16-vasprintf.c: New file.
32308         * lib/unistdio/u16-vsnprintf.c: New file.
32309         * lib/unistdio/u16-vsprintf.c: New file.
32310         * lib/unistdio/u16-u16-asnprintf.c: New file.
32311         * lib/unistdio/u16-u16-asprintf.c: New file.
32312         * lib/unistdio/u16-u16-snprintf.c: New file.
32313         * lib/unistdio/u16-u16-sprintf.c: New file.
32314         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32315         * lib/unistdio/u16-u16-vasprintf.c: New file.
32316         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32317         * lib/unistdio/u16-u16-vsprintf.c: New file.
32318         * lib/unistdio/u32-asnprintf.c: New file.
32319         * lib/unistdio/u32-asprintf.c: New file.
32320         * lib/unistdio/u32-printf-parse.c: New file.
32321         * lib/unistdio/u32-snprintf.c: New file.
32322         * lib/unistdio/u32-sprintf.c: New file.
32323         * lib/unistdio/u32-vasnprintf.c: New file.
32324         * lib/unistdio/u32-vasprintf.c: New file.
32325         * lib/unistdio/u32-vsnprintf.c: New file.
32326         * lib/unistdio/u32-vsprintf.c: New file.
32327         * lib/unistdio/u32-u32-asnprintf.c: New file.
32328         * lib/unistdio/u32-u32-asprintf.c: New file.
32329         * lib/unistdio/u32-u32-snprintf.c: New file.
32330         * lib/unistdio/u32-u32-sprintf.c: New file.
32331         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32332         * lib/unistdio/u32-u32-vasprintf.c: New file.
32333         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32334         * lib/unistdio/u32-u32-vsprintf.c: New file.
32335         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32336         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32337         * tests/unistdio/test-ulc-printf1.h: New file.
32338         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32339         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32340         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32341         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32342         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32343         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32344         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32345         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32346         * tests/unistdio/test-u8-asnprintf1.c: New file.
32347         * tests/unistdio/test-u8-asnprintf1.h: New file.
32348         * tests/unistdio/test-u8-printf1.h: New file.
32349         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32350         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32351         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32352         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32353         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32354         * tests/unistdio/test-u8-vasprintf1.c: New file.
32355         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32356         * tests/unistdio/test-u8-vsprintf1.c: New file.
32357         * tests/unistdio/test-u16-asnprintf1.c: New file.
32358         * tests/unistdio/test-u16-asnprintf1.h: New file.
32359         * tests/unistdio/test-u16-printf1.h: New file.
32360         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32361         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32362         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32363         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32364         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32365         * tests/unistdio/test-u16-vasprintf1.c: New file.
32366         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32367         * tests/unistdio/test-u16-vsprintf1.c: New file.
32368         * tests/unistdio/test-u32-asnprintf1.c: New file.
32369         * tests/unistdio/test-u32-asnprintf1.h: New file.
32370         * tests/unistdio/test-u32-printf1.h: New file.
32371         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32372         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32373         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32374         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32375         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32376         * tests/unistdio/test-u32-vasprintf1.c: New file.
32377         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32378         * tests/unistdio/test-u32-vsprintf1.c: New file.
32379         * modules/unistdio/base: New file.
32380         * modules/unistdio/u-printf-args: New file.
32381         * modules/unistdio/ulc-asnprintf: New file.
32382         * modules/unistdio/ulc-asprintf: New file.
32383         * modules/unistdio/ulc-fprintf: New file.
32384         * modules/unistdio/ulc-printf-parse: New file.
32385         * modules/unistdio/ulc-snprintf: New file.
32386         * modules/unistdio/ulc-sprintf: New file.
32387         * modules/unistdio/ulc-vasnprintf: New file.
32388         * modules/unistdio/ulc-vasprintf: New file.
32389         * modules/unistdio/ulc-vfprintf: New file.
32390         * modules/unistdio/ulc-vsnprintf: New file.
32391         * modules/unistdio/ulc-vsprintf: New file.
32392         * modules/unistdio/u8-asnprintf: New file.
32393         * modules/unistdio/u8-asprintf: New file.
32394         * modules/unistdio/u8-printf-parse: New file.
32395         * modules/unistdio/u8-snprintf: New file.
32396         * modules/unistdio/u8-sprintf: New file.
32397         * modules/unistdio/u8-vasnprintf: New file.
32398         * modules/unistdio/u8-vasprintf: New file.
32399         * modules/unistdio/u8-vsnprintf: New file.
32400         * modules/unistdio/u8-vsprintf: New file.
32401         * modules/unistdio/u8-u8-asnprintf: New file.
32402         * modules/unistdio/u8-u8-asprintf: New file.
32403         * modules/unistdio/u8-u8-snprintf: New file.
32404         * modules/unistdio/u8-u8-sprintf: New file.
32405         * modules/unistdio/u8-u8-vasnprintf: New file.
32406         * modules/unistdio/u8-u8-vasprintf: New file.
32407         * modules/unistdio/u8-u8-vsnprintf: New file.
32408         * modules/unistdio/u8-u8-vsprintf: New file.
32409         * modules/unistdio/u16-asnprintf: New file.
32410         * modules/unistdio/u16-asprintf: New file.
32411         * modules/unistdio/u16-printf-parse: New file.
32412         * modules/unistdio/u16-snprintf: New file.
32413         * modules/unistdio/u16-sprintf: New file.
32414         * modules/unistdio/u16-vasnprintf: New file.
32415         * modules/unistdio/u16-vasprintf: New file.
32416         * modules/unistdio/u16-vsnprintf: New file.
32417         * modules/unistdio/u16-vsprintf: New file.
32418         * modules/unistdio/u16-u16-asnprintf: New file.
32419         * modules/unistdio/u16-u16-asprintf: New file.
32420         * modules/unistdio/u16-u16-snprintf: New file.
32421         * modules/unistdio/u16-u16-sprintf: New file.
32422         * modules/unistdio/u16-u16-vasnprintf: New file.
32423         * modules/unistdio/u16-u16-vasprintf: New file.
32424         * modules/unistdio/u16-u16-vsnprintf: New file.
32425         * modules/unistdio/u16-u16-vsprintf: New file.
32426         * modules/unistdio/u32-asnprintf: New file.
32427         * modules/unistdio/u32-asprintf: New file.
32428         * modules/unistdio/u32-printf-parse: New file.
32429         * modules/unistdio/u32-snprintf: New file.
32430         * modules/unistdio/u32-sprintf: New file.
32431         * modules/unistdio/u32-vasnprintf: New file.
32432         * modules/unistdio/u32-vasprintf: New file.
32433         * modules/unistdio/u32-vsnprintf: New file.
32434         * modules/unistdio/u32-vsprintf: New file.
32435         * modules/unistdio/u32-u32-asnprintf: New file.
32436         * modules/unistdio/u32-u32-asprintf: New file.
32437         * modules/unistdio/u32-u32-snprintf: New file.
32438         * modules/unistdio/u32-u32-sprintf: New file.
32439         * modules/unistdio/u32-u32-vasnprintf: New file.
32440         * modules/unistdio/u32-u32-vasprintf: New file.
32441         * modules/unistdio/u32-u32-vsnprintf: New file.
32442         * modules/unistdio/u32-u32-vsprintf: New file.
32443         * modules/unistdio/ulc-asnprintf-tests: New file.
32444         * modules/unistdio/ulc-vasnprintf-tests: New file.
32445         * modules/unistdio/ulc-vasprintf-tests: New file.
32446         * modules/unistdio/ulc-vsnprintf-tests: New file.
32447         * modules/unistdio/ulc-vsprintf-tests: New file.
32448         * modules/unistdio/u8-asnprintf-tests: New file.
32449         * modules/unistdio/u8-vasnprintf-tests: New file.
32450         * modules/unistdio/u8-vasprintf-tests: New file.
32451         * modules/unistdio/u8-vsnprintf-tests: New file.
32452         * modules/unistdio/u8-vsprintf-tests: New file.
32453         * modules/unistdio/u16-asnprintf-tests: New file.
32454         * modules/unistdio/u16-vasnprintf-tests: New file.
32455         * modules/unistdio/u16-vasprintf-tests: New file.
32456         * modules/unistdio/u16-vsnprintf-tests: New file.
32457         * modules/unistdio/u16-vsprintf-tests: New file.
32458         * modules/unistdio/u32-asnprintf-tests: New file.
32459         * modules/unistdio/u32-vasnprintf-tests: New file.
32460         * modules/unistdio/u32-vasprintf-tests: New file.
32461         * modules/unistdio/u32-vsnprintf-tests: New file.
32462         * modules/unistdio/u32-vsprintf-tests: New file.
32463         * MODULES.html.sh (Unicode string functions): Add the new modules.
32464
32465 2007-07-01  Bruno Haible  <bruno@clisp.org>
32466
32467         * lib/sprintf.c (sprintf): Limit the available length estimation,
32468         to avoid address wraparound.
32469         * lib/vsprintf.c (vsprintf): Likewise.
32470         * modules/sprintf-posix (Dependencies): Add stdint.
32471         * modules/vsprintf-posix (Dependencies): Likewise.
32472
32473 2007-07-01  Bruno Haible  <bruno@clisp.org>
32474
32475         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32476         Windows PATH as well. Conservative double-quoting. Comments.
32477
32478 2007-07-01  Bruno Haible  <bruno@clisp.org>
32479             Eric Blake  <ebb9@byu.net>
32480             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32481
32482         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32483         empty components in $PATH, denoting '.'.
32484
32485 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32486
32487         * gnulib-tool: Fix indentation.
32488         (func_create_megatestdir): Likewise.
32489         Report by Bruno Haible.
32490
32491 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32492
32493         Sync from Automake.
32494         * build-aux/gnupload: Fix shell portability issues with for loops.
32495         Report by Karl Berry.
32496
32497 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32498
32499         * build-aux/maint.mk (POURL): Use translationproject.org.
32500
32501 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32502             Bruno Haible  <bruno@clisp.org>
32503
32504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32505         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32506         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32507         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32508         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32509
32510 2007-06-27  Bruno Haible  <bruno@clisp.org>
32511
32512         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32513         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32514
32515 2007-06-26  Karl Berry  <karl@gnu.org>
32516
32517         * MODULES.html.sh: remove xreadlink-with-size.
32518
32519 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32520
32521         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32522         method that I hope also handles the double-include problem noted
32523         by Bruno Haible in
32524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32525
32526 2007-06-23  Bruno Haible  <bruno@clisp.org>
32527
32528         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32529         Don't let the 'mostlyclean' target fail if the last subdirectory could
32530         not be removed.
32531         Reported by Karl Berry.
32532
32533 2007-06-23  Bruno Haible  <bruno@clisp.org>
32534
32535         * gnulib-tool (echo): Add a speedier workaround for ksh.
32536         * tests/test-echo.sh: Likewise.
32537
32538 2007-06-23  Bruno Haible  <bruno@clisp.org>
32539
32540         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32541         * tests/test-echo.sh: Likewise.
32542
32543 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32544
32545         * gnulib-tool (IFS): Initialize early, so we don't set it to
32546         empty later.
32547         (self_abspathname): Rewrite algorithm to set it, reindent.
32548         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32549         (func_create_megatestdir): Merge some sed scripts.
32550
32551 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32552
32553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32554         exposed by Sun Studio 11 cc on Solaris 8.
32555
32556 2007-06-22  Bruno Haible  <bruno@clisp.org>
32557
32558         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32559         backslashes.
32560         * tests/test-echo.sh: New file.
32561
32562 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32563
32564         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32565         simplify `sed_replace_build_aux' scripts, they are portable but
32566         echoing them with `echo' is not.
32567         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32568
32569 2007-06-21  Karl Berry  <karl@gnu.org>
32570
32571         * config/srclist.txt: guess we can't handle the licenses via
32572         srclist at the moment.
32573
32574 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32575
32576         * MODULES.html.sh: Add include_next.
32577         * modules/include_next: New file.
32578
32579 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32582         INCLUDE_NEXT.
32583         (gl_CHECK_NEXT_HEADERS): New macro.
32584         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32585         the obsolescent gl_ABSOLUTE_HEADER.
32586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32587         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32588         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32589         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32590         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32591         * m4/math_h.m4 (gl_MATH_H): Likewise.
32592         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32593         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32594         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32595         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32596         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32597         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32598         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32603         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32604         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32605         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32606         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32607         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32608         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32609         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32610         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32611         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32612         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32613         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32614         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32615         * lib/float_.h: Likewise.
32616         * lib/inttypes_.h: Likewise.
32617         * lib/math_.h: Likewise.
32618         * lib/search_.h: Likewise.
32619         * lib/signal_.h: Likewise.
32620         * lib/stdint_.h: Likewise.
32621         * lib/stdio_.h: Likewise.
32622         * lib/stdlib_.h: Likewise.
32623         * lib/string_.h: Likewise.
32624         * lib/sys_stat_.h: Likewise.
32625         * lib/sys_time_.h: Likewise.
32626         * lib/time_.h: Likewise.
32627         * lib/unistd_.h: Likewise.
32628         * lib/wchar_.h: Likewise.
32629         * lib/wctype_.h: Likewise.
32630         * lib/dirent_.h: Likewise.
32631         * lib/iconv_.h: Likewise.
32632         * lib/locale_.h: Likewise.
32633         * lib/netinet_in_.h: Likewise.
32634         * lib/sys_select_.h: Likewise.
32635         * lib/sys_socket_.h: Likewise.
32636         * lib/sysexits_.h: Likewise.
32637         * modules/fcntl (Depends-on): Depend on include_next, not
32638         absolute_header.
32639         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32640         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32641         * modules/fchdir: Likewise.
32642         * modules/float: Likewise.
32643         * modules/iconv_open: Likewise.
32644         * modules/inttypes: Likewise.
32645         * modules/locale: Likewise.
32646         * modules/math: Likewise.
32647         * modules/netinet_in: Likewise.
32648         * modules/search: Likewise.
32649         * modules/signal: Likewise.
32650         * modules/stdint: Likewise.
32651         * modules/stdio: Likewise.
32652         * modules/stdlib: Likewise.
32653         * modules/string: Likewise.
32654         * modules/sys_select: Likewise.
32655         * modules/sys_socket: Likewise.
32656         * modules/sys_stat: Likewise.
32657         * modules/sys_time: Likewise.
32658         * modules/sysexits: Likewise.
32659         * modules/time: Likewise.
32660         * modules/unistd: Likewise.
32661         * modules/wchar: Likewise.
32662         * modules/wctype: Likewise.
32663         * modules/sys_stat: Change maintainer to "all".
32664         * modules/unistd: Likewise.
32665
32666 2007-06-20  Karl Berry  <karl@gnu.org>
32667
32668         * config/srclist.txt: track www changes in license files.
32669
32670 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32671
32672         * build-aux/bootstrap: Remove stray dot.
32673         Make sure build_aux settings are honored when linking
32674         gnulib_extra_files.
32675
32676 2007-06-19  Eric Blake  <ebb9@byu.net>
32677
32678         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32679         Allow compilation on cygwin.
32680
32681 2007-06-19  Jim Meyering  <jim@meyering.net>
32682
32683         xreadlink-with-size: Remove module.  No longer used.
32684         Ex-callers now use xreadlink or mreadlink-with-size.
32685         * modules/xreadlink-with-size: Remove module.
32686         * lib/xreadlink-with-size.c: Remove file.
32687         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32688         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32689         just before the function definition *is* accurate.
32690
32691         Eliminate one way canonicalize_filename_mode could exit.
32692         * lib/canonicalize.c (canonicalize_filename_mode):
32693         Use mreadlink_with_size, not xreadlink_with_size.
32694
32695 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32696
32697         Detect porting problems to FreeBSD/arm, which has time_t wider than
32698         long int.  Original problem reported for GNU diff by Xin Li in
32699         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32700         * modules/getdate (Depends-on): Add intprops, verify.
32701         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32702         is an integer type no wider than long int.
32703
32704 2007-06-18  Jim Meyering  <jim@meyering.net>
32705
32706         New module: mreadlink-with-size.
32707         * MODULES.html.sh: Add mreadlink-with-size.
32708         * modules/mreadlink-with-size: New module
32709         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32710         not xreadlink-with-size.
32711         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32712
32713 2007-06-16  Bruno Haible  <bruno@clisp.org>
32714
32715         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32716         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32717         Reported by Gary V. Vaughan <gary@gnu.org>.
32718
32719 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32720
32721         Revamp lchown so that it lives in unistd.h where it belongs.
32722         * lib/lchown.h: Remove.
32723         * lib/dirchownmod.c: Don't include lib/lchown.h.
32724         * lib/fchownat.c: Likewise.
32725         * lib/openat.c: Likewise.
32726         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32727         does not follow symlinks.
32728         (EOPNOTSUPP): Define if not defined.
32729         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32730         is defined to 0.
32731         (lchown): New decl.
32732         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32733         Do not check for lchown decl.
32734         Set REPLACE_LCHOWN.
32735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32736         REPLACE_LCHOWN.
32737         * modules/chown: Make it clear it follows symlinks.
32738         * modules/lchown: Make it clear it doesn't follow symlinks.
32739         (Files): Remove lib/lchown.h
32740         (Depends-on): Add unistd.
32741         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32742         (Include): Include <unistd.h>, not "lchown.h".
32743         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32744         REPLACE_LCHOWN.
32745
32746 2007-06-15  Jim Meyering  <jim@meyering.net>
32747
32748         Change license (GPL to LGPL) of fsusage and dependents.
32749         * modules/fsusage (License): Change to LGPL.
32750         * modules/full-read (License): Likewise.
32751         * modules/full-write (License): Likewise.
32752         * modules/safe-read (License): Likewise.
32753         * modules/safe-write (License): Likewise.
32754
32755 2007-06-14  Ben Pfaff  <blp@gnu.org>
32756
32757         Missing part of allocsa -> malloca transition.
32758         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32759         gl_MALLOCA.
32760
32761 2007-06-12  Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32764         to ia64, x86_64, i386.
32765         Reported by Eric Blake.
32766
32767 2007-06-12  Bruno Haible  <bruno@clisp.org>
32768
32769         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32770         cross-compiling to x86_64.
32771
32772 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32773
32774         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32775         glitch reported by Ralf Wildenhues in
32776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32777
32778         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32779         Vin Shelton.
32780
32781 2007-06-11  Bruno Haible  <bruno@clisp.org>
32782
32783         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32784         replacement string.
32785         Reported by Eric Blake.
32786
32787 2007-06-10  Bruno Haible  <bruno@clisp.org>
32788
32789         Prepare vasnprintf code for use with Unicode strings.
32790         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32791         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32792         TYPE_U32_STRING.
32793         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32794         a_u32_string variants.
32795         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32796         * lib/printf-args.c: Don't include config.h and the specification
32797         header if PRINTF_FETCHARGS is already defined.
32798         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32799         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32800         TYPE_U16_STRING, TYPE_U32_STRING.
32801         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32802         u16_directive, u16_directives, u32_directive, u32_directives): New
32803         types.
32804         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32805         New declarations.
32806         * lib/printf-parse.c: Don't include config.h and the specification
32807         header if PRINTF_PARSE is already defined. Eliminate the set of
32808         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32809         them now. Include c-ctype.h.
32810         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32811         directive and CHAR_T_ONLY_ASCII.
32812         * lib/vasnprintf.c: Don't include config.h and the specification header
32813         if VASNPRINTF is already defined.
32814         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32815         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32816         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32817         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32818         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32819         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32820         code accordingly.
32821         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32822         pad_ourselves also in this case, with the 'c' and 's' directives, and
32823         with a different notion of "width".
32824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32825
32826 2007-06-10  Bruno Haible  <bruno@clisp.org>
32827
32828         * modules/unistr/u32-mbsnlen: New file.
32829         * lib/unistr/u32-mbsnlen.c: New file.
32830
32831         * modules/unistr/u16-mbsnlen: New file.
32832         * lib/unistr/u16-mbsnlen.c: New file.
32833
32834         * modules/unistr/u8-mbsnlen: New file.
32835         * lib/unistr/u8-mbsnlen.c: New file.
32836
32837         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32838         declarations.
32839
32840 2007-06-10  Bruno Haible  <bruno@clisp.org>
32841
32842         * lib/string_.h (mbsnlen): New declaration.
32843         * lib/mbsnlen.c: New file.
32844         * m4/mbsnlen.m4: New file.
32845         * modules/mbsnlen: New file.
32846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32847         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32848         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32849
32850 2007-06-10  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32853
32854 2007-06-10  Bruno Haible  <bruno@clisp.org>
32855
32856         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32857         * lib/mbuiter.h: Likewise.
32858
32859 2007-06-10  Bruno Haible  <bruno@clisp.org>
32860
32861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32862         declaration.
32863
32864 2007-06-10  Karl Berry  <karl@gnu.org>
32865
32866         * config/srclist.txt: remove gettext entries, Bruno prefers
32867         to update individually.
32868
32869 2007-06-10  Bruno Haible  <bruno@clisp.org>
32870
32871         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32872         'maxlen'. Ensure only length + width bytes are allocated, not
32873         length + 1 + width.
32874
32875 2007-06-09  Bruno Haible  <bruno@clisp.org>
32876
32877         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32878         (CHAR_T): Remove macro.
32879         (VASNPRINTF): Update.
32880
32881 2007-06-09  Bruno Haible  <bruno@clisp.org>
32882
32883         * MODULES.html.sh (Unicode string functions): Add the new modules.
32884
32885         * modules/uniconv/u32-conv-to-enc: New file.
32886         * lib/uniconv/u32-conv-to-enc.c: New file.
32887         * modules/uniconv/u32-conv-to-enc-tests: New file.
32888         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32889
32890         * modules/uniconv/u16-conv-to-enc: New file.
32891         * lib/uniconv/u16-conv-to-enc.c: New file.
32892         * lib/uniconv/u-conv-to-enc.h: New file.
32893         * modules/uniconv/u16-conv-to-enc-tests: New file.
32894         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32895
32896         * modules/uniconv/u8-conv-to-enc: New file.
32897         * lib/uniconv/u8-conv-to-enc.c: New file.
32898         * modules/uniconv/u8-conv-to-enc-tests: New file.
32899         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32900
32901         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32902         u32_conv_to_encoding): New declarations.
32903
32904 2007-06-09  Bruno Haible  <bruno@clisp.org>
32905
32906         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32907
32908 2007-06-09  Bruno Haible  <bruno@clisp.org>
32909
32910         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32911         * modules/malloca: Renamed from modules/allocsa, updated.
32912         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32913         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32914         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32915         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32916         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32917         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32918         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32919         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32920         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32921         * modules/c-strcasestr (Depends-on): Update.
32922         * lib/c-strcasestr.c: Update.
32923         * modules/c-strstr (Depends-on): Update.
32924         * lib/c-strstr.c: Update.
32925         * modules/canonicalize-lgpl (Depends-on): Update.
32926         * lib/canonicalize-lgpl.c: Update.
32927         * modules/clean-temp (Depends-on): Update.
32928         * lib/clean-temp.c: Update.
32929         * modules/csharpcomp (Depends-on): Update.
32930         * lib/csharpcomp.c: Update.
32931         * modules/csharpexec (Depends-on): Update.
32932         * lib/csharpexec.c: Update.
32933         * modules/javacomp (Depends-on): Update.
32934         * lib/javacomp.c: Update.
32935         * modules/javaexec (Depends-on): Update.
32936         * lib/javaexec.c: Update.
32937         * modules/mbscasestr (Depends-on): Update.
32938         * lib/mbscasestr.c: Update.
32939         * modules/mbsstr (Depends-on): Update.
32940         * lib/mbsstr.c: Update.
32941         * modules/setenv (Depends-on): Update.
32942         * lib/setenv.c: Update.
32943         * modules/strcasestr (Depends-on): Update.
32944         * lib/strcasestr.c: Update.
32945         * modules/striconveha (Depends-on): Update.
32946         * lib/striconveha.c: Update.
32947         * modules/relocatable-prog-wrapper (Files): Update.
32948         * lib/relocwrapper.c: Update.
32949         * build-aux/install-reloc: Update.
32950         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32951
32952 2007-06-08  Bruno Haible  <bruno@clisp.org>
32953
32954         Port to uClibc.
32955         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32956         * lib/fpurge.c (fpurge): Likewise.
32957         * lib/freading.c (freading): Likewise.
32958         * lib/fseeko.c (rpl_fseeko): Likewise.
32959         * lib/fseterr.c (fseterr): Likewise.
32960         * lib/fwriting.c (fwriting): Likewise.
32961         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32962
32963 2007-06-08  Bruno Haible  <bruno@clisp.org>
32964
32965         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32966         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32967         * modules/gettext (Files): Add m4/intlmacosx.m4.
32968
32969 2007-06-07  Bruno Haible  <bruno@clisp.org>
32970
32971         * modules/localename-tests: New file.
32972         * tests/test-localename.c: New file.
32973
32974         New module 'localename'.
32975         * lib/localename.h: New file.
32976         * lib/localename.c: New file, from GNU gettext.
32977         * m4/localename.m4: New file.
32978         * modules/localename: New file.
32979
32980 2007-06-07  Bruno Haible  <bruno@clisp.org>
32981
32982         Work around the lack of <wchar.h> on some builds of uClibc.
32983         * doc/headers/wchar.texi: Update.
32984         * lib/wchar_.h: Include <wchar.h> only if it exists.
32985         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32986         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32987         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32988         doesn't exist.
32989         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32990         * modules/mbfile (Depends-on): Add wchar.
32991         * modules/mbiter (Depends-on): Likewise.
32992         * modules/mbuiter (Depends-on): Likewise.
32993         Reported by Simon Josefsson.
32994
32995 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32996
32997         Work around problem reported by Steven M. Schweda in
32998         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32999         Tru64 5.1B with the Compaq compiler environment installed declares
33000         an 'isblank' function but does not define it in the C library.
33001         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33002         * lib/regex_internal.h (isblank): Likewise.
33003         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33004         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33005
33006 2007-06-05  Bruno Haible  <bruno@clisp.org>
33007
33008         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33009         ia64.
33010         * modules/printf-safe: New file.
33011         * modules/fprintf-posix (Depends-on): Add printf-safe.
33012         * modules/printf-posix (Depends-on): Likewise.
33013         * modules/snprintf-posix (Depends-on): Likewise.
33014         * modules/sprintf-posix (Depends-on): Likewise.
33015         * modules/vasnprintf-posix (Depends-on): Likewise.
33016         * modules/vasprintf-posix (Depends-on): Likewise.
33017         * modules/vfprintf-posix (Depends-on): Likewise.
33018         * modules/vprintf-posix (Depends-on): Likewise.
33019         * modules/vsnprintf-posix (Depends-on): Likewise.
33020         * modules/vsprintf-posix (Depends-on): Likewise.
33021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33022         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33023         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33024         "no" on i386, x86_64, ia64.
33025         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33026         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33027         on i386, x86_64, ia64.
33028         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33029         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33030         on i386, x86_64, ia64.
33031         * tests/test-vasnprintf-posix.c: Include float.h.
33032         (LDBL80_WORDS): New macro.
33033         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33034         on i386, x86_64, ia64.
33035         * tests/test-vasprintf-posix.c: Include float.h.
33036         (LDBL80_WORDS): New macro.
33037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33038         on i386, x86_64, ia64.
33039         * tests/test-snprintf-posix.c: Include float.h.
33040         * tests/test-sprintf-posix.c: Likewise.
33041         * tests/test-vsnprintf-posix.c: Likewise.
33042         * tests/test-vsprintf-posix.c: Likewise.
33043
33044 2007-06-05  Bruno Haible  <bruno@clisp.org>
33045
33046         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33047         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33048         non-IEEE numbers on i386, x86_64, ia64.
33049         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33050         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33051         * tests/test-isnanl.h: Include float.h.
33052         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33053
33054 2007-06-05  Bruno Haible  <bruno@clisp.org>
33055
33056         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33057         also the %a / %A. Handle the %a / %A code before this extra handling.
33058
33059 2007-06-05  Bruno Haible  <bruno@clisp.org>
33060
33061         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33062         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33063
33064 2007-06-05  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33067         typo in variable name.
33068
33069 2007-06-05  Eric Blake  <ebb9@byu.net>
33070
33071         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33072         Reported by Simon Josefsson.
33073
33074 2007-06-04  Bruno Haible  <bruno@clisp.org>
33075
33076         Avoid test failures on some PowerPC platforms.
33077         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33078         Define differently for PowerPC.
33079         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33080         Reported by Gary V. Vaughan <gary@gnu.org>.
33081
33082 2007-06-02  Bruno Haible  <bruno@clisp.org>
33083
33084         Fix test-stdint failure on FreeBSD/ia64.
33085         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33086         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33087         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33088         * doc/headers/stdint.texi: Update.
33089
33090 2007-06-01  Bruno Haible  <bruno@clisp.org>
33091
33092         * tests/test-binary-io.c (main): Pass a third argument to open().
33093         Reported by Gary V. Vaughan <gary@gnu.org>.
33094
33095 2007-06-01  Bruno Haible  <bruno@clisp.org>
33096
33097         * doc/functions/frexpl.texi: Update for mingw.
33098
33099 2007-06-01  Bruno Haible  <bruno@clisp.org>
33100
33101         * tests/test-lseek.c (main): Disable test of errno for invalid third
33102         argument.
33103         * doc/functions/lseek.texi: Update.
33104         Reported by Gary V. Vaughan <gary@gnu.org>.
33105
33106 2007-05-28  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33109
33110 2007-05-31  Eric Blake  <ebb9@byu.net>
33111
33112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33113         cross compiling.
33114
33115 2007-05-30  Eric Blake  <ebb9@byu.net>
33116         and Bruno Haible  <bruno@clisp.org>
33117
33118         Work around mingw test failures exposed by m4-1.4.9b.
33119         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33120         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33121         moment.
33122
33123 2007-05-30  Bruno Haible  <bruno@clisp.org>
33124
33125         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33126         assuming that they are closed. Needed on HP-UX 11.
33127
33128 2007-05-29  Bruno Haible  <bruno@clisp.org>
33129
33130         Fix a problem with #include_next.
33131         * lib/dirent_.h: Split the double-inclusion guard.
33132         * lib/fcntl_.h: Likewise.
33133         * lib/float_.h: Likewise.
33134         * lib/iconv_.h: Likewise.
33135         * lib/inttypes_.h: Likewise.
33136         * lib/locale_.h: Likewise.
33137         * lib/math_.h: Likewise.
33138         * lib/netinet_in_.h: Likewise.
33139         * lib/search_.h: Likewise.
33140         * lib/signal_.h: Likewise.
33141         * lib/stdint_.h: Likewise.
33142         * lib/stdio_.h: Likewise.
33143         * lib/stdlib_.h: Likewise.
33144         * lib/string_.h: Likewise.
33145         * lib/sys_select_.h: Likewise.
33146         * lib/sys_socket_.h: Likewise.
33147         * lib/sys_stat_.h: Likewise.
33148         * lib/sys_time_.h: Likewise.
33149         * lib/sysexits_.h: Likewise.
33150         * lib/time_.h: Likewise.
33151         * lib/unistd_.h: Likewise.
33152         * lib/wchar_.h: Likewise.
33153         * lib/wctype_.h: Likewise.
33154
33155 2007-05-29  Bruno Haible  <bruno@clisp.org>
33156
33157         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33158         for the moment.
33159
33160 2007-05-29  Bruno Haible  <bruno@clisp.org>
33161
33162         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33163         invocation.
33164         Reported by Eric Blake.
33165
33166 2007-05-29  Bruno Haible  <bruno@clisp.org>
33167
33168         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33169         compiling case.
33170
33171 2007-05-29  Eric Blake  <ebb9@byu.net>
33172             Bruno Haible  <bruno@clisp.org>
33173
33174         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33175         cross compiles.
33176
33177 2007-05-28  Eric Blake  <ebb9@byu.net>
33178
33179         * modules/closein-tests (test_closein_LDADD): Support test on
33180         cygwin with libtool.
33181
33182 2007-05-28  Bruno Haible  <bruno@clisp.org>
33183
33184         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33185         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33186         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33187         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33188         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33189         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33190         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33191         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33192         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33193
33194 2007-05-28  Eric Blake  <ebb9@byu.net>
33195
33196         Unconditionally include <config.h> in unit tests.
33197         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33198         * tests/test-allocsa.c, tests/test-arcfour.c,
33199         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33200         tests/test-array_list.c, tests/test-array_oset.c,
33201         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33202         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33203         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33204         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33205         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33206         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33207         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33208         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33209         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33210         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33211         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33212         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33213         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33214         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33215         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33216         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33217         test-md5.c, test-memmem.c, test-printf-posix.c,
33218         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33219         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33220         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33221         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33222         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33223         test-vasnprintf-posix2.c, test-vasnprintf.c,
33224         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33225         test-vfprintf-posix.c, test-vprintf-posix.c,
33226         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33227         test-xvasprintf.c: Likewise.
33228
33229 2007-05-28  Bruno Haible  <bruno@clisp.org>
33230
33231         * gnulib-tool (func_import): Remember the --with-tests command-line
33232         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33233         Reported by Eric Blake.
33234
33235 2007-05-28  Bruno Haible  <bruno@clisp.org>
33236
33237         * modules/ftell-tests: New file.
33238         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33239         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33240
33241         * lib/ftell.c: New file.
33242         * modules/ftell: New file.
33243         * m4/ftell.m4: New file.
33244         * doc/functions/ftell.texi: Update.
33245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33246         REPLACE_FTELL.
33247         * lib/stdio_.h (rpl_ftell): New declaration.
33248         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33249         REPLACE_FTELL.
33250
33251 2007-05-28  Eric Blake  <ebb9@byu.net>
33252
33253         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33254
33255 2007-05-28  Bruno Haible  <bruno@clisp.org>
33256
33257         * modules/fseek-tests: New file.
33258         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33259         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33260
33261         * lib/fseek.c: New file.
33262         * modules/fseek: New file.
33263         * m4/fseek.m4: New file.
33264         * doc/functions/fseek.texi: Update.
33265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33266         REPLACE_FSEEK.
33267         * lib/stdio_.h (rpl_fseek): New declaration.
33268         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33269         REPLACE_FSEEK.
33270
33271 2007-05-28  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/stdio_.h (fflush): More comments.
33274
33275 2007-05-28  Bruno Haible  <bruno@clisp.org>
33276
33277         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33278         runtime test.
33279
33280 2007-05-28  Eric Blake  <ebb9@byu.net>
33281
33282         Improve lseek module.
33283         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33284         * lib/unistd_.h (lseek): Scale back link warning message.
33285         * tests/test-lseek.c: Beef up test.
33286         * tests/test-lseek.sh: Exercise more facets of lseek.
33287         Reported by Bruno Haible.
33288
33289 2007-05-28  Bruno Haible  <bruno@clisp.org>
33290
33291         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33292         to define.
33293
33294 2007-05-27  Bruno Haible  <bruno@clisp.org>
33295
33296         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33297
33298 2007-05-27  Bruno Haible  <bruno@clisp.org>
33299
33300         * modules/openmp: New file.
33301         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33302         Noah Misch.
33303
33304 2007-05-26  Bruno Haible  <bruno@clisp.org>
33305
33306         * modules/chdir-long (Depends-on): Add fchdir.
33307         * modules/chdir-safer (Depends-on): Likewise.
33308         * modules/fts (Depends-on): Likewise.
33309         * modules/fts-lgpl (Depends-on): Likewise.
33310         * modules/openat (Depends-on): Likewise.
33311         * modules/savewd (Depends-on): Likewise.
33312
33313 2007-05-24  Eric Blake  <ebb9@byu.net>
33314
33315         Fix lseek on mingw.
33316         * modules/lseek: New module.
33317         * m4/lseek.m4: New file.
33318         * lib/lseek.c: New file.
33319         * modules/lseek-tests: New file.
33320         * tests/test-lseek.c: New file.
33321         * tests/test-lseek.sh: New file.
33322         * MODULES.html.sh: Document lseek module.
33323         * modules/fflush (Depends-on): Add lseek, fseeko.
33324         * modules/fseeko (Depends-on): Likewise.
33325         * modules/ftello (Depends-on): Likewise.
33326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33327         broken.
33328         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33329         broken.
33330         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33331         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33332         * lib/ftello.c (rpl_ftello): Likewise.
33333         * tests/test-fseeko.c (main): Test this.
33334         * tests/test-fseeko.sh: Likewise.
33335         * tests/test-ftello.c (main): Likewise.
33336         * tests/test-ftello.sh: Likewise.
33337         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33338         implies replacing fseek.
33339         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33340         HAVE_FTELLO.
33341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33342         * modules/unistd (Makefile.am): Likewise.
33343         * lib/unistd_.h (lseek): Declare a replacement.
33344         * doc/functions/lseek.texi (lseek): Document this fix.
33345         * doc/functions/fseek.texi (fseek): Likewise.
33346         * doc/functions/ftell.texi (ftell): Likewise.
33347
33348 2007-05-24  Bruno Haible  <bruno@clisp.org>
33349
33350         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33351         in the printed representation of a NaN.
33352         * tests/test-vasprintf-posix.c (test_function): Likewise.
33353         * tests/test-snprintf-posix.h (test_function): Likewise.
33354         * tests/test-sprintf-posix.h (test_function): Likewise.
33355         Reported by Eric Blake.
33356
33357 2007-05-23  Eric Blake  <ebb9@byu.net>
33358
33359         Fix fseeko/ftello on cygwin 1.5.24.
33360         * doc/functions/fseeko.texi (fseeko): Document the fix.
33361         * doc/functions/ftello.texi (ftello): Document the fix.
33362         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33363         * doc/functions/stdout.text (stdout): New file.
33364         * doc/functions/stderr.text (stderr): New file.
33365         * doc/gnulib.texi (Function Substitutes): Use new files.
33366         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33367         prior to 1.7.0.
33368         * tests/test-ftello.c (main): Likewise for ftello.
33369         * tests/test-fseeko.sh: New file.
33370         * tests/test-ftello.sh: New file.
33371         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33372         with seekable stdin.
33373         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33375         (gl_REPLACE_FSEEKO): New macro.
33376         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33377         * modules/fseeko (Files): Distribute fseeko.c.
33378         * modules/ftello (Files): Distribute ftello.c.
33379         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33380         mode.
33381         * lib/ftello.c (rpl_ftello): New file.
33382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33383         fseeko, ftello.
33384         (gl_STDIN_LARGE_OFFSET): New macro.
33385         * modules/stdio (Makefile.am): Perform the replacement.
33386         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33387
33388 2007-05-23  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33391         GNULIB_POSIXCHECK is defined.
33392
33393 2007-05-21  Bruno Haible  <bruno@clisp.org>
33394
33395         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33396         Check also the output for NaN arguments. When cross-compiling, guess
33397         no on IRIX.
33398         * lib/vasnprintf.c: Update comments.
33399         * tests/test-vasnprintf-posix.c (strisnan): New function.
33400         (test_function): Use it.
33401         * tests/test-vasprintf-posix.c (strisnan): New function.
33402         (test_function): Use it.
33403         * tests/test-snprintf-posix.h (strisnan): New function.
33404         (test_function): Use it.
33405         * tests/test-sprintf-posix.h (strisnan): New function.
33406         (test_function): Use it.
33407         Reported by Eric Blake.
33408
33409 2007-05-20  Bruno Haible  <bruno@clisp.org>
33410
33411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33412         numbers that fails on BeOS.
33413         * doc/functions/frexpl.texi: Update.
33414
33415 2007-05-20  Jim Meyering  <jim@meyering.net>
33416
33417         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33418         forced upon us by glibc-2.6.
33419
33420 2007-05-20  Bruno Haible  <bruno@clisp.org>
33421
33422         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33423         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33424         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33425         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33426         NEED_PRINTF_INFINITE.
33427         (is_infinitel): New function.
33428         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33430         gl_PREREQ_VASNPRINTF_INFINITE.
33431         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33433         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33434         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33435         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33436         gl_PREREQ_VASNPRINTF_INFINITE.
33437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33444         * doc/functions/fprintf.texi: Update.
33445         * doc/functions/printf.texi: Update.
33446         * doc/functions/snprintf.texi: Update.
33447         * doc/functions/sprintf.texi: Update.
33448         * doc/functions/vfprintf.texi: Update.
33449         * doc/functions/vprintf.texi: Update.
33450         * doc/functions/vsnprintf.texi: Update.
33451         * doc/functions/vsprintf.texi: Update.
33452
33453 2007-05-20  Bruno Haible  <bruno@clisp.org>
33454
33455         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33456         was not found in libc.
33457         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33458
33459 2007-05-20  Bruno Haible  <bruno@clisp.org>
33460
33461         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33462         printed as "-nan" instead of "nan".
33463         * tests/test-vasprintf-posix.c (test_function): Likewise.
33464         * tests/test-snprintf-posix.h (test_function): Likewise.
33465         * tests/test-sprintf-posix.h (test_function): Likewise.
33466         Needed for HP-UX 11.
33467
33468 2007-05-20  Jim Meyering  <jim@meyering.net>
33469
33470         Fix buggy test for the fchownat-deref bug.
33471         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33472         symlink required for the run-test.  Without it, this test would
33473         always declare that fchownat doesn't work, and client code would
33474         unnecessarily use the replacement function with fixed libc.
33475         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33476         Reported by Greg Schafer.
33477
33478 2007-05-19  Bruno Haible  <bruno@clisp.org>
33479
33480         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33481         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33482         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33483         Needed for IRIX 6.5 and Solaris 2.5.1.
33484
33485 2007-05-19  Bruno Haible  <bruno@clisp.org>
33486
33487         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33488         (test_function): Skip tests involving -0.0 on platforms where
33489         -0.0 = 0.0.
33490         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33491         (test_function): Skip tests involving -0.0 on platforms where
33492         -0.0 = 0.0.
33493         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33494         (test_function): Skip tests involving -0.0 on platforms where
33495         -0.0 = 0.0.
33496         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33497         (test_function): Skip tests involving -0.0 on platforms where
33498         -0.0 = 0.0.
33499         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33500         tests.
33501         * tests/test-printf-posix.h (test_function): Likewise.
33502         * tests/test-printf-posix.output: Remove all -0.0 related results.
33503         Needed for IRIX 6.5.
33504
33505 2007-05-19  Bruno Haible  <bruno@clisp.org>
33506
33507         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33508         printed as "nan0x7fffffff" instead of "nan".
33509         * tests/test-vasprintf-posix.c (test_function): Likewise.
33510         * tests/test-snprintf-posix.h (test_function): Likewise.
33511         * tests/test-sprintf-posix.h (test_function): Likewise.
33512         * tests/test-fprintf-posix.h (NaN): Remove macro.
33513         (test_function): Remove all NaN related tests.
33514         * tests/test-printf-posix.h (NaN): Remove macro.
33515         (test_function): Remove all NaN related tests.
33516         * tests/test-printf-posix.output: Remove all NaN related results.
33517         Needed for IRIX 6.5.
33518
33519 2007-05-19  Bruno Haible  <bruno@clisp.org>
33520
33521         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33523
33524 2007-05-19  Bruno Haible  <bruno@clisp.org>
33525
33526         * lib/float_.h: New file.
33527         * m4/float_h.m4: New file.
33528         * modules/float: New file.
33529         * modules/isnanl (Dependencies): Add float.
33530         * modules/isnanl-nolibm (Dependencies): Likewise.
33531         * modules/mathl (Dependencies): Likewise.
33532         * modules/printf-frexpl (Dependencies): Likewise.
33533         * modules/signbit (Dependencies): Likewise.
33534         * modules/vasnprintf (Dependencies): Likewise.
33535         * doc/headers/float.texi: Update.
33536
33537 2007-05-19  Jim Meyering  <jim@meyering.net>
33538
33539         * lib/utimens.c (gl_futimens): Rename from futimens,
33540         now that glibc-2.6 declares futimens.
33541         * lib/utimens.h: Likewise.
33542
33543 2007-05-19  Bruno Haible  <bruno@clisp.org>
33544
33545         Avoid test failures on mingw.
33546         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33547         * tests/test-printf-posix.sh: Likewise.
33548         * tests/test-vfprintf-posix.sh: Likewise.
33549         * tests/test-vprintf-posix.sh: Likewise.
33550
33551 2007-05-19  Bruno Haible  <bruno@clisp.org>
33552
33553         Fix *printf result for NaN, Inf, -0.0 on mingw.
33554         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33555         * lib/vasnprintf.c: Include math.h and isnan.h.
33556         (is_infinite_or_zero): New function.
33557         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33558         values in the %f, %F, %e, %E, %g, %G directives.
33559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33560         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33561         gl_PRINTF_INFINITE and test its result. Invoke
33562         gl_PREREQ_VASNPRINTF_INFINITE.
33563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33564         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33569         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33570         * doc/functions/fprintf.texi: Update.
33571         * doc/functions/printf.texi: Update.
33572         * doc/functions/snprintf.texi: Update.
33573         * doc/functions/sprintf.texi: Update.
33574         * doc/functions/vfprintf.texi: Update.
33575         * doc/functions/vprintf.texi: Update.
33576         * doc/functions/vsnprintf.texi: Update.
33577         * doc/functions/vsprintf.texi: Update.
33578
33579 2007-05-19  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33582         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33583         Instead of multiplying with 10^k, set extra_zeroes to k.
33584         (scale10_round_long_double): Remove function.
33585
33586 2007-05-18  Bruno Haible  <bruno@clisp.org>
33587
33588         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33589         introduced on 2007-05-06.
33590
33591 2007-05-18  Bruno Haible  <bruno@clisp.org>
33592
33593         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33594         %g directives.
33595         * tests/test-vasprintf-posix.c (test_function): Likewise.
33596         * tests/test-snprintf-posix.h (test_function): Likewise.
33597         * tests/test-sprintf-posix.h (test_function): Likewise.
33598
33599 2007-05-18  Bruno Haible  <bruno@clisp.org>
33600
33601         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33602         (strmatch): New function.
33603         (test_function): Test the %f directive on numbers of various exponents.
33604         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33605         (strmatch): New function.
33606         (test_function): Test the %f directive on numbers of various exponents.
33607         * tests/test-snprintf-posix.h (strmatch): New function.
33608         (test_function): Test the %f directive on numbers of various exponents.
33609         * tests/test-sprintf-posix.h (strmatch): New function.
33610         (test_function): Test the %f directive on numbers of various exponents.
33611         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33612         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33613         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33614         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33615
33616 2007-05-18  Bruno Haible  <bruno@clisp.org>
33617
33618         Add support for 'long double' number output.
33619         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33620         * lib/vasnprintf.c: Include math.h and float+.h.
33621         (mp_limb_t): New type.
33622         (GMP_LIMB_BITS): New macro.
33623         (mp_twolimb_t): New type.
33624         (GMP_TWOLIMB_BITS): New macro.
33625         (mpn_t): New type.
33626         (multiply, divide, convert_to_decimal, decode_long_double,
33627         scale10_round_long_double, scale10_round_decimal_long_double,
33628         floorlog10l): New functions.
33629         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33630         for the %f, %F, %e, %E, %g, %G directives.
33631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33632         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33633         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33634         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33642         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33643         * modules/snprintf-posix (Depends-on): Likewise.
33644         * modules/sprintf-posix (Depends-on): Likewise.
33645         * modules/vasnprintf-posix (Depends-on): Likewise.
33646         * modules/vasprintf-posix (Depends-on): Likewise.
33647         * modules/vfprintf-posix (Depends-on): Likewise.
33648         * modules/vsnprintf-posix (Depends-on): Likewise.
33649         * modules/vsprintf-posix (Depends-on): Likewise.
33650         * modules/vasnprintf (Files): Add lib/float+.h.
33651         * doc/functions/fprintf.texi: Update.
33652         * doc/functions/printf.texi: Update.
33653         * doc/functions/snprintf.texi: Update.
33654         * doc/functions/sprintf.texi: Update.
33655         * doc/functions/vfprintf.texi: Update.
33656         * doc/functions/vprintf.texi: Update.
33657         * doc/functions/vsnprintf.texi: Update.
33658         * doc/functions/vsprintf.texi: Update.
33659
33660 2007-05-18  Bruno Haible  <bruno@clisp.org>
33661
33662         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33663
33664 2007-05-18  Bruno Haible  <bruno@clisp.org>
33665
33666         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33667         for printing 64-bit integers. Needed for mingw.
33668
33669 2007-05-18  Bruno Haible  <bruno@clisp.org>
33670
33671         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33672         gl_FUNC_FREXPL_WORKS.
33673         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33674
33675 2007-05-18  Bruno Haible  <bruno@clisp.org>
33676
33677         * modules/frexpl-nolibm-tests: New file.
33678
33679         * modules/frexpl-nolibm: New file.
33680         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33681
33682 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33683
33684         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33685         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33686         GCC 4.2, which otherwise issues a lot of warnings.
33687         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33688         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33689         Likewise.
33690         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33691         * modules/iconv_open (iconv.h): Likewise.
33692         * modules/locale (locale.h): Likewise.
33693         * modules/netinet_in (netinet/in.h): Likewise.
33694         * modules/sys_select (sys_select.h): Likewise.
33695         * modules/sys_socket (sys/socket.h): Likewise.
33696         * modules/sys_stat (sys/stat.h): Likewise.
33697         * modules/sysexits (sysexits.h): Likewise.
33698         * modules/unistd (unistd.h): Likewise.
33699
33700 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33701
33702         * modules/closein-tests (Makefile.am): Distribute
33703         `test-closein.sh'.
33704
33705 2007-05-17  Bruno Haible  <bruno@clisp.org>
33706
33707         * tests/test-printf-posix.output: Renamed from
33708         tests/test-fprintf-posix.out.
33709         * modules/fprintf-posix-tests: Update.
33710         * modules/printf-posix-tests: Update.
33711         * modules/vfprintf-posix-tests: Update.
33712         * modules/vprintf-posix-tests: Update.
33713         * tests/test-fprintf-posix.sh: Update.
33714         * tests/test-printf-posix.sh: Update.
33715         * tests/test-vfprintf-posix.sh: Update.
33716         * tests/test-vprintf-posix.sh: Update.
33717         Reported by Ralf Wildenhues.
33718
33719 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33720
33721         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33722         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33723         GCC 4.2, which otherwise issues a lot of warnings.
33724         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33725         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33726         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33727         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33728         it should no longer be needed.
33729         * lib/string_.h: Likewise.
33730         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33731         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33732         * modules/inttypes (inttypes.h): Likewise.
33733         * modules/math (math.h): Likewise.
33734         * modules/search (search.h): Likewise.
33735         * modules/signal (signal.h): Likewise.
33736         * modules/stdint (stdint.h): Likewise.
33737         * modules/stdio (stdio.h): Likewise.
33738         * modules/stdlib (stdlib.h): Likewise.
33739         * modules/string (string.h): Likewise.
33740         * modules/sys_time (sys/time.h): Likewise.
33741         * modules/time (time.h): Likewise.
33742         * modules/wchar (wchar.h): Likewise.
33743         * modules/wctype (wtype.h): Likewise.
33744
33745 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33746
33747         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33748
33749 2007-05-13  Bruno Haible  <bruno@clisp.org>
33750
33751         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33752         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33753         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33754         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33755         (gl_PREREQ_STRTOK_R): Don't require it here.
33756
33757 2007-05-13  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33760         when used in C++ mode.
33761
33762 2007-05-12  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/linebuffer.h: Tweak doc.
33765         * lib/linebuffer.c: Likewise.
33766
33767 2007-05-12  James Youngman  <jay@gnu.org>
33768
33769         * lib/linebuffer.c (readlinebuffer_delim): New function,
33770         like readlinebuffer, but use a caller-specified delimiter.
33771         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33772         as the delimiter.
33773         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33774
33775 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33776
33777         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33778         * modules/openat (Files): Remove openat-die.c.
33779         (Depends-on): Add openat-die.
33780         * modules/openat-die: New module.
33781
33782 2007-05-06  Bruno Haible  <bruno@clisp.org>
33783
33784         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33785         Update with info about Cygwin.
33786         * doc/functions/fprintf.texi: Update.
33787         * doc/functions/printf.texi: Update.
33788         * doc/functions/snprintf.texi: Update.
33789         * doc/functions/sprintf.texi: Update.
33790         * doc/functions/vfprintf.texi: Update.
33791         * doc/functions/vprintf.texi: Update.
33792         * doc/functions/vsnprintf.texi: Update.
33793         * doc/functions/vsprintf.texi: Update.
33794         Reported by Eric Blake.
33795
33796 2007-05-06  Bruno Haible  <bruno@clisp.org>
33797
33798         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33799         padding ourselves for the floating-point directives.
33800         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33803         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33804         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33806         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33807         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33808         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33812         * tests/test-snprintf-posix.h (test_function): Also check the width
33813         and some flags in the %f directive.
33814         * tests/test-sprintf-posix.h (test_function): Likewise.
33815         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33816         * tests/test-vasprintf-posix.c (test_function): Likewise.
33817         * doc/functions/fprintf.texi: Update.
33818         * doc/functions/printf.texi: Update.
33819         * doc/functions/snprintf.texi: Update.
33820         * doc/functions/sprintf.texi: Update.
33821         * doc/functions/vfprintf.texi: Update.
33822         * doc/functions/vprintf.texi: Update.
33823         * doc/functions/vsnprintf.texi: Update.
33824         * doc/functions/vsprintf.texi: Update.
33825
33826 2007-05-06  Bruno Haible  <bruno@clisp.org>
33827
33828         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33829         pass the ' flag character to sprintf or snprintf.
33830         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33833         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33834         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33835         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33839         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33842         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33843         flag.
33844         * tests/test-sprintf-posix.h (test_function): Likewise.
33845         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33846         * tests/test-vasprintf-posix.c (test_function): Likewise.
33847         * doc/functions/fprintf.texi: Update.
33848         * doc/functions/printf.texi: Update.
33849         * doc/functions/snprintf.texi: Update.
33850         * doc/functions/sprintf.texi: Update.
33851         * doc/functions/vfprintf.texi: Update.
33852         * doc/functions/vprintf.texi: Update.
33853         * doc/functions/vsnprintf.texi: Update.
33854         * doc/functions/vsprintf.texi: Update.
33855
33856 2007-05-01  Bruno Haible  <bruno@clisp.org>
33857
33858         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33859
33860 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33861
33862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33863         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33864
33865 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33866
33867         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33868         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33869         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33870
33871 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33872
33873         * lib/argp-help.c (struct hol_entry): New member `ord'.
33874         (HOL_ENTRY_PTRCMP): Use ord for comparison
33875         (hol_sort): Initialize ord.
33876
33877 2007-05-01  Bruno Haible  <bruno@clisp.org>
33878
33879         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33880         Reported by Eric Blake.
33881         * doc/gnulib.texi (Function Substitutes): Update.
33882
33883 2007-05-01  Bruno Haible  <bruno@clisp.org>
33884
33885         * doc/functions.texi: Remove file, now redundant through
33886         doc/functions/*.texi.
33887
33888 2007-05-01  Bruno Haible  <bruno@clisp.org>
33889
33890         * modules/argp (Depends-on): Add sleep.
33891
33892 2007-05-01  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/sleep-tests: New file.
33895         * tests/test-sleep.c: New file.
33896
33897         * modules/sleep: New file.
33898         * lib/sleep.c: New file.
33899         * m4/sleep.m4: New file.
33900         * lib/unistd_.h (sleep): New declaration.
33901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33902         HAVE_SLEEP.
33903         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33904         * doc/functions/sleep.texi: Document the sleep module.
33905
33906 2007-05-01  Bruno Haible  <bruno@clisp.org>
33907
33908         * lib/sigprocmask.h: Remove file.
33909         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33910         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33911         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33912         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33913         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33914         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33915         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33916         HAVE_SIGSET_T as a shell variable.
33917         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33918         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33919         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33920         (Depends-on): Add signal. Remove verify.
33921         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33922         (Include): Mention <signal.h> instead of sigprocmask.h.
33923         * NEWS: Mention the change.
33924         * lib/fatal-signal.c: Don't include sigprocmask.h.
33925
33926 2007-05-01  Bruno Haible  <bruno@clisp.org>
33927
33928         * modules/signal: New file.
33929         * lib/signal_.h: New file.
33930         * m4/signal_h.m4: New file.
33931
33932 2007-05-01  Bruno Haible  <bruno@clisp.org>
33933
33934         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33935         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33936         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33937         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33938
33939 2007-05-01  Bruno Haible  <bruno@clisp.org>
33940
33941         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33942         configure time.
33943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33944         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33945         * modules/sys_stat (Makefile.am): Substitute their values into
33946         sys/stat.h.
33947
33948 2007-05-01  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33951         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33952         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33953
33954 2007-05-01  Bruno Haible  <bruno@clisp.org>
33955
33956         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33957         'assert' module here.
33958
33959 2007-05-01  Bruno Haible  <bruno@clisp.org>
33960
33961         * doc/functions/*.texi: New files.
33962         * doc/functions/google-ranking.txt: New file.
33963         * doc/gnulib.texi (Function Substitutes): New chapter.
33964         (ctime, inet_ntoa): Remove sections.
33965         * doc/ctime.texi: Remove file.
33966         * doc/inet_ntoa.texi: Remove file.
33967         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33968         dependencies.
33969         (%.info): New rule, specifying a --reference-limit.
33970
33971 2007-05-01  Bruno Haible  <bruno@clisp.org>
33972
33973         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33974
33975 2007-05-01  Bruno Haible  <bruno@clisp.org>
33976
33977         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33978         the portability of 'mkdir' to mingw systems.
33979
33980 2007-05-01  Bruno Haible  <bruno@clisp.org>
33981
33982         * doc/headers/google-ranking.txt: New file.
33983
33984 2007-04-30  Eric Blake  <ebb9@byu.net>
33985
33986         Prefer fseeko to fseek.
33987         * modules/getpass (Depends-on): Add fseeko.
33988         * lib/getpass.c (getpass): Use fseeko, not fseek.
33989
33990 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33991
33992         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33993         assumes the sorting is stable, while most qsort implementations
33994         are not.  Use argument addresses to ensure they never compare as
33995         equal.
33996
33997         * tests/test-argp-2.sh (usage-indent test): Fix output
33998         (func_compare): Restore diff options
33999         * tests/test-argp.c: Restore #include "progname.h"
34000
34001 2007-04-29  Bruno Haible  <bruno@clisp.org>
34002
34003         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34005         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34007         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34008         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34009         (TESTS, check_PROGRAMS): Add test-snprintf.
34010         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34011         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34012         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34013         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34014         assertions that fail on HP-UX, OSF/1, or IRIX.
34015         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34016
34017 2007-04-29  Bruno Haible  <bruno@clisp.org>
34018
34019         * MODULES.html.sh (posix_functions): Remove 'contents'.
34020
34021 2007-04-29  Karl Berry  <karl@gnu.org>
34022
34023         * config/srclist.txt (gendocs_template_min): new entry.
34024
34025 2007-04-29  Bruno Haible  <bruno@clisp.org>
34026
34027         Work around fpurge bug on BSD systems.
34028         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34029         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34030         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34031         fpurge to rpl_fpurge if the system already has this function.
34032         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34033         the case where the system already has this function. Correct invariants
34034         on BSD systems.
34035         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34036         BSD systems.
34037
34038 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34039
34040         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34041         proposed by Sven Verdoolaege.
34042
34043         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34044         options.
34045         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34046         (usage and help tests): Update
34047
34048 2007-04-29  Bruno Haible  <bruno@clisp.org>
34049
34050         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34051         Print more information in case of failure. Disable a test on BeOS.
34052
34053 2007-04-29  Bruno Haible  <bruno@clisp.org>
34054
34055         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34056         This helps debugging on systems on which no gdb is available.
34057
34058 2007-04-29  Bruno Haible  <bruno@clisp.org>
34059
34060         * lib/freading.h: Improve comments.
34061         * lib/fwriting.h: Likewise.
34062         * tests/test-freading.c (main): Don't check freading immediately after
34063         repositioning. Needed for glibc.
34064
34065 2007-04-29  Bruno Haible  <bruno@clisp.org>
34066
34067         * lib/freading.c (freading): Trivial simplification.
34068
34069 2007-04-28  Bruno Haible  <bruno@clisp.org>
34070
34071         * tests/test-fwriting.c (main): Also test the interaction between
34072         fflush and fwriting.
34073         * modules/fwriting-tests (Depends-on): Add fflush.
34074
34075         * tests/test-freading.c (main): Also test the interaction between
34076         fflush and freading.
34077         * modules/freading-tests (Depends-on): Add fflush.
34078
34079 2007-04-28  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34082         fseeko and ftello.
34083         Suggested by Eric Blake.
34084
34085 2007-04-28  Jim Meyering  <jim@meyering.net>
34086
34087         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34088         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34089         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34090
34091 2007-04-27  Eric Blake  <ebb9@byu.net>
34092
34093         * doc/headers/assert.texi (assert.h): Document assert module use.
34094
34095 2007-04-27  Bruno Haible  <bruno@clisp.org>
34096
34097         * doc/headers/*.texi: New files.
34098         * doc/gnulib.texi (Header File Substitutes): New chapter.
34099         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34100         dependencies.
34101         (standards.info ,standards.html, standards.dvi): Update dependencies.
34102         (mostlyclean, clean): New targets.
34103
34104 2007-04-27  Bruno Haible  <bruno@clisp.org>
34105
34106         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34107         * modules/sysexits (Files, Makefile.am): Update.
34108
34109         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34110         * modules/sys_socket (Files, Makefile.am): Update.
34111
34112         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34113         * modules/sys_stat (Files, Makefile.am): Update.
34114
34115 2007-04-27  Eric Blake  <ebb9@byu.net>
34116
34117         * lib/freading.h: Improve comments.
34118         * lib/fwriting.h: Likewise.
34119         * lib/fflush.c: Likewise.
34120
34121         Fix closein for mingw.
34122         * modules/closein-tests: Add tests for closein.
34123         * tests/test-closein.c: New file.
34124         * tests/test-closein.sh: Likewise.
34125         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34126         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34127
34128 2007-04-27  Bruno Haible  <bruno@clisp.org>
34129
34130         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34131         version is < 6.
34132         * lib/math_.h [__DECC]: Likewise.
34133         * lib/stdio_.h [__DECC]: Likewise.
34134         * lib/stdlib_.h [__DECC]: Likewise.
34135         * lib/string_.h [__DECC]: Likewise.
34136         * lib/time_.h [__DECC]: Likewise.
34137         * lib/wchar_.h [__DECC]: Likewise.
34138         * lib/wctype_.h [__DECC]: Likewise.
34139
34140 2007-04-27  Bruno Haible  <bruno@clisp.org>
34141
34142         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34143
34144 2007-04-27  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/fflush.c: Add comments.
34147         * modules/fpurge-tests (Depends-on): Add fflush.
34148         * modules/freadable-tests (Depends-on): Likewise.
34149         * modules/fwritable-tests (Depends-on): Likewise.
34150
34151 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34152
34153         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34154         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34155         Report by Bruno Haible <bruno@clisp.org>.
34156
34157 2007-04-26  Eric Blake  <ebb9@byu.net>
34158
34159         Fix fflush on mingw.
34160         * modules/fflush (Depends-on): Add freading.
34161         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34162         but unread data.
34163
34164 2007-04-26  Eric Blake  <ebb9@byu.net>
34165         and Bruno Haible  <bruno@clisp.org>
34166
34167         Implement freading and fwriting.
34168         * lib/freading.c: New file.
34169         * lib/freading.h: Likewise.
34170         * m4/freading.m4: Likewise.
34171         * modules/freading: Likewise.
34172         * modules/freading-tests: Likewise.
34173         * tests/test-freading.c: Likewise.
34174         * lib/fwriting.c: New file.
34175         * lib/fwriting.h: Likewise.
34176         * m4/fwriting.m4: Likewise.
34177         * modules/fwriting: Likewise.
34178         * modules/fwriting-tests: Likewise.
34179         * tests/test-fwriting.c: Likewise.
34180         * MODULES.html.sh (File stream based Input/Output): Mention them.
34181
34182 2007-04-26  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34185         'long' when we assume it.
34186         Suggested by Eric Blake.
34187
34188 2007-04-26  Bruno Haible  <bruno@clisp.org>
34189
34190         Ensure fseeko, ftello are declared on glibc systems.
34191         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34192         * modules/fseeko (configure.ac-early): Likewise.
34193         * modules/ftello (configure.ac-early): Likewise.
34194         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34195         AC_FUNC_FSEEKO for this.
34196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34197         (gl_CHECK_FSEEKO): Remove macro.
34198
34199 2007-04-26  Bruno Haible  <bruno@clisp.org>
34200
34201         * tests/test-fflush.c (main): Also check the ftell result after
34202         fflush and fseek/fseeko.
34203         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34204         file descriptor position cache in the stream.
34205         * lib/fseeko.c (rpl_fseeko): Likewise.
34206
34207 2007-04-26  Bruno Haible  <bruno@clisp.org>
34208
34209         * modules/fflush-tests (Depends-on): Add fseeko.
34210
34211 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34212             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34213
34214         * lib/argz_.h: ensure error_t definition is obtained in same
34215         mechanism system argz.h would have.
34216         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34217         argz facilities are known bad.  Err on the side of caution if
34218         cross-compiling.
34219
34220 2007-04-25  Eric Blake  <ebb9@byu.net>
34221
34222         * lib/fpurge.c (includes): Use stdlib.h for free.
34223         * tests/test-fflush.c (main): Also test fflush-fseeko.
34224
34225 2007-04-25  Bruno Haible  <bruno@clisp.org>
34226
34227         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34228         * lib/fseeko.c: New file.
34229         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34230         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34231         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34232         gl_FUNC_FSEEKO.
34233         (gl_FUNC_FSEEKO): Invoke it.
34234         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34235         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34236         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34237
34238 2007-04-25  Bruno Haible  <bruno@clisp.org>
34239
34240         * modules/fflush (Depends-on): Add ftello.
34241
34242 2007-04-25  Bruno Haible  <bruno@clisp.org>
34243
34244         * modules/ftello-tests: New file.
34245         * tests/test-ftello.c: New file.
34246
34247         * modules/ftello: New file.
34248         * m4/ftello.m4: New file.
34249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34250         HAVE_FTELLO.
34251         * lib/stdio_.h (ftello): New declaration.
34252         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34253         HAVE_FTELLO.
34254
34255 2007-04-25  Bruno Haible  <bruno@clisp.org>
34256
34257         * modules/fseeko-tests: New file.
34258         * tests/test-fseeko.c: New file.
34259
34260         * modules/fseeko: New file.
34261         * m4/fseeko.m4: New file.
34262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34263         HAVE_FSEEKO.
34264         * lib/stdio_.h (fseeko): New declaration.
34265         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34266         HAVE_FSEEKO.
34267
34268 2007-04-25  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34271
34272 2007-04-25  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34275         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34276         * tests/test-unistd.c: Likewise.
34277         * tests/test-fcntl.c: Likewise.
34278
34279 2007-04-23  Eric Blake  <ebb9@byu.net>
34280
34281         * lib/fflush.c: Fix missing include.
34282         Reported by Bruno Haible.
34283
34284 2007-04-23  Bruno Haible  <bruno@clisp.org>
34285
34286         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34287         Reported by Eric Blake.
34288
34289 2007-04-23  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34292
34293 2007-04-23  Bruno Haible  <bruno@clisp.org>
34294
34295         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34296
34297 2007-04-23  Bruno Haible  <bruno@clisp.org>
34298
34299         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34300         Needed on HP-UX 11.
34301
34302 2007-04-16  Eric Blake  <ebb9@byu.net>
34303
34304         Make fflush rely on fpurge.
34305         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34306         open coding all variants.
34307         * modules/fflush (Depends-on): Add fpurge and unistd.
34308         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34309         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34310
34311         Fix --with-tests compilation on cygwin.
34312         * modules/argmatch-tests (Makefile.am): List gnulib library first
34313         in LDADD.
34314         * modules/argp-tests (Makefile.am): Likewise.
34315         * modules/array-list-tests (Makefile.am): Likewise.
34316         * modules/array-oset-tests (Makefile.am): Likewise.
34317         * modules/avltree-list-tests (Makefile.am): Likewise.
34318         * modules/avltree-oset-tests (Makefile.am): Likewise.
34319         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34320         * modules/carray-list-tests (Makefile.am): Likewise.
34321         * modules/dirname-tests (Makefile.am): Likewise.
34322         * modules/frexp-tests (Makefile.am): Likewise.
34323         * modules/isnanl-tests (Makefile.am): Likewise.
34324         * modules/linked-list-tests (Makefile.am): Likewise.
34325         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34326         * modules/lock-tests (Makefile.am): Likewise.
34327         * modules/rbtree-list-tests (Makefile.am): Likewise.
34328         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34329         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34330         * modules/tls-tests (Makefile.am): Likewise.
34331         * modules/tsearch-tests (Makefile.am): Likewise.
34332         * modules/xvasprintf-tests (Makefile.am): Likewise.
34333
34334         Fix fpurge for cygwin.
34335         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34336         value.
34337         * modules/fpurge-tests (Depends-on): Clean up trash.
34338
34339 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34340
34341         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34342
34343         * m4/autobuild.m4: Re-indent.
34344
34345 2007-04-13  Bruno Haible  <bruno@clisp.org>
34346
34347         * modules/fpurge-tests: New file.
34348         * tests/test-fpurge.c: New file.
34349
34350         * modules/fpurge: New file.
34351         * lib/fpurge.h: New file.
34352         * lib/fpurge.c: New file.
34353         * m4/fpurge.m4: New file.
34354
34355 2007-04-13  Bruno Haible  <bruno@clisp.org>
34356
34357         * modules/fbufmode-tests: New file.
34358         * tests/test-fbufmode.c: New file.
34359
34360         * modules/fbufmode: New file.
34361         * lib/fbufmode.h: New file.
34362         * lib/fbufmode.c: New file.
34363         * m4/fbufmode.m4: New file.
34364
34365 2007-04-13  Bruno Haible  <bruno@clisp.org>
34366
34367         * modules/fwritable-tests: New file.
34368         * tests/test-fwritable.c: New file.
34369
34370         * modules/fwritable: New file.
34371         * lib/fwritable.h: New file.
34372         * lib/fwritable.c: New file.
34373         * m4/fwritable.m4: New file.
34374
34375 2007-04-13  Bruno Haible  <bruno@clisp.org>
34376
34377         * modules/freadable-tests: New file.
34378         * tests/test-freadable.c: New file.
34379
34380         * modules/freadable: New file.
34381         * lib/freadable.h: New file.
34382         * lib/freadable.c: New file.
34383         * m4/freadable.m4: New file.
34384
34385 2007-04-13  Bruno Haible  <bruno@clisp.org>
34386
34387         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34388         MOSTLYCLEANFILES.
34389
34390 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34391
34392         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34393         gzip bootstrap.conf to avoid dragging in i18n machinery.
34394         (gnulib_tool_option): Use it.
34395
34396 2007-04-13  Bruno Haible  <bruno@clisp.org>
34397
34398         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34399         %F directives.
34400         * tests/test-vasprintf-posix.c (test_function): Likewise.
34401         * tests/test-snprintf-posix.h (test_function): Likewise.
34402         * tests/test-sprintf-posix.h (test_function): Likewise.
34403         * tests/test-fprintf-posix.h (test_function): Likewise.
34404         * tests/test-printf-posix.h (test_function): Likewise.
34405         * tests/test-fprintf-posix.out: Likewise.
34406
34407 2007-04-13  Bruno Haible  <bruno@clisp.org>
34408
34409         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34410         * modules/tls-tests (configure.ac): Likewise.
34411         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34412
34413 2007-04-13  Bruno Haible  <bruno@clisp.org>
34414
34415         * lib/tls.c (glthread_tls_get): Fix return type.
34416         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34417
34418 2007-04-12  Eric Blake  <ebb9@byu.net>
34419
34420         * modules/gettime (Depends-on): Remove gettime.
34421         Reported by Dmitry V. Levin.
34422
34423 2007-04-12  Bruno Haible  <bruno@clisp.org>
34424
34425         * modules/fflush (Include): Mention <stdio.h>.
34426         * modules/strtoimax (Include): Mention <inttypes.h>.
34427         * modules/strtoumax (Include): Likewise.
34428
34429 2007-04-12  Eric Blake  <ebb9@byu.net>
34430
34431         * .cvsignore: New file.
34432         * .gitignore: Likewise.
34433
34434 2007-04-12  Bruno Haible  <bruno@clisp.org>
34435
34436         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34437         not before, since $(LDADD) often contains libgnu.a.
34438         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34439         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34440         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34441         Needed on Cygwin.
34442
34443 2007-04-12  Eric Blake  <ebb9@byu.net>
34444
34445         Work around glibc's failure to flush stdin on fclose.
34446         * lib/closein.c (close_stdin): Flush stdin before closing.
34447
34448         Work around glibc's failure to reset seekable stdin on exit.
34449         * modules/closein: New module.
34450         * lib/closein.c: New file.
34451         * lib/closein.h: Likewise.
34452         * m4/closein.m4: Likewise.
34453         * MODULES.html.sh (File stream based Input/Output): Document it.
34454
34455 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34456
34457         * gnulib-tool: Rename generated 'autobuild' script to
34458         'do-autobuild' in --create-megatestdir output.
34459
34460         * doc/gnulib.texi (Build robot for gnulib): Fix.
34461
34462 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34463
34464         * modules/sysexits (Depends-on): Add absolute-header.
34465
34466 2007-04-12  Eric Blake  <ebb9@byu.net>
34467
34468         No need to preserve errno on success.
34469         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34470         Reported by Bruno Haible.
34471
34472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34473
34474         * MODULES.html.sh (Support for maintaining and releasing
34475         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34476
34477 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34478
34479         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34480
34481 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34482
34483         * modules/autobuild: New module.
34484
34485         * m4/autobuild.m4: New file.
34486
34487 2007-04-11  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34490         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34502         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34509         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34510         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34512         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34513         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34515         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34516         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34517         Reported by Eric Blake.
34518
34519 2007-04-11  Bruno Haible  <bruno@clisp.org>
34520
34521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34522
34523 2007-04-10  Bruno Haible  <bruno@clisp.org>
34524
34525         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34526         for NaN and Infinity. Needed on FreeBSD 6.1.
34527         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34528         regarding results for "%010a" of Infinity and NaN.
34529         * tests/test-vasprintf-posix.c (test_function): Likewise.
34530         * tests/test-snprintf-posix.h (test_function): Likewise.
34531         * tests/test-sprintf-posix.h (test_function): Likewise.
34532         * tests/test-fprintf-posix.h (test_function): Likewise.
34533         * tests/test-printf-posix.h (test_function): Likewise.
34534         * tests/test-fprintf-posix.out: Likewise.
34535
34536 2007-04-10  Bruno Haible  <bruno@clisp.org>
34537
34538         * modules/locale-tests: New file.
34539         * tests/test-locale.c: New file.
34540
34541         * modules/locale: New file.
34542         * lib/locale_.h: New file.
34543         * m4/locale_h.m4: New file.
34544
34545 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34546             Bruno Haible  <bruno@clisp.org>
34547
34548         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34549         be determined, test for availability of the copysignf, copysign,
34550         copysignl functions.
34551         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34552         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34553         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34554
34555 2007-04-09  Eric Blake  <ebb9@byu.net>
34556
34557         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34558         * modules/stdio (Makefile.am): Support fflush.
34559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34560         * modules/fflush: New file.
34561         * lib/fflush.c: Likewise.
34562         * m4/fflush.m4: Likewise.
34563         * modules/fflush-tests: New test.
34564         * tests/test-fflush.c: Likewise.
34565         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34566
34567 2007-04-06  Bruno Haible  <bruno@clisp.org>
34568
34569         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34570         (VASNPRINTF): Use signbit for faster determination whether to print a
34571         minus sign.
34572         * modules/vasnprintf (Files): Remove lib/float+.h.
34573         * modules/fprintf-posix (Depends-on): Add signbit.
34574         * modules/snprintf-posix (Depends-on): Likewise.
34575         * modules/sprintf-posix (Depends-on): Likewise.
34576         * modules/vasnprintf-posix (Depends-on): Likewise.
34577         * modules/vasprintf-posix (Depends-on): Likewise.
34578         * modules/vfprintf-posix (Depends-on): Likewise.
34579         * modules/vsnprintf-posix (Depends-on): Likewise.
34580         * modules/vsprintf-posix (Depends-on): Likewise.
34581
34582 2007-04-06  Bruno Haible  <bruno@clisp.org>
34583
34584         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34585         * tests/test-frexpl.c (main): Likewise.
34586         * tests/test-ldexpl.c (main): Likewise.
34587         * modules/frexp-tests (Depends-on): Add signbit.
34588         * modules/frexpl-tests (Depdends-on): Likewise.
34589         * modules/ldexpl-tests (Depdends-on): Likewise.
34590
34591 2007-04-06  Bruno Haible  <bruno@clisp.org>
34592
34593         * modules/signbit-tests: New file.
34594         * tests/test-signbit.c: New file.
34595
34596         * modules/signbit: New file.
34597         * lib/signbitf.c: New file.
34598         * lib/signbitd.c: New file.
34599         * lib/signbitl.c: New file.
34600         * m4/signbit.m4: New file.
34601         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34602         (signbit): New macro.
34603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34604         REPLACE_SIGNBIT.
34605         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34606         REPLACE_FREXPL into math.h.
34607
34608 2007-04-06  Bruno Haible  <bruno@clisp.org>
34609
34610         * modules/isnanf-nolibm-tests: New file.
34611         * tests/test-isnanf.c: New file.
34612
34613         * modules/isnanf-nolibm: New file.
34614         * lib/isnanf.h: New file.
34615         * lib/isnanf.c: New file.
34616         * lib/isnan.c: Consider the USE_FLOAT macro.
34617         * m4/isnanf.m4: New file.
34618
34619 2007-04-06  Bruno Haible  <bruno@clisp.org>
34620
34621         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34622         (Link): New section.
34623
34624         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34625
34626 2007-04-06  Bruno Haible  <bruno@clisp.org>
34627
34628         Assume the 'long double' type.
34629         * m4/longdouble.m4: Remove file.
34630         * config/srclist.txt: Don't mention longdouble.m4.
34631         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34632         * lib/float+.h: Likewise.
34633         * lib/frexp.c: Likewise.
34634         * lib/printf-args.h: Likewise.
34635         * lib/printf-args.c: Likewise.
34636         * lib/printf-frexp.c: Likewise.
34637         * lib/printf-parse.c: Likewise.
34638         * lib/vasnprintf.c: Likewise.
34639         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34640         * m4/intl.m4: Likewise.
34641         * m4/isnanl.m4: Likewise.
34642         * m4/printf.m4: Likewise.
34643         * m4/printf-frexpl.m4: Likewise.
34644         * m4/vasnprintf.m4: Likewise.
34645         * modules/allocsa (Files): Remove m4/longdouble.m4.
34646         * modules/gettext (Files): Likewise.
34647         * modules/relocatable-prog-wrapper (Files): Likewise.
34648         * modules/vasnprintf (Files): Likewise.
34649         * modules/isnanl (Files): Likewise.
34650         (Include): Simplify.
34651         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34652         (Include): Simplify.
34653         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34654         (Include): Simplify.
34655         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34656         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34657         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34658         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34659         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34660         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34661         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34662         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34663         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34665         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34667         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34668         * tests/test-isnanl.c: Likewise.
34669         * tests/test-snprintf-posix.h: Likewise.
34670         * tests/test-sprintf-posix.h: Likewise.
34671         * tests/test-vasnprintf-posix.c: Likewise.
34672         * tests/test-vasnprintf-posix2.c: Likewise.
34673         * tests/test-vasprintf-posix.c: Likewise.
34674
34675 2007-04-06  Bruno Haible  <bruno@clisp.org>
34676
34677         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34678         * lib/math_.h [__DECC]: Include the overridden include file through
34679         #include_next, outside the double-inclusion guard.
34680         * lib/stdio_.h [__DECC]: Likewise.
34681         * lib/stdlib_.h [__DECC]: Likewise.
34682         * lib/string_.h [__DECC]: Likewise.
34683         * lib/time_.h [__DECC]: Likewise.
34684         * lib/wchar_.h [__DECC]: Likewise.
34685         * lib/wctype_.h [__DECC]: Likewise.
34686         * lib/inttypes_.h [__DECC]: Likewise.
34687         Reported by Albert Chin <china@thewrittenword.com> in
34688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34689
34690 2007-04-04  Eric Blake  <ebb9@byu.net>
34691
34692         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34693         1.5.x.
34694
34695 2007-04-04  Bruno Haible  <bruno@clisp.org>
34696
34697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34698         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34699
34700 2007-04-04  Bruno Haible  <bruno@clisp.org>
34701
34702         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34703         results for "%010a" of Infinity and NaN.
34704         * tests/test-vasprintf-posix.c (test_function): Likewise.
34705         * tests/test-snprintf-posix.h (test_function): Likewise.
34706         * tests/test-sprintf-posix.h (test_function): Likewise.
34707         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34708         * tests/test-printf-posix.h (test_function): Likewise.
34709         * tests/test-fprintf-posix.out: Update.
34710         Needed for FreeBSD 6.1.
34711
34712 2007-04-04  Bruno Haible  <bruno@clisp.org>
34713
34714         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34715         directly used by the gnulib modules nor by gnulib-tool.
34716
34717 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34718
34719         * DEPENDENCIES: Give overall description of version dependency
34720         desirability.  Use more-typical names for apps.
34721         Add shell, coreutils, diffutils, grep, tar, gzip.
34722
34723 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34724
34725         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34726
34727 2007-04-04  Karl Berry  <karl@gnu.org>
34728
34729         * MODULES.html.sh (func_module): missing '.
34730
34731 2007-04-03  Bruno Haible  <bruno@clisp.org>
34732
34733         * modules/argmatch-tests (Makefile.am): New variable
34734         test_argmatch_LDADD.
34735         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34736         * modules/array-list-tests (Makefile.am): New variable
34737         test_array_list_LDADD.
34738         * modules/array-oset-tests (Makefile.am): New variable
34739         test_array_oset_LDADD.
34740         * modules/avltree-list-tests (Makefile.am): New variable
34741         test_avltree_list_LDADD.
34742         * modules/avltree-oset-tests (Makefile.am): New variable
34743         test_avltree_oset_LDADD.
34744         * modules/avltreehash-list-tests (Makefile.am): New variable
34745         test_avltreehash_list_LDADD.
34746         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34747         test_canonicalize_lgpl_LDADD.
34748         * modules/carray-list-tests (Makefile.am): New variable
34749         test_carray_list_LDADD.
34750         * modules/dirname-tests (Makefile.am): New variable
34751         test_dirname_LDADD.
34752         * modules/linked-list-tests (Makefile.am): New variable
34753         test_linked_list_LDADD.
34754         * modules/linkedhash-list-tests (Makefile.am): New variable
34755         test_linkedhash_list_LDADD.
34756         * modules/rbtree-list-tests (Makefile.am): New variable
34757         test_rbtree_list_LDADD.
34758         * modules/rbtree-oset-tests (Makefile.am): New variable
34759         test_rbtree_oset_LDADD.
34760         * modules/rbtreehash-list-tests (Makefile.am): New variable
34761         test_rbtreehash_list_LDADD.
34762         * modules/xvasprintf-tests (Makefile.am): New variable
34763         test_xvasprintf_LDADD.
34764         Reported by Eric Blake.
34765
34766 2007-04-03  Eric Blake  <ebb9@byu.net>
34767
34768         * DEPENDENCIES: Weaken m4 requirements.
34769
34770 2007-04-03  Bruno Haible  <bruno@clisp.org>
34771
34772         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34773         * modules/isnanl-tests (configure.ac): Likewise.
34774
34775 2007-04-03  Ben Pfaff  <blp@gnu.org>
34776
34777         * modules/iconv_open: Add $(srcdir)/ to source directory
34778         references in Makefile fragments that call gperf, to fix VPATH
34779         builds.
34780
34781 2007-04-03  Bruno Haible  <bruno@clisp.org>
34782
34783         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34784         * lib/ldexpl.c: Undo last change.
34785
34786 2007-04-03  Bruno Haible  <bruno@clisp.org>
34787
34788         * modules/printf-frexpl (Depends-on): Undo last change.
34789         (Files): Add m4/ldexpl.m4.
34790
34791 2007-04-03  Bruno Haible  <bruno@clisp.org>
34792
34793         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34794         * modules/isnanl (Link): New section.
34795
34796         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34797         * modules/frexp (Link): New section.
34798
34799         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34800         * modules/frexpl (Link): New section.
34801
34802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34803         * modules/ldexpl (Link): New section.
34804
34805 2007-04-03  Bruno Haible  <bruno@clisp.org>
34806
34807         * modules/TEMPLATE-EXTENDED: New file.
34808         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34809
34810 2007-04-03  Bruno Haible  <bruno@clisp.org>
34811
34812         * DEPENDENCIES: New file.
34813         Suggested by Simon Josefsson.
34814
34815 2007-04-03  Bruno Haible  <bruno@clisp.org>
34816
34817         * doc/gnulib.texi: Escape @.
34818
34819 2007-04-03  James Youngman  <jay@gnu.org>
34820         and Paul Eggert  <eggert@cs.ucla.edu>
34821
34822         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34823         birthtime on all systems that have birthtime, not just those which
34824         use st_birthtimensec rather than st_birthtim.  Putting zero in
34825         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34826         that the birth time is not available for files on an NFS mount.
34827
34828 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34829
34830         * modules/memxor: Move back from crypto/, suggested by Bruno.
34831         * modules/crypto/hmac-sha1: Fix memxor dependency.
34832
34833         * modules/crypto/gc: Moved from ../.
34834
34835 2007-04-02  Eric Blake  <ebb9@byu.net>
34836
34837         * lib/ldexpl.c (includes): Avoid libm.
34838
34839         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34840
34841 2007-04-02  Bruno Haible  <bruno@clisp.org>
34842
34843         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34844         on IRIX.
34845
34846 2007-04-02  Bruno Haible  <bruno@clisp.org>
34847
34848         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34849         x86 or x86_64 platforms running MacOS X.
34850         Reported by Ryan Schmidt <@ryandesign.com>.
34851
34852 2007-04-02  Bruno Haible  <bruno@clisp.org>
34853
34854         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34855         i386.
34856
34857 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34858
34859         * modules/crypto/arcfour: Moved from ../.
34860         * modules/crypto/arcfour-tests: Moved from ../.
34861         * modules/crypto/arctwo: Moved from ../.
34862         * modules/crypto/arctwo-tests: Moved from ../.
34863         * modules/crypto/des: Moved from ../.
34864         * modules/crypto/des-tests: Moved from ../.
34865         * modules/crypto/gc-arcfour: Moved from ../.
34866         * modules/crypto/gc-arcfour-tests: Moved from ../.
34867         * modules/crypto/gc-arctwo: Moved from ../.
34868         * modules/crypto/gc-arctwo-tests: Moved from ../.
34869         * modules/crypto/gc-des: Moved from ../.
34870         * modules/crypto/gc-des-tests: Moved from ../.
34871         * modules/crypto/gc-hmac-md5: Moved from ../.
34872         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34873         * modules/crypto/gc-hmac-sha1: Moved from ../.
34874         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34875         * modules/crypto/gc-md2: Moved from ../.
34876         * modules/crypto/gc-md2-tests: Moved from ../.
34877         * modules/crypto/gc-md4: Moved from ../.
34878         * modules/crypto/gc-md4-tests: Moved from ../.
34879         * modules/crypto/gc-md5: Moved from ../.
34880         * modules/crypto/gc-md5-tests: Moved from ../.
34881         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34882         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34883         * modules/crypto/gc-random: Moved from ../.
34884         * modules/crypto/gc-rijndael: Moved from ../.
34885         * modules/crypto/gc-rijndael-tests: Moved from ../.
34886         * modules/crypto/gc-sha1: Moved from ../.
34887         * modules/crypto/gc-sha1-tests: Moved from ../.
34888         * modules/crypto/gc-tests: Moved from ../.
34889         * modules/crypto/hmac-md5: Moved from ../.
34890         * modules/crypto/hmac-md5-tests: Moved from ../.
34891         * modules/crypto/hmac-sha1: Moved from ../.
34892         * modules/crypto/hmac-sha1-tests: Moved from ../.
34893         * modules/crypto/md2: Moved from ../.
34894         * modules/crypto/md2-tests: Moved from ../.
34895         * modules/crypto/md4: Moved from ../.
34896         * modules/crypto/md4-tests: Moved from ../.
34897         * modules/crypto/md5: Moved from ../.
34898         * modules/crypto/md5-tests: Moved from ../.
34899         * modules/crypto/memxor: Moved from ../.
34900         * modules/crypto/rijndael: Moved from ../.
34901         * modules/crypto/rijndael-tests: Moved from ../.
34902         * modules/crypto/sha1: Moved from ../.
34903
34904 2007-03-30  James Youngman  <jay@gnu.org>
34905
34906         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34907         rename() to change the ctime of a file (because ctime is unaffected
34908         by rename on jfs2 on AIX 5.1).
34909         (main): Start by doing cleanup, in case a previous run failed leaving
34910         test files behind.
34911
34912 2007-03-31  Bruno Haible  <bruno@clisp.org>
34913
34914         Support old proprietary implementations of iconv.
34915         * modules/iconv_open: New file.
34916         * lib/iconv_.h: New file.
34917         * m4/iconv_h.m4: New file.
34918         * lib/iconv_open.c: New file.
34919         * lib/iconv_open-aix.gperf: New file.
34920         * lib/iconv_open-hpux.gperf: New file.
34921         * lib/iconv_open-irix.gperf: New file.
34922         * lib/iconv_open-osf.gperf: New file.
34923         * m4/iconv_open.m4: New file.
34924         * modules/linebreak (Depends-on): Add iconv_open.
34925         * modules/striconv (Depends-on): Likewise.
34926         * modules/striconveh (Depends-on): Likewise.
34927         * modules/unicodeio (Depends-on): Likewise.
34928         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34929         (iconv_t)(-1).
34930         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34931         conversion if cd is (iconv_t)(-1).
34932         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34933         is not possible.
34934
34935 2007-03-31  Bruno Haible  <bruno@clisp.org>
34936
34937         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34938         work on Solaris either. Protect also second use of "autodetect_jp".
34939
34940 2007-03-31  Bruno Haible  <bruno@clisp.org>
34941
34942         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34943         the function is not present.
34944
34945 2007-03-31  Bruno Haible  <bruno@clisp.org>
34946
34947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34948         the function is not present.
34949
34950 2007-03-31  Bruno Haible  <bruno@clisp.org>
34951
34952         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34953         a bug in HP-UX iconv_open().
34954
34955 2007-03-31  Bruno Haible  <bruno@clisp.org>
34956
34957         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34958         (Mathematics <math.h>): New section, add fpieee.
34959         (Input/output <stdio.h>): Add fseterr.
34960         (Mathematics <math.h>): New section, add printf-frexp.
34961         (Container data structures): Add sublist.
34962         (Core language properties): Add fpucw, inline.
34963         (Functions for greatest-width integer types <inttypes.h>): Add
34964         imaxabs, imaxdiv, inttypes.
34965         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34966         isnanl-nolibm, ldexp.
34967         (Mathematics <math.h>): New section, add printf-frexpl.
34968         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34969         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34970         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34971         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34972         (Unicode string functions): Add unistr/u*-mbtoucr.
34973         (Java): Add javacomp-script, javaexec-script.
34974         (C#): Add csharpcomp-script, csharpexec-script.
34975         (Support for building libraries and executables): Add havelib,
34976         relocatable-*.
34977         (Support for maintaining and releasing projects): Renamed from
34978         'Support for maintaining and release projects'. Add announce-gen.
34979
34980 2007-03-31  Bruno Haible  <bruno@clisp.org>
34981
34982         * README: Talk primarily about git.
34983         (git and CVS): Renamed from CVS.
34984         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34985         gnulib is available through git.
34986         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34987
34988 2007-03-30  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34991         * lib/poll_.h: Likewise.
34992         * lib/stat_.h: Likewise.
34993         * lib/sys_time_.h: Likewise.
34994         * lib/sysexit_.h: Likewise.
34995         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34996         * lib/stdbool_.h: Likewise.
34997         * lib/byteswap_.h: Add double-inclusion guard.
34998
34999 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35000
35001         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35002
35003 2007-03-30  Karl Berry  <karl@gnu.org>
35004
35005         * config/srclist-update: double space after USA in the license
35006         substitution, since that's how it's usually (?) written.
35007
35008 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35009
35010         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35011         reported by Bruno Haible.
35012
35013 2007-03-29  Bruno Haible  <bruno@clisp.org>
35014
35015         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35016         a bug in AIX iconv().
35017
35018 2007-03-29  Bruno Haible  <bruno@clisp.org>
35019
35020         * modules/ldexpl-tests: New file.
35021         * tests/test-ldexpl.c: New file.
35022
35023 2007-03-29  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/ldexpl.c: Include fpucw.h.
35026         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35027         multiplication.
35028         * modules/ldexpl (Depends-on): Add fpucw.
35029
35030 2007-03-29  Bruno Haible  <bruno@clisp.org>
35031
35032         * modules/ldexpl: New file.
35033         * m4/ldexpl.m4: New file.
35034         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35035         set.
35036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35037         REPLACE_LDEXPL.
35038         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35039         REPLACE_LDEXPL.
35040         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35041         gl_FUNC_LDEXPL_WORKS.
35042         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35043         * modules/mathl (Files): Remove lib/ldexpl.c.
35044         (Depends-on): Add ldexpl.
35045
35046 2007-03-29  Bruno Haible  <bruno@clisp.org>
35047
35048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35049
35050 2007-03-29  Bruno Haible  <bruno@clisp.org>
35051
35052         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35053         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35054         and possibly also HP-UX.
35055         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35056         work on AIX, IRIX, HP-UX, OSF/1.
35057         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35058         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35059         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35060         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35061         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35062         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35063
35064 2007-03-29  Bruno Haible  <bruno@clisp.org>
35065
35066         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35067
35068 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35069
35070         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35071         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35072
35073 2007-03-29  Eric Blake  <ebb9@byu.net>
35074
35075         * lib/acl-internal.h: Remove redundant include.
35076         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35077         Cygwin when a file is locked.
35078
35079 2007-03-29  Bruno Haible  <bruno@clisp.org>
35080
35081         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35082         file.
35083         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35084
35085 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35086
35087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35088         try to remove a parent directory if the child couldn't be removed
35089         (except for the first rmdir, which could fail because the child
35090         doesn't exist).  Problem reported by Jeff Blaine in
35091         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35092
35093 2007-03-28  Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/striconveh.c (utf8conv_carefully): New function.
35096         (mem_cd_iconveh_internal): Invoke it.
35097
35098 2007-03-28  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35101         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35102         input.
35103         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35104         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35105         unistr/u8-uctomb.
35106
35107 2007-03-28  Bruno Haible  <bruno@clisp.org>
35108
35109         * modules/unistr/u8-mbtoucr: New file.
35110         * lib/unistr/u8-mbtoucr.c: New file.
35111         * modules/unistr/u16-mbtoucr: New file.
35112         * lib/unistr/u16-mbtoucr.c: New file.
35113         * modules/unistr/u16-mbtoucr: New file.
35114         * lib/unistr/u16-mbtoucr.c: New file.
35115         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35116
35117 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35118             Bruno Haible  <bruno@clisp.org>
35119
35120         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35121         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35122         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35123
35124         * m4/stdio_h.m4: Add stubs for vasprintf too.
35125
35126         * modules/stdio: Support vasprintf in sed command.
35127
35128         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35129         vasprintf.h.  Add stdio module indicator.
35130
35131         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35132         vasprintf.h.
35133
35134         * lib/vasprintf.h: File removed.
35135
35136         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35137         * lib/vasprintf.c: Ditto.
35138         * lib/xvasprintf.c: Ditto.
35139         * tests/test-vasprintf-posix.c: Ditto.
35140         * tests/test-vasprintf.c: Ditto.
35141
35142 2007-03-27  Bruno Haible  <bruno@clisp.org>
35143
35144         Make vasnprintf multithread-safe.
35145         * lib/vasnprintf.c (decimal_point_char): New function.
35146         (VASNPRINTF): Use it.
35147         Suggested by Simon Josefsson.
35148
35149 2007-03-27  Eric Blake  <ebb9@byu.net>
35150
35151         Support sub-second birthtime on cygwin.
35152         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35153         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35154         (get_stat_birthtime): Also work with st_birthtim.
35155
35156 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35157
35158         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35159         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35160         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35161         (get_stat_birthtime_ns): Simplify compile-time tests.
35162         (get_stat_birthtime): Change the API to look like
35163         get_stat_mtime etc., except return a negative tv_nsec on error.
35164         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35165         Don't check for "spare" fields.
35166         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35167         or for struct stat.st_birthtime, as these tests aren't used.
35168         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35169
35170 2007-03-27  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/stat-time.h: Include <sys/stat.h>.
35173
35174 2007-03-27  James Youngman  <jay@gnu.org>
35175
35176         * lib/stat-time.h (get_stat_birthtime): New function for
35177           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35178         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35179           and its variants.
35180         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35181         * modules/stat-time-test: New file.
35182         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35183
35184 2007-03-26  Bruno Haible  <bruno@clisp.org>
35185
35186         Better support of signalling NaNs.
35187         * lib/atanl.c: Include isnanl.h.
35188         (atanl): Perform test for NaN at the beginning of the function and
35189         through a call to isnanl.
35190         * lib/cosl.c: Include isnanl.h.
35191         (cosl): Perform test for NaN at the beginning of the function and
35192         through a call to isnanl.
35193         * lib/ldexpl.c: Include isnanl.h.
35194         (ldexpl): Perform test for NaN through a call to isnanl.
35195         * lib/logl.c: Include isnanl.h.
35196         (logl): Perform test for NaN at the beginning of the function and
35197         through a call to isnanl.
35198         * lib/sinl.c: Include isnanl.h.
35199         (sinl): Perform test for NaN at the beginning of the function and
35200         through a call to isnanl.
35201         * lib/sqrtl.c: Include isnanl.h.
35202         (sqrtl): Perform test for NaN at the beginning of the function and
35203         through a call to isnanl.
35204         * lib/tanl.c: Include isnanl.h.
35205         (tanl): Perform test for NaN at the beginning of the function and
35206         through a call to isnanl.
35207         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35208         * modules/mathl (Depends-on): Add isnanl.
35209
35210 2007-03-26  Eric Blake  <ebb9@byu.net>
35211
35212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35213         regression in logic sense of previous patch.
35214
35215 2007-03-26  Bruno Haible  <bruno@clisp.org>
35216
35217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35218         unportable shell command "if ! ...".
35219         Reported by Ralf Wildenhues.
35220
35221 2007-03-25  Bruno Haible  <bruno@clisp.org>
35222
35223         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35224         <sysexits.h> file, and only add EX_CONFIG.
35225         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35226         absolute file name and whether it is sufficient. Substitute also
35227         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35228         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35229         ABSOLUTE_SYSEXITS_H into sysexits.h.
35230
35231 2007-03-25  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35234         hints is NULL.
35235
35236 2007-03-25  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35239         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35240
35241 2007-03-25  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/vasnprintf.c: Include langinfo.h.
35244         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35245         multithread-safe.
35246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35247         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35249         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35250         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35251         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35252         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35253         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35254         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35255         Reported by Simon Josefsson.
35256
35257 2007-03-25  Bruno Haible  <bruno@clisp.org>
35258
35259         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35260         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35261         * modules/vasnprintf (Depends-on): Add stdint.
35262
35263 2007-03-25  Bruno Haible  <bruno@clisp.org>
35264
35265         * modules/fpieee: New file.
35266         * m4/fpieee.m4: New file.
35267         * modules/isnan-nolibm (Depends-on): Add fpieee.
35268         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35269         * modules/isnanl (Depends-on): Add fpieee.
35270
35271 2007-03-25  Bruno Haible  <bruno@clisp.org>
35272
35273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35274
35275 2007-03-25  Bruno Haible  <bruno@clisp.org>
35276
35277         Avoid test failures on IRIX 6.5.
35278         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35279         (main): Use it.
35280         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35281         macros.
35282         (main): Use them.
35283
35284 2007-03-25  Bruno Haible  <bruno@clisp.org>
35285
35286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35287         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35288         exists but doesn't work.
35289         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35290         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35292         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35293
35294 2007-03-25  Bruno Haible  <bruno@clisp.org>
35295
35296         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35297         returns inf. Needed on IRIX 6.5.
35298
35299 2007-03-25  Bruno Haible  <bruno@clisp.org>
35300
35301         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35302         (main): Use isnanl instead of x != x idiom.
35303         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35304
35305         * tests/test-frexp.c: Include isnan.h.
35306         (main): Use isnan instead of x != x idiom.
35307         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35308
35309 2007-03-25  Bruno Haible  <bruno@clisp.org>
35310
35311         * tests/test-frexp.c (NaN): New function/macro.
35312         (main): Use it instead of 0.0 / 0.0.
35313         * tests/test-isnan.c (NaN): New function/macro.
35314         (main): Use it instead of 0.0 / 0.0.
35315         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35316         (test_function): Use it instead of 0.0 / 0.0.
35317         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35318         (test_function): Use it instead of 0.0 / 0.0.
35319         * tests/test-snprintf-posix.h (NaN): New function/macro.
35320         (test_function): Use it instead of 0.0 / 0.0.
35321         * tests/test-sprintf-posix.h (NaN): New function/macro.
35322         (test_function): Use it instead of 0.0 / 0.0.
35323         * tests/test-fprintf-posix.h (NaN): New function/macro.
35324         (test_function): Use it instead of 0.0 / 0.0.
35325         * tests/test-printf-posix.h (NaN): New function/macro.
35326         (test_function): Use it instead of 0.0 / 0.0.
35327
35328         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35329
35330 2007-03-25  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35333
35334 2007-03-25  Bruno Haible  <bruno@clisp.org>
35335
35336         * lib/regexec.c (merge_state_with_log): Make static.
35337
35338 2007-03-25  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/trigl.c (kernel_rem_pio2): Make static.
35341
35342 2007-03-25  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/sincosl.c (sincosl_table): Make static.
35345
35346 2007-03-25  Bruno Haible  <bruno@clisp.org>
35347
35348         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35349         if the compiler does not support C99.
35350
35351 2007-03-25  Bruno Haible  <bruno@clisp.org>
35352
35353         * modules/time (Makefile.am): Ensure all rule action lines start with a
35354         tab.
35355
35356 2007-03-24  Bruno Haible  <bruno@clisp.org>
35357
35358         * modules/tsearch-tests: New file.
35359         * tests/test-tsearch.sh: New file.
35360         * tests/test-tsearch.c: New file, mostly copied from glibc.
35361
35362         * modules/search-tests: New file.
35363         * tests/test-search.c: New file.
35364
35365         * modules/search: New file.
35366         * lib/search_.h: New file, incorporating lib/tsearch.h.
35367         * m4/search_h.m4: New file.
35368         * lib/tsearch.h: Remove file.
35369         * lib/tsearch.c: Include search.h instead of tsearch.h.
35370         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35371         HAVE_TSEARCH.
35372         * modules/tsearch (Files): Remove lib/tsearch.h.
35373         (Depends-on): Add search.
35374         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35375         (Include): Change tsearch.h into search.h.
35376
35377 2007-03-24  Bruno Haible  <bruno@clisp.org>
35378
35379         * modules/fpucw: New file.
35380         * lib/fpucw.h: New file.
35381         * lib/frexp.c: Include fpucw.h.
35382         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35383         (FUNC): Use them.
35384         * lib/printf-frexp.c: Include fpucw.h.
35385         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35386         (FUNC): Use them.
35387         * lib/vasnprintf.c: Include fpucw.h.
35388         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35389         'long double' calculations.
35390         * tests/test-frexpl.c: Include fpucw.h.
35391         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35392         * tests/test-printf-frexpl.c: Include fpucw.h.
35393         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35394         * modules/frexpl (Depends-on): Add fpucw.
35395         * modules/printf-frexpl (Depends-on): Likewise.
35396         * modules/fprintf-posix (Depends-on): Likewise.
35397         * modules/snprintf-posix (Depends-on): Likewise.
35398         * modules/sprintf-posix (Depends-on): Likewise.
35399         * modules/vasnprintf-posix (Depends-on): Likewise.
35400         * modules/vasprintf-posix (Depends-on): Likewise.
35401         * modules/vfprintf-posix (Depends-on): Likewise.
35402         * modules/vsnprintf-posix (Depends-on): Likewise.
35403         * modules/vsprintf-posix (Depends-on): Likewise.
35404         * modules/frexpl-tests (Depends-on): Likewise.
35405         * modules/printf-frexpl-tests (Depends-on): Likewise.
35406
35407 2007-03-24  Bruno Haible  <bruno@clisp.org>
35408
35409         * lib/float+.h: New file.
35410         * lib/isnan.c: Include float+.h.
35411         (SIZE): New macro.
35412         (FUNC): Compare only SIZE bytes of the value.
35413         * lib/vasnprintf.c: Include float+.h.
35414         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35415         SIZEOF_LDBL or SIZEOF_DBL bytes.
35416         * modules/isnan-nolibm (Files): Add lib/float+.h.
35417         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35418         * modules/isnanl (Files): Add lib/float+.h.
35419         * modules/vasnprintf (Files): Add lib/float+.h.
35420
35421 2007-03-24  Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35424         include isnanl-nolibm.h.
35425
35426 2007-03-24  Bruno Haible  <bruno@clisp.org>
35427
35428         * tests/test-read-file.c (main): Don't produce spurious output for
35429         expected situations. Make the test fail if it encountered unexpected
35430         results.
35431
35432 2007-03-24  Bruno Haible  <bruno@clisp.org>
35433
35434         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35435         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35436
35437 2007-03-24  Bruno Haible  <bruno@clisp.org>
35438
35439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35440
35441 2007-03-24  Bruno Haible  <bruno@clisp.org>
35442
35443         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35444         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35445
35446         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35447         * modules/utf8-ucs4: Turn into a symbolic link to module
35448         unistr/u8-mbtouc.
35449
35450         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35451         utf8-ucs4-unsafe.
35452         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35453         unistr/u8-mbtouc-unsafe.
35454
35455         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35456         * modules/utf16-ucs4: Turn into a symbolic link to module
35457         unistr/u16-mbtouc.
35458
35459         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35460         utf16-ucs4-unsafe.
35461         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35462         unistr/u16-mbtouc-unsafe.
35463
35464         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35465         * modules/ucs4-utf8: Turn into a symbolic link to module
35466         unistr/u8-ubtomb.
35467
35468         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35469         * modules/ucs4-utf16: Turn into a symbolic link to module
35470         unistr/u16-ubtomb.
35471
35472 2007-03-24  Bruno Haible  <bruno@clisp.org>
35473
35474         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35475         Enable the function only if HAVE_INLINE.
35476         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35477         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35478         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35479         Enable the function only if HAVE_INLINE.
35480         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35481         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35482         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35483         Enable the function only if HAVE_INLINE.
35484         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35485         Enable the function only if HAVE_INLINE.
35486         * modules/utf8-ucs4: Update.
35487         * modules/utf8-ucs4-unsafe: Update.
35488         * modules/utf16-ucs4: Update.
35489         * modules/utf16-ucs4-unsafe: Update.
35490         * modules/ucs4-utf8: Update.
35491         * modules/ucs4-utf16: Update.
35492
35493 2007-03-24  Bruno Haible  <bruno@clisp.org>
35494
35495         * lib/utf8-ucs4.h: Remove file.
35496         * lib/utf8-ucs4-unsafe.h: Remove file.
35497         * lib/utf16-ucs4.h: Remove file.
35498         * lib/utf16-ucs4-unsafe.h: Remove file.
35499         * lib/ucs4-utf8.h: Remove file.
35500         * lib/ucs4-utf16.h: Remove file.
35501         * lib/unistr.h: Include their previous contents.
35502         * m4/utf-ucs4.m4: Remove file.
35503         * m4/ucs4-utf.m4: Remove file.
35504         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35505         (Depends-on): Add unistr/base.
35506         (configure.ac): Remove gl_UTF_UCS4.
35507         (Makefile.am): Update.
35508         (Include): Change to unistr.h.
35509         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35510         (Depends-on): Add unistr/base.
35511         (configure.ac): Remove gl_UTF_UCS4.
35512         (Makefile.am): Update.
35513         (Include): Change to unistr.h.
35514         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35515         (Depends-on): Add unistr/base.
35516         (configure.ac): Remove gl_UTF_UCS4.
35517         (Makefile.am): Update.
35518         (Include): Change to unistr.h.
35519         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35520         (Depends-on): Add unistr/base.
35521         (configure.ac): Remove gl_UTF_UCS4.
35522         (Makefile.am): Update.
35523         (Include): Change to unistr.h.
35524         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35525         (Depends-on): Add unistr/base.
35526         (configure.ac): Remove gl_UCS4_UTF.
35527         (Makefile.am): Update.
35528         (Include): Change to unistr.h.
35529         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35530         (Depends-on): Add unistr/base.
35531         (configure.ac): Remove gl_UCS4_UTF.
35532         (Makefile.am): Update.
35533         (Include): Change to unistr.h.
35534         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35535         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35536         utf8-ucs4-unsafe.h.
35537         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35538         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35539         utf16-ucs4-unsafe.h.
35540         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35541         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35542         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35543         * lib/unistr/u8-strchr.c: Likewise.
35544         * lib/unistr/u8-strrchr.c: Likewise.
35545         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35546         * lib/unistr/u16-strchr.c: Likewise.
35547         * lib/unistr/u16-strrchr.c: Likewise.
35548         * lib/striconveh.c: Update.
35549         * lib/linebreak.c: Update.
35550
35551 2007-03-24  Bruno Haible  <bruno@clisp.org>
35552
35553         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35554         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35555
35556 2007-03-22  Bruno Haible  <bruno@clisp.org>
35557
35558         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35559
35560 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35561
35562         * MODULES.html.sh (File system functions): New module write-any-file.
35563         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35564         * m4/write-any-file.m4: New files.
35565
35566 2007-03-23  Eric Blake  <ebb9@byu.net>
35567
35568         * gnulib-tool: Rearrange space-tab sequences, since some editors
35569         like to eat them.
35570
35571 2007-03-23  Eric Blake  <ebb9@byu.net>
35572
35573         * lib/version-etc.c (version_etc_va): Update license wording to
35574         be more concise.  Recommended by Richard Stallman.
35575
35576 2007-03-22  Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/poll.c (MSG_PEEK): New fallback definition.
35579
35580 2007-03-22  Bruno Haible  <bruno@clisp.org>
35581
35582         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35583         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35584         (main): Update.
35585         Fixes a compilation error on BeOS.
35586
35587 2007-03-22  Bruno Haible  <bruno@clisp.org>
35588
35589         * modules/frexpl-tests: New file.
35590         * tests/test-frexpl.c: New file.
35591
35592         * modules/frexpl: New file.
35593         * m4/frexpl.m4: New file.
35594         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35595         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35597         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35598         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35599         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35600
35601 2007-03-22  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/frexpl.c: Share code with lib/frexp.c.
35604         * modules/mathl (Files): Add lib/frexp.c.
35605         (Depends-on): Add isnanl-nolibm.
35606
35607 2007-03-22  Bruno Haible  <bruno@clisp.org>
35608
35609         * modules/printf-frexp (Files): Add m4/frexp.m4.
35610         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35611         only if the found frexp function actually works.
35612
35613 2007-03-22  Bruno Haible  <bruno@clisp.org>
35614
35615         * lib/frexp.c: Remove older implementation that uses divisions.
35616
35617 2007-03-21  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/frexp-tests: New file.
35620         * tests/test-frexp.c: New file.
35621
35622         * modules/frexp: New file.
35623         * lib/frexp.c: New file.
35624         * m4/frexp.m4: New file.
35625         * lib/math_.h (frexp): New declaration.
35626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35627         REPLACE_FREXP.
35628         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35629
35630 2007-03-21  Bruno Haible  <bruno@clisp.org>
35631
35632         * modules/isnanl-tests: New file.
35633         * tests/test-isnanl.c: New file.
35634
35635         * modules/isnanl: New file.
35636         * lib/isnanl.h: New file.
35637         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35638         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35639         gl_FUNC_ISNANL_WORKS.
35640         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35641         New macros.
35642
35643 2007-03-21  Bruno Haible  <bruno@clisp.org>
35644
35645         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35646         lib/isnanl.h.
35647         (Include): Update.
35648         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35649         * lib/vasnprintf.c: Update.
35650         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35651         tests/test-isnanl.h, remove tests/test-isnanl.c.
35652         (Makefile.am): Update.
35653         * tests/test-isnanl-nolibm.c: New file.
35654         * tests/test-isnanl.h: New file.
35655         * tests/test-isnanl.c: Remove file.
35656
35657 2007-03-21  Jim Meyering  <jim@meyering.net>
35658
35659         When trying to open ".", treat ESTALE like EACCES.
35660         * lib/savewd.c (savewd_save): Resort to forking not just upon
35661         failure with EACCES, but also when errno is ESTALE.
35662
35663 2007-03-20  Bruno Haible  <bruno@clisp.org>
35664
35665         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35666         Needed on AIX 5.1. Reported by Matthew Woehlke.
35667
35668 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35669
35670         Suggestions by Bruno Haible:
35671         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35672         our own.
35673         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35674         * modules/acl (Depends-on): Add gettext.
35675
35676 2007-03-19  Bruno Haible  <bruno@clisp.org>
35677
35678         * modules/iconvme: Remove file.
35679         * lib/iconvme.h: Remove file.
35680         * lib/iconvme.c: Remove file.
35681         * m4/iconvme.m4: Remove file.
35682
35683 2007-03-19  Bruno Haible  <bruno@clisp.org>
35684
35685         * doc/relocatable-maint.texi: Break long shell script line.
35686         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35687
35688 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35689
35690         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35691         handle file_has_acl.
35692         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35693         * lib/acl.c: Move header inclusions and related macro defns into
35694         lib/acl-internal.h.
35695         (S_ISLNK): Remove defn, since that's now done for us.
35696         (file_has_acl): Move to lib/file-has-acl.c.
35697         Call acl_trivial if available.  This is the crucial part of the fix.
35698         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35699         shared within the library.  Rewrite a bit, partly to make it compatible
35700         with the GNU coding style.
35701         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35702         Remove unnecessary double-quotes.
35703         Don't test for acl_to_text; the build will catch that.
35704         Replace acl_entries if it doesn't exist and it is needed.
35705         Check for -lsec and acl_trivial (as used on Solaris 10).
35706         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35707         lib/file-has-acl.c.
35708         (Depends-on): Add sys_stat, for S_ISLNK.
35709
35710 2007-03-19  Ben Pfaff  <blp@gnu.org>
35711
35712         * doc/gnulib.texi: Fix typos.
35713         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35714
35715 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35716
35717         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35718         If size is zero here, buf must be zero.
35719
35720 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35721
35722         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35723         <bruno@clisp.org>.
35724
35725 2007-03-18  Bruno Haible  <bruno@clisp.org>
35726
35727         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35728         Suggested by Eric Blake.
35729
35730 2007-03-18  Ben Pfaff  <blp@gnu.org>
35731
35732         * doc/relocatable.texi: Recommend using as prefix a directory
35733         that does not exist and will never be created.  Based on
35734         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35735         and others.
35736
35737 2007-03-17  Bruno Haible  <bruno@clisp.org>
35738
35739         * lib/fchownat.c: Include lchown.h.
35740
35741 2007-03-17  Bruno Haible  <bruno@clisp.org>
35742
35743         Fix endless loop when the given allocated size was > INT_MAX.
35744         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35745         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35746         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35747         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35748         * lib/sprintf.c (sprintf): Likewise.
35749
35750 2007-03-17  Bruno Haible  <bruno@clisp.org>
35751
35752         * tests/test-argp-2.sh (func_compare): Output a context diff.
35753
35754 2007-03-17  Bruno Haible  <bruno@clisp.org>
35755
35756         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35757         locale's decimal-point character.
35758
35759 2007-03-17  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35762         before comparing it. Needed because on some platforms (e.g. x86) a
35763         'long double' occupies less bytes than sizeof (long double).
35764
35765 2007-03-17  Bruno Haible  <bruno@clisp.org>
35766
35767         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35768         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35769         * tests/test-getaddrinfo.c (simple): Likewise.
35770         * tests/test-read-file.c (main): Likewise.
35771
35772 2007-03-17  Bruno Haible  <bruno@clisp.org>
35773
35774         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35775
35776 2007-03-17  Bruno Haible  <bruno@clisp.org>
35777
35778         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35779         unused variable.
35780
35781 2007-03-17  Bruno Haible  <bruno@clisp.org>
35782
35783         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35784         * tests/test-c-strncasecmp.c: Likewise.
35785
35786 2007-03-17  Bruno Haible  <bruno@clisp.org>
35787
35788         * modules/stdlib (Depends-on): Add unistd.
35789         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35790         Needed for MacOS X 10.3.
35791
35792 2007-03-17  Bruno Haible  <bruno@clisp.org>
35793
35794         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35795
35796 2007-03-17  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35799
35800 2007-03-17  Bruno Haible  <bruno@clisp.org>
35801
35802         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35803         to reflect files copied from gnulib (with or without modifications).
35804         Suggested by Jim Meyering.
35805
35806 2007-03-17  Eric Blake  <ebb9@byu.net>
35807
35808         * NEWS: Document stdlib change from 2007-02-18.
35809
35810 2007-03-17  Jim Meyering  <jim@meyering.net>
35811
35812         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35813         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35814         someone uses a name containing shell meta-characters.
35815         Reported by Alfred M. Szmidt.
35816
35817         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35818
35819 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35820
35821         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35822         and copy gettext configuration files only if configure.ac contains
35823         a use of AM_GNU_GETTEXT_VERSION.
35824
35825 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35826
35827         * build-aux/bootstrap (gnulib_name): New variable.
35828         (gnulib_tool_options): Use it.
35829
35830 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35831
35832         * tests/test-des.c: Use new namespace.
35833
35834 2007-03-15  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35837         Reported by James Youngman <jay@gnu.org>.
35838
35839 2007-03-15  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35842         declared prototype. Needed with cc on OSF/1 5.1.
35843
35844 2007-03-15  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35847         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35848         (struct gl_list_implementation): Add dispose_fn argument to the
35849         'create_empty', 'create' methods.
35850         (struct gl_list_impl_base): Add field 'dispose_fn'.
35851         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35852         argument.
35853         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35854         dispose_fn argument.
35855         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35856         dispose_fn on the dropped values.
35857         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35858         dispose_fn argument.
35859         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35860         dropped values.
35861         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35862         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35863         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35864         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35865         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35866         argument.
35867         (gl_tree_list_free): Call dispose_fn on the dropped values.
35868         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35869         the dropped values.
35870         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35871         Add dispose_fn argument.
35872         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35873         Call dispose_fn on the dropped values.
35874         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35875         Add dispose_fn argument.
35876         (gl_sublist_create): Initialize the 'dispose_fn' field.
35877         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35878         * tests/test-array_list.c (main): Update.
35879         * tests/test-carray_list.c (main): Update.
35880         * tests/test-avltree_list.c (main): Update.
35881         * tests/test-rbtree_list.c (main): Update.
35882         * tests/test-avltreehash_list.c (main): Update.
35883         * tests/test-rbtreehash_list.c (main): Update.
35884         * tests/test-linked_list.c (main): Update.
35885         * tests/test-linkedhash_list.c (main): Update.
35886         * tests/test-array_oset.c (main): Update.
35887
35888 2007-03-15  Bruno Haible  <bruno@clisp.org>
35889
35890         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35891         (gl_oset_create_empty): Add dispose_fn argument.
35892         (struct gl_oset_implementation): Add dispose_fn argument to
35893         'create_empty' method.
35894         (struct gl_oset_impl_base): Add dispose_fn field.
35895         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35896         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35897         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35898         values.
35899         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35900         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35901         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35902         dropped value.
35903         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35904         dropped value.
35905         * tests/test-array_oset.c (main): Update.
35906         * tests/test-avltree_oset.c (main): Update.
35907         * tests/test-rbtree_oset.c (main): Update.
35908         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35909
35910 2007-03-13  Bruno Haible  <bruno@clisp.org>
35911
35912         * tests/test-stdbool.c (i): Update after last patch.
35913
35914 2007-03-12  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35917         the iswprint macro. Needed on Solaris 2.5.1.
35918
35919 2007-03-12  Bruno Haible  <bruno@clisp.org>
35920
35921         * tests/test-printf-frexp.c (main): Declare x as volatile.
35922
35923 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35924
35925         * doc/gnulib.texi (Build robot for gnulib): New section.
35926
35927 2007-03-12  Jim Meyering  <jim@meyering.net>
35928
35929         * build-aux/bootstrap: New file.
35930         * build-aux/bootstrap.conf: New file, from coreutils.
35931
35932 2007-03-11  Bruno Haible  <bruno@clisp.org>
35933
35934         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35935
35936 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35937
35938         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35939         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35940         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35941
35942 2007-03-11  Bruno Haible  <bruno@clisp.org>
35943
35944         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35945         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35946
35947 2007-03-11  Bruno Haible  <bruno@clisp.org>
35948
35949         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35950         formula. Needed for SunPRO C 5.0.
35951
35952 2007-03-11  Bruno Haible  <bruno@clisp.org>
35953
35954         * modules/long-options (Depends-on): Add getopt.
35955
35956 2007-03-11  Bruno Haible  <bruno@clisp.org>
35957
35958         * modules/modechange (Depends-on): Add stdbool.
35959
35960 2007-03-11  Bruno Haible  <bruno@clisp.org>
35961
35962         * modules/i-ring (Depends-on): Add stdbool.
35963
35964 2007-03-11  Bruno Haible  <bruno@clisp.org>
35965
35966         * modules/gc-des (Depends-on): Add stdbool.
35967
35968 2007-03-11  Bruno Haible  <bruno@clisp.org>
35969
35970         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35971
35972 2007-03-11  Bruno Haible  <bruno@clisp.org>
35973
35974         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35975
35976 2007-03-11  Bruno Haible  <bruno@clisp.org>
35977
35978         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35979
35980 2007-03-11  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/vasnprintf.c (sprintf): Undefine.
35983
35984 2007-03-11  Bruno Haible  <bruno@clisp.org>
35985
35986         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35987         initializers in SunPRO C and Compaq C compilers.
35988
35989 2007-03-11  Bruno Haible  <bruno@clisp.org>
35990
35991         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35992         decrementing code ANSI C compliant.
35993
35994 2007-03-11  Bruno Haible  <bruno@clisp.org>
35995
35996         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35997         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35998
35999 2007-03-11  Bruno Haible  <bruno@clisp.org>
36000
36001         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36002         <stdbool.h> substitute doesn't pass.
36003
36004 2007-03-11  Bruno Haible  <bruno@clisp.org>
36005
36006         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36007
36008 2007-03-11  Bruno Haible  <bruno@clisp.org>
36009
36010         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36011         script, for submission to autobuild.josefsson.org.
36012
36013 2007-03-10  Bruno Haible  <bruno@clisp.org>
36014
36015         * modules/canonicalize-lgpl-tests: New file.
36016         * tests/test-canonicalize-lgpl.sh: New file.
36017         * tests/test-canonicalize-lgpl.c: New file.
36018
36019         * modules/c-strcase-tests: New file.
36020         * tests/test-c-strcase.sh: New file.
36021         * tests/test-c-strcasecmp.c: New file.
36022         * tests/test-c-strncasecmp.c: New file.
36023
36024         * modules/atexit-tests: New file.
36025         * tests/test-atexit.sh: New file.
36026         * tests/test-atexit.c: New file.
36027
36028 2007-03-10  Bruno Haible  <bruno@clisp.org>
36029
36030         * tests/test-binary-io.sh: Use temporary filenames that are not so
36031         likely to clash with those of other tests (in a parallel make).
36032         * tests/test-binary-io.c: Likewise.
36033
36034 2007-03-10  Bruno Haible  <bruno@clisp.org>
36035
36036         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36037         fallback; use #error instead.
36038         Suggested by Simon Josefsson.
36039
36040 2007-03-10  Bruno Haible  <bruno@clisp.org>
36041
36042         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36043         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36044         first and the last.
36045
36046 2007-03-10  Bruno Haible  <bruno@clisp.org>
36047
36048         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36049
36050 2007-03-10  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36053         "make distcheck".
36054         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36055         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36056         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36057
36058 2007-03-10  Bruno Haible  <bruno@clisp.org>
36059
36060         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36061         variable.
36062         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36063         variable.
36064
36065 2007-03-09  Eric Blake  <ebb9@byu.net>
36066         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36067
36068         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36069         types are not being provided by gnulib.
36070         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36071         types are supported.
36072
36073 2007-03-10  Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/stdio_.h (__attribute__): New macro.
36076         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36077         vsprintf): Specify __attribute__ __format__ for GCC.
36078         Suggested by Eric Blake.
36079
36080 2007-03-09  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/printf-posix-tests: New file.
36083         * tests/test-printf-posix.sh: New file.
36084         * tests/test-printf-posix.c: New file.
36085
36086         * modules/printf-posix: New file.
36087         * lib/printf.c: New file.
36088         * m4/printf-posix-rpl.m4: New file.
36089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36090         REPLACE_PRINTF.
36091         * lib/stdio_.h (printf): New declaration.
36092         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36093         ____strfmon____): New macros.
36094         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36095         REPLACE_PRINTF.
36096
36097 2007-03-09  Bruno Haible  <bruno@clisp.org>
36098
36099         * tests/test-vasnprintf-posix2.sh: New file.
36100         * tests/test-vasnprintf-posix2.c: New file.
36101         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36102         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36103         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36104
36105         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36106         a locale dependent decimal point, rather than always '.'.
36107
36108 2007-03-09  Eric Blake  <ebb9@byu.net>
36109
36110         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36111         spite of platforms like Tandem/NSK that define it to -1.
36112
36113 2007-03-08  Bruno Haible  <bruno@clisp.org>
36114
36115         * modules/vprintf-posix-tests: New file.
36116         * tests/test-vprintf-posix.sh: New file.
36117         * tests/test-vprintf-posix.c: New file.
36118         * tests/test-printf-posix.h: New file.
36119
36120         * modules/vprintf-posix: New file.
36121         * lib/vprintf.c: New file.
36122         * m4/vprintf-posix.m4: New file.
36123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36124         REPLACE_VPRINTF.
36125         * lib/stdio_.h (vprintf): New declaration.
36126         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36127         REPLACE_VPRINTF.
36128
36129 2007-03-08  Bruno Haible  <bruno@clisp.org>
36130
36131         * modules/fprintf-posix-tests: New file.
36132         * tests/test-fprintf-posix.sh: New file.
36133         * tests/test-fprintf-posix.c: New file.
36134
36135         * modules/fprintf-posix: New file.
36136         * lib/fprintf.c: New file.
36137         * m4/fprintf-posix.m4: New file.
36138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36139         REPLACE_FPRINTF.
36140         * lib/stdio_.h (fprintf): New declaration.
36141         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36142         REPLACE_FPRINTF.
36143
36144 2007-03-08  Bruno Haible  <bruno@clisp.org>
36145
36146         * modules/vfprintf-posix-tests: New file.
36147         * tests/test-vfprintf-posix.sh: New file.
36148         * tests/test-vfprintf-posix.c: New file.
36149         * tests/test-fprintf-posix.h: New file.
36150         * tests/test-fprintf-posix.out: New file.
36151
36152         * modules/vfprintf-posix: New file.
36153         * lib/vfprintf.c: New file.
36154         * m4/vfprintf-posix.m4: New file.
36155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36156         REPLACE_VFPRINTF.
36157         * lib/stdio_.h (vfprintf): New declaration.
36158         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36159         REPLACE_VFPRINTF.
36160
36161 2007-03-08  Bruno Haible  <bruno@clisp.org>
36162
36163         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36164
36165 2007-03-08  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36168         instead of 'expr' invocations.
36169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36174         Suggested by Paul Eggert.
36175
36176 2007-03-08  Bruno Haible  <bruno@clisp.org>
36177
36178         * modules/fseterr-tests: New file.
36179         * tests/test-fseterr.c: New file.
36180
36181         * modules/fseterr: New file.
36182         * lib/fseterr.h: New file.
36183         * lib/fseterr.c: New file.
36184
36185 2007-03-08  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36188         * lib/getopt_.h: Likewise.
36189         * lib/mbswidth.h: Likewise.
36190         * lib/setenv.h: Likewise.
36191         * lib/vasnprintf.h: Likewise.
36192         * lib/vasprintf.h: Likewise.
36193         * lib/verror.h: Likewise.
36194         * lib/xsetenv.h: Likewise.
36195         * lib/xvasprintf.h: Likewise.
36196
36197 2007-03-08  Jim Meyering  <jim@meyering.net>
36198
36199         * users.txt: Add parted.
36200
36201         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36202
36203 2007-03-07  Bruno Haible  <bruno@clisp.org>
36204
36205         * m4/printf.m4: Make the shell script snippets copy&pastable.
36206
36207 2007-03-02  Bruno Haible  <bruno@clisp.org>
36208
36209         * lib/netinet_in_.h: New file.
36210         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36211         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36212         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36213         (Depends-on): Add absolute-header.
36214         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36215         into netinet/in.h.
36216
36217 2007-03-03  Bruno Haible  <bruno@clisp.org>
36218
36219         * lib/sys_select_.h: New file.
36220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36221         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36222         * modules/sys_select (Files): Add lib/sys_select_.h.
36223         (Depends-on): Add absolute-header.
36224         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36225         into sys/select.h.
36226
36227 2007-03-02  Bruno Haible  <bruno@clisp.org>
36228
36229         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36230         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36231         values.
36232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36233         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36234         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36235         * modules/sys_socket (Depends-on): Add absolute-header.
36236         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36237         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36238         (Include): Remove requirement of inclusion of <sys/types.h>.
36239
36240 2007-03-02  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/byteswap_.h (bswap_32): Fix formula.
36243
36244 2007-03-06  Bruno Haible  <bruno@clisp.org>
36245
36246         * modules/sprintf-posix-tests: New file.
36247         * tests/test-sprintf-posix.c: New file.
36248
36249         * modules/sprintf-posix: New file.
36250         * lib/sprintf.c: New file.
36251         * m4/sprintf-posix.m4: New file.
36252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36253         REPLACE_SPRINTF.
36254         * lib/stdio_.h (sprintf): New declaration.
36255         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36256         REPLACE_SPRINTF.
36257
36258 2007-03-06  Bruno Haible  <bruno@clisp.org>
36259
36260         * modules/vsprintf-posix-tests: New file.
36261         * tests/test-vsprintf-posix.c: New file.
36262         * tests/test-sprintf-posix.h: New file.
36263
36264         * modules/vsprintf-posix: New file.
36265         * lib/vsprintf.c: New file.
36266         * m4/vsprintf-posix.m4: New file.
36267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36268         REPLACE_VSPRINTF.
36269         * lib/stdio_.h (vsprintf): New declaration.
36270         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36271         REPLACE_VSPRINTF.
36272
36273 2007-03-06  Bruno Haible  <bruno@clisp.org>
36274
36275         * modules/vsnprintf (Depend-on): Remove minmax.
36276
36277 2007-03-06  Bruno Haible  <bruno@clisp.org>
36278
36279         * modules/snprintf-posix-tests: New file.
36280         * tests/test-snprintf-posix.c: New file.
36281
36282         * modules/snprintf-posix: New file.
36283         * m4/snprintf-posix.m4: New file.
36284         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36285         gl_FUNC_SNPRINTF.
36286         (gl_FUNC_SNPRINTF): Invoke it.
36287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36288         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36289         is set.
36290         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36291
36292 2007-03-06  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/vsnprintf-posix-tests: New file.
36295         * tests/test-vsnprintf-posix.c: New file.
36296         * tests/test-snprintf-posix.h: New file.
36297
36298         * modules/vsnprintf-posix: New file.
36299         * m4/vsnprintf-posix.m4: New file.
36300         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36301         gl_FUNC_VSNPRINTF.
36302         (gl_FUNC_VSNPRINTF): Invoke it.
36303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36304         * lib/stdio_.h (vsnprintf): Define as a replacement if
36305         REPLACE_VSNPRINTF is set.
36306         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36307
36308 2007-03-06  Bruno Haible  <bruno@clisp.org>
36309
36310         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36311         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36312
36313 2007-03-06  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36316         (asinl): Declare also if HAVE_DECL_ASINL is set.
36317         (atanl): Declare also if HAVE_DECL_ATANL is set.
36318         (ceill): Declare also if HAVE_DECL_CEILL is set.
36319         (cosl): Declare also if HAVE_DECL_COSL is set.
36320         (expl): Declare also if HAVE_DECL_EXPL is set.
36321         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36322         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36323         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36324         (logl): Declare also if HAVE_DECL_LOGL is set.
36325         (sinl): Declare also if HAVE_DECL_SINL is set.
36326         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36327         (tanl): Declare also if HAVE_DECL_TANL is set.
36328         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36330         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36331         declaration of frexpl, ldexpl.
36332         * modules/printf-frexpl (Depends-on): Add math.
36333         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36334
36335 2007-03-05  Bruno Haible  <bruno@clisp.org>
36336
36337         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36338         frexpl and ldexpl are declared.
36339         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36340
36341 2007-03-05  Bruno Haible  <bruno@clisp.org>
36342
36343         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36344         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36345
36346 2007-03-05  Bruno Haible  <bruno@clisp.org>
36347
36348         * lib/stdio_.h: Include <stddef.h>.
36349
36350 2007-03-05  Bruno Haible  <bruno@clisp.org>
36351
36352         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36353
36354 2007-03-05  Bruno Haible  <bruno@clisp.org>
36355
36356         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36357         NetBSD 4, from Ralf Wildenhues.
36358
36359 2007-03-04  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/vasprintf.h: Update #if logic for the case when the functions
36362         exist but are overridden.
36363
36364 2007-03-04  Bruno Haible  <bruno@clisp.org>
36365
36366         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36367         implementations: glibc-2.4 and MacOS X 10.3.
36368         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36369         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36370         * tests/test-vasprintf-posix.c (test_function): Likewise.
36371
36372 2007-03-04  Bruno Haible  <bruno@clisp.org>
36373
36374         * modules/vasprintf-posix-tests: New file.
36375         * tests/test-vasprintf-posix.c: New file.
36376
36377         * modules/vasprintf-posix: New file.
36378         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36379         defined.
36380         * m4/vasprintf-posix.m4: New file.
36381         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36382         gl_FUNC_VASPRINTF.
36383         (gl_FUNC_VASPRINTF): Invoke it.
36384         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36385         here.
36386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36387
36388 2007-03-04  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36391         REPLACE_GETTIMEOFDAY.
36392         * modules/sys_time (Makefile.am): Likewise.
36393         * m4/sys_time_h.m4: Likewise.
36394         * m4/gettimeofday.m4: Likewise.
36395
36396 2007-03-04  Bruno Haible  <bruno@clisp.org>
36397
36398         * modules/vasnprintf-posix-tests: New file.
36399         * tests/test-vasnprintf-posix.c: New file.
36400
36401         * modules/vasnprintf-posix: New file.
36402         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36403         printf-frexpl.h.
36404         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36405         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36406         REPLACE_VASNPRINTF is defined.
36407         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36408         gl_FUNC_VASNPRINTF.
36409         (gl_FUNC_VASNPRINTF): Invoke it.
36410         * m4/vasnprintf-posix.m4: New file.
36411         * m4/printf.m4: New file.
36412
36413 2007-03-04  Bruno Haible  <bruno@clisp.org>
36414
36415         Compile progreloc.c only if --enable-relocatable is specified.
36416         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36417         if --enable-relocatable was specified.
36418         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36419         lib_SOURCES.
36420
36421 2007-03-04  Jim Meyering  <jim@meyering.net>
36422
36423         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36424         Use it consistently, rather than enumerating errno constants.
36425
36426 2007-03-04  Bruno Haible  <bruno@clisp.org>
36427
36428         * modules/xvasprintf-tests: New file.
36429         * tests/test-xvasprintf.c: New file.
36430
36431         * modules/vasprintf-tests: New file.
36432         * tests/test-vasprintf.c: New file.
36433
36434         * modules/vasnprintf-tests: New file.
36435         * tests/test-vasnprintf.c: New file.
36436
36437         * modules/vsnprintf-tests: New file.
36438         * tests/test-vsnprintf.c: New file.
36439
36440         * modules/snprintf-tests: New file.
36441         * tests/test-snprintf.c: New file.
36442
36443 2007-03-04  Bruno Haible  <bruno@clisp.org>
36444
36445         Compile relocatable.c only if --enable-relocatable is specified.
36446         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36447         gl_RELOCATABLE_LIBRARY.
36448         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36449         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36450         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36451         gl_RELOCATABLE_LIBRARY.
36452         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36453         (Makefile.am): Remove lib_SOURCES.
36454         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36455         gl_RELOCATABLE_LIBRARY.
36456         (Makefile.am): Remove lib_SOURCES.
36457         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36458         always.
36459         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36460         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36461
36462 2007-03-04  Bruno Haible  <bruno@clisp.org>
36463
36464         * modules/argmatch-tests: New file.
36465         * tests/test-argmatch.c: New file.
36466
36467         * tests/test-allocsa.c (main): Halve the number of loop runs.
36468
36469         * modules/alloca-opt-tests: New file.
36470         * tests/test-alloca-opt.c: New file.
36471
36472 2007-03-04  Jim Meyering  <jim@meyering.net>
36473
36474         Work around difference between Linux ACLs and Solaris 10 ZFS.
36475         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36476         for EINVAL.
36477
36478 2007-03-03  Bruno Haible  <bruno@clisp.org>
36479
36480         * modules/relocatable-prog (Depends-on): Add back progreloc's
36481         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36482
36483 2007-03-03  Bruno Haible  <bruno@clisp.org>
36484
36485         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36486         * modules/relocatable-lib: New file.
36487
36488 2007-03-03  Bruno Haible  <bruno@clisp.org>
36489
36490         * modules/relocatable-prog: Renamed from modules/relocatable.
36491         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36492
36493 2007-03-03  Bruno Haible  <bruno@clisp.org>
36494
36495         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36496         m4/relocatable-lib.m4.
36497         (Depends-on): Remove 'relocatable'.
36498         (configure.ac): Add gl_RELOCATABLE_NOP.
36499
36500 2007-03-03  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/relocatable-prog-wrapper: New file.
36503         * modules/relocatable (Depends-on): Add it. Remove all other
36504         dependencies except progname.
36505         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36506
36507         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36508         (gl_FUNC_STRERROR): Nop.
36509         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36510
36511         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36512         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36513
36514         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36515         (gl_FUNC_READLINK): Update.
36516
36517         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36518
36519 2007-03-03  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36522         * modules/xreadlink (Depends-on): Add unistd.
36523         * modules/xreadlink-with-size (Depends-on): Likewise.
36524
36525 2007-03-03  Bruno Haible  <bruno@clisp.org>
36526
36527         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36528         extracted from gt_FUNC_SETENV.
36529         (gt_FUNC_SETENV): Remove macro.
36530         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36531         remove gt_FUNC_SETENV.
36532
36533 2007-03-03  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36536         ENABLE_RELOCATABLE here.
36537         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36538
36539 2007-03-03  Bruno Haible  <bruno@clisp.org>
36540
36541         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36542         * tests/test-rbtreehash_list.c: Include progname.h.
36543         (main): Call set_program_name.
36544
36545         * modules/rbtree-oset-tests (Depends-on): Add progname.
36546         * tests/test-rbtree_oset.c: Include progname.h.
36547         (main): Call set_program_name.
36548
36549         * modules/rbtree-list-tests (Depends-on): Add progname.
36550         * tests/test-rbtree_list.c: Include progname.h.
36551         (main): Call set_program_name.
36552
36553         * modules/linked-list-tests (Depends-on): Add progname.
36554         * tests/test-linked_list.c: Include progname.h.
36555         (main): Call set_program_name.
36556
36557 2007-03-03  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36560         All uses of __restrict changed to _Restrict_.
36561         * lib/glob_.h (__restrict): Remove macro.
36562
36563 2007-03-02  Bruno Haible  <bruno@clisp.org>
36564
36565         * modules/gettext (configure.ac): Require gettext infrastructure
36566         from version 0.16.1.
36567
36568 2007-03-02  Bruno Haible  <bruno@clisp.org>
36569
36570         * modules/linkedhash-list-tests (Depends-on): Add progname.
36571         * tests/test-linkedhash_list.c: Include progname.h.
36572         (main): Call set_program_name.
36573
36574         * modules/carray-list-tests (Depends-on): Add progname.
36575         * tests/test-carray_list.c: Include progname.h.
36576         (main): Call set_program_name.
36577
36578         * modules/avltreehash-list-tests (Depends-on): Add progname.
36579         * tests/test-avltreehash_list.c: Include progname.h.
36580         (main): Call set_program_name.
36581
36582         * modules/avltree-oset-tests (Depends-on): Add progname.
36583         * tests/test-avltree_oset.c: Include progname.h.
36584         (main): Call set_program_name.
36585
36586         * modules/avltree-list-tests (Depends-on): Add progname.
36587         * tests/test-avltree_list.c: Include progname.h.
36588         (main): Call set_program_name.
36589
36590         * modules/array-oset-tests (Depends-on): Add progname.
36591         * tests/test-array_oset.c: Include progname.h.
36592         (main): Call set_program_name.
36593
36594         * modules/array-list-tests (Depends-on): Add progname.
36595         * tests/test-array_list.c: Include progname.h.
36596         (main): Call set_program_name.
36597
36598         * modules/argp-tests (Depends-on): Add progname.
36599         * tests/test-argp.c: Include argp.h first. Include progname.h.
36600         (main): Call set_program_name.
36601
36602 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36603
36604         * doc/gnulib-tool.texi (Initial import): Reword description of
36605         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36606         limited effect even if defined after the first system include.
36607
36608 2007-03-01  Bruno Haible  <bruno@clisp.org>
36609
36610         * build-aux/config.libpath: Update to libtool-1.5.22.
36611         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36612
36613 2007-03-01  Bruno Haible  <bruno@clisp.org>
36614
36615         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36616         foo_CFLAGS.
36617         Reported by Ralf Wildenhues.
36618
36619 2007-03-01  Bruno Haible  <bruno@clisp.org>
36620
36621         * build-aux/install-reloc: Remove object files left over by some
36622         compilers.
36623         Reported by Ralf Wildenhues.
36624
36625 2007-03-01  Bruno Haible  <bruno@clisp.org>
36626
36627         * build-aux/install-reloc: Break long lines.
36628
36629 2007-03-01  Bruno Haible  <bruno@clisp.org>
36630
36631         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36632         Reported by Ralf Wildenhues.
36633
36634 2007-03-01  Bruno Haible  <bruno@clisp.org>
36635
36636         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36637         include ordering constraints.
36638
36639 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36640
36641         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36643         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36644         as another example.
36645         * lib/time_.h: Fix misspelling.
36646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36647         Require gl_HEADER_TIME_H_DEFAULTS.
36648         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36649         * m4/time_r.m4 (gl_TIME_R): Likewise.
36650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36651
36652 2007-03-01  Bruno Haible  <bruno@clisp.org>
36653
36654         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36655         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36656
36657 2007-03-01  Jim Meyering  <jim@meyering.net>
36658
36659         * modules/xreadlink (Maintainer): Add my name.
36660         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36661
36662 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36663             Bruno Haible  <bruno@clisp.org>
36664
36665         * build-aux/install-reloc: Compile also c-ctype.c.
36666         * build-aux/relocatable.sh.in: New file.
36667         * doc/relocatable.texi: New file.
36668         * doc/relocatable-maint.texi: New file.
36669         * doc/gnulib.texi: Include relocatable-maint.texi.
36670         * lib/progreloc.c: Include unistd.h unconditionally.
36671         * lib/relocwrapper.c: Include unistd.h unconditionally.
36672         Include c-ctype.h.
36673         (add_dotbin): Use c_tolower.
36674         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36675         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36676         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36677         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36678         to m4/relocatable-lib.m4.
36679         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36680         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36681         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36682         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36683         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36684         * modules/relocatable: New file.
36685         * modules/relocatable-lib: New file.
36686         * modules/relocatable-script: New file.
36687
36688 2007-02-28  Bruno Haible  <bruno@clisp.org>
36689
36690         Import --enable-relocatable infrastructure.
36691         * build-aux/config.libpath: New file, from GNU gettext.
36692         * build-aux/install-reloc: New file, from GNU gettext.
36693         * build-aux/reloc-ldflags: New file, from GNU gettext.
36694         * lib/relocatable.h: New file, from GNU gettext.
36695         * lib/relocatable.c: New file, from GNU gettext.
36696         * lib/relocwrapper.c: New file, from GNU gettext.
36697         * m4/relocatable.m4: New file, from GNU gettext.
36698
36699 2007-02-28  Bruno Haible  <bruno@clisp.org>
36700
36701         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36702
36703         * modules/xreadlink: New file, from GNU gettext with modifications.
36704         * lib/xreadlink.c: New file, from GNU gettext.
36705         * lib/xreadlink.h: Add comments.
36706         (xreadlink): New declaration.
36707
36708         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36709         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36710         lib/xreadlink-with-size.c.
36711         (configure.ac): Remove gl_XREADLINK invocation.
36712         (Makefile.am): Augment lib_SOURCES.
36713         * m4/xreadlink.m4: Remove file.
36714         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36715         (xreadlink_with_size): Renamed from xreadink.
36716         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36717         * modules/canonicalize (Depends-on): Replace xreadlink with
36718         xreadlink-with-size.
36719         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36720
36721 2007-02-25  Jim Meyering  <jim@meyering.net>
36722
36723         * build-aux/announce-gen: When complaining about excess arguments,
36724         list them.
36725
36726 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36727
36728         * README: Document signed integer overflow situation more
36729         accurately.
36730
36731 2007-02-25  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36734         'a' or 'A' conversion.
36735
36736 2007-02-25  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/filename: Renamed from modules/pathname.
36739         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36740         lib/concatpath.c with lib/concat-filename.c.
36741         (Makefile.am): Update.
36742         (Include): Replace pathname.h with filename.h.
36743         * lib/filename.h: Renamed from lib/pathname.h.
36744         (concatenated_filename): Renamed from concatenated_pathname.
36745         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36746         (concatenated_filename): Renamed from concatenated_pathname.
36747         * lib/findprog.c: Include filename.h instead of pathname.h.
36748         (find_in_path): Update.
36749         * lib/javacomp.c: Include filename.h instead of pathname.h.
36750         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36751         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36752         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36753         is_oldgcj_14_13_usable, is_javac_usable): Update.
36754         * lib/javaexec.c: Include filename.h instead of pathname.h.
36755         (execute_java_class): Update.
36756         * modules/findprog: Update.
36757         * modules/javacomp: Update.
36758         * modules/javaexec: Update.
36759         * MODULES.html.sh (File system functions): Add 'filename', remove
36760         'pathname'.
36761
36762 2007-02-25  Bruno Haible  <bruno@clisp.org>
36763
36764         * modules/printf-frexpl-tests: New file.
36765         * tests/test-printf-frexpl.c: New file.
36766
36767         * modules/printf-frexpl: New file.
36768         * lib/printf-frexpl.h: New file.
36769         * lib/printf-frexpl.c: New file.
36770         * m4/printf-frexpl.m4: New file.
36771
36772 2007-02-25  Bruno Haible  <bruno@clisp.org>
36773
36774         * modules/printf-frexp-tests: New file.
36775         * tests/test-printf-frexp.c: New file.
36776
36777         * modules/printf-frexp: New file.
36778         * lib/printf-frexp.h: New file.
36779         * lib/printf-frexp.c: New file.
36780         * m4/printf-frexp.m4: New file.
36781
36782 2007-02-25  Bruno Haible  <bruno@clisp.org>
36783
36784         Assume automake >= 1.10 for the tests.
36785         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36786         * modules/arctwo-tests: Likewise.
36787         * modules/argp-tests: Likewise.
36788         * modules/avltree-list-tests: Likewise.
36789         * modules/avltree-oset-tests: Likewise.
36790         * modules/avltreehash-list-tests: Likewise.
36791         * modules/carray-list-tests: Likewise.
36792         * modules/crc-tests: Likewise.
36793         * modules/des-tests: Likewise.
36794         * modules/gc-arcfour-tests: Likewise.
36795         * modules/gc-arctwo-tests: Likewise.
36796         * modules/gc-des-tests: Likewise.
36797         * modules/gc-hmac-md5-tests: Likewise.
36798         * modules/gc-hmac-sha1-tests: Likewise.
36799         * modules/gc-md2-tests: Likewise.
36800         * modules/gc-md4-tests: Likewise.
36801         * modules/gc-md5-tests: Likewise.
36802         * modules/gc-pbkdf2-sha1-tests: Likewise.
36803         * modules/gc-rijndael-tests: Likewise.
36804         * modules/gc-sha1-tests: Likewise.
36805         * modules/gc-tests: Likewise.
36806         * modules/getaddrinfo-tests: Likewise.
36807         * modules/hmac-md5-tests: Likewise.
36808         * modules/hmac-sha1-tests: Likewise.
36809         * modules/linked-list-tests: Likewise.
36810         * modules/linkedhash-list-tests: Likewise.
36811         * modules/lock-tests: Likewise.
36812         * modules/md2-tests: Likewise.
36813         * modules/md4-tests: Likewise.
36814         * modules/md5-tests: Likewise.
36815         * modules/rbtree-list-tests: Likewise.
36816         * modules/rbtree-oset-tests: Likewise.
36817         * modules/rbtreehash-list-tests: Likewise.
36818         * modules/read-file-tests: Likewise.
36819         * modules/rijndael-tests: Likewise.
36820         * modules/stdint-tests: Likewise.
36821         * modules/tls-tests: Likewise.
36822
36823 2007-02-24  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36826         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36827         function; instead check whether isnan with a double argument links.
36828         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36829         function; instead check whether isnan with a 'long double' argument
36830         links.
36831         Reported by Eric Blake <ebb9@byu.net>.
36832
36833 2007-02-24  Bruno Haible  <bruno@clisp.org>
36834
36835         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36836         defined.
36837         * lib/isnanl.c: Remove all code. Just include isnan.c.
36838         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36839
36840 2007-02-25  Jim Meyering  <jim@meyering.net>
36841
36842         Avoid conflicting types for 'unsetenv' on FreeBSD.
36843         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36844         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36845         in stdlib.h.
36846
36847 2007-02-24  Bruno Haible  <bruno@clisp.org>
36848
36849         * modules/isnanl-nolibm-tests: New file.
36850         * tests/test-isnanl.c: New file.
36851
36852         * modules/isnanl-nolibm: New file.
36853         * lib/isnanl.h: New file.
36854         * lib/isnanl.c: New file.
36855         * m4/isnanl.m4: New file.
36856
36857 2007-02-24  Bruno Haible  <bruno@clisp.org>
36858
36859         * modules/isnan-nolibm-tests: New file.
36860         * tests/test-isnan.c: New file.
36861
36862         * modules/isnan-nolibm: New file.
36863         * lib/isnan.h: New file.
36864         * lib/isnan.c: New file.
36865         * m4/isnan.m4: New file.
36866
36867 2007-02-24  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36870         assume that an exponent fits in 20 bits.
36871
36872 2007-02-24  Jim Meyering  <jim@meyering.net>
36873
36874         * m4/regex.m4: Update the description of the configure-time option,
36875         --without-included-regex, to state accurately what the defaults are,
36876         and perhaps to give people an idea why using this option is risky.
36877
36878 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36879
36880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36881         loops on small arguments.  This attempts to avoid the problem
36882         Bruno Haible reported for AIX 4.3.2 in
36883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36884
36885 2007-02-23  Bruno Haible  <bruno@clisp.org>
36886
36887         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36888         Needed for help2man.
36889
36890 2007-02-23  Karl Berry  <karl@gnu.org>
36891
36892         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36893         exists, foo.h should be cvs-ignored, not committed.
36894
36895 2007-02-23  Eric Blake  <ebb9@byu.net>
36896
36897         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36898         * lib/stat-time.h (includes): Likewise.
36899         * lib/utimecmp.c (includes): Likewise.
36900         * lib/utimens.h (includes): Likewise.
36901         * lib/getdate.y (includes): Also include "timespec.h" for use
36902         internal to the module.
36903         * modules/utimens (Depends-on): Revert yesterday's patch.
36904         * modules/nanosleep (Depends-on): Add missing dependency.
36905
36906 2007-02-22  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/glob.c: Don't include getlogin_r.h.
36909
36910 2007-02-22  Jim Meyering  <jim@meyering.net>
36911
36912         * modules/utimens (Depends-on): Add timespec, required for
36913         utimens.h's inclusion of timespec.h.
36914
36915 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36916
36917         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36918         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36919         Schwab in
36920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36921         I'll try to think of a better way to fix the Solaris problem.
36922
36923         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36924         like glibc; on Solaris 10, it fails with errno == EINVAL.
36925         POSIX says the behavior is unspecified if the first argument is NULL,
36926         so play it safe and never pass NULL to the system getcwd.
36927
36928 2007-02-21  Jim Meyering  <jim@meyering.net>
36929
36930         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36931         of gettimeofday.  It would conflict with the one now always
36932         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36933         an IRIX 6.5 build failure.
36934
36935 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36936
36937         Minor fixups to port to Solaris 10 with Sun C 5.8.
36938         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36939         * modules/getcwd (Depends-on): Add dirfd.
36940         * lib/putenv.c (putenv): #undef it.
36941         (rpl_putenv): New decl.
36942         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36943
36944 2007-02-20  Bruno Haible  <bruno@clisp.org>
36945
36946         * modules/stdio-tests: New file.
36947         * tests/test-stdio.c: New file.
36948
36949         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36950         (Depends-on): Add stdio.
36951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36952         (Include): Use <stdio.h> instead of vsnprintf.h.
36953         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36954         HAVE_DECL_VSNPRINTF.
36955         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36956
36957         * modules/snprintf (Files): Remove lib/snprintf.h.
36958         (Depends-on): Add stdio.
36959         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36960         (Include): Use <stdio.h> instead of snprintf.h.
36961         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36962         HAVE_DECL_SNPRINTF.
36963         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36964         * lib/getaddrinfo.c: Likewise.
36965
36966         * modules/stdio: New file.
36967         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36968         * lib/snprintf.h: Remove file.
36969         * lib/vsnprintf.h: Remove file.
36970         * lib/.cppi-disable: Remove snprintf.h.
36971         * m4/stdio_h.m4: New file.
36972         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36973
36974 2007-02-20  Jim Meyering  <jim@meyering.net>
36975
36976         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36977         used by e.g., mingw.  From Bruno Haible.
36978
36979 2007-02-19  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36982         warnings.
36983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36984
36985 2007-02-19  Bruno Haible  <bruno@clisp.org>
36986
36987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36988         from mingw users.
36989
36990 2007-02-19  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36993         warnings.
36994         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36995
36996 2007-02-19  Jim Meyering  <jim@meyering.net>
36997
36998         Don't use FD after a successful "fdopendir (fd)".
36999         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37000         Reset it by calling dirfd on the just-obtained DIR*.
37001
37002         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37003         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37004
37005 2007-02-18  Bruno Haible  <bruno@clisp.org>
37006
37007         * lib/readlink.c: Include <unistd.h>.
37008         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37009         HAVE_READLINK.
37010         * modules/readlink (Depends-on): Add unistd.
37011         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37012         (Include): Add <unistd.h>.
37013
37014         * lib/getlogin_r.h: Remove file.
37015         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37016         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37017         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37018         HAVE_DECL_GETLOGIN_R.
37019         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37021         (Include): Use <unistd.h> instead of getlogin_r.h.
37022
37023         * lib/getcwd.h: Remove file.
37024         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37025         * lib/xgetcwd.c: Likewise.
37026         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37027         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37028         * modules/getcwd (Files): Remove lib/getcwd.h.
37029         (Depends-on): Add unistd.
37030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37031         (Include): Use <unistd.h> instad of getcwd.h.
37032
37033         * lib/ftruncate.c: Include <unistd.h> first.
37034         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37035         Set HAVE_FTRUNCATE.
37036         * modules/ftruncate (Depends-on): Add unistd.
37037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37038
37039         * lib/fchdir.c: Include <unistd.h> first.
37040         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37042         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37043         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37044         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37045
37046         * lib/dup2.c: Include <unistd.h> first.
37047         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37048         HAVE_DUP2.
37049         * modules/dup2 (Depends-on): Add unistd.
37050         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37051
37052         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37053         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37054         REPLACE_CHOWN. Don't define chown as a macro here.
37055         * modules/chown (Depends-on): Add unistd.
37056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37057
37058         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37059         Add definition for GL_LINK_WARNING.
37060         (chown, dup2): New declarations.
37061         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37062         link warning.
37063         (ftruncate): New declaration.
37064         (getcwd): New declaration, taken from old getcwd.h.
37065         (getlogin_r): New declaration, taken from old getlogin_r.h.
37066         (readlink): New declaration.
37067         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37068         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37069         (gl_PREREQ_UNISTD): Remove macro.
37070         (gl_UNISTD_MODULE_INDICATOR): New macro.
37071         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37072         many new variables. Don't set UNISTD_H.
37073         * modules/unistd (Description): Change.
37074         (Depends-on): Add link-warning.
37075         (configure.ac): Update.
37076         (Makefile.am): Create unistd.h always. Substitute many new variables
37077         into it.
37078
37079 2007-02-18  Bruno Haible  <bruno@clisp.org>
37080
37081         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37082         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37083         HAVE_GETSUBOPT.
37084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37085         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37086         * lib/getsubopt.h: Remove file.
37087         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37088         (Depends-on): Add stdlib.
37089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37090         (Includes): Use <stdlib.h> instead of getsubopt.h.
37091         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37092         Set HAVE_GETSUBOPT.
37093         * lib/getsubopt.c: Don't include getsubopt.h.
37094
37095 2007-02-18  Bruno Haible  <bruno@clisp.org>
37096
37097         * modules/fchdir (Depends-on): Add dup2.
37098
37099 2007-02-18  Bruno Haible  <bruno@clisp.org>
37100
37101         * lib/stdlib_.h: Handle glibc's special invocation convention
37102         specially.
37103
37104 2007-02-18  Bruno Haible  <bruno@clisp.org>
37105
37106         * modules/stdlib-tests: New file.
37107         * tests/test-stdlib.c: New file.
37108
37109         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37110         (Depends-on): Add stdlib.
37111         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37112         (Includes): Use <stdlib.h> instead of mkstemp.h.
37113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37114         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37115         * lib/mkstemp.c: Don't include mkstemp.h.
37116         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37117         * lib/stdlib--.h: Don't include mkstemp.h.
37118
37119         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37120         (Depends-on): Add stdlib.
37121         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37122         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37123         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37124         HAVE_MKDTEMP.
37125         * lib/mkdtemp.c: Don't include mkdtemp.h.
37126         * lib/clean-temp.c: Don't include mkdtemp.h.
37127
37128         * modules/exit (Files): Remove lib/exit.h.
37129         (Depends-on): Add stdlib.
37130         (Makefile.am): Remove lib_SOURCES.
37131         (Include): Use <stdlib.h> instead of exit.h.
37132         * lib/argmatch.c: Don't include exit.h.
37133         * lib/execute.c: Likewise.
37134         * lib/pagealign_alloc.c: Likewise.
37135         * lib/pipe.c: Likewise.
37136         * lib/wait-process.c: Likewise.
37137         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37138         * lib/exitfail.c: Likewise.
37139         * lib/savewd.c: Likewise.
37140         * lib/xsetenv.c: Likewise.
37141
37142         * modules/stdlib: New file.
37143         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37144         and extra comments about mkstemp().
37145         * lib/exit.h: Remove file.
37146         * lib/mkdtemp.h: Remove file.
37147         * lib/mkstemp.h: Remove file.
37148         * m4/stdlib_h.m4: New file.
37149         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37150
37151 2007-02-18  Bruno Haible  <bruno@clisp.org>
37152
37153         * modules/math-tests: New file.
37154         * tests/test-math.c: New file.
37155
37156         * modules/math: New file.
37157         * modules/mathl (Files): Remove lib/mathl.h.
37158         (Depends-on): Add math.
37159         (Makefile.am): Don't mention mathl.h.
37160         (Include): Use <math.h> instead of mathl.h.
37161         * lib/math_.h: New file.
37162         * lib/mathl.h: Remove file.
37163         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37164         mathl.h.
37165         * lib/asinl.c: Likewise.
37166         * lib/atanl.c: Likewise.
37167         * lib/ceill.c: Likewise.
37168         * lib/cosl.c: Likewise.
37169         * lib/expl.c: Likewise.
37170         * lib/floorl.c: Likewise.
37171         * lib/frexpl.c: Likewise.
37172         * lib/ldexpl.c: Likewise.
37173         * lib/logl.c: Likewise.
37174         * lib/sincosl.c: Likewise.
37175         * lib/sinl.c: Likewise.
37176         * lib/sqrtl.c: Likewise.
37177         * lib/tanl.c: Likewise.
37178         * lib/trigl.c: Likewise.
37179         * m4/math_h.m4: New file.
37180         * MODULES.html.sh (Mathematics): Add math.
37181
37182 2007-02-17  Bruno Haible  <bruno@clisp.org>
37183
37184         * modules/wctype-tests: New file.
37185         * tests/test-wctype.c: New file.
37186
37187         * modules/wchar-tests: New file.
37188         * tests/test-wchar.c: New file.
37189
37190         * modules/unistd-tests: New file.
37191         * tests/test-unistd.c: New file.
37192
37193         * modules/time-tests: New file.
37194         * tests/test-time.c: New file.
37195
37196         * modules/sysexits-tests: New file.
37197         * tests/test-sysexits.c: New file.
37198
37199         * modules/sys_time-tests: New file.
37200         * tests/test-sys_time.c: New file.
37201
37202         * modules/sys_stat-tests: New file.
37203         * tests/test-sys_stat.c: New file.
37204
37205         * modules/sys_socket-tests: New file.
37206         * tests/test-sys_socket.c: New file.
37207
37208         * modules/sys_select-tests: New file.
37209         * tests/test-sys_select.c: New file.
37210
37211         * modules/string-tests: New file.
37212         * tests/test-string.c: New file.
37213
37214         * modules/stdbool-tests: New file.
37215         * tests/test-stdbool.c: New file.
37216
37217         * modules/netinet_in-tests: New file.
37218         * tests/test-netinet_in.c: New file.
37219
37220         * modules/inttypes-tests: New file.
37221         * tests/test-inttypes.c: New file.
37222
37223         * modules/fcntl-tests: New file.
37224         * tests/test-fcntl.c: New file.
37225
37226         * modules/byteswap-tests: New file.
37227         * tests/test-byteswap.c: New file.
37228
37229         * modules/arpa_inet-tests: New file.
37230         * tests/test-arpa_inet.c: New file.
37231
37232 2007-02-17  Bruno Haible  <bruno@clisp.org>
37233
37234         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37235         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37236         if the corresponding module is not enabled. Emit link warnings if
37237         the function is used nevertheless.
37238         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37239         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37240         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37241         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37242         * modules/inttypes (Depends-on): Add link-warning.
37243         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37244         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37245         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37246         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37247         * modules/imaxdiv (configure.ac): Likewise.
37248         * modules/strtoimax (configure.ac): Likewise.
37249         * modules/strtoumax (configure.ac): Likewise.
37250
37251 2007-02-17  Bruno Haible  <bruno@clisp.org>
37252
37253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37254         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37255         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37256         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37257
37258 2007-02-17  Bruno Haible  <bruno@clisp.org>
37259
37260         * modules/link-warning: New file.
37261         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37262         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37263         * modules/string (Depends-on): Add link-warning.
37264         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37265         string.h.
37266         * MODULES.html.sh (Support for building libraries and executables): Add
37267         link-warning.
37268
37269 2007-02-17  Bruno Haible  <bruno@clisp.org>
37270
37271         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37272         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37273         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37274         long lines.
37275
37276 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37277             Bruno Haible  <bruno@clisp.org>
37278
37279         * modules/tmpfile: New file.
37280         * lib/tmpfile.c: New file.
37281         * m4/tmpfile.m4: New file.
37282         * MODULES.html.sh (func_all_modules): New section "Input/output".
37283
37284 2007-02-15  Bruno Haible  <bruno@clisp.org>
37285
37286         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37287         (supports_delete_on_close): New function.
37288         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37289
37290 2007-02-14  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/mbspcasecmp-tests: New file.
37293         * tests/test-mbspcasecmp.sh: New file.
37294         * tests/test-mbspcasecmp.c: New file.
37295
37296         New module mbspcasecmp.
37297         * modules/mbspcasecmp: New file.
37298         * lib/mbspcasecmp.c: New file.
37299         * lib/string_.h (strncasecmp): Change warning message.
37300         (mbspcasecmp): New declaration.
37301         * m4/mbspcasecmp.m4: New file.
37302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37303         GNULIB_MBSPCASECMP.
37304         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37305         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37306
37307 2007-02-14  Bruno Haible  <bruno@clisp.org>
37308
37309         * modules/mbsncasecmp-tests: New file.
37310         * tests/test-mbsncasecmp.sh: New file.
37311         * tests/test-mbsncasecmp.c: New file.
37312
37313         New module mbsncasecmp.
37314         * modules/mbsncasecmp: New file.
37315         * lib/mbsncasecmp.c: New file.
37316         * lib/string_.h (mbsncasecmp): New declaration.
37317         * m4/mbsncasecmp.m4: New file.
37318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37319         GNULIB_MBSNCASECMP.
37320         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37321         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37322
37323 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37326         Verify that it doesn't overlap with our flags.
37327         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37328         do not have the desired effect in multibyte locales; instead, use
37329         mbscasecmp.
37330         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37331         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37332         we don't require GNU fnmatch ourselves (if our users require it, they
37333         should do so explicitly).
37334
37335         Fix regex code so it doesn't rely on strcasecmp.
37336         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37337         Otherwise, include gnulib's langinfo.h.
37338         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37339         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37340         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37341         * modules/regex (FILES): Remove m4/codeset.m4.
37342         (Depends-on): Add localcharset.  Remove strcase.
37343
37344 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37345
37346         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37347         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37348
37349 2007-02-13  Bruno Haible  <bruno@clisp.org>
37350
37351         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37353
37354 2007-02-12  Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37357         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37358         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37359         time warning rather than a link error.
37360
37361 2007-02-12  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37364         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37366
37367 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37368
37369         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37370         args, not 2.
37371
37372 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37373
37374         New module 'time', so that apps can include <time.h> as per
37375         POSIX and GNU instead of separate include files like time_r.h
37376         and timegm.h.  This implementation tries out a simpler approach
37377         for replacing decls in standard include files (as compared to
37378         the string module), somewhat as an experiment.
37379
37380         * config/srclist.txt: Comment out mktime.c for now.
37381         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37382         since it doesn't apply any more.  Use generic wording instead.
37383         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37384         'time'.
37385         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37386         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37387         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37388         Don't include <sys/types.h>; no longer needed since we assume C89.
37389         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37390         * lib/strftime.c: Likewise.
37391         * lib/time_r.c: Likewise.
37392         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37393         * lib/nanosleep.c: Include <time.h> first, to check interface.
37394         * lib/strptime.c: Likewise.
37395         * lib/time_r.c: Likewise.
37396         * lib/timegm.c: Likewise.
37397         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37398         needed.
37399         * lib/timegm.c: Don't include timegm.h; no longer needed.
37400         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37401         time.h now handles any problems in that area.
37402         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37403         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37404         that time.h defines struct timespec.
37405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37406         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37407         handles that.
37408         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37409         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37410         needed.  Set REPLACE_LOCALTIME.
37411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37412         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37413         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37414         nanosleep; time_h.m4 now does that.  Don't require
37415         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37416         module handles this now.
37417         * modules/getdate (Depends-on): Remove timespec.  Add time.
37418         * modules/nanosleep (Depends-on): Likewise.
37419         * modules/stat-time (Depends-on): Likewise.
37420         * modules/nanosleep (Include): Include time.h, not timespec.h.
37421         * modules/strptime (Files): Remove lib/strptime.h.
37422         (Depends-on): Add extensions, time.
37423         (Include): Include time.h, not strptime.h.
37424         * modules/time_r (Files): Remove lib/time_r.h.
37425         (Depends-on): Add time.
37426         (Include): Include time.h, not time_r.h.
37427         * modules/timegm: Likewise.
37428         * modules/timespec (Description): Now does timespec-related decls
37429         of our own, instead of struct timespec itself.
37430         (Depends-on): Add time; remove extensions.
37431         (Maintainer): Add self.
37432         * modules/utimecmp (Depends-on): Add time; remove timespec.
37433         * modules/utimens (Depends-on): Likewise.
37434         * modules/xnanosleep (Depends-on): Likewise.
37435
37436 2007-02-11  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/c-strstr.c: Include allocsa.h.
37439         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37440         * lib/c-strcasestr.c: Include allocsa.h.
37441         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37442         * lib/strcasestr.c: Include allocsa.h.
37443         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37444         * lib/mbsstr.c: Include allocsa.h.
37445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37446         allocsa/freesa instead of malloc/free.
37447         * lib/mbscasestr.c: Include allocsa.h.
37448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37449         allocsa/freesa instead of malloc/free.
37450         * modules/c-strstr (Depends-on): Add allocsa.
37451         * modules/c-strcasestr (Depends-on): Likewise.
37452         * modules/strcasestr (Depends-on): Likewise.
37453         * modules/mbsstr (Depends-on): Likewise.
37454         * modules/mbscasestr (Depends-on): Likewise.
37455
37456 2007-02-11  Bruno Haible  <bruno@clisp.org>
37457
37458         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37459
37460         * modules/mbsspn-tests: New file.
37461         * tests/test-mbsspn.sh: New file.
37462         * tests/test-mbsspn.c: New file.
37463
37464 2007-02-11  Bruno Haible  <bruno@clisp.org>
37465
37466         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37467
37468         * modules/mbspbrk-tests: New file.
37469         * tests/test-mbspbrk.sh: New file.
37470         * tests/test-mbspbrk.c: New file.
37471
37472 2007-02-11  Bruno Haible  <bruno@clisp.org>
37473
37474         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37475         unneeded cast.
37476
37477         * modules/mbscspn-tests: New file.
37478         * tests/test-mbscspn.sh: New file.
37479         * tests/test-mbscspn.c: New file.
37480
37481 2007-02-11  Bruno Haible  <bruno@clisp.org>
37482
37483         * modules/mbscasecmp-tests: New file.
37484         * tests/test-mbscasecmp.sh: New file.
37485         * tests/test-mbscasecmp.c: New file.
37486
37487 2007-02-11  Bruno Haible  <bruno@clisp.org>
37488
37489         Ensure O(n) worst-case complexity of mbscasestr.
37490         * lib/mbscasestr.c: Include stdbool.h.
37491         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37492         functions.
37493         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37494         the bookkeeping indicates that it's worth it.
37495         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37496
37497         * modules/mbscasestr-tests: New file.
37498         * tests/test-mbscasestr1.c: New file.
37499         * tests/test-mbscasestr2.sh: New file.
37500         * tests/test-mbscasestr2.c: New file.
37501         * tests/test-mbscasestr3.sh: New file.
37502         * tests/test-mbscasestr3.c: New file.
37503         * tests/test-mbscasestr4.sh: New file.
37504         * tests/test-mbscasestr4.c: New file.
37505         * m4/locale-tr.m4: New file.
37506
37507 2007-02-11  Bruno Haible  <bruno@clisp.org>
37508
37509         Ensure O(n) worst-case complexity of mbsstr.
37510         * lib/mbsstr.c: Include stdbool.h.
37511         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37512         functions.
37513         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37514         bookkeeping indicates that it's worth it.
37515         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37516
37517         * modules/mbsstr-tests: New file.
37518         * tests/test-mbsstr1.c: New file.
37519         * tests/test-mbsstr2.sh: New file.
37520         * tests/test-mbsstr2.c: New file.
37521         * tests/test-mbsstr3.sh: New file.
37522         * tests/test-mbsstr3.c: New file.
37523         * m4/locale-fr.m4: New file.
37524
37525 2007-02-11  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/mbsrchr.c (mbsrchr): Fix bug.
37528
37529         * modules/mbsrchr-tests: New file.
37530         * tests/test-mbsrchr.sh: New file.
37531         * tests/test-mbsrchr.c: New file.
37532
37533 2007-02-11  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/mbschr.c (mbschr): Fix bug.
37536
37537         * modules/mbschr-tests: New file.
37538         * tests/test-mbschr.sh: New file.
37539         * tests/test-mbschr.c: New file.
37540         * m4/locale-zh.m4: New file.
37541
37542 2007-02-11  Bruno Haible  <bruno@clisp.org>
37543
37544         Support for copying multibyte string iterators.
37545         * lib/mbiter.h: Include <string.h>.
37546         (mbiter_multi_copy): New function.
37547         (mbi_copy): New macro.
37548         * lib/mbuiter.h: Include <string.h>.
37549         (mbuiter_multi_copy): New function.
37550         (mbui_copy): New macro.
37551
37552 2007-02-11  Bruno Haible  <bruno@clisp.org>
37553
37554         New module mbslen.
37555         * modules/mbslen: New file.
37556         * lib/mbslen.c: New file.
37557         * lib/string_.h (mbslen): New declaration.
37558         * m4/mbslen.m4: New file.
37559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37560         GNULIB_MBSLEN.
37561         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37562         * MODULES.html.sh (Internationalization functions): Add mbslen.
37563
37564 2007-02-11  Bruno Haible  <bruno@clisp.org>
37565
37566         Ensure O(n) worst-case complexity of strcasestr substitute.
37567         * lib/strcasestr.c: Include stdbool.h.
37568         (knuth_morris_pratt): New function.
37569         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37570         bookkeeping indicates that it's worth it.
37571         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37572
37573         * modules/strcasestr-tests: New file.
37574         * tests/test-strcasestr.c: New file.
37575
37576 2007-02-11  Bruno Haible  <bruno@clisp.org>
37577
37578         Ensure O(n) worst-case complexity of c_strcasestr.
37579         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37580         (knuth_morris_pratt): New function.
37581         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37582         the bookkeeping indicates that it's worth it.
37583         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37584
37585         * modules/c-strcasestr-tests: New file.
37586         * tests/test-c-strcasestr.c: New file.
37587
37588 2007-02-11  Bruno Haible  <bruno@clisp.org>
37589
37590         Ensure O(n) worst-case complexity of c_strstr.
37591         * lib/c-strstr.c: Include stdbool.h, string.h.
37592         (knuth_morris_pratt): New function.
37593         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37594         bookkeeping indicates that it's worth it.
37595         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37596
37597         * lib/c-strstr.c: Complete rewrite for maintainability.
37598
37599         * modules/c-strstr-tests: New file.
37600         * tests/test-c-strstr.c: New file.
37601
37602 2007-02-11  Bruno Haible  <bruno@clisp.org>
37603
37604         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37605         5.2.1 and earlier, whereby \055 was treated just like the range
37606         delimiter '-'.
37607         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37608
37609 2007-02-08  Bruno Haible  <bruno@clisp.org>
37610
37611         * modules/regex (Depends-on): Add stdbool.
37612         Reported by Dalibor Topic <robilad@kaffe.org>.
37613
37614 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37615
37616         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37617         Prefer returning from main to exiting from it.
37618         Remove unnecessary parens after sizeof.
37619
37620 2007-02-05  Bruno Haible  <bruno@clisp.org>
37621
37622         New module mbssep.
37623         * modules/mbssep: New file.
37624         * lib/mbssep.c: New file.
37625         * lib/string_.h (strsep): Add a conditional link warning.
37626         (mbssep): New declaration.
37627         * m4/mbssep.m4: New file.
37628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37629         GNULIB_MBSSEP.
37630         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37631         * MODULES.html.sh (Internationalization functions): Add mbssep.
37632
37633 2007-02-05  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37636         Optimize search in case of 1 delimiter.
37637
37638 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37639
37640         * lib/acl.h: Include sys/types.h before sys/acl.h.
37641
37642 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37643
37644         Merge upstream fix for glibc bugzilla #3957:
37645
37646         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37647
37648         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37649         bit for RE_HAT_LISTS_NOT_NEWLINE.
37650         (build_charclass_op): Remove bogus comment.
37651
37652 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37653
37654         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37655
37656 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37657
37658         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37659         * lib/memmem.c [!defined _LIBC]: Include config.h.
37660
37661 2007-02-04  Bruno Haible  <bruno@clisp.org>
37662
37663         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37664         warning message.
37665
37666 2007-02-04  Bruno Haible  <bruno@clisp.org>
37667
37668         New module mbstok_r.
37669         * modules/mbstok_r: New file.
37670         * lib/mbstok_r.c: New file.
37671         * lib/string_.h (strtok_r): Change argument names to match the
37672         comments. Add a conditional link warning.
37673         (mbstok_r): New declaration.
37674         * m4/mbstok_r.m4: New file.
37675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37676         GNULIB_MBSTOK_R.
37677         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37678         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37679
37680 2007-02-04  Bruno Haible  <bruno@clisp.org>
37681
37682         New module mbsspn.
37683         * modules/mbsspn: New file.
37684         * lib/mbsspn.c: New file.
37685         * lib/string_.h (strspn): Add a conditional link warning.
37686         (mbsspn): New declaration.
37687         * m4/mbsspn.m4: New file.
37688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37689         GNULIB_MBSSPN.
37690         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37691         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37692
37693 2007-02-04  Bruno Haible  <bruno@clisp.org>
37694
37695         New module mbspbrk.
37696         * modules/mbspbrk: New file.
37697         * lib/mbspbrk.c: New file.
37698         * lib/string_.h (strpbrk): Add a conditional link warning.
37699         (mbspbrk): New declaration.
37700         * m4/mbspbrk.m4: New file.
37701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37702         GNULIB_MBSPBRK.
37703         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37704         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37705
37706 2007-02-04  Bruno Haible  <bruno@clisp.org>
37707
37708         New module mbscspn.
37709         * modules/mbscspn: New file.
37710         * lib/mbscspn.c: New file.
37711         * lib/string_.h (strcspn): Add a conditional link warning.
37712         (mbscspn): New declaration.
37713         * m4/mbscspn.m4: New file.
37714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37715         GNULIB_MBSCSPN.
37716         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37717         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37718
37719 2007-02-04  Bruno Haible  <bruno@clisp.org>
37720
37721         New module mbscasestr, reduced goal of strcasestr.
37722         * modules/mbscasestr: New file.
37723         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37724         (mbscasestr): Renamed from strcasestr.
37725         * lib/strcasestr.c: Don't include mbuiter.h.
37726         (strcasestr): Remove support for multibyte locales.
37727         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37728         Change the conditional link warning.
37729         (mbscasestr): New declaration.
37730         * m4/mbscasestr.m4: New file.
37731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37732         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37733         REPLACE_STRCASESTR.
37734         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37736         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37737         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37738         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37739         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37740         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37741         (Depends-on): Remove mbuiter.
37742         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37743
37744 2007-02-04  Bruno Haible  <bruno@clisp.org>
37745
37746         Simplify handling of strncasecmp.
37747         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37748         the conditional link warning.
37749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37750         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37751         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37752         * modules/strcase (configure.ac): Don't invoke
37753         gl_STRING_MODULE_INDICATOR.
37754         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37755
37756 2007-02-04  Bruno Haible  <bruno@clisp.org>
37757
37758         New module mbscasecmp, reduced goal of strcasecmp.
37759         * modules/mbscasecmp: New file.
37760         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37761         (mbscasecmp): Renamed from strcasecmp.
37762         * lib/strcasecmp.c: Don't include mbuiter.h.
37763         (strcasecmp): Remove support for multibyte locales.
37764         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37765         Change the conditional link warning.
37766         (mbscasecmp): New declaration.
37767         * m4/mbscasecmp.m4: New file.
37768         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37769         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37770         REPLACE_STRCASECMP.
37771         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37773         GNULIB_MBSCASECMP.
37774         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37775         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37776         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37777         (Depends-on): Remove mbuiter.
37778         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37779
37780 2007-02-04  Bruno Haible  <bruno@clisp.org>
37781
37782         New module mbsstr. Remove module strstr.
37783         * modules/mbsstr: New file.
37784         * modules/strstr: Remove file.
37785         * lib/mbsstr.c: Renamed from lib/strstr.c.
37786         (mbsstr): Renamed from strstr.
37787         * lib/string_.h (strstr): Remove declaration. Change the conditional
37788         link warning.
37789         (mbsstr): New declaration.
37790         * m4/mbsstr.m4: New file.
37791         * m4/strstr.m4: Remove file.
37792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37793         REPLACE_STRSTR.
37794         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37795         Don't initialize GNULIB_STRSTR.
37796         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37797         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37798         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37799         (Support for systems lacking ANSI C 89): Remove strstr.
37800
37801 2007-02-04  Bruno Haible  <bruno@clisp.org>
37802
37803         New module mbsrchr.
37804         * modules/mbsrchr: New file.
37805         * lib/mbsrchr.c: New file.
37806         * lib/string_.h (strrchr): Add a conditional link warning.
37807         (mbsrchr): New declaration.
37808         * m4/mbsrchr.m4: New file.
37809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37810         GNULIB_MBSRCHR.
37811         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37812         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37813
37814 2007-02-04  Bruno Haible  <bruno@clisp.org>
37815
37816         New module mbschr.
37817         * modules/mbschr: New file.
37818         * lib/mbschr.c: New file.
37819         * lib/string_.h (strchr): Add a conditional link warning.
37820         (mbschr): New declaration.
37821         * m4/mbschr.m4: New file.
37822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37823         GNULIB_MBSCHR.
37824         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37825         * MODULES.html.sh (Internationalization functions): Add mbschr.
37826
37827 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37828
37829         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37830
37831         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37832
37833 2007-02-04  Bruno Haible  <bruno@clisp.org>
37834
37835         New module description section 'configure.ac-early'.
37836         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37837         (func_get_autoconf_early_snippet): New function.
37838         (func_import, func_create_testdir): Use it. Remove special cases for
37839         modules 'extensions' and 'lock'.
37840         * modules/extensions (configure.ac-early): Require
37841         gl_USE_SYSTEM_EXTENSIONS.
37842         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37843
37844 2007-02-04  Bruno Haible  <bruno@clisp.org>
37845
37846         Make use of gcj-4.3's -fsource and -ftarget option.
37847         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37848         and if so try the options -fsource and -ftarget.
37849         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37850         source_version, ftarget_option, target_version arguments.
37851         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37852         (is_envjavac_oldgcj_14_14_usable): Renamed from
37853         is_envjavac_gcj_14_14_usable.
37854         (is_envjavac_oldgcj_14_13_usable): Renamed from
37855         is_envjavac_gcj_14_13_usable.
37856         (is_gcj_present): Update.
37857         (is_gcj_43, is_gcj43_usable): New functions.
37858         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37859         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37860         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37861         try the options -fsource and -ftarget.
37862
37863 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37864
37865         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37866         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37867         larger value.
37868
37869 2007-02-03  Jim Meyering  <jim@meyering.net>
37870
37871         Give tools a better chance to allocate space for very large buffers.
37872         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37873
37874         Make pwd and readlink work also when run with an unreadable parent dir
37875         on systems with openat support.
37876         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37877         provided getcwd function, even when we have openat support.
37878         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37879
37880 2007-02-02  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37883         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37884         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37885         portability problems if one of these functions is only used on specific
37886         platforms.
37887         Reported by Paul Eggert.
37888
37889 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37890
37891         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37892         is causing more trouble than it's curing.
37893         * lib/regex_internal.h (__mempcpy): Remove.
37894         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37895         (and make the code a tad smaller to boot).
37896         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37897
37898 2007-02-02  Jim Meyering  <jim@meyering.net>
37899
37900         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37901         section, not in the Makefile.am: one.
37902
37903 2007-02-02  Eric Blake  <ebb9@byu.net>
37904
37905         * lib/strchrnul.c: Always include config.h first.
37906
37907         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37908         gnulib strstr is not necessary here.
37909
37910 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37911
37912         * m4/socklen.m4: Fix typo.
37913
37914 2007-02-02  Eric Blake  <ebb9@byu.net>
37915
37916         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37917         * modules/netinet_in (Makefile.am): Likewise.
37918
37919 2007-02-01  Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/string_.h (GL_LINK_WARNING): New macro.
37922         (strcasecmp, strstr, strcasestr): If provided by the system,
37923         conditionally define as a macro that leads to a warning instead of to
37924         an error.
37925         (strncasecmp): Conditionally define as a macro that leads to a warning.
37926
37927 2007-02-01  Karl Berry  <karl@gnu.org>
37928
37929         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37930
37931 2007-02-01  Bruno Haible  <bruno@clisp.org>
37932
37933         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37934         renamings.
37935
37936 2007-02-01  Eric Blake  <ebb9@byu.net>
37937
37938         * modules/regex (Depends-on): Revert dependence on mempcpy.
37939         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37940         module's definition of mempcpy.
37941         Reported by Paul Eggert.
37942
37943 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37944
37945         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37946         the symbol XYZ before redefining it.  This fixes a problem with
37947         programs that don't use XYZ, when compiled on systems that define
37948         XYZ to something else.
37949
37950 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37951
37952         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37953         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37954         writeable to group or other and (2) is intended to have a special
37955         mode bit that is set or cleared.  In such a case, the directory
37956         should be neither group- nor other-writeable until the special
37957         mode bits are right.
37958
37959 2007-01-31  Eric Blake  <ebb9@byu.net>
37960
37961         * modules/mountlist (Depends-on): Add strstr.
37962
37963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37964         bug.
37965         * modules/string (Makefile.am): Remove redundant replacement.
37966         * modules/regex (Depends-on): Add mempcpy.
37967
37968 2007-01-31  Bruno Haible  <bruno@clisp.org>
37969
37970         New module description field 'Link'.
37971         * gnulib-tool (func_usage): Document --extract-link-directive.
37972         (sed_extract_prog): Recognize 'Link' directive.
37973         (func_get_link_directive): New function.
37974         (func_import): Show summary of link directives.
37975         Handle --extract-link-directive option.
37976         * modules/acl (Link): New section.
37977         * modules/clock-time (Link): New section.
37978         * modules/euidaccess (Link): New section.
37979         * modules/gettext (Link): New section.
37980         * modules/iconv (Link): New section.
37981         * modules/lock (Link): New section.
37982         * modules/nanosleep (Link): New section.
37983         * modules/readline (Link): New section.
37984
37985 2007-01-27  Bruno Haible  <bruno@clisp.org>
37986
37987         Enforce the use of gnulib modules for unportable <string.h> functions.
37988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37989         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37990         (gl_HEADER_STRING_H_BODY): Require it.
37991         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37992         the symbol XYZ to one that gives a link error.
37993         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37994         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37995         * modules/mempcpy (configure.ac): Likewise.
37996         * modules/memrchr (configure.ac): Likewise.
37997         * modules/stpcpy (configure.ac): Likewise.
37998         * modules/stpncpy (configure.ac): Likewise.
37999         * modules/strcase (configure.ac): Likewise.
38000         * modules/strcasestr (configure.ac): Likewise.
38001         * modules/strchrnul (configure.ac): Likewise.
38002         * modules/strdup (configure.ac): Likewise.
38003         * modules/strndup (configure.ac): Likewise.
38004         * modules/strnlen (configure.ac): Likewise.
38005         * modules/strpbrk (configure.ac): Likewise.
38006         * modules/strsep (configure.ac): Likewise.
38007         * modules/strstr (configure.ac): Likewise.
38008         * modules/strtok_r (configure.ac): Likewise.
38009
38010 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38011
38012         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38013
38014 2007-01-30  Jim Meyering  <jim@meyering.net>
38015
38016         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38017
38018 2007-01-29  Bruno Haible  <bruno@clisp.org>
38019
38020         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38021         * lib/execute.c: Likewise.
38022         * lib/pipe.c: Likewise.
38023         * lib/printf-args.h: Likewise.
38024         * lib/printf-args.c: Likewise.
38025         * lib/printf-parse.c: Likewise.
38026         * lib/vasnprintf.c: Likewise.
38027
38028 2007-01-29  Eric Blake  <ebb9@byu.net>
38029
38030         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38031         declaration.
38032
38033 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38034
38035         * lib/strptime.h (strptime): Use 'restrict' for args where
38036         POSIX requires this.
38037         * lib/strptime.c (strptime): Likewise.
38038         Change license notice from LGPL to GPL, since gnulib-tool will
38039         change this as needed.
38040         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38041         defined.
38042         Include "strptime.h" first, to check interface.
38043         Do not #undef _LIBC and _NL_CURRENT.
38044         Do not include <stdlib.h>; no longer needed.
38045         Include "time_r.h" and declare ptime_locale_status
38046         only if _LIBC is not defined.
38047         (__P): Remove unused macro.
38048         (match_string): Bring back glibc version, but use it only if _LIBC
38049         is defined.
38050         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38051         Remove unnecessary assertion and abort() call.
38052         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38053         * m4/strptime.m4: Fix serial number comment.
38054         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38055         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38056         (Depends-on): Add time_r.
38057
38058 2007-01-29  Bruno Haible  <bruno@clisp.org>
38059
38060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38061         strptime.
38062         * modules/strptime (Depends-on): Add stdbool.
38063         * lib/strptime.h: Include <time.h> always. Add comments.
38064
38065 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38066
38067         * modules/strptime: New file.
38068         * lib/strptime.h: New file.
38069         * lib/strptime.c: New file.
38070         * m4/strptime.m4: New file.
38071
38072 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38073
38074         * MODULES.html.sh: New module mpsort.
38075         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38076
38077         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38078         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38080         All uses changed.
38081         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38082         All uses changed.
38083         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38084         to _Restrict_.
38085         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38086         the parameter matches the prototype.
38087
38088 2007-01-28  Jim Meyering  <jim@meyering.net>
38089
38090         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38091         sys/time.h here, reverting that part of the previous patch:
38092         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38093
38094 2007-01-28  Bruno Haible  <bruno@clisp.org>
38095
38096         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38097         value of $(SYS_TIME_H).
38098         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38099         remove it conditionally, too. [added by Jim Meyering]
38100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38102         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38103         GETTIMEOFDAY_REPLACEMENT to 1.
38104
38105 2007-01-28  Bruno Haible  <bruno@clisp.org>
38106
38107         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38108         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38110         Set UNISTD_H instead of UNISTD_H2.
38111         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38112
38113 2007-01-28  Bruno Haible  <bruno@clisp.org>
38114
38115         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38116         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38117
38118 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38119
38120         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38121         (func_create_testdir): Ensure C locale for `grep' and `tr'
38122         character ranges.
38123         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38124         ACLOCAL_AMFLAGS parsing state machine.
38125
38126 2007-01-27  Bruno Haible  <bruno@clisp.org>
38127
38128         * modules/unistr/base: Update.
38129
38130 2007-01-27  Bruno Haible  <bruno@clisp.org>
38131
38132         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38133         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38134         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38135         modules/unistr/u32-mbtouc.
38136         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38137         * lib/unistr.h: Update.
38138         * lib/linebreak.c: Update.
38139         * modules/unistr/u32-mbtouc: Renamed from
38140         modules/unistr/u32-mbtouc-safe.
38141         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38142         * lib/unistr.h: Update.
38143         * lib/unistr/u32-to-u8.c: Update.
38144         * lib/unistr/u32-to-u16.c: Update.
38145
38146 2007-01-27  Bruno Haible  <bruno@clisp.org>
38147
38148         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38149         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38150         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38151         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38152         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38153         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38154         modules/unistr/u16-mbtouc.
38155         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38156         * lib/unistr.h: Update.
38157         * lib/linebreak.c: Update.
38158         * modules/linebreak: Update.
38159         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38160         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38161         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38162         * modules/unistr/u16-mbtouc: Renamed from
38163         modules/unistr/u16-mbtouc-safe.
38164         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38165         * lib/unistr.h: Update.
38166         * lib/unistr/u16-to-u8.c: Update.
38167         * modules/unistr/u16-to-u8: Update.
38168         * lib/unistr/u16-to-u32.c: Update.
38169         * modules/unistr/u16-to-u32: Update.
38170
38171 2007-01-27  Bruno Haible  <bruno@clisp.org>
38172
38173         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38174         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38175         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38176         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38177         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38178         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38179         modules/unistr/u8-mbtouc.
38180         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38181         * lib/unistr.h: Update.
38182         * lib/striconveh.c: Update.
38183         * modules/striconveh: Update.
38184         * lib/linebreak.c: Update.
38185         * modules/linebreak: Update.
38186         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38187         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38188         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38189         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38190         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38191         * lib/unistr.h: Update.
38192         * lib/striconveh.c: Update.
38193         * modules/striconveh: Update.
38194         * lib/unistr/u8-to-u16.c: Update.
38195         * modules/unistr/u8-to-u16: Update.
38196         * lib/unistr/u8-to-u32.c: Update.
38197         * modules/unistr/u8-to-u32: Update.
38198
38199 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38200
38201         Sync from Libtool.
38202         * lib/argz.c: Do not include strings.h nor memory.h, include
38203         string.h unconditionally.  Patch by Simon Josefsson.
38204
38205 2007-01-27  Bruno Haible  <bruno@clisp.org>
38206
38207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38208         from gl_HEADER_STRING_H_BODY.
38209         (gl_HEADER_STRING_H_BODY): Require it.
38210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38211         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38212         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38213         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38215         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38218         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38219         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38220         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38221         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38222         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38224         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38225
38226 2007-01-27  Bruno Haible  <bruno@clisp.org>
38227
38228         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38229         check_PROGRAMS into noinst_PROGRAMS.
38230         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38231         check_PROGRAMS in this case.
38232         (func_import): Set for_test to false.
38233         (func_create_testdir): Set for_test to true.
38234
38235 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38236             Bruno Haible  <bruno@clisp.org>
38237
38238         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38239         (Depends-on): Add string.
38240         (Includes): Use <string.h> instead of strcasestr.h.
38241         * modules/string (Makefile.am): Also substitute the value of
38242         REPLACE_STRCASESTR.
38243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38244         assume strcasestr is declared in <string.h> not <strings.h>. Also
38245         set REPLACE_STRCASESTR.
38246         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38247         REPLACE_STRCASESTR.
38248         * lib/strcasestr.h: Remove file.
38249         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38250         * lib/string_.h (strcasestr): New declaration.
38251
38252 2007-01-27  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/string_.h: Use 'extern'.
38255
38256 2007-01-27  Jim Meyering  <jim@meyering.net>
38257
38258         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38259         of set-but-not-used local, "q".
38260
38261         * lib/mempcpy.c: Include <config.h> before <string.h>.
38262         This fixes a compilation error on HP-UX, due to the system's
38263         "restrict"-using mempcpy prototype.
38264
38265 2007-01-26  Bruno Haible  <bruno@clisp.org>
38266
38267         Small optimization.
38268         * lib/javacomp.c: Include c-strstr.h.
38269          (is_envjavac_gcj): Use c_strstr instead of strstr.
38270         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38271
38272 2007-01-26  Bruno Haible  <bruno@clisp.org>
38273
38274         * MODULES.html.sh (Unicode string functions): Add the new modules.
38275
38276         * modules/uniconv/u32-strconv-to-locale: New file.
38277         * lib/uniconv/u32-strconv-to-locale.c: New file.
38278
38279         * modules/uniconv/u16-strconv-to-locale: New file.
38280         * lib/uniconv/u16-strconv-to-locale.c: New file.
38281
38282         * modules/uniconv/u8-strconv-to-locale: New file.
38283         * lib/uniconv/u8-strconv-to-locale.c: New file.
38284
38285         * modules/uniconv/u32-strconv-from-locale: New file.
38286         * lib/uniconv/u32-strconv-from-locale.c: New file.
38287
38288         * modules/uniconv/u16-strconv-from-locale: New file.
38289         * lib/uniconv/u16-strconv-from-locale.c: New file.
38290
38291         * modules/uniconv/u8-strconv-from-locale: New file.
38292         * lib/uniconv/u8-strconv-from-locale.c: New file.
38293
38294         * modules/uniconv/u32-strconv-to-enc: New file.
38295         * lib/uniconv/u32-strconv-to-enc.c: New file.
38296         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38297         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38298
38299         * modules/uniconv/u16-strconv-to-enc: New file.
38300         * lib/uniconv/u16-strconv-to-enc.c: New file.
38301         * lib/uniconv/u-strconv-to-enc.h: New file.
38302         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38303         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38304
38305         * modules/uniconv/u8-strconv-to-enc: New file.
38306         * lib/uniconv/u8-strconv-to-enc.c: New file.
38307         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38308         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38309
38310         * modules/uniconv/u32-strconv-from-enc: New file.
38311         * lib/uniconv/u32-strconv-from-enc.c: New file.
38312         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38313         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38314
38315         * modules/uniconv/u16-strconv-from-enc: New file.
38316         * lib/uniconv/u16-strconv-from-enc.c: New file.
38317         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38318         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38319
38320         * modules/uniconv/u8-strconv-from-enc: New file.
38321         * lib/uniconv/u8-strconv-from-enc.c: New file.
38322         * lib/uniconv/u-strconv-from-enc.h: New file.
38323         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38324         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38325
38326         * modules/uniconv/u32-conv-from-enc: New file.
38327         * lib/uniconv/u32-conv-from-enc.c: New file.
38328         * modules/uniconv/u32-conv-from-enc-tests: New file.
38329         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38330
38331         * modules/uniconv/u16-conv-from-enc: New file.
38332         * lib/uniconv/u16-conv-from-enc.c: New file.
38333         * lib/uniconv/u-conv-from-enc.h: New file.
38334         * modules/uniconv/u16-conv-from-enc-tests: New file.
38335         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38336
38337         * modules/uniconv/u8-conv-from-enc: New file.
38338         * lib/uniconv/u8-conv-from-enc.c: New file.
38339         * modules/uniconv/u8-conv-from-enc-tests: New file.
38340         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38341
38342         * modules/uniconv/base: New file.
38343         * lib/uniconv.h: New file.
38344
38345 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38346
38347         * doc/gnulib-tool.texi (Initial import): Update to match current
38348         behavior with strdup module.
38349         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38350         * lib/memmem.h: Remove; all uses removed.  This is now done
38351         by <string.h>.
38352         * lib/mempcpy.h: Likewise.
38353         * lib/memrchr.h: Likewise.
38354         * lib/stpcpy.h: Likewise.
38355         * lib/stpncpy.h: Likewise.
38356         * lib/strcase.h: Likewise.
38357         * lib/strchrnul.h: Likewise.
38358         * lib/strdup.h: Likewise.
38359         * lib/strndup.h: Likewise.
38360         * lib/strnlen.h: Likewise.
38361         * lib/strpbrk.h: Likewise.
38362         * lib/strsep.h: Likewise.
38363         * lib/strstr.h: Likewise.
38364         * lib/strtok_r.h: Likewise.
38365         * lib/string_.h: New file.
38366         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38367         Rely on <string.h> instead.
38368         * lib/canon-host.c: Likewise.
38369         * lib/chdir-long.c: Likewise.
38370         * lib/concatpath.c: Likewise.
38371         * lib/exclude.c: Likewise.
38372         * lib/fchdir.c: Likewise.
38373         * lib/getaddrinfo.c: Likewise.
38374         * lib/getcwd.c: Likewise.
38375         * lib/getsubopt.c: Likewise.
38376         * lib/glob.c: Likewise.
38377         * lib/hard-locale.c: Likewise.
38378         * lib/iconvme.c: Likewise.
38379         * lib/javacomp.c: Likewise.
38380         * lib/mempcpy.c: Likewise.
38381         * lib/memrchr.c: Likewise.
38382         * lib/regex_internal.h: Likewise.
38383         * lib/stpncpy.c: Likewise.
38384         * lib/strcasecmp.c: Likewise.
38385         * lib/strchrnul.c: Likewise.
38386         * lib/strdup.c: Likewise.
38387         * lib/striconv.c: Likewise.
38388         * lib/striconveh.c: Likewise.
38389         * lib/striconveha.c: Likewise.
38390         * lib/strncasecmp.c: Likewise.
38391         * lib/strndup.c: Likewise.
38392         * lib/strnlen.c: Likewise.
38393         * lib/strsep.c: Likewise.
38394         * lib/strstr.c: Likewise.
38395         * lib/strtok_r.c: Likewise.
38396         * lib/userspec.c: Likewise.
38397         * lib/w32spawn.h: Likewise.
38398         * lib/xstrndup.c: Likewise.
38399         * lib/mountlist.c (strstr): Remove decl.
38400         * m4/string_h.m4: New file.
38401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38402         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38403         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38404         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38405         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38406         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38407         Set REPLACE_STRCASECMP if necessary.
38408         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38409         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38410         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38411         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38412         HAVE_DECL_STRDUP if necessary.
38413         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38414         since gl_FUNC_STRNDUP does that now.
38415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38416         Check for decl here...
38417         (gl_PREREQ_STRNLEN): ... not here.
38418         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38419         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38420         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38421         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38422         necessary.
38423         * modules/string: New file.
38424         * modules/memmem (Files): Remove special-purpose include file.
38425         (Depends-on): Add string.
38426         (Include): Include <string.h>, not the removed file.
38427         * modules/mempcpy: Likewise.
38428         * modules/memrchr: Likewise.
38429         * modules/stpcpy: Likewise.
38430         * modules/stpncpy: Likewise.
38431         * modules/strcase: Likewise.
38432         * modules/strchrnul: Likewise.
38433         * modules/strdup: Likewise.
38434         * modules/strndup: Likewise.
38435         * modules/strnlen: Likewise.
38436         * modules/strpbrk: Likewise.
38437         * modules/strsep: Likewise.
38438         * modules/strstr: Likewise.
38439         * modules/strtok_r: Likewise.
38440         * tests/test-dirname.c: Don't include "strdup.h", since
38441         <string.h> now suffices.
38442         * tests/test-memmem.c: Don't include "memmem.h", since
38443         <string.h> now suffices.
38444
38445 2007-01-25  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38448         *resultp is 0.
38449
38450         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38451         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38452         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38453         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38454
38455         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38456         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38457         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38458         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38459         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38460         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38461
38462 2007-01-24  Bruno Haible  <bruno@clisp.org>
38463
38464         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38466         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38467         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38468         gl_FUNC_FTS_CORE.
38469         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38470         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38471         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38472         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38473         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38474         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38475         gl_FUNC_FCHOWNAT.
38476         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38477         gl_FUNC_STRFTIME.
38478         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38479         Reported by Ralf Wildenhues.
38480
38481 2007-01-24  Bruno Haible  <bruno@clisp.org>
38482
38483         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38484         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38485         gl_GETADDRINFO.
38486         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38487         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38488         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38489
38490 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38491
38492         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38493         Don't use 'exit'; just return from 'main'.
38494         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38495
38496         * lib/fnmatch_.h: Readjust white space and comments to match
38497         glibc, to avoid spurious diffs.
38498
38499 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38500
38501         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38502         2004-12-01 change by Jakub Jelinek, since this code won't compile
38503         if !LIBC.  Problem reported by Bob Proulx.
38504
38505 2007-01-23  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/striconveh.c: Include c-strcaseeq.h.
38508         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38509         * modules/striconveh (Depends-on): Add c-strcaseeq.
38510
38511 2007-01-23  Bruno Haible  <bruno@clisp.org>
38512
38513         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38514
38515         * modules/c-strcaseeq: New file.
38516         * lib/c-strcaseeq.h: New file.
38517
38518         * modules/streq: New file.
38519         * lib/streq.h: New file.
38520
38521 2007-01-23  Bruno Haible  <bruno@clisp.org>
38522
38523         * modules/striconveha-tests: New file.
38524         * tests/test-striconveha.c: New file.
38525
38526         * lib/striconveha.h: Include <stdbool.h>.
38527         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38528         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38529         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38530         (mem_iconveha): New function.
38531         (str_iconveha_notranslit): Renamed from str_iconveha.
38532         (str_iconveha): New function.
38533         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38534         c-strcase.
38535
38536 2007-01-23  Bruno Haible  <bruno@clisp.org>
38537
38538         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38539         encodings without forgiving before trying any encoding with handler.
38540         (str_iconveha): Try all encodings without forgiving before trying any
38541         encoding with handler.
38542
38543 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38544
38545         Import the following changes from libc.
38546
38547         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38548
38549         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38550
38551         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38552
38553         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38554         normal_bracket label.
38555
38556         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38557
38558         [BZ #361]
38559         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38560         to normal_bracket after fetching the next character.
38561
38562 2007-01-22  Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38565         argument.
38566         * lib/striconveh.c (iconv_carefully_1): New function.
38567         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38568         argument.
38569         (str_cd_iconveh): Update.
38570         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38571         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38572         * tests/test-striconveh.c (MAGIC): New macro.
38573         (new_offsets): New function.
38574         (main): Test call with and without offsets.
38575
38576 2007-01-22  Bruno Haible  <bruno@clisp.org>
38577
38578         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38579         * modules/sys_select (Makefile.am): Likewise.
38580         * modules/sys_socket (Makefile.am): Likewise.
38581         * modules/sys_time (Makefile.am): Likewise.
38582
38583 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38584
38585         * modules/gettimeofday (License): Change from GPL to LGPL, since
38586         gettimeofday is a library function.
38587
38588 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38589
38590         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38591
38592 2007-01-21  Bruno Haible  <bruno@clisp.org>
38593
38594         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38595
38596 2007-01-21  Bruno Haible  <bruno@clisp.org>
38597
38598         * modules/striconveha: New file.
38599         * lib/striconveha.h: New file.
38600         * lib/striconveha.c: New file.
38601         * MODULES.html.sh (Internationalization functions): Add striconveha.
38602         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38603         string.
38604         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38605
38606 2007-01-21  Bruno Haible  <bruno@clisp.org>
38607
38608         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38609         * lib/striconveh.c (str_iconveh): Likewise.
38610
38611 2007-01-21  Bruno Haible  <bruno@clisp.org>
38612
38613         * lib/striconveh.h (mem_iconveh): New declaration.
38614         * lib/striconveh.c (mem_iconveh): New function.
38615         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38616
38617 2007-01-21  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38620
38621         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38622         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38623         original result buffer.
38624         (str_cd_iconveh): Update.
38625         * tests/test-striconveh.c (main): Update.
38626
38627         * lib/striconv.h (mem_cd_iconv): Change specification.
38628         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38629         result buffer.
38630         (str_cd_iconv): Update.
38631         * tests/test-striconv.c (main): Update.
38632
38633 2007-01-21  Bruno Haible  <bruno@clisp.org>
38634
38635         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38636
38637 2007-01-20  Jim Meyering  <jim@meyering.net>
38638
38639         * lib/userspec.c (parse_with_separator): If a user or group string
38640         starts with "+", skip the corresponding name-to-ID look-up, since
38641         such a look-up must fail: user and group names may not include "+".
38642
38643 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38644
38645         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38646         since we now assume the sys_time module.
38647         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38648         check for sys/time.h; no longer needed.
38649         * modules/poll (Depends-on): Depend on sys_time.
38650
38651 2007-01-18  Bruno Haible  <bruno@clisp.org>
38652
38653         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38654         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38655
38656         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38657         gettimeofday.
38658
38659         * tests/test-gettimeofday.c: Include <time.h>.
38660         (dummy): Remove variable.
38661
38662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38663         gl_HEADER_SYS_TIME_H.
38664         (gl_HEADER_SYS_TIME_H): New macro.
38665
38666         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38667         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38669         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38670         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38672         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38673         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38674         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38675         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38676         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38677
38678         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38679         last change; it caused a compilation error when cross-compiling to
38680         Cygwin.
38681
38682 2007-01-18  Jim Meyering  <jim@meyering.net>
38683
38684         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38685         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38686         than the race-prone "test -d sys || mkdir sys".
38687         (configure.ac): Use AC_PROG_MKDIR_P.
38688         * modules/sys_select: Likewise.
38689         * modules/sys_socket: Likewise.
38690         * modules/sys_time: Likewise.
38691
38692 2007-01-18  Eric Blake  <ebb9@byu.net>
38693
38694         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38695         replace gettimeofday.
38696         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38697         name, to avoid infinite recursion.
38698
38699 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38700
38701         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38702         module sys_time.
38703         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38704         assume timespec.h defines struct timeval.
38705         * lib/settime.c: Likewise.
38706         * lib/utimens.c: Likewise.
38707         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38708         since we now assume the gettimeofday module.
38709         * lib/tempname.c (__gen_tempname): Likewise.
38710         * lib/gettimeofday.h: Remove.
38711         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38712         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38713         Include <time.h>, for 'time()'.
38714         (localtime_buffer_addr): Also use this workaround if
38715         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38716         to simplify the uses.  All uses changed.
38717         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38718         that #undef is inside {}, and 'const' follows type name consistently.
38719         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38720         (gettimeofday): Do not use the maximum possible value for
38721         tv->tv_usec, since that might break usages other than ls.c.
38722         Instead, we'll leave ls.c alone.  This undoes today's patch
38723         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38724         we've never observed the problem but might as well keep the
38725         canary.
38726         * lib/nanosleep.c: Include timespec.h first, for interface check.
38727         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38728         now assume the sys_time module.
38729         * lib/tempname.c: Likewise.
38730         * lib/timespec.h: Likewise.
38731         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38732         needed.
38733         * lib/strftime.c: Likewise.
38734         * lib/timespec.h: Likewise.
38735         * lib/posixtm.c: Include posixtm.h first, for interface check.
38736         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38737         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38738         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38739         * lib/sys_time_.h: New file.
38740         * lib/timespec.h (struct timespec): Use long int, not long.
38741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38742         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38743         Remove obsolescent call to AC_HEADER_TIME.
38744         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38746         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38747         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38748         Likewise.
38749         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38750         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38752         into the sys_time module.  Check for gettimeofday just once.
38753         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38754         for gettimeofday signature to just check the signature.  Merely
38755         compile it, since linking doesn't test signature.  Improve test for
38756         whether gettimeofday.o is actually needed.
38757         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38758         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38759         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38760         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38761         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38762         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38763         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38764         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38765         than worrying about sys/time.h.
38766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38767         Don't bother worrying about TIME_WITH_SYS_TIME.
38768         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38769         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38770         * m4/sys_time_h.m4: New file.
38771         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38772         Don't include sys/time.h.  Return from main rather than exiting.
38773         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38774         all uses changed.
38775         * modules/gethrxtime (Depends-on): Add sys_time.
38776         * modules/gettime (Depends-on): Likewise.
38777         * modules/gettimeofday (Depends-on): Likewise.
38778         * modules/nanosleep (Depends-on): Likewise.
38779         * modules/settime (Depends-on): Likewise.
38780         * modules/tempname (Depends-on): Likewise.
38781         * modules/utimens (Depends-on): Likewise.
38782         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38783         (Include:) Change back to <sys/time.h>.
38784         (Maintainer:) Add self.
38785         * modules/sys_time: New file.
38786         * modules/tempname (Depends-on): Add gettimeofday.
38787         * tests/test-gettimeofday.c: Include <sys/time.h>
38788         rather than gettimeofday.h.
38789
38790 2007-01-17  Bruno Haible  <bruno@clisp.org>
38791
38792         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38793         the license default to GPL.
38794         (func_create_testdir): Don't complain if a module is LGPL and its
38795         tests module depends on GPLed modules.
38796
38797 2007-01-17  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/gettimeofday.c (gettimeofday): Add code for the case
38800         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38801         maximum possible value for tv->tv_usec, rather than the minimum one.
38802
38803 2005-10-08  Martin Lambers  <marlam@marlam.de>
38804 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38805 2007-01-16  Bruno Haible  <bruno@clisp.org>
38806
38807         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38808         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38809         gl_FUNC_GETTIMEOFDAY.
38810         (Include): Add gettimeofday.h.
38811         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38812         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38813         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38814         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38815         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38816         * lib/gettimeofday.h: New file.
38817         * lib/gettimeofday.c: Include <sys/timeb.h>.
38818         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38819         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38820         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38821         fall back on time().
38822
38823         * tests/test-gettimeofday.c: New file.
38824         * modules/gettimeofday-tests: New file.
38825
38826 2007-01-16  Eric Blake  <ebb9@byu.net>
38827
38828         * modules/fnmatch (Depends-on): Depend on wchar.
38829         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38830         * m4/fnmatch.m4: Likewise.
38831         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38832         * m4/mbchar.m4: Likewise.
38833         * modules/mbswidth (Depends-on): Depend on wchar.
38834         * lib/mbswidth.c: Assume <wchar.h>.
38835         * m4/mbswidth.m4: Likewise.
38836         * modules/quotearg (Depends-on): Depend on wchar.
38837         * lib/quotearg.c: Assume <wchar.h>.
38838         * m4/quotearg.m4: Likewise.
38839         * modules/regex (Depends-on): Depend on wchar.
38840         * lib/regex_internal.h: Assume <wchar.h>.
38841         * m4/regex.m4: Likewise.
38842         * modules/stdint (Depends-on): Depend on wchar.
38843         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38844         * m4/stdint.m4: Likewise.
38845         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38846         * modules/strftime (Depends-on): Depend on wchar.
38847         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38848         * modules/strtol (Depends-on): Depend on wchar.
38849         * lib/strtol.c: Assume <wchar.h>.
38850         * modules/wcwidth (Depends-on): Depend on wchar.
38851         * lib/wcwidth.h: Assume <wchar.h>.
38852         * m4/wcwidth.m4: Likewise.
38853
38854 2007-01-16  Bruno Haible  <bruno@clisp.org>
38855
38856         * modules/csharpexec-script: New, created from...
38857         * modules/csharpexec: ... this.
38858
38859 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38860
38861         * modules/javaexec-script: New, created from...
38862         * modules/javaexec: ... this.
38863
38864 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38865
38866         * modules/poll (Dependencies): Add sys_select.
38867
38868 2007-01-15  Jim Meyering  <jim@meyering.net>
38869
38870         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38871         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38872         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38873         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38874
38875 2007-01-15  Bruno Haible  <bruno@clisp.org>
38876
38877         * modules/striconveh: New file.
38878         * lib/striconveh.h: New file.
38879         * lib/striconveh.c: New file.
38880         * MODULES.html.sh (Internationalization functions): Add striconveh.
38881
38882         * modules/striconveh-tests: New file.
38883         * tests/test-striconveh.c: New file.
38884
38885 2007-01-15  Bruno Haible  <bruno@clisp.org>
38886
38887         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38888         not from GNU libiconv or GNU libc.
38889
38890 2007-01-15  Bruno Haible  <bruno@clisp.org>
38891
38892         * doc/gnulib-intro.texi (Copyright): Explain the different license
38893         terms for module descriptions, autoconf macros, tests, documentation.
38894
38895 2007-01-14  Bruno Haible  <bruno@clisp.org>
38896
38897         * modules/striconv-tests: New file.
38898         * tests/test-striconv.c: New file.
38899
38900 2007-01-14  Bruno Haible  <bruno@clisp.org>
38901
38902         * modules/iconv-tests: New file.
38903         * tests/test-iconv.c: New file.
38904
38905 2007-01-14  Bruno Haible  <bruno@clisp.org>
38906
38907         * gnulib-tool (func_get_license): For test modules, use the license of
38908         the main module.
38909
38910 2007-01-14  Bruno Haible  <bruno@clisp.org>
38911
38912         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38913         if iconv is found to exist.
38914
38915 2007-01-14  Bruno Haible  <bruno@clisp.org>
38916
38917         * modules/c-ctype-tests: New file.
38918         * tests/test-c-ctype.c: New file.
38919
38920 2007-01-14  Bruno Haible  <bruno@clisp.org>
38921
38922         * modules/binary-io-tests: New file.
38923         * tests/test-binary-io.sh: New file.
38924         * tests/test-binary-io.c: New file.
38925
38926 2007-01-14  Bruno Haible  <bruno@clisp.org>
38927
38928         * modules/array-oset-tests: New file.
38929         * tests/test-array_oset.c: New file.
38930
38931 2007-01-14  Bruno Haible  <bruno@clisp.org>
38932
38933         * modules/array-list-tests: New file.
38934         * tests/test-array_list.c: New file.
38935
38936 2007-01-14  Bruno Haible  <bruno@clisp.org>
38937
38938         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38939         and make.
38940         Reported by Simon Josefsson in
38941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38942
38943 2007-01-14  Bruno Haible  <bruno@clisp.org>
38944
38945         * modules/allocsa-tests: New file.
38946         * tests/test-allocsa.c: New file.
38947
38948 2007-01-14  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/fchdir (Depends-on): Add absolute-header.
38951         * modules/unistd (Depends-on): Likewise.
38952
38953 2006-12-30  Bruno Haible  <bruno@clisp.org>
38954
38955         * modules/fchdir: New file.
38956         * modules/unistd (Files): Add lib/unistd_.h.
38957         (Makefile.am): Generate unistd.h from unistd_.h.
38958         * lib/fchdir.c: New file.
38959         * lib/dirent_.h: New file.
38960         * lib/unistd_.h: New file.
38961         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38962         * m4/fchdir.m4: New file.
38963         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38964         (gl_HEADER_UNISTD): Invoke it.
38965         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38966         function.
38967         * lib/backupfile.c (opendir, closedir): Undefine.
38968         * lib/chown.c (open, close): Undefine.
38969         * lib/clean-temp.c (open, close): Undefine.
38970         * lib/copy-file.c (open, close): Undefine.
38971         * lib/execute.c (open, close): Undefine.
38972         * lib/fsusage.c (open, close): Undefine.
38973         * lib/gc-gnulib.c (open, close): Undefine.
38974         * lib/getcwd.c (opendir, closedir): Undefine.
38975         * lib/glob.c (opendir, closedir): Undefine.
38976         * lib/javacomp.c (open, close): Undefine.
38977         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38978         * lib/openat-proc.c (open, close): Undefine.
38979         * lib/pagealign_alloc.c (open, close): Undefine.
38980         * lib/pipe.c (open, close): Undefine.
38981         * lib/progreloc.c (open, close): Undefine.
38982         * lib/savedir.c (opendir, closedir): Undefine.
38983         * lib/utime.c (open, close): Undefine.
38984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38985
38986 2007-01-10  Bruno Haible  <bruno@clisp.org>
38987
38988         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38989
38990 2007-01-12  Eric Blake  <ebb9@byu.net>
38991
38992         Provide a robust <wchar.h>.  Further simplifications are now
38993         possible in other modules, but not included here.
38994         * modules/wchar: New module.
38995         * m4/wchar.m4: New file.
38996         * lib/wchar_.h: Likewise.
38997         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38998         of the new module.
38999         * MODULES.html.sh (Extended multibyte and wide character utilities):
39000         New section.
39001
39002 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39003
39004         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39005         to a reasonable default for memory allocation.
39006         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39007         file system that reports garbage st_size values for symlinks.
39008         Problem reported by Liyang Hu.
39009
39010 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39011
39012         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39013         Emacs .#* auto-save files).
39014
39015 2007-01-11  Bruno Haible  <bruno@clisp.org>
39016
39017         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39018         directory.
39019
39020 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39021
39022         Use @...@ consistently in lib/wctype_.h.
39023         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39024         on it being set to 1 or 0.
39025         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39026         go back to AC_SUBSTing it.
39027         * modules/wctype (Makefile.am): Undo previous change.
39028
39029 2007-01-10  Eric Blake  <ebb9@byu.net>
39030
39031         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39032         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39033         * modules/wctype (Makefile.am): Likewise.
39034         Reported by Chris McGuire.
39035
39036 2007-01-10  Jim Meyering  <jim@meyering.net>
39037
39038         fts.c: a small readability/maintainability improvement
39039         * lib/fts.c (fts_read): Make this code slightly more readable and
39040         maintainable by hoisting the "sp->fts_cur = p" assignments to
39041         immediately follow the statements that set P.  Derived from
39042         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39043
39044 2007-01-10  Eric Blake  <ebb9@byu.net>
39045
39046         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39047         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39049         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39050         Reported by Chris McGuire.
39051
39052 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39053
39054         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39055         in sed script.
39056
39057 2007-01-09  Bruno Haible  <bruno@clisp.org>
39058
39059         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39060         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39061         variables.
39062         (func_module): Use them.
39063
39064 2007-01-09  Bruno Haible  <bruno@clisp.org>
39065
39066         * modules/unistr/base: New file.
39067         * lib/unistr.h: New file.
39068
39069         * modules/unistr/u8-to-u16: New file.
39070         * lib/unistr/u8-to-u16.c: New file.
39071
39072         * modules/unistr/u8-to-u32: New file.
39073         * lib/unistr/u8-to-u32.c: New file.
39074
39075         * modules/unistr/u16-to-u8: New file.
39076         * lib/unistr/u16-to-u8.c: New file.
39077
39078         * modules/unistr/u16-to-u32: New file.
39079         * lib/unistr/u16-to-u32.c: New file.
39080
39081         * modules/unistr/u32-to-u8: New file.
39082         * lib/unistr/u32-to-u8.c: New file.
39083
39084         * modules/unistr/u32-to-u16: New file.
39085         * lib/unistr/u32-to-u16.c: New file.
39086
39087         * modules/unistr/u8-check: New file.
39088         * modules/unistr/u16-check: New file.
39089         * modules/unistr/u32-check: New file.
39090         * lib/unistr/u8-check.c: New file.
39091         * lib/unistr/u16-check.c: New file.
39092         * lib/unistr/u32-check.c: New file.
39093
39094         * modules/unistr/u8-chr: New file.
39095         * modules/unistr/u16-chr: New file.
39096         * modules/unistr/u32-chr: New file.
39097         * lib/unistr/u8-chr.c: New file.
39098         * lib/unistr/u16-chr.c: New file.
39099         * lib/unistr/u32-chr.c: New file.
39100
39101         * modules/unistr/u8-cmp: New file.
39102         * modules/unistr/u16-cmp: New file.
39103         * modules/unistr/u32-cmp: New file.
39104         * lib/unistr/u8-cmp.c: New file.
39105         * lib/unistr/u16-cmp.c: New file.
39106         * lib/unistr/u32-cmp.c: New file.
39107
39108         * modules/unistr/u8-cpy: New file.
39109         * modules/unistr/u16-cpy: New file.
39110         * modules/unistr/u32-cpy: New file.
39111         * lib/unistr/u8-cpy.c: New file.
39112         * lib/unistr/u16-cpy.c: New file.
39113         * lib/unistr/u32-cpy.c: New file.
39114         * lib/unistr/u-cpy.h: New file.
39115
39116         * modules/unistr/u8-cpy-alloc: New file.
39117         * modules/unistr/u16-cpy-alloc: New file.
39118         * modules/unistr/u32-cpy-alloc: New file.
39119         * lib/unistr/u8-cpy-alloc.c: New file.
39120         * lib/unistr/u16-cpy-alloc.c: New file.
39121         * lib/unistr/u32-cpy-alloc.c: New file.
39122         * lib/unistr/u-cpy-alloc.h: New file.
39123
39124         * modules/unistr/u8-endswith: New file.
39125         * modules/unistr/u16-endswith: New file.
39126         * modules/unistr/u32-endswith: New file.
39127         * lib/unistr/u8-endswith.c: New file.
39128         * lib/unistr/u16-endswith.c: New file.
39129         * lib/unistr/u32-endswith.c: New file.
39130         * lib/unistr/u-endswith.h: New file.
39131
39132         * modules/unistr/u8-mblen: New file.
39133         * modules/unistr/u16-mblen: New file.
39134         * modules/unistr/u32-mblen: New file.
39135         * lib/unistr/u8-mblen.c: New file.
39136         * lib/unistr/u16-mblen.c: New file.
39137         * lib/unistr/u32-mblen.c: New file.
39138
39139         * modules/unistr/u8-mbtouc: New file.
39140         * modules/unistr/u16-mbtouc: New file.
39141         * modules/unistr/u32-mbtouc: New file.
39142         * lib/unistr/u8-mbtouc.c: New file.
39143         * lib/unistr/u16-mbtouc.c: New file.
39144         * lib/unistr/u32-mbtouc.c: New file.
39145
39146         * modules/unistr/u8-mbtouc-safe: New file.
39147         * modules/unistr/u16-mbtouc-safe: New file.
39148         * modules/unistr/u32-mbtouc-safe: New file.
39149         * lib/unistr/u8-mbtouc-safe.c: New file.
39150         * lib/unistr/u16-mbtouc-safe.c: New file.
39151         * lib/unistr/u32-mbtouc-safe.c: New file.
39152
39153         * modules/unistr/u8-move: New file.
39154         * modules/unistr/u16-move: New file.
39155         * modules/unistr/u32-move: New file.
39156         * lib/unistr/u8-move.c: New file.
39157         * lib/unistr/u16-move.c: New file.
39158         * lib/unistr/u32-move.c: New file.
39159         * lib/unistr/u-move.h: New file.
39160
39161         * modules/unistr/u8-next: New file.
39162         * modules/unistr/u16-next: New file.
39163         * modules/unistr/u32-next: New file.
39164         * lib/unistr/u8-next.c: New file.
39165         * lib/unistr/u16-next.c: New file.
39166         * lib/unistr/u32-next.c: New file.
39167
39168         * modules/unistr/u8-prev: New file.
39169         * modules/unistr/u16-prev: New file.
39170         * modules/unistr/u32-prev: New file.
39171         * lib/unistr/u8-prev.c: New file.
39172         * lib/unistr/u16-prev.c: New file.
39173         * lib/unistr/u32-prev.c: New file.
39174
39175         * modules/unistr/u8-set: New file.
39176         * modules/unistr/u16-set: New file.
39177         * modules/unistr/u32-set: New file.
39178         * lib/unistr/u8-set.c: New file.
39179         * lib/unistr/u16-set.c: New file.
39180         * lib/unistr/u32-set.c: New file.
39181         * lib/unistr/u-set.h: New file.
39182
39183         * modules/unistr/u8-startswith: New file.
39184         * modules/unistr/u16-startswith: New file.
39185         * modules/unistr/u32-startswith: New file.
39186         * lib/unistr/u8-startswith.c: New file.
39187         * lib/unistr/u16-startswith.c: New file.
39188         * lib/unistr/u32-startswith.c: New file.
39189         * lib/unistr/u-startswith.h: New file.
39190
39191         * modules/unistr/u8-stpcpy: New file.
39192         * modules/unistr/u16-stpcpy: New file.
39193         * modules/unistr/u32-stpcpy: New file.
39194         * lib/unistr/u8-stpcpy.c: New file.
39195         * lib/unistr/u16-stpcpy.c: New file.
39196         * lib/unistr/u32-stpcpy.c: New file.
39197         * lib/unistr/u-stpcpy.h: New file.
39198
39199         * modules/unistr/u8-stpncpy: New file.
39200         * modules/unistr/u16-stpncpy: New file.
39201         * modules/unistr/u32-stpncpy: New file.
39202         * lib/unistr/u8-stpncpy.c: New file.
39203         * lib/unistr/u16-stpncpy.c: New file.
39204         * lib/unistr/u32-stpncpy.c: New file.
39205         * lib/unistr/u-stpncpy.h: New file.
39206
39207         * modules/unistr/u8-strcat: New file.
39208         * modules/unistr/u16-strcat: New file.
39209         * modules/unistr/u32-strcat: New file.
39210         * lib/unistr/u8-strcat.c: New file.
39211         * lib/unistr/u16-strcat.c: New file.
39212         * lib/unistr/u32-strcat.c: New file.
39213         * lib/unistr/u-strcat.h: New file.
39214
39215         * modules/unistr/u8-strchr: New file.
39216         * modules/unistr/u16-strchr: New file.
39217         * modules/unistr/u32-strchr: New file.
39218         * lib/unistr/u8-strchr.c: New file.
39219         * lib/unistr/u16-strchr.c: New file.
39220         * lib/unistr/u32-strchr.c: New file.
39221
39222         * modules/unistr/u8-strcmp: New file.
39223         * modules/unistr/u16-strcmp: New file.
39224         * modules/unistr/u32-strcmp: New file.
39225         * lib/unistr/u8-strcmp.c: New file.
39226         * lib/unistr/u16-strcmp.c: New file.
39227         * lib/unistr/u32-strcmp.c: New file.
39228
39229         * modules/unistr/u8-strcpy: New file.
39230         * modules/unistr/u16-strcpy: New file.
39231         * modules/unistr/u32-strcpy: New file.
39232         * lib/unistr/u8-strcpy.c: New file.
39233         * lib/unistr/u16-strcpy.c: New file.
39234         * lib/unistr/u32-strcpy.c: New file.
39235         * lib/unistr/u-strcpy.h: New file.
39236
39237         * modules/unistr/u8-strcspn: New file.
39238         * modules/unistr/u16-strcspn: New file.
39239         * modules/unistr/u32-strcspn: New file.
39240         * lib/unistr/u8-strcspn.c: New file.
39241         * lib/unistr/u16-strcspn.c: New file.
39242         * lib/unistr/u32-strcspn.c: New file.
39243         * lib/unistr/u-strcspn.h: New file.
39244
39245         * modules/unistr/u8-strdup: New file.
39246         * modules/unistr/u16-strdup: New file.
39247         * modules/unistr/u32-strdup: New file.
39248         * lib/unistr/u8-strdup.c: New file.
39249         * lib/unistr/u16-strdup.c: New file.
39250         * lib/unistr/u32-strdup.c: New file.
39251         * lib/unistr/u-strdup.h: New file.
39252
39253         * modules/unistr/u8-strlen: New file.
39254         * modules/unistr/u16-strlen: New file.
39255         * modules/unistr/u32-strlen: New file.
39256         * lib/unistr/u8-strlen.c: New file.
39257         * lib/unistr/u16-strlen.c: New file.
39258         * lib/unistr/u32-strlen.c: New file.
39259         * lib/unistr/u-strlen.h: New file.
39260
39261         * modules/unistr/u8-strmblen: New file.
39262         * modules/unistr/u16-strmblen: New file.
39263         * modules/unistr/u32-strmblen: New file.
39264         * lib/unistr/u8-strmblen.c: New file.
39265         * lib/unistr/u16-strmblen.c: New file.
39266         * lib/unistr/u32-strmblen.c: New file.
39267
39268         * modules/unistr/u8-strmbtouc: New file.
39269         * modules/unistr/u16-strmbtouc: New file.
39270         * modules/unistr/u32-strmbtouc: New file.
39271         * lib/unistr/u8-strmbtouc.c: New file.
39272         * lib/unistr/u16-strmbtouc.c: New file.
39273         * lib/unistr/u32-strmbtouc.c: New file.
39274
39275         * modules/unistr/u8-strncat: New file.
39276         * modules/unistr/u16-strncat: New file.
39277         * modules/unistr/u32-strncat: New file.
39278         * lib/unistr/u8-strncat.c: New file.
39279         * lib/unistr/u16-strncat.c: New file.
39280         * lib/unistr/u32-strncat.c: New file.
39281         * lib/unistr/u-strncat.h: New file.
39282
39283         * modules/unistr/u8-strncmp: New file.
39284         * modules/unistr/u16-strncmp: New file.
39285         * modules/unistr/u32-strncmp: New file.
39286         * lib/unistr/u8-strncmp.c: New file.
39287         * lib/unistr/u16-strncmp.c: New file.
39288         * lib/unistr/u32-strncmp.c: New file.
39289
39290         * modules/unistr/u8-strncpy: New file.
39291         * modules/unistr/u16-strncpy: New file.
39292         * modules/unistr/u32-strncpy: New file.
39293         * lib/unistr/u8-strncpy.c: New file.
39294         * lib/unistr/u16-strncpy.c: New file.
39295         * lib/unistr/u32-strncpy.c: New file.
39296         * lib/unistr/u-strncpy.h: New file.
39297
39298         * modules/unistr/u8-strnlen: New file.
39299         * modules/unistr/u16-strnlen: New file.
39300         * modules/unistr/u32-strnlen: New file.
39301         * lib/unistr/u8-strnlen.c: New file.
39302         * lib/unistr/u16-strnlen.c: New file.
39303         * lib/unistr/u32-strnlen.c: New file.
39304         * lib/unistr/u-strnlen.h: New file.
39305
39306         * modules/unistr/u8-strpbrk: New file.
39307         * modules/unistr/u16-strpbrk: New file.
39308         * modules/unistr/u32-strpbrk: New file.
39309         * lib/unistr/u8-strpbrk.c: New file.
39310         * lib/unistr/u16-strpbrk.c: New file.
39311         * lib/unistr/u32-strpbrk.c: New file.
39312         * lib/unistr/u-strpbrk.h: New file.
39313
39314         * modules/unistr/u8-strrchr: New file.
39315         * modules/unistr/u16-strrchr: New file.
39316         * modules/unistr/u32-strrchr: New file.
39317         * lib/unistr/u8-strrchr.c: New file.
39318         * lib/unistr/u16-strrchr.c: New file.
39319         * lib/unistr/u32-strrchr.c: New file.
39320
39321         * modules/unistr/u8-strspn: New file.
39322         * modules/unistr/u16-strspn: New file.
39323         * modules/unistr/u32-strspn: New file.
39324         * lib/unistr/u8-strspn.c: New file.
39325         * lib/unistr/u16-strspn.c: New file.
39326         * lib/unistr/u32-strspn.c: New file.
39327         * lib/unistr/u-strspn.h: New file.
39328
39329         * modules/unistr/u8-strstr: New file.
39330         * modules/unistr/u16-strstr: New file.
39331         * modules/unistr/u32-strstr: New file.
39332         * lib/unistr/u8-strstr.c: New file.
39333         * lib/unistr/u16-strstr.c: New file.
39334         * lib/unistr/u32-strstr.c: New file.
39335         * lib/unistr/u-strstr.h: New file.
39336
39337         * modules/unistr/u8-strtok: New file.
39338         * modules/unistr/u16-strtok: New file.
39339         * modules/unistr/u32-strtok: New file.
39340         * lib/unistr/u8-strtok.c: New file.
39341         * lib/unistr/u16-strtok.c: New file.
39342         * lib/unistr/u32-strtok.c: New file.
39343         * lib/unistr/u-strtok.h: New file.
39344
39345         * modules/unistr/u8-uctomb: New file.
39346         * modules/unistr/u16-uctomb: New file.
39347         * modules/unistr/u32-uctomb: New file.
39348         * lib/unistr/u8-uctomb.c: New file.
39349         * lib/unistr/u16-uctomb.c: New file.
39350         * lib/unistr/u32-uctomb.c: New file.
39351
39352         * MODULES.html.sh (Unicode string functions): Add the new modules.
39353
39354 2007-01-08  Bruno Haible  <bruno@clisp.org>
39355
39356         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39357         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39358         subdirectories.
39359
39360 2007-01-08  Karl Berry  <karl@gnu.org>
39361
39362         * doc/error.texi: mention that main() fns must set program_name
39363         when progname is used.
39364
39365 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39366
39367         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39368         WCTYPE_H is empty, for the benefit of builds from non-distclean
39369         directories.  Problem reported by Eric Blake in
39370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39371
39372 2007-01-08  Bruno Haible  <bruno@clisp.org>
39373
39374         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39375         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39376         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39377         PROVIDE_CANONICALIZE_FILENAME_MODE.
39378         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39379
39380 2007-01-08  Bruno Haible  <bruno@clisp.org>
39381
39382         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39383         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39384         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39385         * lib/fts.c: Likewise.
39386         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39387
39388 2006-12-25  Bruno Haible  <bruno@clisp.org>
39389
39390         * modules/utf8-ucs4-safe: New file.
39391         * lib/utf8-ucs4-safe.h: New file.
39392         * lib/unistr/utf8-ucs4-safe.c: New file.
39393
39394         * modules/utf16-ucs4-safe: New file.
39395         * lib/utf16-ucs4-safe.h: New file.
39396         * lib/unistr/utf16-ucs4-safe.c: New file.
39397
39398         * MODULES.html.sh (Unicode string functions): Add the new modules.
39399
39400 2007-01-08  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39403         (Depends-on): Add unitypes.
39404         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39405         (u8_mbtouc_aux): Move out to separate file.
39406         (u8_mbtouc): Use ucs4_t, uint8_t types.
39407         * lib/unistr/utf8-ucs4.c: New file.
39408
39409         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39410         (Depends-on): Add unitypes.
39411         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39412         (u16_mbtouc_aux): Move out to separate file.
39413         (u16_mbtouc): Use ucs4_t, uint16_t types.
39414         * lib/unistr/utf16-ucs4.c: New file.
39415
39416         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39417         (Depends-on): Add unitypes.
39418         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39419         (u8_uctomb_aux): Move out to separate file.
39420         (u8_uctomb): Use ucs4_t, uint8_t types.
39421         * lib/unistr/ucs4-utf8.c: New file.
39422
39423         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39424         (Depends-on): Add unitypes.
39425         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39426         (u16_uctomb_aux): Move out to separate file.
39427         (u16_uctomb): Use ucs4_t, uint16_t types.
39428         * lib/unistr/ucs4-utf16.c: New file.
39429
39430 2006-12-25  Bruno Haible  <bruno@clisp.org>
39431
39432         * modules/unitypes: New file.
39433         * lib/unitypes.h: New file.
39434         * MODULES.html.sh (func_all_modules): New section "Unicode string
39435         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39436         this section. Add unitypes.
39437
39438 2007-01-08  Bruno Haible  <bruno@clisp.org>
39439
39440         Avoid variable names that conflict with those from libtool.
39441         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39442         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39443         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39444         library_names_spec to acl_library_names_spec, hardcode_* to
39445         acl_hardcode_*.
39446         Reported by Ralf Wildenhues.
39447
39448 2007-01-08  Bruno Haible  <bruno@clisp.org>
39449
39450         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39451         definition.
39452         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39453         definition.
39454         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39455         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39456         definition.
39457         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39458         definition.
39459         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39460         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39461         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39462         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39463         definition.
39464         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39465         definition.
39466         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39467         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39468         GC_USE_<algorithm>.
39469         * lib/gc-libgcrypt.c: Likewise.
39470         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39471         * modules/gc-arctwo (configure.ac): Likewise.
39472         * modules/gc-des (configure.ac): Likewise.
39473         * modules/gc-hmac-md5 (configure.ac): Likewise.
39474         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39475         * modules/gc-md2 (configure.ac): Likewise.
39476         * modules/gc-md4 (configure.ac): Likewise.
39477         * modules/gc-md5 (configure.ac): Likewise.
39478         * modules/gc-random (configure.ac): Likewise.
39479         * modules/gc-rijndael (configure.ac): Likewise.
39480         * modules/gc-sha1 (configure.ac): Likewise.
39481
39482 2007-01-08  Bruno Haible  <bruno@clisp.org>
39483
39484         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39485         macro definition.
39486         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39487         definition.
39488         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39489         definition.
39490         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39491         * modules/fcntl-safer (configure.ac): Likewise.
39492         * modules/fopen-safer (configure.ac): Likewise.
39493         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39494         GNULIB_FWRITEERROR macro definition.
39495
39496 2007-01-08  Bruno Haible  <bruno@clisp.org>
39497
39498         * m4/gnulib-common.m4: New file.
39499         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39500         (func_get_filelist): Add m4/gnulib-common.m4.
39501
39502 2007-01-08  Bruno Haible  <bruno@clisp.org>
39503
39504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39505         command.
39506
39507 2007-01-08  Jim Meyering  <jim@meyering.net>
39508
39509         Use a more robust test for a "can't happen" condition.
39510         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39511         narrowed the st_size value.  Presuming the "can't happen" condition
39512         is true, that narrowing could conceivably convert an invalid st_size
39513         value into a valid one.  Instead, use a change based on Matthew
39514         Woehlke's original patch.
39515
39516         Slight readability improvement: use an assert-like macro
39517         in place of literal "abort ()" uses.
39518         * lib/fts.c (fts_assert): Define.
39519         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39520         Use this macro instead of a bare 'abort'.
39521
39522 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39523
39524         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39525         simply work around them.
39526         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39527         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39528         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39529         declaring.
39530         Don't bother to define as macros, since the standard doesn't require it.
39531         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39532         longer worry about IRIX 5.3.
39533         (HAVE_WCTYPE_CTMP_BUG): Remove.
39534
39535 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39536
39537         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39538         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39539         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39540         Problems reported by Georg Schwarz for IRIX 5.3.
39541
39542         * gnulib-tool (autoconf_minversion): Take the maximum version number
39543         found, not the minimum.  Problem reported by James Youngman.
39544
39545 2007-01-03  Karl Berry  <karl@gnu.org>
39546
39547         * doc/error.texi: new file, explaining interaction with progname.
39548         * doc/gnulib.texi: include it.  Update copyright.
39549
39550 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39551
39552         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39553         AC_CANONICAL_HOST, to improve autobuild outputs.
39554
39555 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39556             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39557
39558         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39559         sockets, server sockets, and other file descriptors.  Count errors
39560         to compute the return value.  Reorder the code a bit to be easier
39561         to follow.  Don't set event bits that were not requested (except
39562         POLLERR and POLLHUP).
39563
39564 2007-01-01  Bruno Haible  <bruno@clisp.org>
39565
39566         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39567
39568 2007-01-03  Jim Meyering  <jim@meyering.net>
39569
39570         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39571
39572 2007-01-02  Bruno Haible  <bruno@clisp.org>
39573
39574         * modules/settime (Include): Require timespec.h.
39575         * modules/nanosleep (Include): Likewise.
39576
39577 2007-01-01  Bruno Haible  <bruno@clisp.org>
39578
39579         * gnulib-tool (func_emit_copyright_notice): Bump year.
39580         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39581
39582 2007-01-01  Bruno Haible  <bruno@clisp.org>
39583
39584         Improve support for OpenBSD.
39585         * build-aux/config.rpath (libname_spec): Export.
39586         (library_names_spec): New variable. Export.
39587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39588         library_names_spec from the config.rpath output. Locate shared library
39589         through the name pattern in library_names_spec.
39590
39591 2007-01-01  Eric Blake  <ebb9@byu.net>
39592
39593         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39594
39595 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39596
39597         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39598         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39599         assume the C locale, and avoid an "eval" that could cause trouble.
39600         Problem with SORT reported by Bob Proulx.
39601
39602         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39603         Define.  Trivial patch from Henning Nielsen Lund, originally
39604         sent to bug-grep@gnu.org today.
39605
39606 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39607
39608         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39609         struct stat.  Problem reported by Henning Nielsen Lund.
39610         * lib/acl.c: Include acl.h first, to check interface.  Don't
39611         bother to include sys/types.h and sys/stat.h again.
39612
39613 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         Import the following change from libc; problem reported by
39616         Sven Verdoolaege.
39617
39618         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39619
39620         [BZ #1373]
39621         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39622
39623 2006-12-28  Jim Meyering  <jim@meyering.net>
39624
39625         * build-aux/announce-gen: Do not assume that the package
39626         builds any of tar.gz, tar.bz2, and .xdelta files.
39627         Suggestion from Simon Josefsson.
39628
39629 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39630
39631         * modules/announce-gen: New file.
39632
39633 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39634
39635         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39636         handles its gotchas now.
39637         * lib/mbswidth.c: Likewise.
39638         * lib/wcwidth.h: Likewise.
39639         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39640         and iswcntrl; the wctype module does this stuff now.
39641         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39643         * modules/mbchar (Depends-on): Add wctype.
39644         * modules/mbswidth (Depends-on): Likewise.
39645         * modules/wcwidth (Depends-on): Likewise.
39646
39647 2006-12-27  Eric Blake  <ebb9@byu.net>
39648
39649         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39650         module uses more than what <wctype.h> is required to provide.
39651
39652 2006-12-26  Eric Blake  <ebb9@byu.net>
39653
39654         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39655
39656 2006-12-26  Eric Blake  <ebb9@byu.net>
39657
39658         * modules/absolute-header: New module.
39659         * modules/fcntl (Depends-on): Depend on it.
39660         * modules/inttypes (Depends-on): Likewise.
39661         * modules/stdint (Depends-on): Likewise.
39662         * modules/sys_stat (Depends-on): Likewise.
39663         * modules/wctype (Depends-on): Likewise.
39664         * MODULES.html.sh (Support for building libraries and
39665         executables): Document it.
39666
39667 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39668
39669         * gnulib-tool (SED): Remove, undoing previous change.
39670         The problem was that it broke coreutils on Solaris, because
39671         "sed --posix" leaked into a makefile.
39672         (sed): New alias, if 'alias' and GNU sed.
39673
39674 2006-12-24  Jim Meyering  <jim@meyering.net>
39675
39676         Work around an fchownat bug in glibc-2.4:
39677         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39678         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39679         in spite of the -P option.
39680         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39681         New macros.
39682         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39683         * modules/openat (Files): Add lib/fchownat.c.
39684         * lib/openat.c (fchownat): Don't define here.  Move to...
39685         * lib/fchownat.c: ...this new file.
39686
39687 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39688
39689         Fix bug reported by Bruno Haible in
39690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39691         where quotearg.c didn't compile on Mac OS X 10.2 because it
39692         lacks <wchar.h> and wint_t.
39693         * lib/wctype_.h (__wctype_wint_t): New type.
39694         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39695         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39696         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39697         Arg is now of type __wctype_wint_t, not wint_t.
39698         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39699         substitute HAVE_WINT_T.
39700         * modules/wctype (Files): Add m4/wint_t.m4.
39701         (wctype.h): Substitute HAVE_WINT_T.
39702
39703 2006-12-23  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39706
39707 2006-12-23  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39710         S_ISLNK.
39711         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39712         mingw.
39713
39714 2006-12-22  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/copy-file.c: Include acl.h.
39717         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39718         Close the file descriptors only after being done with copy_acl.
39719         * modules/copy-file (Depends-on): Add acl.
39720
39721 2006-12-22  Bruno Haible  <bruno@clisp.org>
39722
39723         * gnulib-tool (SED): New variable.
39724         Use $SED instead of sed everywhere.
39725
39726 2006-12-22  Bruno Haible  <bruno@clisp.org>
39727
39728         * modules/no-c++: New file.
39729         * m4/no-c++.m4: New file.
39730         * MODULES.html.sh (Support for building libraries and executables):
39731         Add no-c++.
39732
39733 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39734
39735         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39736         Include <limits.h>, and use its INT_MAX to rewrite the
39737         j loop so that it does not overflow 'int'.  Problem reported by
39738         Ralf Wildenhues in
39739         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39740         Play it safe by shifting left by 1 rather than multiplying by 2,
39741         as GCC is less likely to optimize this away when the value
39742         is signed (when it assumes overflow leads to undefined behavior).
39743         Also, don't assume time_t uses two's complement.
39744
39745 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39746
39747         * MODULES.html.sh: New module wctype.
39748         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39749         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39750         <wctype.h>, since the new wctype module should fix this.
39751         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39752         the wctype module should arrange for it.
39753         * lib/regex_internal.h: Likewise.
39754         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39755         since the wctype module should handle this now.
39756         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39757         * modules/fnmatch (Depends-on): Add wctype.
39758         * modules/quotearg (Depends-on): Likewise.
39759         * modules/regex (Depends-on): Likewise.
39760
39761 2006-12-19  Bruno Haible  <bruno@clisp.org>
39762
39763         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39764         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39765
39766 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39767
39768         * modules/savewd (Depends-on): Fix dependency on fcntl.
39769
39770 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39773         conforms to C99, rather than relying on the user's environment
39774         setting of STDINT_H.
39775
39776 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39777         and Eric Blake  <ebb9@byu.net>
39778
39779         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39780         This is more consistent with the other defines here.
39781         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39782         Port to z/OS.  Problem reported by Paul Gilmartin.
39783         Change local vars to use gl_ prefix rather than ac_.
39784         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39785         with other defines.
39786         * modules/double-slash-root: New module.
39787         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39788         (Depends-on): Add double-slash-root.
39789         * MODULES.html.sh (File system functions): Mention new module.
39790
39791 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39792
39793         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39794         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39795         This is for the benefit of gzip, which doesn't do i18n.
39796
39797 2006-12-12  Jim Meyering  <jim@meyering.net>
39798
39799         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39800         Reported by Andreas Schwab <schwab@suse.de>.
39801
39802 2006-12-12  Bruno Haible  <bruno@clisp.org>
39803
39804         Merge these changes.
39805         2006-09-05  Bruno Haible  <bruno@clisp.org>
39806         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39807         iconv_alloc succeeded.
39808         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39809         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39810         test for " && dest " at the end - dest is always != NULL there. Call
39811         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39812         with 2xNULL arguments, also to flush the state storage. Handle the
39813         IRIX iconv behaviour. Realloc the final result, to throw away unused
39814         memory.
39815
39816 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39817
39818         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39819         and fchmodat unconditionally, since glibc 2.4 has them.
39820         Problem reported by Arkadiusz Miskiewicz.
39821
39822 2006-12-10  Bruno Haible  <bruno@clisp.org>
39823
39824         * gnulib-tool (func_import): Show the include files only for those
39825         modules that are copied and specified.
39826         Reported by Karl Berry.
39827
39828 2006-12-08  Jim Meyering  <jim@meyering.net>
39829
39830         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39831         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39832
39833         * build-aux/announce-gen: Add two new options, both optional:
39834         --bootstrap-tools=TOOL_LIST
39835               a comma-separated list of tools, e.g.,
39836               autoconf,automake,bison,gnulib
39837         --gnulib-snapshot-date=DATE
39838               if gnulib is in the bootstrap tool list,
39839               then report this as the snapshot date.
39840               If not specified, use the current date/time.
39841               If you specify a date here, be sure it's UTC.
39842
39843 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39844
39845         * tests/test-argp-2.sh: Fix test to match actual output.
39846         (func_compare): Fix sed script to be portable.
39847
39848 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39849
39850         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39851         workaround for this case.  It is not autoconfigured now; offhand
39852         it's hard to see how to autoconfigure it.
39853
39854 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39855
39856         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39857         a directory that is about to be chowned.  Such a directory's
39858         initial file permissions should permit the owner only and this
39859         should not be changed until after the chown, since the group and
39860         other bits would be incorrect if they granted permission before
39861         the chown.
39862
39863         Fix porting problem for iswctype reported by Georg Schwarz in:
39864         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39865         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39866         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39868         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39869
39870 2006-12-03  Jim Meyering  <jim@meyering.net>
39871
39872         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39873         p->fts_statp may not yet be defined.
39874         (fts_read): Instead, set it in the caller, once p->fts_statp is
39875         sure to be defined, and corresponds to a top-level directory.
39876         This bug made du -x fail.  Here's the coreutils test case:
39877         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39878         Reported by Mike Frysinger.
39879
39880 2006-12-01  Jim Meyering  <jim@meyering.net>
39881
39882         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39883         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39884         Reported by Simon Josefsson.
39885
39886 2006-11-30  Jim Meyering  <jim@meyering.net>
39887
39888         * m4/warning.m4: Use the all-permissive copyright notice
39889         recommended by RMS (rather than LGPL).
39890         * m4/vararrays.m4: Likewise.
39891         * m4/flexmember.m4: Likewise.
39892
39893 2006-11-29  Bruno Haible  <bruno@clisp.org>
39894
39895         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39896         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39897         using +=.
39898         Reported by Simon Josefsson <simon@josefsson.org>.
39899
39900 2006-11-28  James Youngman <jay@gnu.org>
39901
39902         * README: Advise users that they might find the bug-gnulib@gnu.org
39903         and autotools-announce@gnu.org mailing lists useful.
39904
39905 2006-11-28  Bruno Haible  <bruno@clisp.org>
39906
39907         * m4/ptrdiff_max.m4: Remove file.
39908
39909 2006-11-21  Bruno Haible  <bruno@clisp.org>
39910
39911         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39912         _AC_COMPUTE_INT.
39913         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39914         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39915         _AC_COMPUTE_INT.
39916         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39917         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39918         _AC_COMPUTE_INT.
39919         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39920
39921 2006-11-28  Jim Meyering  <jim@meyering.net>
39922
39923         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39924         warning from "gcc -Wshadow" about shadowing the builtin.
39925
39926 2006-11-27  Bruno Haible  <bruno@clisp.org>
39927
39928         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39929         _AC_COMPUTE_INT.
39930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39931
39932 2006-11-27  Bruno Haible  <bruno@clisp.org>
39933             Paul Eggert  <eggert@cs.ucla.edu>
39934
39935         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39936
39937 2006-11-26  Bruno Haible  <bruno@clisp.org>
39938
39939         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39940         noinst_LTLIBRARIES.
39941
39942 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39943             Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39946         if compiling with "gcc -ansi".
39947
39948 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39949
39950         Fix some incompatibilities with gcc -ansi -pedantic.
39951         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39952         if compiling pedantically with GCC, unless it's C99 or later.
39953         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39954         it mishandles gcc -ansi -pedantic as well.
39955         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39956         if gcc -pedantic.
39957         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39958         initializers for struct if -pedantic, unless it's C99 or later.
39959
39960 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39961
39962         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39963         Don't close an fd more than once. Identical atimes indicate
39964         success, not failure.
39965
39966 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39967
39968         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39969
39970 2006-11-23  Jim Meyering  <jim@meyering.net>
39971
39972         * build-aux/announce-gen: New file.  From coreutils.
39973
39974 2006-11-22  Jim Meyering  <jim@meyering.net>
39975
39976         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39977         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39978         (fts_read): Use a temporary to narrow the overused st_size member
39979         before using it in a switch statement.  Reported by Matthew Woehlke.
39980
39981         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39982         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39983
39984 2006-11-20  Bruno Haible  <bruno@clisp.org>
39985
39986         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39987         changequote instead of pairs of brackets.
39988         Reported by Andreas Schwab <schwab@suse.de>.
39989
39990 2006-11-21  Jim Meyering  <jim@meyering.net>
39991
39992         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39993         so as to remain compatible with older compilers.
39994         Patch from Michael Deutschmann.
39995
39996 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39997
39998         * MODULES.html.sh (File system functions): Add openat.
39999
40000         * lib/openat.h (rpl_fstatat): New macro, if
40001         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40002         (fstatat): Define to rpl_fstatat under the same conditions,
40003         unless COMPILING_FSTATAT.
40004         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40005         seems to have the bug.
40006         * lib/fstatat.c: New file.
40007         * modules/openat (Files): Add it.
40008
40009 2006-11-20  Bruno Haible  <bruno@clisp.org>
40010
40011         * Makefile: New file.
40012
40013 2006-11-20  Jim Meyering  <jim@meyering.net>
40014
40015         The beginnings of syntax-related checks for gnulib.
40016         * lib/Makefile: New file.
40017         * lib/t-idcache: New script.  Ensure that the two halves of
40018         idcache.c stay in sync.
40019
40020         * lib/idcache.c: Adjust comments in user- and group- portions to
40021         be more accurate, and to be consistent with one another.
40022
40023 2006-11-20  Jim Meyering  <jim@meyering.net>
40024
40025         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40026         continue using the flexible array member (thus, this module performs
40027         half as many malloc calls), with the addition that...
40028         (getgroup, getuser): Consistently record a non-match via an empty
40029         "name" string, and map an empty string match to a NULL return value.
40030         * modules/idcache (Depends-on): Re-add flexmember.
40031
40032         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40033         (getuidbyname, getgroup, getgidbyname): Likewise.
40034
40035         Use cleaner syntax: NULL rather than 0.
40036         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40037
40038 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40039
40040         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40041         It mishandled the case where the group was missing.
40042         Problem reported by Greg Schafer.
40043         * modules/idcache: Likewise.
40044
40045 2006-11-18  Jim Meyering  <jim@meyering.net>
40046
40047         * check-module (%exempt_header): Add exception for some
40048         conditionally-included headers.
40049
40050         * modules/i-ring (Depends-on): Add verify.
40051         (License): Change to LGPL.
40052
40053 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40054
40055         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40056         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40057         and inttostr.h.  Use snprintf rather than uinttostr, so that
40058         LGPLed code doesn't depend on GPLed.
40059
40060 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40061
40062         * modules/inline (License): Change from GPL to LGPL.
40063
40064 2006-11-17  Jim Meyering  <jim@meyering.net>
40065
40066         * modules/d-type (License): Switch to LGPL.
40067
40068 2006-11-15  Bruno Haible  <bruno@clisp.org>
40069
40070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40071
40072 2006-11-15  Eric Blake  <ebb9@byu.net>
40073
40074         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40075         the module dependency.
40076
40077 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40078             Bruno Haible  <bruno@clisp.org>
40079
40080         * gnulib-tool (func_create_testdir): Add license consistency check.
40081
40082 2006-11-15  Eric Blake  <ebb9@byu.net>
40083
40084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40085         random "(cached)" in configure output.
40086
40087 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40088
40089         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40090         test for conforming inttypes.h is both announced and cached.
40091
40092         * MODULES.html.sh (seen_modules, seen_files): New variables.
40093         (func_module): Rewrite to use a few less gnulib-tool and sed
40094         invocations.  Avoid a couple of quadratic algorithms for ...
40095         (missed_modules, missed_files): ... these, with ...
40096         (func_append, func_tmpdir): ... these new functions, from
40097         gnulib-tool.  Analogously, install traps for cleanup.
40098
40099         * tests/test-gc.c (main): Remove unused variables.
40100         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40101
40102 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * modules/inttostr (License): Change to LGPL.
40105
40106 2006-11-14  Eric Blake  <ebb9@byu.net>
40107
40108         * modules/tempname (License): Change to LGPL.
40109
40110 2006-11-14  Eric Blake  <ebb9@byu.net>
40111
40112         * doc/functions.texi (Function Portability): *printf functions on
40113         Cygwin now understand all POSIX size specifiers.
40114
40115 2006-11-14  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/c-ctype (License): Change to LGPL.
40118
40119 2006-11-12  Bruno Haible  <bruno@clisp.org>
40120
40121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40122         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40123         for GNOME libraries, for which the include files are installed in
40124         subdirectories of $prefix/include.
40125
40126 2006-11-12  Bruno Haible  <bruno@clisp.org>
40127
40128         * m4/lib-link.m4: Require at least autoconf-2.54.
40129         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40130         name to underscores for the --with option.
40131
40132 2006-11-13  Bruno Haible  <bruno@clisp.org>
40133
40134         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40135         the tests directory.
40136         Reported by Ralf Wildenhues.
40137
40138 2006-11-13  Bruno Haible  <bruno@clisp.org>
40139
40140         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40141         (func_emit_initmacro_end): Undo the override here.
40142         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40143         Works around the famous automake error in coreutils.
40144
40145 2006-11-13  Eric Blake  <ebb9@byu.net>
40146
40147         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40148         element, not its node.
40149
40150 2006-11-12  Bruno Haible  <bruno@clisp.org>
40151
40152         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40153         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40154
40155 2006-11-12  Bruno Haible  <bruno@clisp.org>
40156
40157         * gnulib-tool: New option --local-symlink.
40158         (func_usage): Document it.
40159         (lsymbolic): New variable.
40160         (func_import, func_create_testdir): If --symlink was not specified,
40161         test whether --local-symlink was specified and the file comes from
40162         the local_gnulib_dir.
40163
40164 2006-11-12  Bruno Haible  <bruno@clisp.org>
40165
40166         * gnulib-tool (func_ln): New function.
40167         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40168
40169 2006-11-12  Bruno Haible  <bruno@clisp.org>
40170
40171         Finish support for source files in subdirectories.
40172         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40173         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40174         AUTOMAKE_OPTIONS.
40175         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40176
40177 2006-11-12  Bruno Haible  <bruno@clisp.org>
40178
40179         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40180         EXTRA_lib_SOURCES augmentation.
40181         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40182
40183 2006-11-12  Jim Meyering  <jim@meyering.net>
40184
40185         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40186         file descriptors.  This also averts a failure on systems with
40187         native openat support when a traversed directory lacks "x" access.
40188         * lib/fts_.h: Include "i-ring.h"
40189         (struct FTS) [fts_fd_ring]: New member.
40190         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40191         (FCHDIR): Add parentheses.
40192         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40193         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40194         When descending, rather than simply closing the previous
40195         fts_cwd_fd value, push that file descriptor onto the ring.
40196         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40197         (fts_open): Initialize the new fd_ring member.
40198         (fts_close): Clear the ring.
40199         (fts_safe_changedir): When possible, use our new fd_ring to skip
40200         the diropen and fstat and dev/ino comparison that would normally
40201         accompany a virtual `chdir ("..")'.
40202
40203         * modules/fts (Depends-on): Add i-ring.
40204         * modules/i-ring: New module.
40205         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40206         * m4/i-ring.m4: New file.
40207
40208 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40209
40210         * gnulib-tool (func_create_testdir): Fix replacement of
40211         `build-aux' in configure.ac.  Run autotools in gltests
40212         subdirectory.
40213         (func_create_testdir, func_create_megatestdir, test): There is
40214         no need for '--force' in most autotool invocations in a new
40215         tree.  Actually fail the whole test if any of the tools, or the
40216         configure or make stages fail.
40217
40218         Sync from Automake.
40219         * build-aux/gnupload: Revert last change.  Add pointer to upload
40220         instructions of the GNU Maintenance Instructions.
40221         Suggestion by Karl Berry.
40222
40223 2006-11-10  Jim Meyering  <jim@meyering.net>
40224
40225         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40226
40227 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40228
40229         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40230         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40231         (bind_textdomain_codeset) [! ENABLE_NLS]:
40232         Evaluate all the arguments.  That way, callers get compatible behavior
40233         if the arguments have side effects.  Also, it avoids some GCC
40234         diagnostics in some cases; Joel E. Denny reported problems when Bison
40235         was configured with --enable-gcc-warnigs.
40236
40237 2006-11-10  Jim Meyering  <jim@meyering.net>
40238
40239         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40240         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40241         account.
40242
40243 2006-11-10  Jim Meyering  <jim@meyering.net>
40244
40245         * modules/inline: New file/module.
40246         * modules/xalloc (Files): Remove m4/inline.m4.
40247         (Depends-on): Add inline, instead.
40248         * modules/oset: Likewise.
40249         * modules/list: Likewise.
40250
40251 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40254         Problem reported by Matthew Woehlke.
40255
40256 2006-11-09  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/tempname.c (gen_tempname): Remove variant that invokes
40259         __gen_tempname.
40260         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40261         __gen_tempname.
40262
40263 2006-11-08  Bruno Haible  <bruno@clisp.org>
40264
40265         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40266         to 'yes' instead of 'cross-compiling'.
40267
40268 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * lib/quotearg.h (quotearg_free): New decl.
40271         * lib/quotearg.c (quotearg_free): New function.
40272         (slot0, nslots, slotvec0, slotvec):
40273         Now file-scope so that quotearg_free can get at them.
40274
40275 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40276
40277         Sync from Automake.
40278         * build-aux/gnupload: Add missing 'gnu' to example URL.
40279         Report by Karl Berry.
40280
40281 2006-11-08  Bruno Haible  <bruno@clisp.org>
40282
40283         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40284         Suggested by Paul Eggert.
40285
40286 2006-11-08  Jim Meyering  <jim@meyering.net>
40287
40288         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40289         It's already included if !_LIBC.
40290         (fts_safe_changedir): Add a comment.
40291
40292 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40293
40294         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40295         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40296         Matthew Woehlke.
40297
40298         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40299         definitions up, to avoid colliding with change below.
40300         (static_inline) [HAVE_INLINE]: New macro.
40301         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40302         Provide extern decls when !HAVE_INLINE.  Do not define unless
40303         static_inline is defined, either by us or by xmalloc.c.  Use
40304         static_inline rather than static inline.
40305         (XCALLOC): Optimize sizeof(T) = 1 case.
40306         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40307
40308 2006-11-07  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40311         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40312         AC_C_INLINE.
40313         * modules/xalloc (Files): Add m4/inline.m4.
40314
40315 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40316
40317         * README: Fix typo.
40318         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40319         (Miscellanous Notes): ...from this.
40320
40321 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40322
40323         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40324         Mention that offsetof should be used instead of sizeof.
40325         From Bruno Haible.
40326
40327 2006-11-07  Bruno Haible  <bruno@clisp.org>
40328
40329         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40330
40331 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40332
40333         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40334         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40336         (gl_tree_add_before, gl_tree_add_after):
40337         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40338         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40339         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40340         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40341         (gl_linked_add_after, gl_linked_add_at): Likewise.
40342         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40343         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40344         (gl_tree_add_before, gl_tree_add_after): Likewise.
40345         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40346         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40347         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40348
40349 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40350
40351         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40352
40353 2006-11-06  Bruno Haible  <bruno@clisp.org>
40354
40355         * m4/inline.m4: New file.
40356         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40357         * modules/list (Files): Add m4/inline.m4.
40358         * modules/oset (Files): Likewise.
40359
40360 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40361
40362         * lib/idcache.c: Include <stddef.h>, for offsetof.
40363         (struct userid.name): Change from char * to a flexible array member.
40364         All uses changed.
40365         * modules/idcache (Depends-on): Add flexmember.
40366
40367         * MODULES.html.sh (Core language properties): New module flexmember.
40368         * modules/flexmember, m4/flexmember.m4: New files.
40369
40370         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40371         inline functions that are identical with the old xnmalloc_inline,
40372         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40373         that we can avoid some unnecessary integer multiplications and
40374         divisions in the common case where the element size is known at
40375         compile time.
40376         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40377         needed.
40378         (xnboundedmalloc): Remove.
40379         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40380         arguments, for consistency with rest of this header.
40381         (xcharalloc): Rewrite using XNMALLOC.
40382         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40383         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40384         versions have been moved to lib/xalloc.h and renamed to be the
40385         non-*_inline versions.
40386         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40387         and xnrealloc functions, since those functions are now inline and
40388         now call us.
40389         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40390         renaming described above.
40391         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40392         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40393         captures the dependency in AC_C_INLINE.
40394
40395         New module canonicalize-lgpl, proposed by Charles Wilson in
40396         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40397         with a few small changes afterwards.
40398         * MODULES.html.sh (File system functions): New module
40399         canonicalize-lgpl.
40400         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40401         and canonicalize_file_name.
40402         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40403         * modules/canonicalize-lgpl: New files.
40404
40405 2006-11-05  Bruno Haible  <bruno@clisp.org>
40406
40407         * gnulib-tool (func_import, func_create_testdir): Create directories
40408         also for files in subdirectories of lib/.
40409
40410 2006-11-05  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40413         ANSI C compliant.
40414
40415 2006-11-03  Bruno Haible  <bruno@clisp.org>
40416
40417         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40418         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40419         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40420         (xnboundedmalloc): New inline function.
40421         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40422         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40423         xmalloc.
40424         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40425         xmalloc.
40426         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40427         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40428         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40429         xmalloc.
40430         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40431         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40432         xmalloc.
40433         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40434         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40435         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40436         xmalloc.
40437         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40438         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40439         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40440         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40441         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40442         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40443         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40444
40445 2006-11-03  Bruno Haible  <bruno@clisp.org>
40446
40447         * lib/c-ctype.h [C++]: Define functions without name mangling.
40448         * lib/fwriteerror.h [C++]: Likewise.
40449         * lib/gcd.h [C++]: Likewise.
40450         * lib/linebreak.h [C++]: Likewise.
40451
40452 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40453
40454         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40455         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40456         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40458         Check for functions and headers just once.
40459         Check for declaration of canonicalize_file_name.
40460         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40461
40462 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40463
40464         * gnulib-tool (func_import): Fix typo in actioncmd.
40465
40466 2006-11-02  Bruno Haible  <bruno@clisp.org>
40467
40468         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40469         newline sequence in the Makefile.am snippet as a space, like "make"
40470         does.
40471         Reported by Roger Persson <perrog@gmail.com>.
40472
40473 2006-11-01  Bruno Haible  <bruno@clisp.org>
40474
40475         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40476         already declared in <string.h>.
40477         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40478
40479 2006-11-01  Bruno Haible  <bruno@clisp.org>
40480
40481         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40482         * lib/strcase.h: Include <string.h>.
40483         (strcasecmp): Define to rpl_strcasecmp here.
40484
40485 2006-11-01  Bruno Haible  <bruno@clisp.org>
40486
40487         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40488
40489 2006-11-01  Eric Blake  <ebb9@byu.net>
40490
40491         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40492
40493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40494
40495 2006-10-29  Bruno Haible  <bruno@clisp.org>
40496
40497         Make it compile in C++ mode.
40498         * lib/full-write.c (full_rw): Add a cast.
40499
40500 2006-11-01  Bruno Haible  <bruno@clisp.org>
40501
40502         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40503         be POSIX compliant.
40504         Reported by Roger Persson <perrog@gmail.com>.
40505
40506 2006-11-01  Eric Blake  <ebb9@byu.net>
40507
40508         * lib/getopt_.h: Fix comments.
40509
40510 2006-10-31  Eric Blake  <ebb9@byu.net>
40511
40512         * modules/tmpdir (Depends-on): Add sys_stat.
40513         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40514         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40515         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40516         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40517         tempname.
40518
40519 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40520
40521         Avoid some C++ diagnostics reported by Bruno Haible.
40522         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40523         xmalloc.
40524         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40525         (struct slotvec): Move to top level.
40526         (quotearg_n_options): Rewrite to avoid xmalloc.
40527         * lib/xalloc.h (xcharalloc): New function.
40528         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40529         [defined __cplusplus]: Add function template that provides result
40530         type propagation.  This part of the change is from Bruno Haible.
40531
40532 2006-10-29  Bruno Haible  <bruno@clisp.org>
40533
40534         Make it compile in C++ mode.
40535         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40536         * lib/strnlen1.c (strnlen1): Cast memchr result.
40537         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40538         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40539         (create_temp_dir): Rename local variable 'template'.
40540         (compile_csharp_using_sscli): Add cast.
40541         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40542         * lib/findprog.c (find_in_path): Likewise.
40543         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40544         * lib/wait-process.c (register_slave_subprocess): Likewise.
40545
40546 2006-10-22  Bruno Haible  <bruno@clisp.org>
40547
40548         * modules/tsearch: New file.
40549         * lib/tsearch.h: New file.
40550         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40551         * m4/tsearch.m4: New file.
40552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40553
40554 2006-10-29  Eric Blake  <ebb9@byu.net>
40555
40556         * lib/arcfour.c: Assume config.h.
40557         * lib/arctwo.c: Likewise.
40558         * lib/base64.c: Likewise.
40559         * lib/check-version.c: Likewise.
40560         * lib/crc.c: Likewise.
40561         * lib/des.c: Likewise.
40562         * lib/gc-gnulib.c: Likewise.
40563         * lib/gc-libgcrypt.c: Likewise.
40564         * lib/gc-pbkdf2-sha1.c: Likewise.
40565         * lib/getaddrinfo.c: Likewise.
40566         * lib/getdelim.c: Likewise.
40567         * lib/getline.c: Likewise.
40568         * lib/hmac-md5.c: Likewise.
40569         * lib/hmac-sha1.c: Likewise.
40570         * lib/iconvme.c: Likewise.
40571         * lib/md2.c: Likewise.
40572         * lib/md4.c: Likewise.
40573         * lib/memxor.c: Likewise.
40574         * lib/read-file.c: Likewise.
40575         * lib/readline.c: Likewise.
40576         * lib/rijndael-alg-fst.c: Likewise.
40577         * lib/rijndael-api-fst.c: Likewise.
40578         * lib/xgetdomainname.c: Likewise.
40579
40580 2006-10-28  Eric Blake  <ebb9@byu.net>
40581
40582         * lib/xstrndup.c: Assume config.h.
40583
40584 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40585
40586         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40587         stat-macros.h is now for our own macros, whereas stat_h is for
40588         macros in the <sys/stat.h> name space.
40589         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40590         (STAT_MACROS_H): Remove.
40591         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40592         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40593         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40594         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40595         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40596         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40597         Move these macros to ...
40598         * lib/stat_.h: here.  Don't include stat-macros.h.
40599         * lib/canonicalize.c: Don't include stat-macros.h.
40600         * lib/chown.c: Likewise.
40601         * lib/euidaccess.c: Likewise.
40602         * lib/file-type.c: Likewise.
40603         * lib/filemode.c: Likewise.
40604         * lib/glob.c: Likewise.
40605         * lib/isapipe.c: Likewise.
40606         * lib/lchown.c: Likewise.
40607         * lib/lstat.c: Likewise.
40608         * lib/mkdir-p.c: Likewise.
40609         * lib/rmdir.c: Likewise.
40610         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40612         unless mkdir isn't declared, to speed up 'configure'.
40613         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40614         would define all the S_* symbols.
40615         * modules/canonicalize (Depends-on):
40616         Depend on sys_stat, not stat-macros.
40617         * modules/chown: Likewise.
40618         * modules/euidaccess: Likewise.
40619         * modules/filemode: Likewise.
40620         * modules/file-type: Likewise.
40621         * modules/glob: Likewise.
40622         * modules/isapipe: Likewise.
40623         * modules/lchown: Likewise.
40624         * modules/lstat: Likewise.
40625         * modules/mkancesdirs: Likewise.
40626         * modules/rmdir: Likewise.
40627         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40628         * modules/modechange: Likewise.
40629         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40630         (configure.ac): Remove gl_STAT_MACROS.
40631         * modules/sys_stat (Depends-on): Remove stat-macros.
40632
40633 2006-10-27  Bruno Haible  <bruno@clisp.org>
40634
40635         * m4/signed.m4: Remove file.
40636         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40637         invocation.
40638         * modules/vasnprintf (Files): Remove m4/signed.m4.
40639
40640 2006-10-27  Bruno Haible  <bruno@clisp.org>
40641
40642         Update to GNU gettext 0.16.
40643         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40644         m4/inttypes-h.m4, m4/signed.m4.
40645         * m4/gettext.m4: Update to GNU gettext 0.16.
40646         * m4/intl.m4: New file, from GNU gettext.
40647         * m4/intldir.m4: New file, from GNU gettext.
40648         * config/srclist.txt: Update
40649
40650 2006-10-27  Eric Blake  <ebb9@byu.net>
40651
40652         * MODULES.html.sh: Document tempname.
40653         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40654         dependencies.
40655         (Files): Move lib/tempname.c...
40656         * modules/tempname: ...to this new module.
40657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40658         (gl_PREREQ_TEMPNAME): Move...
40659         * m4/tempname.m4: ...to this new file.
40660         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40661         * modules/sys_stat (Depends-on): Add stat-macros.
40662         * lib/stat_.h (includes): Pick up stat macros.
40663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40664         if stat macros are broken.
40665         * lib/tempname.c (includes): No need to include "stat-macros.h".
40666         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40667         (direxists, __path_search) [!_LIBC]: Don't compile these in
40668         gnulib; the tmpdir module covers that.
40669         * lib/tempname.h: New file.
40670
40671 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40672
40673         * COPYING: Explain how gnulib-tool converts licence headers.
40674         Almost all wording by Eric Blake.
40675
40676 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40677
40678         * lib/mbchar.h (is_basic_table): Make read-only.
40679         * lib/mbchar.c (is_basic_table): Likewise.
40680         Reported by John Darrington.
40681
40682 2006-10-25  Bruno Haible  <bruno@clisp.org>
40683
40684         * lib/progname.h (set_program_name): Undefine before defining.
40685
40686 2006-10-25  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40689         false for non-gcc C++ compilers.
40690         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40691
40692 2006-10-24  Bruno Haible  <bruno@clisp.org>
40693
40694         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40695         iconv implementations like Irix iconv.
40696
40697 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40698
40699         * modules/vararrays: New file.
40700         * m4/vararrays.m4: New file, taken from diffutils.
40701         * MODULES.html.sh: New module vararrays.
40702
40703 2006-10-24  Karl Berry  <karl@gnu.org>
40704
40705         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40706         Don't call GNU Unix.
40707
40708 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40709
40710         * users.txt: Add Libtool.
40711
40712         Sync from Libtool:
40713
40714         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40715
40716         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40717         to gnulib's policy of including config.h unconditionally.
40718
40719 2006-10-24  Bruno Haible  <bruno@clisp.org>
40720
40721         * modules/wcwidth (Files): Add m4/wint_t.m4.
40722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40723         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40724
40725 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40726
40727         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40728         to pacify GCC with some -W flags enabled.  Problem reported by
40729         Bruno Haible.
40730
40731 2006-10-24  Jim Meyering  <jim@meyering.net>
40732
40733         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40734         Reported by Karl Berry.
40735
40736 2006-10-23  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40739
40740 2006-10-24  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/gl_list.h: Use C comment style, not C++ comment style.
40743
40744 2006-10-23  Eric Blake  <ebb9@byu.net>
40745
40746         * lib/getaddrinfo.c (includes): Add missing include.
40747
40748 2006-10-23  Bruno Haible  <bruno@clisp.org>
40749             Paul Eggert  <eggert@cs.ucla.edu>
40750
40751         Ability to rename obstack_free.
40752         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40753         obstack_free.
40754         (obstack_free): Invoke the __obstack_free macro.
40755         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40756
40757 2006-10-23  Bruno Haible  <bruno@clisp.org>
40758             Paul Eggert  <eggert@cs.ucla.edu>
40759
40760         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40761         __argc, __argv from the declaration. (They are defined as macros on
40762         mingw.)
40763
40764 2006-10-22  Bruno Haible  <bruno@clisp.org>
40765
40766         * doc/gnulib-intro.texi: New file.
40767         * doc/gnulib.texi: Include it.
40768
40769 2006-10-21  Bruno Haible  <bruno@clisp.org>
40770
40771         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40772         "Introduction", "Miscellanous Notes", "Particular Modules".
40773
40774 2006-10-21  Bruno Haible  <bruno@clisp.org>
40775
40776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40777         Change mostlyclean-local rule to avoid sh syntax error from bash
40778         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40779
40780 2006-10-23  Jim Meyering  <jim@meyering.net>
40781
40782         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40783         in place of snprintf.
40784
40785         * modules/inttostr (Files): Add lib/uinttostr.c.
40786         * lib/uinttostr.c (inttostr): New file/function.
40787         * lib/inttostr.h (uinttostr): Declare.
40788         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40789         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40790         Add uinttostr.
40791         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40792
40793 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40794
40795         * lib/canonicalize.c (ELOOP): Define if not already defined.
40796         Problem reported by Bruno Haible in
40797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40798
40799 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40800
40801         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40802         Problem reported by Perry Smith and Ville Laurikari.
40803
40804         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40805         uses.
40806
40807 2006-10-19  Bruno Haible  <bruno@clisp.org>
40808
40809         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40810         for mingw.
40811
40812 2006-10-19  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40815         Needed for mingw.
40816
40817 2006-10-19  Bruno Haible  <bruno@clisp.org>
40818
40819         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40820
40821 2006-10-19  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40824         it.
40825
40826 2006-10-19  Bruno Haible  <bruno@clisp.org>
40827
40828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40829         invocation.
40830
40831 2006-10-19  Bruno Haible  <bruno@clisp.org>
40832
40833         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40834         mountlist by default.
40835
40836 2006-10-16  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/c-strstr.c: Include c-strstr.h.
40839
40840 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40841
40842         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40843         in a slash.
40844
40845 2006-10-18  Bruno Haible  <bruno@clisp.org>
40846
40847         * lib/lock.h [C++]: Wrap definitions in extern "C".
40848
40849 2006-10-18  Bruno Haible  <bruno@clisp.org>
40850
40851         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40852         gl_LIBOBJS list.
40853
40854 2006-10-18  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40857
40858 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40859
40860         * lib/xstrtol.h: Include gettext.h.
40861         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40862         Problem reported by Eric Blake.
40863         * modules/xstrtol (Depends-on): Add gettext-h.
40864
40865 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40866
40867         * lib/strftime.c (advance): New macro.
40868         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40869         incomplete type, so you can't add 0 to it.  Problem and patch
40870         reported by Eelco Dolstra for dietlibc.
40871
40872 2006-10-18  Jim Meyering  <jim@meyering.net>
40873
40874         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40875         type for a local, and rename it: s/up/user_proc/.
40876
40877 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40878
40879         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40880         READ_UTMP_USER_PROCESS.
40881         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40882
40883 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40884
40885         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40886         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40887
40888 2006-10-17  Eric Blake  <ebb9@byu.net>
40889
40890         * lib/sigprocmask.c (sigprocmask): Fix typo.
40891
40892         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40893
40894         * modules/clean-temp (Makefile.am): Don't add to make output...
40895         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40896         config.h.
40897
40898 2006-10-17  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40901         differently if DEFAULT_TEXT_DOMAIN is set.
40902
40903 2006-10-16  Bruno Haible  <bruno@clisp.org>
40904
40905         * lib/clean-temp.c: Include fwriteerror.h.
40906
40907 2006-10-16  Bruno Haible  <bruno@clisp.org>
40908
40909         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40910
40911 2006-10-16  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40914         * lib/sigprocmask.h: Include <sys/types.h>.
40915         (sigset_t): Use the system's definition if present.
40916
40917 2006-10-17  Eric Blake  <ebb9@byu.net>
40918
40919         * lib/xvasprintf.c (includes): Assume config.h.
40920         * lib/xasprintf.c (includes): Likewise.
40921
40922 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40923
40924         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40925         at least as wide as intmax_t.
40926
40927 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40928
40929         (Imported from Automake.)
40930         * build-aux/gnupload: Update to version 1.1 of directive file.
40931
40932 2006-10-16  Eric Blake  <ebb9@byu.net>
40933
40934         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40935         match Automake 1.10a.
40936
40937 2006-10-14  Bruno Haible  <bruno@clisp.org>
40938
40939         * modules/sigprocmask: New file.
40940         * lib/sigprocmask.h: New file.
40941         * lib/sigprocmask.c: New file.
40942         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40943         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40944         request sigprocmask.o.
40945         (gl_PREREQ_SIGPROCMASK): New macro.
40946         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40947         (Depends-on): Add sigprocmask.
40948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40949         gt_SIGNALBLOCKING. Test for 'raise' only once.
40950         * lib/fatal-signal.c: Include sigprocmask.h.
40951         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40952         unblock_fatal_signals): Define always.
40953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40954         sigprocmask.
40955
40956 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         Sync from Automake.
40959         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40960         which incorrectly sets the mode of an existing destination
40961         directory.  In some cases the unpatched install-sh could do the
40962         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40963         system.  We hope this is rare in practice, but it's clearly worth
40964         fixing.  Problem reported by Alex Unleashed in
40965         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40966         Also, don't bother to check for -m bugs unless we're using -m;
40967         suggested by Stepan Kasal.
40968
40969 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40970
40971         Sync from Automake.
40972         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40973         `-c' flag, so they appear at the same position as in %FASTDEP%
40974         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40975         which ignores unknown options only after the first non-option.
40976         Bug report against M4 by Nelson H. F. Beebe.
40977
40978 2006-10-13  Jim Meyering  <jim@meyering.net>
40979
40980         Fix a bug in yesterday's change.
40981         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40982         p->fts_statp->st_dev would be used uninitialized.
40983         Ensures that we always call fts_stat on the very first entry.
40984         Miklos Szeredi reported that find -xdev stopped working.
40985
40986 2006-10-12  Bruno Haible  <bruno@clisp.org>
40987
40988         * gnulib-tool (func_get_automake_snippet): Append an automatically
40989         computed EXTRA_DIST augmentation.
40990         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40991         * modules/alloca-opt (Makefile.am): Likewise.
40992         * modules/allocsa (Makefile.am): Likewise.
40993         * modules/arcfour (Makefile.am): Likewise.
40994         * modules/arctwo (Makefile.am): Likewise.
40995         * modules/argmatch (Makefile.am): Likewise.
40996         * modules/argz (Makefile.am): Likewise.
40997         * modules/atexit (Makefile.am): Likewise.
40998         * modules/backupfile (Makefile.am): Likewise.
40999         * modules/byteswap (Makefile.am): Likewise.
41000         * modules/c-strtod (Makefile.am): Likewise.
41001         * modules/c-strtold (Makefile.am): Likewise.
41002         * modules/calloc (Makefile.am): Likewise.
41003         * modules/canon-host (Makefile.am): Likewise.
41004         * modules/canonicalize (Makefile.am): Likewise.
41005         * modules/chdir-long (Makefile.am): Likewise.
41006         * modules/chdir-safer (Makefile.am): Likewise.
41007         * modules/check-version (Makefile.am): Likewise.
41008         * modules/chown (Makefile.am): Likewise.
41009         * modules/cloexec (Makefile.am): Likewise.
41010         * modules/close-stream (Makefile.am): Likewise.
41011         * modules/closeout (Makefile.am): Likewise.
41012         * modules/crc (Makefile.am): Likewise.
41013         * modules/csharpexec (Makefile.am): Likewise.
41014         * modules/cycle-check (Makefile.am): Likewise.
41015         * modules/des (Makefile.am): Likewise.
41016         * modules/dev-ino (Makefile.am): Likewise.
41017         * modules/dirfd (Makefile.am): Likewise.
41018         * modules/dirname (Makefile.am): Likewise.
41019         * modules/dup2 (Makefile.am): Likewise.
41020         * modules/eealloc (Makefile.am): Likewise.
41021         * modules/error (Makefile.am): Likewise.
41022         * modules/euidaccess (Makefile.am): Likewise.
41023         * modules/exclude (Makefile.am): Likewise.
41024         * modules/exitfail (Makefile.am): Likewise.
41025         * modules/fcntl-safer (Makefile.am): Likewise.
41026         * modules/fcntl (Makefile.am): Likewise.
41027         * modules/file-type (Makefile.am): Likewise.
41028         * modules/fileblocks (Makefile.am): Likewise.
41029         * modules/filemode (Makefile.am): Likewise.
41030         * modules/filenamecat (Makefile.am): Likewise.
41031         * modules/fnmatch (Makefile.am): Likewise.
41032         * modules/fopen-safer (Makefile.am): Likewise.
41033         * modules/fpending (Makefile.am): Likewise.
41034         * modules/fprintftime (Makefile.am): Likewise.
41035         * modules/free (Makefile.am): Likewise.
41036         * modules/fsusage (Makefile.am): Likewise.
41037         * modules/ftruncate (Makefile.am): Likewise.
41038         * modules/fts (Makefile.am): Likewise.
41039         * modules/gc-arcfour (Makefile.am): Likewise.
41040         * modules/gc-des (Makefile.am): Likewise.
41041         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41042         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41043         * modules/gc-md4 (Makefile.am): Likewise.
41044         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41045         * modules/gc-sha1 (Makefile.am): Likewise.
41046         * modules/gc (Makefile.am): Likewise.
41047         * modules/getaddrinfo (Makefile.am): Likewise.
41048         * modules/getcwd (Makefile.am): Likewise.
41049         * modules/getdelim (Makefile.am): Likewise.
41050         * modules/getdomainname (Makefile.am): Likewise.
41051         * modules/getgroups (Makefile.am): Likewise.
41052         * modules/gethostname (Makefile.am): Likewise.
41053         * modules/gethrxtime (Makefile.am): Likewise.
41054         * modules/getline (Makefile.am): Likewise.
41055         * modules/getloadavg (Makefile.am): Likewise.
41056         * modules/getlogin_r (Makefile.am): Likewise.
41057         * modules/getndelim2 (Makefile.am): Likewise.
41058         * modules/getopt (Makefile.am): Likewise.
41059         * modules/getpagesize (Makefile.am): Likewise.
41060         * modules/getpass-gnu (Makefile.am): Likewise.
41061         * modules/getpass (Makefile.am): Likewise.
41062         * modules/getsubopt (Makefile.am): Likewise.
41063         * modules/gettime (Makefile.am): Likewise.
41064         * modules/gettimeofday (Makefile.am): Likewise.
41065         * modules/getugroups (Makefile.am): Likewise.
41066         * modules/getusershell (Makefile.am): Likewise.
41067         * modules/glob (Makefile.am): Likewise.
41068         * modules/group-member (Makefile.am): Likewise.
41069         * modules/hard-locale (Makefile.am): Likewise.
41070         * modules/hash (Makefile.am): Likewise.
41071         * modules/hmac-md5 (Makefile.am): Likewise.
41072         * modules/hmac-sha1 (Makefile.am): Likewise.
41073         * modules/human (Makefile.am): Likewise.
41074         * modules/idcache (Makefile.am): Likewise.
41075         * modules/imaxabs (Makefile.am): Likewise.
41076         * modules/imaxdiv (Makefile.am): Likewise.
41077         * modules/inet_ntop (Makefile.am): Likewise.
41078         * modules/inet_pton (Makefile.am): Likewise.
41079         * modules/intprops (Makefile.am): Likewise.
41080         * modules/inttostr (Makefile.am): Likewise.
41081         * modules/inttypes (Makefile.am): Likewise.
41082         * modules/isapipe (Makefile.am): Likewise.
41083         * modules/javaversion (Makefile.am): Likewise.
41084         * modules/lchmod (Makefile.am): Likewise.
41085         * modules/lchown (Makefile.am): Likewise.
41086         * modules/localcharset (Makefile.am): Likewise.
41087         * modules/long-options (Makefile.am): Likewise.
41088         * modules/lstat (Makefile.am): Likewise.
41089         * modules/malloc (Makefile.am): Likewise.
41090         * modules/mathl (Makefile.am): Likewise.
41091         * modules/mbchar (Makefile.am): Likewise.
41092         * modules/md2 (Makefile.am): Likewise.
41093         * modules/md4 (Makefile.am): Likewise.
41094         * modules/md5 (Makefile.am): Likewise.
41095         * modules/memcasecmp (Makefile.am): Likewise.
41096         * modules/memchr (Makefile.am): Likewise.
41097         * modules/memcmp (Makefile.am): Likewise.
41098         * modules/memcoll (Makefile.am): Likewise.
41099         * modules/memcpy (Makefile.am): Likewise.
41100         * modules/memmem (Makefile.am): Likewise.
41101         * modules/memmove (Makefile.am): Likewise.
41102         * modules/mempcpy (Makefile.am): Likewise.
41103         * modules/memrchr (Makefile.am): Likewise.
41104         * modules/memset (Makefile.am): Likewise.
41105         * modules/memxor (Makefile.am): Likewise.
41106         * modules/mkancesdirs (Makefile.am): Likewise.
41107         * modules/mkdir-p (Makefile.am): Likewise.
41108         * modules/mkdir (Makefile.am): Likewise.
41109         * modules/mkdtemp (Makefile.am): Likewise.
41110         * modules/mkstemp (Makefile.am): Likewise.
41111         * modules/mktime (Makefile.am): Likewise.
41112         * modules/modechange (Makefile.am): Likewise.
41113         * modules/mountlist (Makefile.am): Likewise.
41114         * modules/nanosleep (Makefile.am): Likewise.
41115         * modules/obstack (Makefile.am): Likewise.
41116         * modules/openat (Makefile.am): Likewise.
41117         * modules/pagealign_alloc (Makefile.am): Likewise.
41118         * modules/pathmax (Makefile.am): Likewise.
41119         * modules/physmem (Makefile.am): Likewise.
41120         * modules/poll (Makefile.am): Likewise.
41121         * modules/posixtm (Makefile.am): Likewise.
41122         * modules/posixver (Makefile.am): Likewise.
41123         * modules/putenv (Makefile.am): Likewise.
41124         * modules/quote (Makefile.am): Likewise.
41125         * modules/quotearg (Makefile.am): Likewise.
41126         * modules/raise (Makefile.am): Likewise.
41127         * modules/read-file (Makefile.am): Likewise.
41128         * modules/readline (Makefile.am): Likewise.
41129         * modules/readlink (Makefile.am): Likewise.
41130         * modules/readtokens (Makefile.am): Likewise.
41131         * modules/readutmp (Makefile.am): Likewise.
41132         * modules/realloc (Makefile.am): Likewise.
41133         * modules/regex (Makefile.am): Likewise.
41134         * modules/rename-dest-slash (Makefile.am): Likewise.
41135         * modules/rename (Makefile.am): Likewise.
41136         * modules/rijndael (Makefile.am): Likewise.
41137         * modules/rmdir (Makefile.am): Likewise.
41138         * modules/rpmatch (Makefile.am): Likewise.
41139         * modules/safe-read (Makefile.am): Likewise.
41140         * modules/safe-write (Makefile.am): Likewise.
41141         * modules/same-inode (Makefile.am): Likewise.
41142         * modules/same (Makefile.am): Likewise.
41143         * modules/save-cwd (Makefile.am): Likewise.
41144         * modules/savedir (Makefile.am): Likewise.
41145         * modules/setenv (Makefile.am): Likewise.
41146         * modules/settime (Makefile.am): Likewise.
41147         * modules/sha1 (Makefile.am): Likewise.
41148         * modules/sig2str (Makefile.am): Likewise.
41149         * modules/snprintf (Makefile.am): Likewise.
41150         * modules/stat-macros (Makefile.am): Likewise.
41151         * modules/stat-time (Makefile.am): Likewise.
41152         * modules/stdbool (Makefile.am): Likewise.
41153         * modules/stdint (Makefile.am): Likewise.
41154         * modules/stdlib-safer (Makefile.am): Likewise.
41155         * modules/stpcpy (Makefile.am): Likewise.
41156         * modules/stpncpy (Makefile.am): Likewise.
41157         * modules/strcase (Makefile.am): Likewise.
41158         * modules/strcasestr (Makefile.am): Likewise.
41159         * modules/strchrnul (Makefile.am): Likewise.
41160         * modules/strcspn (Makefile.am): Likewise.
41161         * modules/strdup (Makefile.am): Likewise.
41162         * modules/strerror (Makefile.am): Likewise.
41163         * modules/strftime (Makefile.am): Likewise.
41164         * modules/strndup (Makefile.am): Likewise.
41165         * modules/strnlen (Makefile.am): Likewise.
41166         * modules/strpbrk (Makefile.am): Likewise.
41167         * modules/strsep (Makefile.am): Likewise.
41168         * modules/strstr (Makefile.am): Likewise.
41169         * modules/strtod (Makefile.am): Likewise.
41170         * modules/strtoimax (Makefile.am): Likewise.
41171         * modules/strtok_r (Makefile.am): Likewise.
41172         * modules/strtol (Makefile.am): Likewise.
41173         * modules/strtoll (Makefile.am): Likewise.
41174         * modules/strtoul (Makefile.am): Likewise.
41175         * modules/strtoull (Makefile.am): Likewise.
41176         * modules/strtoumax (Makefile.am): Likewise.
41177         * modules/strverscmp (Makefile.am): Likewise.
41178         * modules/sys_socket (Makefile.am): Likewise.
41179         * modules/sys_stat (Makefile.am): Likewise.
41180         * modules/sysexits (Makefile.am): Likewise.
41181         * modules/time_r (Makefile.am): Likewise.
41182         * modules/timegm (Makefile.am): Likewise.
41183         * modules/timespec (Makefile.am): Likewise.
41184         * modules/tmpfile-safer (Makefile.am): Likewise.
41185         * modules/trim (Makefile.am): Likewise.
41186         * modules/unistd-safer (Makefile.am): Likewise.
41187         * modules/unlinkdir (Makefile.am): Likewise.
41188         * modules/unlocked-io (Makefile.am): Likewise.
41189         * modules/userspec (Makefile.am): Likewise.
41190         * modules/utime (Makefile.am): Likewise.
41191         * modules/utimecmp (Makefile.am): Likewise.
41192         * modules/utimens (Makefile.am): Likewise.
41193         * modules/vasnprintf (Makefile.am): Likewise.
41194         * modules/vasprintf (Makefile.am): Likewise.
41195         * modules/vsnprintf (Makefile.am): Likewise.
41196         * modules/xalloc (Makefile.am): Likewise.
41197         * modules/xgetcwd (Makefile.am): Likewise.
41198         * modules/xnanosleep (Makefile.am): Likewise.
41199         * modules/xreadlink (Makefile.am): Likewise.
41200         * modules/xstrtod (Makefile.am): Likewise.
41201         * modules/xstrtol (Makefile.am): Likewise.
41202         * modules/xstrtold (Makefile.am): Likewise.
41203         * modules/yesno (Makefile.am): Likewise.
41204         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41205
41206 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41207
41208         * modules/error (Makefile.am): Distribute files through
41209         EXTRA_DIST, not lib_SOURCES.
41210
41211 2006-10-12  Eric Blake  <ebb9@byu.net>
41212
41213         * modules/error (Makefile.am): Distribute files in /lib.
41214         * modules/obstack (Makefile.am): Likewise.
41215
41216 2006-10-12  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/acl (Makefile.am): Distribute all files in lib/ through
41219         EXTRA_DIST.
41220         * modules/arcfour (Makefile.am): Likewise.
41221         * modules/arctwo (Makefile.am): Likewise.
41222         * modules/argmatch (Makefile.am): Likewise.
41223         * modules/argz (Makefile.am): Likewise.
41224         * modules/atexit (Makefile.am): Likewise.
41225         * modules/backupfile (Makefile.am): Likewise.
41226         * modules/c-strtod (Makefile.am): Likewise.
41227         * modules/c-strtold (Makefile.am): Likewise.
41228         * modules/calloc (Makefile.am): Likewise.
41229         * modules/canon-host (Makefile.am): Likewise.
41230         * modules/canonicalize (Makefile.am): Likewise.
41231         * modules/chdir-long (Makefile.am): Likewise.
41232         * modules/chdir-safer (Makefile.am): Likewise.
41233         * modules/check-version (Makefile.am): Likewise.
41234         * modules/chown (Makefile.am): Likewise.
41235         * modules/cloexec (Makefile.am): Likewise.
41236         * modules/close-stream (Makefile.am): Likewise.
41237         * modules/closeout (Makefile.am): Likewise.
41238         * modules/crc (Makefile.am): Likewise.
41239         * modules/cycle-check (Makefile.am): Likewise.
41240         * modules/des (Makefile.am): Likewise.
41241         * modules/dirfd (Makefile.am): Likewise.
41242         * modules/dirname (Makefile.am): Likewise.
41243         * modules/dup2 (Makefile.am): Likewise.
41244         * modules/euidaccess (Makefile.am): Likewise.
41245         * modules/exclude (Makefile.am): Likewise.
41246         * modules/exitfail (Makefile.am): Likewise.
41247         * modules/fcntl-safer (Makefile.am): Likewise.
41248         * modules/file-type (Makefile.am): Likewise.
41249         * modules/fileblocks (Makefile.am): Likewise.
41250         * modules/filemode (Makefile.am): Likewise.
41251         * modules/filenamecat (Makefile.am): Likewise.
41252         * modules/fnmatch (Makefile.am): Likewise.
41253         * modules/fopen-safer (Makefile.am): Likewise.
41254         * modules/fpending (Makefile.am): Likewise.
41255         * modules/fprintftime (Makefile.am): Likewise.
41256         * modules/free (Makefile.am): Likewise.
41257         * modules/fsusage (Makefile.am): Likewise.
41258         * modules/ftruncate (Makefile.am): Likewise.
41259         * modules/fts (Makefile.am): Likewise.
41260         * modules/gc (Makefile.am): Likewise.
41261         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41262         * modules/getaddrinfo (Makefile.am): Likewise.
41263         * modules/getcwd (Makefile.am): Likewise.
41264         * modules/getdelim (Makefile.am): Likewise.
41265         * modules/getdomainname (Makefile.am): Likewise.
41266         * modules/getgroups (Makefile.am): Likewise.
41267         * modules/gethostname (Makefile.am): Likewise.
41268         * modules/gethrxtime (Makefile.am): Likewise.
41269         * modules/getline (Makefile.am): Likewise.
41270         * modules/getloadavg (Makefile.am): Likewise.
41271         * modules/getlogin_r (Makefile.am): Likewise.
41272         * modules/getopt (Makefile.am): Likewise.
41273         * modules/getpass (Makefile.am): Likewise.
41274         * modules/getpass-gnu (Makefile.am): Likewise.
41275         * modules/getsubopt (Makefile.am): Likewise.
41276         * modules/gettime (Makefile.am): Likewise.
41277         * modules/gettimeofday (Makefile.am): Likewise.
41278         * modules/getugroups (Makefile.am): Likewise.
41279         * modules/getusershell (Makefile.am): Likewise.
41280         * modules/glob (Makefile.am): Likewise.
41281         * modules/group-member (Makefile.am): Likewise.
41282         * modules/hard-locale (Makefile.am): Likewise.
41283         * modules/hash (Makefile.am): Likewise.
41284         * modules/hmac-md5 (Makefile.am): Likewise.
41285         * modules/hmac-sha1 (Makefile.am): Likewise.
41286         * modules/human (Makefile.am): Likewise.
41287         * modules/idcache (Makefile.am): Likewise.
41288         * modules/imaxabs (Makefile.am): Likewise.
41289         * modules/imaxdiv (Makefile.am): Likewise.
41290         * modules/inet_ntop (Makefile.am): Likewise.
41291         * modules/inet_pton (Makefile.am): Likewise.
41292         * modules/inttostr (Makefile.am): Likewise.
41293         * modules/isapipe (Makefile.am): Likewise.
41294         * modules/lchown (Makefile.am): Likewise.
41295         * modules/long-options (Makefile.am): Likewise.
41296         * modules/lstat (Makefile.am): Likewise.
41297         * modules/malloc (Makefile.am): Likewise.
41298         * modules/mathl (Makefile.am): Likewise.
41299         * modules/mbchar (Makefile.am): Likewise.
41300         * modules/md2 (Makefile.am): Likewise.
41301         * modules/md4 (Makefile.am): Likewise.
41302         * modules/md5 (Makefile.am): Likewise.
41303         * modules/memcasecmp (Makefile.am): Likewise.
41304         * modules/memchr (Makefile.am): Likewise.
41305         * modules/memcmp (Makefile.am): Likewise.
41306         * modules/memcoll (Makefile.am): Likewise.
41307         * modules/memcpy (Makefile.am): Likewise.
41308         * modules/memmem (Makefile.am): Likewise.
41309         * modules/memmove (Makefile.am): Likewise.
41310         * modules/mempcpy (Makefile.am): Likewise.
41311         * modules/memrchr (Makefile.am): Likewise.
41312         * modules/memset (Makefile.am): Likewise.
41313         * modules/memxor (Makefile.am): Likewise.
41314         * modules/mkancesdirs (Makefile.am): Likewise.
41315         * modules/mkdir (Makefile.am): Likewise.
41316         * modules/mkdir-p (Makefile.am): Likewise.
41317         * modules/mkdtemp (Makefile.am): Likewise.
41318         * modules/mkstemp (Makefile.am): Likewise.
41319         * modules/mktime (Makefile.am): Likewise.
41320         * modules/modechange (Makefile.am): Likewise.
41321         * modules/mountlist (Makefile.am): Likewise.
41322         * modules/nanosleep (Makefile.am): Likewise.
41323         * modules/openat (Makefile.am): Likewise.
41324         * modules/pagealign_alloc (Makefile.am): Likewise.
41325         * modules/physmem (Makefile.am): Likewise.
41326         * modules/poll (Makefile.am): Likewise.
41327         * modules/posixtm (Makefile.am): Likewise.
41328         * modules/posixver (Makefile.am): Likewise.
41329         * modules/putenv (Makefile.am): Likewise.
41330         * modules/quote (Makefile.am): Likewise.
41331         * modules/quotearg (Makefile.am): Likewise.
41332         * modules/raise (Makefile.am): Likewise.
41333         * modules/read-file (Makefile.am): Likewise.
41334         * modules/readline (Makefile.am): Likewise.
41335         * modules/readlink (Makefile.am): Likewise.
41336         * modules/readtokens (Makefile.am): Likewise.
41337         * modules/readutmp (Makefile.am): Likewise.
41338         * modules/realloc (Makefile.am): Likewise.
41339         * modules/regex (Makefile.am): Likewise.
41340         * modules/rename (Makefile.am): Likewise.
41341         * modules/rename-dest-slash (Makefile.am): Likewise.
41342         * modules/rijndael (Makefile.am): Likewise.
41343         * modules/rmdir (Makefile.am): Likewise.
41344         * modules/rpmatch (Makefile.am): Likewise.
41345         * modules/safe-read (Makefile.am): Likewise.
41346         * modules/safe-write (Makefile.am): Likewise.
41347         * modules/same (Makefile.am): Likewise.
41348         * modules/save-cwd (Makefile.am): Likewise.
41349         * modules/savedir (Makefile.am): Likewise.
41350         * modules/setenv (Makefile.am): Likewise.
41351         * modules/settime (Makefile.am): Likewise.
41352         * modules/sha1 (Makefile.am): Likewise.
41353         * modules/sig2str (Makefile.am): Likewise.
41354         * modules/snprintf (Makefile.am): Likewise.
41355         * modules/stdlib-safer (Makefile.am): Likewise.
41356         * modules/stpcpy (Makefile.am): Likewise.
41357         * modules/stpncpy (Makefile.am): Likewise.
41358         * modules/strcase (Makefile.am): Likewise.
41359         * modules/strcasestr (Makefile.am): Likewise.
41360         * modules/strchrnul (Makefile.am): Likewise.
41361         * modules/strcspn (Makefile.am): Likewise.
41362         * modules/strdup (Makefile.am): Likewise.
41363         * modules/strerror (Makefile.am): Likewise.
41364         * modules/strftime (Makefile.am): Likewise.
41365         * modules/strndup (Makefile.am): Likewise.
41366         * modules/strnlen (Makefile.am): Likewise.
41367         * modules/strpbrk (Makefile.am): Likewise.
41368         * modules/strsep (Makefile.am): Likewise.
41369         * modules/strstr (Makefile.am): Likewise.
41370         * modules/strtod (Makefile.am): Likewise.
41371         * modules/strtoimax (Makefile.am): Likewise.
41372         * modules/strtok_r (Makefile.am): Likewise.
41373         * modules/strtol (Makefile.am): Likewise.
41374         * modules/strtoll (Makefile.am): Likewise.
41375         * modules/strtoul (Makefile.am): Likewise.
41376         * modules/strtoull (Makefile.am): Likewise.
41377         * modules/strtoumax (Makefile.am): Likewise.
41378         * modules/strverscmp (Makefile.am): Likewise.
41379         * modules/time_r (Makefile.am): Likewise.
41380         * modules/timegm (Makefile.am): Likewise.
41381         * modules/tmpfile-safer (Makefile.am): Likewise.
41382         * modules/unistd-safer (Makefile.am): Likewise.
41383         * modules/unlinkdir (Makefile.am): Likewise.
41384         * modules/userspec (Makefile.am): Likewise.
41385         * modules/utime (Makefile.am): Likewise.
41386         * modules/utimecmp (Makefile.am): Likewise.
41387         * modules/utimens (Makefile.am): Likewise.
41388         * modules/vasnprintf (Makefile.am): Likewise.
41389         * modules/vasprintf (Makefile.am): Likewise.
41390         * modules/vsnprintf (Makefile.am): Likewise.
41391         * modules/xalloc (Makefile.am): Likewise.
41392         * modules/xgetcwd (Makefile.am): Likewise.
41393         * modules/xnanosleep (Makefile.am): Likewise.
41394         * modules/xreadlink (Makefile.am): Likewise.
41395         * modules/xstrtod (Makefile.am): Likewise.
41396         * modules/xstrtol (Makefile.am): Likewise.
41397         * modules/xstrtold (Makefile.am): Likewise.
41398         * modules/yesno (Makefile.am): Likewise.
41399
41400 2006-10-12  Jim Meyering  <jim@meyering.net>
41401
41402         * m4/getloadavg.m4: Revert the change below.
41403
41404         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41405         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41406         fail with a symlink, which is what coreutils' ./bootstrap now
41407         creates by default.
41408
41409 2006-10-12  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41412         mingw.
41413         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41414         MSVC and mingw explicitly.
41415
41416 2006-10-11  Simon Josefsson  <jas@extundo.com>
41417             Bruno Haible  <bruno@clisp.org>
41418
41419         Add support for multiple gnulib-tool invocations in the scope of a
41420         single configure.ac file.
41421         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41422         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41423         with the same contents as the _LIBADD variable.
41424         (func_emit_initmacro_start, func_emit_initmacro_end,
41425         func_emit_initmacro_done): New functions.
41426         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41427         gl_LIBOBJS and gl_LTLIBOBJS.
41428
41429 2006-10-11  Bruno Haible  <bruno@clisp.org>
41430
41431         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41432         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41433         autoreconf. Instead, invoke autopoint explicitly but move back the
41434         *.m4 files from gnulib.
41435
41436 2006-10-11  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_usage): Make module names after --create-testdir
41439         optional.
41440         (func_create_testdir): If no module was specified, use nearly all
41441         modules.
41442
41443 2006-10-12  Jim Meyering  <jim@meyering.net>
41444
41445         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41446         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41447         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41448         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41449         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41450         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41451         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41452         (fts_set_stat_required): New function.
41453         (fts_open): Defer the calls to fts_stat, if possible or requested.
41454         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41455         into fts_stat itself.
41456         (fts_read): Perform any required (deferred) fts_stat call.
41457         (fts_build): Likewise, for the directory we're about to open and read.
41458         In the readdir loop, carefully decide whether each entry will require
41459         an eventual call to fts_stat, using dirent.d_type info if available.
41460         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41461         a command line argument into this function.  Update all callers.
41462         Map a return value of FTS_DOT to FTS_D for a command line argument.
41463         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41464         Thanks to Miklos Szeredi for his tenacity and for the initial
41465         bug report about "find" failing on a FUSE-based file system.
41466
41467         * lib/fts.c (fts_open): Use consistent indentation.
41468
41469 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41470
41471         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41472         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41473         reported by Jim Meyering.  All uses of cache variables renamed
41474         to match Autoconf's.
41475         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41476         the other one.
41477
41478         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41479         Fix misspelling in diagnostic.
41480
41481 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41482
41483         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41484         defined.  Problem reported by Matthew Woehlke.
41485
41486         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41487         Add support for Tandem NonStop R series.
41488         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41489         Use new macro.
41490
41491         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41492         (has_trailing_slash): Omit size arg; all callers changed.
41493         Omit 'inline', since it doesn't help performance and we'd
41494         need to configure it.
41495         Don't count //, ///, etc. as having a trailing slash.
41496         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41497         (rpl_rename_dest_slash): On failure, use rename's errno rather
41498         than (in some cases) an incorrect or junk errno.
41499         Simplify code by removing need to compute length; this does
41500         cause it to make two passes instead of one over the file name,
41501         but it's worth it.
41502
41503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41504         change, since Autoconf's version may no longer be appropriate now
41505         that we are using CVS Autoconf's version.  Add support for Tandem.
41506
41507 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41508             Bruno Haible  <bruno@clisp.org>
41509
41510         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41511         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41512         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41513         gl_AC_TYPE_LONG_LONG.
41514
41515         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41516         instead of HAVE_LONG_LONG.
41517         * lib/printf-args.c (printf_fetchargs): Likewise.
41518         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41519         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41520         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41521         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41522         gl_AC_TYPE_LONG_LONG.
41523
41524 2006-10-11  Bruno Haible  <bruno@clisp.org>
41525
41526         * m4/longlong.m4: Add comments.
41527         * m4/ulonglong.m4: Likewise.
41528
41529 2006-10-10  Bruno Haible  <bruno@clisp.org>
41530
41531         Make it possible to #define stpcpy, strdup to aliases.
41532         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41533         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41534
41535 2006-10-10  Bruno Haible  <bruno@clisp.org>
41536
41537         Make it possible to #define gcd to an alias.
41538         * lib/gcd.c: Include config.h.
41539
41540 2006-10-10  Bruno Haible  <bruno@clisp.org>
41541
41542         Make it possible to #define c_isascii to an alias.
41543         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41544         defined. Undefine the macros before defining them, to avoid gcc
41545         warnings.
41546         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41547         define NO_C_CTYPE_MACROS early.
41548
41549 2006-10-10  Bruno Haible  <bruno@clisp.org>
41550
41551         Make it possible to #define set_program_name to an alias.
41552         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41553         ENABLE_RELOCATABLE early.
41554
41555 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41556
41557         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41558         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41559         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41560         More generally, don't assume that 64-bit signed int is available
41561         if unsigned int is, and vice versa.
41562         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41563         unsigned symbols, not on their signed counterparts.
41564         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41565         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41566         (UINT64_C, UINTMAX_C):
41567         Likewise.
41568         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41569         unsigned counterparts.
41570         (Have_long_long, Unsigned): New macros.
41571         (Int): Renamed from INT.
41572         (strtoimax): Use the new macros.
41573         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41574         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41575         * modules/inttypes (inttypes.h): Substitute
41576         HAVE_UNSIGNED_LONG_LONG_INT.
41577         * modules/stdint (stdint.h): Likewise.
41578         (Files): Add m4/ulonglong.m4.
41579
41580 2006-10-10  Bruno Haible  <bruno@clisp.org>
41581
41582         Fix a gcc -Wshadow warning.
41583         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41584         to 'bucket'.
41585         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41586         gl_linked_indexof_from_to): Likewise.
41587         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41588         Likewise.
41589         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41590         Likewise.
41591         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41592         Reported by Eric Blake.
41593
41594 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41595
41596         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41597         for NetBSD.  Problem reported by Bruno Haible.
41598
41599 2006-10-09  Jim Meyering  <jim@meyering.net>
41600
41601         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41602         Patch from Bruno Haible.
41603
41604 2006-10-09  Jim Meyering  <jim@meyering.net>
41605
41606         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41607         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41608         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41609
41610 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         Don't include <config.h> twice; this doesn't work in some cases,
41613         e.g., when config.h has "#define intmax_t long long int" and
41614         we include <config.h>, <inttypes.h>, <config.h> in that order.
41615         Problem reported by Matthew Woehlke in:
41616         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41617         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41618         * lib/fts-cycle.c: Don't include config.h.
41619         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41620         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41621         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41622         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41623         inttypes.h.
41624         * lib/xstrtoumax.c: Likewise.
41625         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41626         __strtol and the like, so that this module is more like its siblings.
41627         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41628         Remove; no longer needed now that we assume gnulib inttypes.h.
41629
41630 2006-10-08  Bruno Haible  <bruno@clisp.org>
41631
41632         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41633         option.
41634
41635 2006-10-07  Jim Meyering  <jim@meyering.net>
41636
41637         * modules/inttypes (inttypes.h): Revert what seems to have been
41638         an inadvertent part of today's change: use "|", not "/" in the
41639         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41640
41641 2006-10-07  Bruno Haible  <bruno@clisp.org>
41642
41643         * modules/sublist: New file.
41644
41645 2006-10-07  Bruno Haible  <bruno@clisp.org>
41646
41647         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41648         * modules/argz (argz.h): Likewise.
41649         * modules/arpa_inet (arpa/inet.h): Likewise.
41650         * modules/byteswap (byteswap.h): Likewise.
41651         * modules/configmake (configmake.h): Likewise.
41652         * modules/fcntl (fcntl.h): Likewise.
41653         * modules/fnmatch (fnmatch.h): Likewise.
41654         * modules/getopt (getopt.h): Likewise.
41655         * modules/glob (glob.h): Likewise.
41656         * modules/inttypes (inttypes.h): Likewise.
41657         * modules/netinet_in (netinet/in.h): Likewise.
41658         * modules/poll (poll.h): Likewise.
41659         * modules/stdbool (stdbool.h): Likewise.
41660         * modules/stdint (stdint.h): Likewise.
41661         * modules/sys_select (sys/select.h): Likewise.
41662         * modules/sys_socket (sys/socket.h): Likewise.
41663         * modules/sys_stat (sys/stat.h): Likewise.
41664         * modules/sysexits (sysexits.h): Likewise.
41665         * modules/unistd (unistd.h): Likewise.
41666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41667         Add a "DO NOT EDIT" comment to the generated file.
41668         (func_import): Likewise for gnulib-comp.m4.
41669
41670 2006-10-07  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/gl_sublist.h: New file.
41673         * lib/gl_sublist.c: New file.
41674
41675 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41676
41677         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41678         name (relative to the original working directory) and the file
41679         name component (relative to the temporary working directory).  All
41680         callers changed.
41681         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41682         * lib/mkdir-p.c (make_dir_parents): Likewise.
41683         * lib/mkdir-p.h (make_dir_parents): Likewise.
41684
41685 2006-10-06  Eric Blake  <ebb9@byu.net>
41686
41687         Define several macros for use by the clean-temp module.
41688         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41690         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41691
41692         * lib/clean-temp.h (close_stream_temp): New declaration.
41693         * lib/clean-temp.c (includes): Pull in headers according to what
41694         other modules are in use.
41695         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41696
41697 2006-10-06  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41700         instead of fopen, fwriteerror.
41701
41702 2006-10-06  Bruno Haible  <bruno@clisp.org>
41703
41704         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41705         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41706         int.
41707         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41708         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41709         Return an error indicator.
41710         Suggested by Eric Blake.
41711
41712 2006-10-06  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41715         Reported by Eric Blake.
41716
41717 2006-10-06  Bruno Haible  <bruno@clisp.org>
41718
41719         * modules/closeout (Description): Mention stderr too.
41720
41721 2006-10-06  Bruno Haible  <bruno@clisp.org>
41722         and Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         * lib/closeout.c (close_stdout): Also close stderr.
41725         * lib/closeout.h: Update comment.
41726
41727 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41728
41729         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41731         * lib/dirchownmod.c: Include lchown.h.
41732         * lib/lchown.c: Don't include files that lchown.h now includes.
41733         Don't declare chown, since lchown.h now does that.
41734         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41735         (lchown): Define to rpl_chown if lchown is declared but
41736         does not exist.  Declare using a prototype if lchown is not
41737         declared.  Add a copyright notice.
41738         * lib/mkstemp.h: Include <unistd.h>.
41739         * lib/openat.c: Include lchown.h.
41740
41741         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41742         we now test for that separately.
41743         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41744         rather than O_NOFOLLOW, when testing whether it's possible to
41745         avoid a race condition reliably.
41746         * lib/savewd.c (savewd_chdir): Likewise.
41747
41748         Remove macros that are no longer needed now that stdint.h is
41749         reliable.
41750         * lib/fsusage.c (UINTMAX_MAX): Remove.
41751         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41752         * lib/utimecmp.c (SIZE_MAX): Remove.
41753
41754         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41755
41756         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41757         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41758         O_NOATIME works.
41759
41760 2006-10-05  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/gl_list.h (gl_sortedlist_search_from_to,
41763         gl_sortedlist_indexof_from_to): New declarations.
41764         (gl_list_implementation): New fields sortedlist_search_from_to,
41765         sortedlist_indexof_from_to.
41766         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41767         inline functions.
41768         * lib/gl_list.c (gl_sortedlist_search_from_to,
41769         gl_sortedlist_indexof_from_to): New functions.
41770         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41771         function.
41772         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41773         (gl_array_sortedlist_search_from_to): New function.
41774         (gl_array_list_implementation): Update.
41775         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41776         function.
41777         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41778         (gl_carray_sortedlist_search_from_to): New function.
41779         (gl_carray_list_implementation): Update.
41780         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41781         gl_linked_sortedlist_indexof_from_to): New functions.
41782         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41783         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41784         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41785         gl_tree_sortedlist_indexof_from_to): New functions.
41786         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41787         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41788         Update.
41789         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41790         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41791         Update.
41792
41793 2006-10-05  Bruno Haible  <bruno@clisp.org>
41794
41795         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41796         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41797         (struct gl_list_implementation): Add fields search_from_to,
41798         indexof_from_to. Remove fields search, indexof.
41799         (gl_list_search): Use the search_from_to method.
41800         (gl_list_search_from, gl_list_search_from_to): New functions.
41801         (gl_list_indexof): Use the indexof_from_to method.
41802         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41803         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41804         (gl_list_search_from, gl_list_search_from_to): New functions.
41805         (gl_list_indexof): Use the indexof_from_to method.
41806         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41807         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41808         gl_array_indexof. Add start_index, end_index arguments.
41809         (gl_array_search_from_to): Renamed from gl_array_search. Add
41810         start_index, end_index arguments.
41811         (gl_array_remove, gl_array_list_implementation): Update.
41812         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41813         gl_carray_indexof. Add start_index, end_index arguments.
41814         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41815         start_index, end_index arguments.
41816         (gl_carray_remove, gl_carray_list_implementation): Update.
41817         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41818         gl_linked_search. Add start_index, end_index arguments.
41819         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41820         start_index, end_index arguments.
41821         (gl_linked_remove): Update.
41822         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41823         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41824         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41825         field to 'size_t'.
41826         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41827         gl_tree_search. Add start_index, end_index arguments.
41828         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41829         start_index, end_index arguments.
41830         (gl_tree_remove): Update.
41831         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41832         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41833         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41834         function.
41835         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41836         gl_tree_search. Add start_index, end_index arguments.
41837         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41838         start_index, end_index arguments.
41839         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41840         Update.
41841         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41842
41843 2006-10-05  Bruno Haible  <bruno@clisp.org>
41844
41845         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41846
41847         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41848         fwriteerror_temp): New declarations.
41849         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41850         (descriptors): New variable.
41851         (cleanup): First, close the descriptors.
41852         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41853         fclose_temp, fwriteerror_temp): New functions.
41854
41855 2006-10-04  Jim Meyering  <jim@meyering.net>
41856
41857         * lib/fts.c (fts_open): Tiny comment change.
41858
41859 2006-10-04  Bruno Haible  <bruno@clisp.org>
41860
41861         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41862         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41863         gl_LOCK_BODY.
41864         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41865         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41866         gl_LOCK_EARLY_BODY.
41867         (gl_LOCK): Require gl_LOCK_BODY.
41868
41869 2006-10-04  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41872         (gl_oset_search_atleast): New declaration.
41873         (struct gl_oset_implementation): Add field 'search_atleast'.
41874         (gl_oset_search_atleast): New inline function.
41875         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41876         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41877         (gl_array_oset_implementation): Update.
41878         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41879         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41880         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41881
41882 2006-10-04  Bruno Haible  <bruno@clisp.org>
41883
41884         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41885
41886 2006-10-03  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41889         from gl_avltreehash_list_implementation.
41890
41891 2006-10-03  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/gl_oset.c (gl_oset_add): Fix return type.
41894
41895 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41896
41897         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41898
41899 2006-10-02  Eric Blake  <ebb9@byu.net>
41900
41901         * modules/strnlen (Depends-on): Add extensions.
41902
41903 2006-10-02  Eric Blake  <ebb9@byu.net>
41904
41905         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41906         definition in 2.60+.
41907
41908 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41909
41910         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41911         checks.
41912
41913 2006-10-02  Bruno Haible  <bruno@clisp.org>
41914
41915         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41916         to the AUTOMAKE_OPTIONS.
41917         Reported by Jim Meyering.
41918
41919 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41920
41921         Work around bug in Solaris 10 /proc file system:
41922         /proc/self/fd/NNN/.. isn't the parent directory of
41923         the directory whose file descriptor is NNN.  This needs to
41924         be worked around at run time, not compile time, since a
41925         program might be built on Solaris 8, where things work, and
41926         run on Solaris 10.
41927         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41928         to use the following interface instead:
41929         (OPENAT_BUFFER_SIZE): New macro.
41930         (openat_proc_name): New function.
41931         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41932         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41933         Likewise.
41934         * lib/openat-proc.c: New file.
41935         * modules/openat (Files): Add lib/openat-proc.c.
41936         (Depends-on): Add same-inode, stdbool.
41937         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41938
41939 2006-09-29  Bruno Haible  <bruno@clisp.org>
41940
41941         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41942         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41943         argument. Set stdout_closed before testing for ferror, not after.
41944         (fwriteerror, fwriteerror_no_ebadf): New functions.
41945
41946 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41947
41948         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41949
41950 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41951
41952         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41953         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41954
41955 2006-09-28  Jim Meyering  <jim@meyering.net>
41956
41957         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41958         Include <unistd.h>.
41959
41960 2006-09-28  Bruno Haible  <bruno@clisp.org>
41961
41962         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41963         * modules/linkedhash-list (Depends-on): Likewise.
41964         * modules/rbtreehash-list (Depends-on): Likewise.
41965
41966 2006-09-28  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/strndup.h: Simplify the redefinition of strndup.
41969         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41970         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41971
41972 2006-09-28  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41975         * lib/gl_linkedhash_list.c: Likewise.
41976         * lib/gl_rbtreehash_list.c: Likewise.
41977
41978 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41979
41980         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41981         getaddrinfo.
41982
41983         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41984         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41985         it causes <stdio_ext.h> to cause a compile-time error.
41986         Problem reported by Nelson H. F. Beebe.
41987         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41988         of HAVE_DECL___PENDING.
41989
41990         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41991         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41992         declaration.
41993
41994 2006-09-27  Jim Meyering  <jim@meyering.net>
41995
41996         This file could end up with a definition for a function
41997         named __strndup, rather than rpl_strndup on a system with
41998         incomplete weak_alias support.
41999         * lib/strndup.c (strndup): Rename from __strndup.
42000         Remove #defines that used to map __strndup to strndup.
42001         Don't use K&R prototypes.
42002         Remove LIBC-related code, since this file is not sync'd with glibc.
42003         * lib/strndup.h: Revamp, accordingly.
42004         * m4/strndup.m4: Modernize.
42005
42006 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42007
42008         * modules/savewd (Depends-on): Add 'raise'.
42009         * lib/savewd.c: Include <signal.h>, for 'raise'.
42010
42011 2006-09-26  Jim Meyering  <jim@meyering.net>
42012
42013         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42014         when we detect Darwin 8.7.0's acl_get_file bug.
42015         Rearrange to perform the new (below) run-test while $LIBS
42016         contains any acl-related library.  Set USE_ACL at the end.
42017         (gl_ACL_GET_FILE): New function.
42018
42019 2006-09-26  Eric Blake  <ebb9@byu.net>
42020
42021         * lib/verror.c: Include <config.h> unconditionally.
42022
42023 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42024
42025         * modules/clock-time (Maintainer): Add self.
42026         * modules/getlogin_r (Depends-on): Add extensions.
42027
42028 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42029
42030         * modules/clock-time: New module.
42031         * modules/nanosleep (Depends-on): Add clock-time.
42032         * modules/gethrxtime (Depends-on): Likewise.
42033         * modules/gettime (Depends-on): Likewise.
42034         * modules/settime (Depends-on): Likewise.
42035
42036         * modules/fts-lgpl: Depend on openat.
42037         * modules/mkancesdirs: Depend on savewd.
42038         * modules/mkdir-p: Likewise.
42039
42040 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42041
42042         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42043
42044         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42045         `gl_have_arbitrary_file_name_length_limit' to
42046         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42047         actually works between configure runs.
42048
42049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42050             Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42053
42054 2006-09-25  Jim Meyering  <jim@meyering.net>
42055
42056         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42057         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42058
42059 2006-09-25  Eric Blake  <ebb9@byu.net>
42060
42061         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42062         exec's in 2006-09-18 patch when shuffling fds.
42063
42064 2006-09-25  Bruno Haible  <bruno@clisp.org>
42065
42066         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42067         Reported by Jim Meyering.
42068
42069 2006-09-24  Jim Meyering  <jim@meyering.net>
42070
42071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42072         compare a pointer against a literal "0".  That caused failures with
42073         at least HP-UX's hpcc.
42074
42075 2006-09-22  Simon Josefsson  <jas@extundo.com>
42076
42077         * modules/gc-sha1:
42078         * modules/gc-md4:
42079         * modules/gc-hmac-sha1:
42080         * modules/gc-hmac-md5:
42081         * modules/gc-des:
42082         * modules/gc-arcfour: Distribute more files.
42083
42084 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42085
42086         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42087         (gl_linked_iterator_from_to): Initialize struct completely.
42088         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42089         (gl_tree_iterator_from_to): Likewise
42090         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42091         * lib/gl_array_list.c [lint] (gl_array_iterator)
42092         (gl_array_iterator_from_to): Likewise.
42093         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42094         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42095         (gl_carray_iterator_from_to): Likewise.
42096
42097         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42098         * lib/md4.c (md4_process_block): Remove unused variable.
42099         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42100         parentheses for clarity.
42101
42102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42103
42104         * modules/bison-i18n (Depends-on): Add gettext.
42105
42106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42107
42108         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42109         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42110         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42111         also add missing comma that caused broken test.
42112         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42113         stdlib.h, for `abort'.
42114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42115         variables.
42116         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42117         include unistd.h if present, for `rmdir'.
42118         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42119         variables.
42120         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42121         in the process include standard headers for prototypes.
42122         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42123         gets declared on GNU/Linux.
42124         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42125         unistd.h, for `rmdir'.
42126         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42127
42128         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42129         always true.
42130         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42131
42132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42133
42134 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42135
42136         * gnulib-tool (func_version): Create output all at once.  This
42137         may help avoid triggering unnecessary SIGPIPEs, and at any
42138         rate it doesn't hurt.
42139
42140 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42141             Bruno Haible  <bruno@clisp.org>
42142
42143         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42144         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42145         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42146
42147         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42148         (gl_FUNC_VASPRINTF): Invoke it.
42149
42150 2006-09-22  Bruno Haible  <bruno@clisp.org>
42151
42152         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42153         getloadavg.c as first argument.
42154
42155 2006-09-22  Bruno Haible  <bruno@clisp.org>
42156
42157         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42158         at the beginning of the gl_INIT macro.
42159         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42160         gl_GETLOADAVG.
42161
42162 2006-09-22  Bruno Haible  <bruno@clisp.org>
42163
42164         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42165         module.
42166         Suggested by Ralf Wildenhues.
42167
42168 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42169
42170         Import this patch from libc:
42171
42172         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42173
42174         * lib/regex_internal.c (re_string_reconstruct): Handle
42175         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42176         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42177         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42178         re_string_context_at.
42179
42180         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42181         now requires it.
42182         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42183         gl_REGEX now does it for us.
42184         (gl_REGEX): Add test taken from
42185         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42186
42187         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42188         Check that large offsets work.  Modernize Autoconf usages.
42189         Prefer "yes" to mean a good thing rather than a bad.
42190         Don't put "#define mkstemp" in config.h, as this might interfere
42191         with standard system headers that "#define mkstemp mkstemp64".
42192
42193         * modules/mkstemp (Depends-on): Add extensions, so that
42194         mkstemp is visible on some platforms.
42195         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42196         (Include): Change to "mkstemp.h" from <stdlib.h>.
42197         (Files): Add mkstemp.h.
42198
42199         * lib/mkstemp.h: New file, since some standard headers
42200         #define mkstemp.
42201         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42202         Include "mkstemp.h".
42203         Make the _LIBC code resemble glibc original more,
42204         e.g., use K&R style.
42205         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42206         (mkstemp): Remove, since mkstemp.h does this for us.
42207         * lib/stdlib--.h: Include mkstemp.h.
42208
42209         Import this patch from libc:
42210
42211         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42212
42213         * lib/tempname.c (__gen_tempname): Change attempts_min
42214         into a macro.  Use preprocessor to decide how to initialize
42215         attempts [Coverity CID 67].
42216
42217 2006-09-20  Bruno Haible  <bruno@clisp.org>
42218
42219         * lib/mkdtemp.c: Import from libc.
42220         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42221                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42222                 attempts_min into a macro.  Use preprocessor to decide how to
42223                 initialize attempts [Coverity CID 67].
42224         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42225                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42226                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42227
42228 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42229
42230         * gnulib-tool (func_exit): New function, to allow to pass the
42231         exit status portably through the trap.  Use everywhere.
42232         (--help, --version): Signal a write error.
42233         (trap): catch SIGPIPE, for write errors.
42234         Exit at the end of the trap, with the correct exit status.
42235
42236 2006-09-19  Karl Berry  <karl@gnu.org>
42237
42238         * doc/gnulib.texi: note about the license texinfo files.
42239
42240 2006-09-19  Eric Blake  <ebb9@byu.net>
42241
42242         * gnulib-tool: Avoid space-tab.
42243
42244 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42245
42246         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42247         that prevented coreutils 6.1 from building.  Problem reported
42248         by Petter Reinholdtsen.
42249
42250 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42251
42252         * gnulib-tool (avoidlist): Fix typo that broke options like
42253         --avoid=lock that are used by coreutils bootstrap.
42254
42255 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42256
42257         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42258         more systematically.
42259
42260 2006-09-18  Jim Meyering  <jim@meyering.net>
42261
42262         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42263
42264 2006-09-18  Bruno Haible  <bruno@clisp.org>
42265
42266         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42267
42268 2006-09-18  Bruno Haible  <bruno@clisp.org>
42269
42270         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42271         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42272         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42273         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42274         * m4/gettext.m4: Require autoconf >= 2.52.
42275         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42276         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42277         of gl_cv_header_inttypes_h.
42278
42279 2006-09-18  Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/javaversion.c: Include configmake.h.
42282
42283 2006-09-18  Bruno Haible  <bruno@clisp.org>
42284
42285         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42286         avoid that the while loops be executed in a subshell.
42287
42288 2006-09-18  Bruno Haible  <bruno@clisp.org>
42289
42290         * MODULES.html.sh (func_module): Break long lines.
42291         Suggested by Bruce Korb <bkorb@gnu.org>.
42292
42293 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42294
42295         Speed up by a factor of 1.12.
42296         * gnulib-tool (nl): New variable.
42297         (func_import): Rewrite include directive extraction to only read each
42298         directive once.
42299
42300 2006-09-17  Bruno Haible  <bruno@clisp.org>
42301
42302         * modules/javaversion (Makefile.am): Remove DEFS setting.
42303         (Depends-on): Add configmake, for PKGDATADIR definition.
42304
42305 2006-09-17  Bruno Haible  <bruno@clisp.org>
42306
42307         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42308
42309 2006-09-17  Bruno Haible  <bruno@clisp.org>
42310
42311         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42312         (func_modules_transitive_closure, func_modules_add_dummy,
42313         func_modules_to_filelist, func_import, func_create_testdir,
42314         func_create_megatestdir, ...): Use it wherever possible.
42315         Suggested by Ralf Wildenhues.
42316
42317 2006-09-16  Karl Berry  <karl@gnu.org>
42318
42319         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42320         to avoid sectioning errors.
42321         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42322         [ifinfo]: blank line after @center-ed titles.
42323         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42324         Spell FSF address consistently with others.
42325         (These changes approved by rms.)
42326
42327 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42328
42329         Speed up by a factor of 1.61.
42330         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42331         already checked module names again.
42332
42333 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42334
42335         Speed up by a factor of 1.13.
42336         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42337         for new_files, and the input to func_add_or_update.
42338
42339 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42340
42341         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42342         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42343
42344 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42345
42346         * modules/mkancesdirs (Depends-on): Add fcntl.
42347         * modules/savewd: New file.
42348         * MODULES.html.sh (File system functions): Add savewd.
42349
42350         * modules/configmake (Makefile.am): Add support for the
42351         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42352
42353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42354
42355         * m4/savewd.m4: New file.
42356
42357 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42358
42359         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42360         (dirchownmod): New arg FD.  All callers changed.
42361         Use FD rather than opening the directory ourself, as opening is
42362         now the caller's responsibility.
42363         * lib/dirchownmod.h: Likewise.
42364         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42365         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42366         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42367         (test_dir): Remove.
42368         (mkancesdirs): Return length of prefix of FILE that has already
42369         been made, or -2 if there is a child doing the work.  Redo
42370         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42371         ".", and treat ".." specially since it might stray back into
42372         already-created areas.  Use a subprocess if necessary.  New arg
42373         WD; all users changed.  MAKE_DIR function should now return 1
42374         if it creates a directory that is not readable.  Return -2 if
42375         a child process is spun off.
42376         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42377         Adjust signature to match code.
42378         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42379         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42380         all users changed.
42381         * lib/savewd.c, lib/savewd.h: New files.
42382
42383 2006-09-15  Jim Meyering  <jim@meyering.net>
42384
42385         * modules/rename-dest-slash: New module.
42386         * MODULES.html.sh (posix_compat): Add it here.
42387
42388         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42389
42390 2006-09-15  Jim Meyering  <jim@meyering.net>
42391
42392         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42393         file.
42394
42395         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42396
42397 2006-09-15  Jim Meyering  <jim@meyering.net>
42398
42399         * lib/rename-dest-slash.c (has_trailing_slash): Use
42400         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42401         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42402         test before testing whether SRC is a directory.
42403         Suggestions from Bruno Haible.
42404
42405         Avoid a warning about an unused variable.
42406         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42407         into the #ifdef block where it's used.
42408
42409         * lib/rename-dest-slash.c: New file.
42410
42411 2006-09-14  Bruno Haible  <bruno@clisp.org>
42412
42413         * lib/allocsa.c: Include <config.h> unconditionally.
42414         * lib/asnprintf.c: Likewise.
42415         * lib/asprintf.c: Likewise.
42416         * lib/c-strcasecmp.c: Likewise.
42417         * lib/c-strcasestr.c: Likewise.
42418         * lib/c-strncasecmp.c: Likewise.
42419         * lib/c-strstr.c: Likewise.
42420         * lib/classpath.c: Likewise.
42421         * lib/clean-temp.c: Likewise.
42422         * lib/concatpath.c: Likewise.
42423         * lib/copy-file.c: Likewise.
42424         * lib/csharpcomp.c: Likewise.
42425         * lib/csharpexec.c: Likewise.
42426         * lib/execute.c: Likewise.
42427         * lib/fatal-signal.c: Likewise.
42428         * lib/findprog.c: Likewise.
42429         * lib/fwriteerror.c: Likewise.
42430         * lib/gl_array_list.c: Likewise.
42431         * lib/gl_array_oset.c: Likewise.
42432         * lib/gl_avltree_list.c: Likewise.
42433         * lib/gl_avltree_oset.c: Likewise.
42434         * lib/gl_avltreehash_list.c: Likewise.
42435         * lib/gl_carray_list.c: Likewise.
42436         * lib/gl_linked_list.c: Likewise.
42437         * lib/gl_linkedhash_list.c: Likewise.
42438         * lib/gl_list.c: Likewise.
42439         * lib/gl_oset.c: Likewise.
42440         * lib/gl_rbtree_list.c: Likewise.
42441         * lib/gl_rbtree_oset.c: Likewise.
42442         * lib/gl_rbtreehash_list.c: Likewise.
42443         * lib/imaxabs.c: Likewise.
42444         * lib/imaxdiv.c: Likewise.
42445         * lib/javacomp.c: Likewise.
42446         * lib/javaexec.c: Likewise.
42447         * lib/javaversion.c: Likewise.
42448         * lib/linebreak.c: Likewise.
42449         * lib/localcharset.c: Likewise.
42450         * lib/lock.c: Likewise.
42451         * lib/mbchar.c: Likewise.
42452         * lib/mbswidth.c: Likewise.
42453         * lib/mkdtemp.c: Likewise.
42454         * lib/pipe.c: Likewise.
42455         * lib/printf-args.c: Likewise.
42456         * lib/printf-parse.c: Likewise.
42457         * lib/progname.c: Likewise.
42458         * lib/progreloc.c: Likewise.
42459         * lib/readlink.c: Likewise.
42460         * lib/sh-quote.c: Likewise.
42461         * lib/stpcpy.c: Likewise.
42462         * lib/stpncpy.c: Likewise.
42463         * lib/strcasecmp.c: Likewise.
42464         * lib/strcasestr.c: Likewise.
42465         * lib/strcspn.c: Likewise.
42466         * lib/striconv.c: Likewise.
42467         * lib/strncasecmp.c: Likewise.
42468         * lib/strnlen1.c: Likewise.
42469         * lib/strstr.c: Likewise.
42470         * lib/strtok_r.c: Likewise.
42471         * lib/tls.c: Likewise.
42472         * lib/tmpdir.c: Likewise.
42473         * lib/unicodeio.c: Likewise.
42474         * lib/unsetenv.c: Likewise.
42475         * lib/vasnprintf.c: Likewise.
42476         * lib/vasprintf.c: Likewise.
42477         * lib/wait-process.c: Likewise.
42478         * lib/xallocsa.c: Likewise.
42479         * lib/xsetenv.c: Likewise.
42480         * lib/xstriconv.c: Likewise.
42481
42482 2006-09-13  Simon Josefsson  <jas@extundo.com>
42483
42484         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42485         that internally, suggested by Ralf Wildenhues
42486         <Ralf.Wildenhues@gmx.de>.
42487
42488 2006-09-13  Simon Josefsson  <jas@extundo.com>
42489
42490         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42491         @LIBOBJS@.
42492         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42493
42494 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42495
42496         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42497         longer worry about uses that don't define HAVE_CONFIG_H.
42498         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42499         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42500         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42501         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42502         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42503         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42504         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42505         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42506         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42507         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42508         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42509         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42510         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42511         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42512         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42513         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42514         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42515         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42516         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42517         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42518         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42519         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42520         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42521         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42522         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42523         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42524         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42525         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42526         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42527         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42528         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42529         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42530         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42531         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42532         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42533         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42534         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42535         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42536         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42537         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42538         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42539         Likewise.
42540
42541 2006-09-13  Eric Blake  <ebb9@byu.net>
42542
42543         * lib/getopt.c: Fix typo in last commit.
42544
42545 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42546
42547         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42548         dgettext.
42549
42550 2006-09-12  Jim Meyering  <jim@meyering.net>
42551
42552         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42553         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42554         Reported by Nelson H. F. Beebe.
42555
42556 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42557
42558         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42559         program_invocation_name and program_invocation_short_name are
42560         initialized.
42561         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42562         and program_invocation_short_name to argp.h, so they are visible
42563         to user programs.
42564         * lib/argp.h: Likewise
42565
42566 2006-09-10  Bruno Haible  <bruno@clisp.org>
42567
42568         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42569         m4/inttypes_h.m4, m4/uintmax_t.m4.
42570
42571 2006-09-10  Bruno Haible  <bruno@clisp.org>
42572
42573         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42574         gl_AC_TYPE_UINTMAX_T.
42575
42576 2006-09-10  Bruno Haible  <bruno@clisp.org>
42577
42578         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42579
42580 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42581
42582         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42583         convention.  Text proposed by Bruno Haible.
42584         (struct argp_option): Document the use of N_() wrappers.
42585
42586         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42587         '\v', and translate the two parts separately, instead of feeding
42588         the whole string to gettext.  This allows to exclude
42589         '\v' from the strings visible to the translator by writing doc
42590         strings as N_("..") "\v" N_("..").
42591
42592 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42593
42594         * config/srclist.txt: Undo latest change; the bug was fixed.
42595
42596 2006-09-09  Bruno Haible  <bruno@clisp.org>
42597
42598         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42599         assignments if building a library without libtool.
42600         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42601         in func_emit_lib_Makefile_am.
42602         (func_import): When building a static library libfoo.a, arrange to
42603         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42604         (func_create_testdir): Likewise.
42605         * modules/gc (configure.ac, Makefile.am): If building statically,
42606         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42607         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42608         * modules/striconv (configure.ac, Makefile.am): Likewise.
42609         Based on a suggestion by Ralf Wildenhues.
42610
42611 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42612
42613         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42614         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42615         Also:
42616
42617         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42618         Add year_2050_test to catch glibc bug 2821
42619         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42620
42621         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42622         Prefer #ifdef to #if.
42623
42624         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42625         Return from 'main' instead of calling 'exit'.
42626
42627 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42628
42629         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42630         returned the maximum time_t value rather than (time_t) -1.
42631         Problem originally reported by William Bardwell
42632         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42633
42634         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42635         Moved to here ...
42636         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42637         ... from here.
42638
42639 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42640
42641         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42642         2821 is fixed.
42643
42644 2006-09-08  Jim Meyering  <jim@meyering.net>
42645
42646         Don't make generated files read-only.  That would bother too many
42647         people.  However, do retain the ability to work when targets are
42648         read-only: remove the destination and temporary files before writing
42649         them (when generated via sed or echo), or by using the -f option for
42650         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42651         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42652         * modules/byteswap, modules/configmake, modules/fcntl:
42653         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42654         * modules/localcharset, modules/netinet_in, modules/poll:
42655         * modules/stdbool, modules/stdint, modules/sys_select:
42656         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42657
42658 2006-09-08  Jim Meyering  <jim@meyering.net>
42659
42660         Avoid new build failure on FreeBSD 6.0.
42661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42662         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42663         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42664
42665 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42666
42667         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42668
42669 2006-09-07  Jim Meyering  <jim@meyering.net>
42670
42671         Fix global typo in last change: use chmod u-w, not chmod u-x.
42672         Spotted by Paul Eggert and Bruce Korb.
42673         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42674         * modules/byteswap, modules/configmake, modules/fcntl:
42675         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42676         * modules/localcharset, modules/netinet_in, modules/poll:
42677         * modules/stdbool, modules/stdint, modules/sys_select:
42678         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42679
42680 2006-09-06  Jim Meyering  <jim@meyering.net>
42681
42682         Make generated files be read-only.
42683         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42684         Ensure that each generated file is now read-only.
42685         * modules/argz: Likewise.
42686         * modules/arpa_inet: Likewise.
42687         * modules/byteswap: Likewise.
42688         * modules/configmake: Likewise.
42689         * modules/fcntl: Likewise.
42690         * modules/fnmatch: Likewise.
42691         * modules/getopt: Likewise.
42692         * modules/glob: Likewise.
42693         * modules/inttypes: Likewise.
42694         * modules/netinet_in: Likewise.
42695         * modules/poll: Likewise.
42696         * modules/stdbool: Likewise.
42697         * modules/stdint: Likewise.
42698         * modules/sys_select: Likewise.
42699         * modules/sys_socket: Likewise.
42700         * modules/sys_stat: Likewise.
42701         * modules/sysexits: Likewise.
42702         * modules/localcharset: Same as above, but continue using temporary
42703         file named "t-$@" (why different?) rather than the "$@-t" used
42704         everywhere else.
42705
42706         * modules/sysexits (Makefile.am): Replace literal occurrences
42707         of "sysexit.h" more readable, and more consistent, "$@".
42708
42709 2006-09-06  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/striconv: New file.
42712         * modules/xstriconv: New file.
42713         * MODULES.html.sh (Internationalization functions): Add striconv,
42714         xstriconv.
42715
42716 2006-09-06  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42719         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42720         not using libtool correctly.
42721
42722 2006-09-06  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/striconv.h: New file.
42725         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42726         iconvstring.c.
42727         * lib/xstriconv.h: New file.
42728         * lib/xstriconv.c: New file.
42729
42730 2006-09-06  Bruno Haible  <bruno@clisp.org>
42731
42732         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42733         lib_..._LDFLAGS.
42734
42735 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42736
42737         * lib/argz_.h: Sync from Libtool.
42738
42739         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42740                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42741
42742         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42743
42744 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42745
42746         * modules/trim: New file.
42747
42748 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42749
42750         * lib/trim.h: New file.
42751         * lib/trim.c: New file.
42752
42753 2006-09-05  Bruno Haible  <bruno@clisp.org>
42754
42755         * MODULES.html.sh (String handling): Add trim.
42756
42757 2006-09-04  Karl Berry  <karl@gnu.org>
42758
42759         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42760         until next release.
42761
42762 2006-09-03  Bruno Haible  <bruno@clisp.org>
42763
42764         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42765         correctly.
42766
42767 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42768
42769         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42770         not gl_GETLOADAVG.  Omit unneeded semicolons.
42771         Problems reported by Ralf Wildenhues in
42772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42773         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42774         at the end, which is the usual gnulib style.
42775
42776         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42777         of doing all the work ourselves.
42778         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42779         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42780
42781 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42782
42783         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42784         Problem reported by Ralf Wildenhues in
42785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42786
42787         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42788         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42789
42790 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42791
42792         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42793         yesterday's patch by changing test -n to test -z.
42794
42795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42796
42797         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42798         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42799         the former is now obsolescent.
42800
42801         * modules/chdir-long (Depends-on): Add fcntl.
42802
42803 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42806         obsolescent, and programs should use gnulib instead.
42807         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42808         but with prefixes changed.
42809
42810 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42811
42812         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42813         or stdbool.h, because they might not exist while configuring.
42814
42815         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42816         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42817         does that for us.
42818         (O_DIRECTORY): Remove.
42819
42820 2006-08-31  Eric Blake  <ebb9@byu.net>
42821
42822         * gnulib-tool: Don't let emacs change spaces to TAB.
42823
42824 2006-08-31  Bruno Haible  <bruno@clisp.org>
42825
42826         * gnulib-tool: When calling func_import more than once, do it in a
42827         subshell.
42828         Reported by Eric Blake <ebb9@byu.net>.
42829
42830 2006-08-31  Bruno Haible  <bruno@clisp.org>
42831
42832         * gnulib-tool (nl): Remove variable.
42833         (sed_transform_lib_file): Use more robust test for config-h module.
42834         (func_import): Fix typo in 2006-08-25 patch.
42835
42836 2006-08-31  Bruno Haible  <bruno@clisp.org>
42837
42838         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42839         specified, augment Makefile.am variables instead of assigning them.
42840
42841 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42842
42843         Work around a bug in both the Linux and SunOS 64-bit kernels:
42844         nanosleep mishandles sleeps for longer than 2**31 seconds.
42845         Problem reported by Frank v Waveren in
42846         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42848         Check for nanosleep bug.
42849         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42850
42851 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42852
42853         Work around a bug in both the Linux and SunOS 64-bit kernels:
42854         nanosleep mishandles sleeps for longer than 2**31 seconds.
42855         Problem reported by Frank v Waveren in
42856         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42857         * lib/nanosleep.c (BILLION): New constant.
42858         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42859         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42860         implementation.
42861
42862 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42863
42864         * modules/nanosleep (Depends-on): Add gettime.
42865
42866 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42867         and Simon Josefsson  <jas@extundo.com>
42868         and Oskar Liljeblad  <oskar@osk.mine.nu>
42869
42870         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42871         * gnulib-tool (func_import): New license type 'unmodifiable license
42872         text'.
42873         * modules/fdl: Use it.  Longer description.
42874         * module/gpl, module/lgpl: New files.
42875
42876 2006-08-30  Jim Meyering  <jim@meyering.net>
42877
42878         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42879         shadowing the parameter.
42880
42881 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42882
42883         Sync from Libtool:
42884
42885         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42886
42887         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42888         sharing with gnulib.  Report by Eric Blake.
42889
42890 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42891
42892         * modules/isapipe: New file.
42893         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42894
42895 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42896
42897         * modules/configmake (Makefile.am): Add a comment, and omit
42898         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42899         by Bruno Haible.
42900
42901 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42902
42903         * m4/isapipe.m4: New file.
42904
42905 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42906
42907         * lib/isapipe.c, lib/isapipe.h: New files.
42908
42909 2006-08-29  Jim Meyering  <jim@meyering.net>
42910
42911         * modules/configmake (Makefile.am): Make configmake.h depend on
42912         Makefile.  Otherwise, a stale configmake.h could hang around.
42913
42914 2006-08-29  Eric Blake  <ebb9@byu.net>
42915
42916         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42917         resolution of upstream bug 3044.
42918
42919 2006-08-29  Bruno Haible  <bruno@clisp.org>
42920
42921         * modules/localcharset (Depends-on): Add configmake.
42922         (Makefile.am): Remove setting of LIBDIR through DEFS.
42923
42924 2006-08-29  Bruno Haible  <bruno@clisp.org>
42925
42926         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42927         defined.
42928
42929 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42930
42931         * modules/fcntl: New file.
42932         * modules/chdir-safer (Depends-on): Add fcntl.
42933         * modules/fts: Likewise.
42934         * modules/mkdir-p: Likewise.
42935
42936         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42937         This undoes the most recent change, since we're now addressing the
42938         problem in a different way.
42939
42940         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42941         into output, since the output might be called Makefile.am even
42942         if $makefile_name is something different.
42943         (func_import): Use $makefile_am rather than
42944         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42945         empty.
42946
42947         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42948
42949 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42952         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42953         recent change to stdint.m4, since we're now addressing the problem in a
42954         different way.
42955
42956 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42957
42958         * m4/fcntl_h.m4: New file.
42959
42960 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42961
42962         * lib/fcntl_.h: New file.
42963         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42964         the fcntl module.
42965         * lib/dirchownmod.c: Likewise.
42966         * lib/fts.c: Likewise.
42967
42968         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42969         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42970         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42971         just before including <inttypes.h>, to avoid circular inclusion.
42972
42973 2006-08-28  Jim Meyering  <jim@meyering.net>
42974
42975         * doc/visibility.texi: Actually read and correct the grammar of the
42976         sentence affected by yesterday's change.
42977
42978 2006-08-28  Eric Blake  <ebb9@byu.net>
42979
42980         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42981         needs wrapper.
42982
42983 2006-08-28  Eric Blake  <ebb9@byu.net>
42984
42985         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42986
42987 2006-08-28  Eric Blake  <ebb9@byu.net>
42988
42989         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42990
42991 2006-08-28  Bruno Haible  <bruno@clisp.org>
42992
42993         * modules/c-strstr: New file, from GNU gettext.
42994         * MODULES.html.sh (String handling): Add c-strstr.
42995
42996 2006-08-28  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42999         macros.
43000         Reported by Eric Blake.
43001
43002 2006-08-28  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43005         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43006         * lib/vasprintf.c: Include errno.h, limits.h.
43007         (EOVERFLOW): New fallback definition.
43008         (vasprintf): Test here whether the string length is > INT_MAX.
43009         * lib/vsnprintf.c: Include errno.h, limits.h.
43010         (EOVERFLOW): New fallback definition.
43011         (vsnprintf): Fix bug when generated string was too long for the buffer.
43012         Test here whether the string length is > INT_MAX.
43013
43014 2006-08-28  Bruno Haible  <bruno@clisp.org>
43015
43016         * lib/inttypes_.h (SCNX*): Remove definitions.
43017         Reported by Eric Blake.
43018
43019 2006-08-28  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/c-strstr.h: New file, from GNU gettext.
43022         * lib/c-strstr.c: New file, from GNU gettext.
43023
43024 2006-08-28  Bruno Haible  <bruno@clisp.org>
43025
43026         * gnulib-tool: Reorder some statements.
43027
43028 2006-08-28  Bruno Haible  <bruno@clisp.org>
43029
43030         * gnulib-tool: New option --makefile-name.
43031         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43032         $makefile_name.
43033         (func_import): Write $makefile_name to the cache file, and read it from
43034         there unless explicitly specified. Use $makefile_name as file name
43035         instead of Makefile.am. Adjust the recommendations accordingly.
43036
43037 2006-08-28  Bruno Haible  <bruno@clisp.org>
43038
43039         * gnulib-tool (func_verify_module): Check against misapplying patch.
43040
43041 2006-08-28  Bruno Haible  <bruno@clisp.org>
43042
43043         * gnulib-tool (func_relativize, func_relconcat): New functions.
43044         Give an error if --local-dir is given with --update.
43045         Remove trailing slashes from $local_gnulib_dir.
43046         (func_import): Store the relativized $local_gnulib_dir in
43047         gnulib-cache.m4, and read it from there if not specified explicitly.
43048
43049 2006-08-28  Bruno Haible  <bruno@clisp.org>
43050
43051         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43052         is the current directory. Respect also $local_gnulib_dir.
43053
43054 2006-08-28  Bruno Haible  <bruno@clisp.org>
43055             Simon Josefsson  <jas@extundo.com>
43056
43057         BeOS portability.
43058         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43059
43060 2006-08-27  Jim Meyering  <jim@meyering.net>
43061
43062         * doc/visibility.texi: Remove duplicate word: "pointer".
43063
43064 2006-08-26  Bruno Haible  <bruno@clisp.org>
43065
43066         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43067         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43068         (Makefile.am): Create inttypes.h from inttypes_.h.
43069         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43070
43071         * modules/imaxabs: New file.
43072
43073         * modules/imaxdiv: New file.
43074
43075 2006-08-26  Bruno Haible  <bruno@clisp.org>
43076
43077         * m4/inttypes.m4: New file.
43078         * m4/_inttypes_h.m4: Remove file.
43079         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43080         PRI_MACROS_BROKEN.
43081         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43082
43083         * m4/imaxabs.m4: New file.
43084
43085         * m4/imaxdiv.m4: New file.
43086
43087 2006-08-26  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/inttypes_.h: New file.
43090         * lib/inttypes.h: Remove file.
43091         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43092
43093         * lib/imaxabs.c: New file.
43094
43095         * lib/imaxdiv.c: New file.
43096
43097 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43098
43099         New config-h module, so that "make" output needn't be cluttered
43100         by -DHAVE_CONFIG_H.
43101         * MODULES.html.sh (Support for building libraries and executables):
43102         Add config-h.
43103         * modules/config-h: New file.
43104         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43105         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43106         the config-h module is used.
43107
43108         New configmake module, so that "make" output needn't be cluttered
43109         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43110         * MODULES.html.sh (Support for building libraries and executables):
43111         Add configmake.
43112         * modules/configmake: New file.
43113
43114 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43115
43116         * m4/config-h.m4: New file.
43117
43118 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         * config/srclist.txt: Add elisp-comp.
43121
43122 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43123
43124         * MODULES.html.sh (Support for building libraries and executables):
43125         Add elisp-comp.
43126         * build-aux/elisp-comp: New file.
43127         * modules/elisp-comp: New file.
43128
43129 2006-08-24  Bruno Haible  <bruno@clisp.org>
43130
43131         * gnulib-tool (func_create_testdir): Use non-default values of
43132         sourcebase and m4base.
43133
43134 2006-08-24  Bruno Haible  <bruno@clisp.org>
43135
43136         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43137         HTML structure.
43138
43139 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43140
43141         * modules/openat (Depends-on): Add lchown.
43142
43143 2006-08-23  Bruno Haible  <bruno@clisp.org>
43144
43145         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43146         of gl_LOCK_EARLY instead of gl_LOCK.
43147
43148 2006-08-23  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43151         on OSF/1 to no.
43152         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43153
43154 2006-08-23  Bruno Haible  <bruno@clisp.org>
43155
43156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43157         as unusable.
43158
43159         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43160         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43161         (gl_LOCK): New macro.
43162
43163 2006-08-22  Simon Josefsson  <jas@extundo.com>
43164
43165         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43166         to md5 module.
43167
43168 2006-08-22  Simon Josefsson  <jas@extundo.com>
43169
43170         * MODULES.html.sh: Add "Support for maintaining and release
43171         projects".
43172
43173         * build-aux/gnupload: New file, from coreutils.
43174
43175 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43176
43177         Avoid the need for AC_LIBSOURCES in m4 macros.
43178         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43179         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43180         * modules/check-version (EXTRA_DIST): Add check-version.h.
43181         * modules/crc (EXTRA_DIST): Add crc.h.
43182         * modules/des (EXTRA_DIST): Add des.h.
43183         * modules/gc (EXTRA_DIST): Add gc.h.
43184         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43185         * modules/getline (EXTRA_DIST): Add getline.h.
43186         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43187         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43188         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43189         * modules/md2 (EXTRA_DIST): Add md2.h.
43190         * modules/md4 (EXTRA_DIST): Add md4.h.
43191         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43192         * modules/read-file (EXTRA_DIST): Add read-file.h.
43193         * modules/readline (EXTRA_DIST): Add readline.h.
43194         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43195         rijndael-api-fst.h.
43196
43197 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43198
43199         * m4/rijndael.m4 (gl_ARCFOUR):
43200         * m4/arctwo.m4 (gl_ARCTWO):
43201         * m4/check-version.m4 (gl_CHECK_VERSION):
43202         * m4/crc.m4 (gl_CRC):
43203         * m4/des.m4 (gl_DES):
43204         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43205         * m4/gc.m4 (gl_GC):
43206         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43207         * m4/getline.m4 (gl_FUNC_GETLINE):
43208         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43209         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43210         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43211         * m4/md2.m4 (gl_MD2):
43212         * m4/md4.m4 (gl_MD4):
43213         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43214         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43215         * m4/readline.m4 (gl_FUNC_READLINE):
43216         * m4/rijndael.m4 (gl_RIJNDAEL):
43217         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43218         to get the necessary .h files and whatnot.
43219
43220 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43221
43222         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43223         gnulib rather than the other way around.
43224         * config/srclistvars.sh (COREUTILS): Remove.
43225
43226 2006-08-22  Jim Meyering  <jim@meyering.net>
43227
43228         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43229
43230         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43231
43232 2006-08-22  Eric Blake  <ebb9@byu.net>
43233
43234         * modules/regexprops-generic: New file.
43235         * MODULES.html.sh (Support for building documentation): List it.
43236
43237 2006-08-22  Eric Blake  <ebb9@byu.net>
43238
43239         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43240         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43241         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43242         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43243
43244 2006-08-22  Bruno Haible  <bruno@clisp.org>
43245
43246         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43247         and lib_LTLIBRARIES like the other lib_* variables.
43248
43249 2006-08-22  Bruno Haible  <bruno@clisp.org>
43250
43251         * build-aux/x-to-1.in: New file, from GNU gettext.
43252
43253 2006-08-22  Bruno Haible  <bruno@clisp.org>
43254
43255         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43256         <utmpx.h> exists.
43257
43258 2006-08-22  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43261         <utmpx.h> exists.
43262
43263 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43264
43265         BeOS portability.
43266         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43267         exist.
43268         Problem reported by Bruno Haible.
43269
43270 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43271
43272         Avoid the need for AC_LIBSOURCES in m4 macros.
43273         * modules/acl (EXTRA_DIST): Add acl.h.
43274         * modules/argmatch (Files): Add m4/argmatch.m4.
43275         (configure.ac): Add gl_ARGMATCH.
43276         (EXTRA_DIST): Renamed from lib_SOURCES, for
43277         consistency with the other modules.  Remove argmatch.c.
43278         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43279         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43280         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43281         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43282         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43283         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43284         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43285         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43286         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43287         * modules/closeout (EXTRA_DIST): Add closeout.h.
43288         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43289         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43290         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43291         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43292         dirname.h; remove basename.c and stripslash.c.
43293         * modules/exclude (EXTRA_DIST): Add exclude.h.
43294         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43295         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43296         * modules/file-type (EXTRA_DIST): Add file-type.h.
43297         * modules/filemode (EXTRA_DIST): Add filemode.h.
43298         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43299         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43300         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43301         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43302         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43303         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43304         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43305         * modules/getdate (EXTRA_DIST): Add getdate.c.
43306         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43307         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43308         * modules/getpass (EXTRA_DIST): Add getpass.h.
43309         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43310         * modules/group-member (EXTRA_DIST): Add group-member.h.
43311         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43312         * modules/hash (EXTRA_DIST): Add hash.h.
43313         * modules/human (EXTRA_DIST): Add human.h.
43314         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43315         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43316         * modules/lchown (EXTRA_DIST): Add lchown.h.
43317         * modules/long-options (EXTRA_DIST): Add long-options.h.
43318         * modules/lstat (EXTRA_DIST): Add lstat.h.
43319         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43320         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43321         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43322         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43323         * modules/memxor (EXTRA_DIST): Add memxor.h.
43324         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43325         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43326         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43327         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43328         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43329         * modules/physmem (EXTRA_DIST): Add physmem.h.
43330         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43331         * modules/posixver (EXTRA_DIST): Add posixver.h.
43332         * modules/quote (EXTRA_DIST): Add quote.h.
43333         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43334         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43335         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43336         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43337         regex_internal.h regexec.c.
43338         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43339         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43340         * modules/same (EXTRA_DIST): Add same.h.
43341         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43342         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43343         * modules/savedir (EXTRA_DIST): Add savedir.h.
43344         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43345         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43346         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43347         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43348         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43349         * modules/strdup (EXTRA_DIST): Add strdup.h.
43350         * modules/strftime (EXTRA_DIST): Add strftime.h.
43351         * modules/strndup (EXTRA_DIST): Add strndup.h.
43352         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43353         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43354         * modules/time_r (EXTRA_DIST): Add time_r.h.
43355         * modules/timespec (EXTRA_DIST): Add timespec.h.
43356         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43357         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43358         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43359         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43360         * modules/userspec (EXTRA_DIST): Add userspec.h.
43361         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43362         * modules/utimens (EXTRA_DIST): Add utimens.h.
43363         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43364         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43365         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43366         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43367         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43368         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43369         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43370         * modules/yesno (EXTRA_DIST): Add yesno.h.
43371
43372 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43373
43374         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43375
43376         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43377         * m4/dev-ino.m4, same-inode.m4: Remove.
43378
43379         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43380         * m4/acl.m4 (AC_FUNC_ACL):
43381         * m4/backupfile.m4 (gl_BACKUPFILE):
43382         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43383         * m4/canon-host.m4 (gl_CANON_HOST):
43384         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43385         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43386         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43387         * m4/cloexec.m4 (gl_CLOEXEC):
43388         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43389         * m4/closeout.m4 (gl_CLOSEOUT):
43390         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43391         * m4/dirname.m4 (gl_DIRNAME):
43392         * m4/exclude.m4 (gl_EXCLUDE):
43393         * m4/exitfail.m4 (gl_EXITFAIL):
43394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43395         * m4/file-type.m4 (gl_FILE_TYPE):
43396         * m4/filemode.m4 (gl_FILEMODE):
43397         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43398         * m4/fpending.m4 (gl_FUNC_FPENDING):
43399         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43400         * m4/fts.m4 (gl_FUNC_FTS):
43401         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43402         * m4/getdate.m4 (gl_GETDATE):
43403         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43404         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43405         * m4/getpass.m4 (gl_FUNC_GETPASS):
43406         * m4/gettime.m4 (gl_GETTIME):
43407         * m4/getugroups.m4 (gl_GETUGROUPS):
43408         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43409         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43410         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43411         * m4/hash.m4 (gl_HASH):
43412         * m4/idcache.m4 (gl_IDCACHE):
43413         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43414         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43415         * m4/long-options.m4 (gl_LONG_OPTIONS):
43416         * m4/lstat.m4 (gl_FUNC_LSTAT):
43417         * m4/md5.m4 (gl_MD5):
43418         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43419         * m4/memcoll.m4 (gl_MEMCOLL):
43420         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43421         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43422         * m4/memxor.m4 (gl_MEMXOR):
43423         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43424         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43425         * m4/modechange.m4 (gl_MODECHANGE):
43426         * m4/mountlist.m4 (gl_MOUNTLIST):
43427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43428         * m4/openat.m4 (gl_FUNC_OPENAT):
43429         * m4/pathmax.m4 (gl_PATHMAX):
43430         * m4/physmem.m4 (gl_PHYSMEM):
43431         * m4/posixtm.m4 (gl_POSIXTM):
43432         * m4/posixver.m4 (gl_POSIXVER):
43433         * m4/quote.m4 (gl_QUOTE):
43434         * m4/quotearg.m4 (gl_QUOTEARG):
43435         * m4/readtokens.m4 (gl_READTOKENS):
43436         * m4/readutmp.m4 (gl_READUTMP):
43437         * m4/regex.m4 (gl_REGEX):
43438         * m4/safe-read.m4 (gl_SAFE_READ):
43439         * m4/safe-write.m4 (gl_SAFE_WRITE):
43440         * m4/same.m4 (gl_SAME):
43441         * m4/save-cwd.m4 (gl_SAVE_CWD):
43442         * m4/savedir.m4 (gl_SAVEDIR):
43443         * m4/settime.m4 (gl_SETTIME):
43444         * m4/sha1.m4 (gl_SHA1):
43445         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43446         * m4/stat-macros.m4 (gl_STAT_MACROS):
43447         * m4/stat-time.m4 (gl_STAT_TIME):
43448         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43449         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43450         * m4/strdup.m4 (gl_FUNC_STRDUP):
43451         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43452         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43453         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43454         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43455         * m4/time_r.m4 (gl_TIME_R):
43456         * m4/timespec.m4 (gl_TIMESPEC):
43457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43458         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43459         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43460         * m4/userspec.m4 (gl_USERSPEC):
43461         * m4/utimecmp.m4 (gl_UTIMECMP):
43462         * m4/utimens.m4 (gl_UTIMENS):
43463         * m4/xalloc.m4 (gl_XALLOC):
43464         * m4/xgetcwd.m4 (gl_XGETCWD):
43465         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43466         * m4/xreadlink.m4 (gl_XREADLINK):
43467         * m4/xstrtod.m4 (gl_XSTRTOD):
43468         * m4/yesno.m4 (gl_YESNO):
43469         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43470         to get the necessary .h files and whatnot.
43471
43472 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43473             Bruno Haible  <bruno@clisp.org>
43474
43475         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43476         /bin/sh understanding of '!' conditional negation.
43477
43478 2006-08-21  Jim Meyering  <jim@meyering.net>
43479
43480         * modules/openat (Depends-on): Really alphabetize.
43481
43482         * modules/acl (Depends-on): Add error and quote.
43483
43484         * check-module (find_included_lib_files): Add at-func.c to the
43485         ok-to-include-more-than-once white list.
43486
43487         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43488
43489 2006-08-21  Bruno Haible  <bruno@clisp.org>
43490
43491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43492         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43493         Reported by Martin Lambers <marlam@marlam.de>.
43494
43495 2006-08-21  Bruno Haible  <bruno@clisp.org>
43496
43497         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43498         specify an installation location, don't emit a noinst_LIBRARIES or
43499         noinst_LTLIBRARIES assignment.
43500
43501 2006-08-21  Bruno Haible  <bruno@clisp.org>
43502
43503         BeOS portability.
43504         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43505         BeOS has mbrtowc() but no <wctype.h>.
43506
43507 2006-08-21  Bruno Haible  <bruno@clisp.org>
43508
43509         BeOS portability.
43510         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43511         exist.
43512
43513 2006-08-21  Bruno Haible  <bruno@clisp.org>
43514
43515         BeOS portability.
43516         * lib/mbchar.h: Include <wctype.h> only if it exists.
43517
43518 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         Remove files that are no longer needed by their respective modules.
43521         * m4/obstack.m4: Remove.
43522         * m4/strerror_r.m4: Remove.
43523         * m4/uint32_t.m4: Remove.
43524         * m4/uintptr_t.m4: Remove.
43525         * m4/ullong_max.m4: Remove.
43526         * m4/xstrtoimax.m4: Remove.
43527         * m4/xstrtoumax.m4: Remove.
43528
43529         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43530         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43531         dependencies now capture this.
43532
43533         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43534         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43535         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43536         * m4/human.m4 (gl_HUMAN): Likewise.
43537         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43538         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43539
43540         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43541
43542         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43543         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43544         stdint.
43545         * m4/human.m4 (gl_HUMAN): Likewise.
43546         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43547         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43548         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43550         * m4/xstrtol (gl_XSTRTOL): Likewise.
43551
43552         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43553         AC_TYPE_LONG_LONG_INT.
43554         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43555         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43556         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43557         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43558
43559         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43560         on stdbool.
43561
43562         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43563         (gl_PREREQ_XSTRTOUL): Remove.
43564
43565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43566
43567         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43568         mode.
43569
43570 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43571
43572         Add and change modules to make it easier for coreutils to use
43573         gnulib-tool.
43574         * modules/backupfile (Files): Remove m4/d-ino.m4.
43575         (Depends-on): Add d-ino.
43576         * modules/cycle-check (Depends-on): Add stdint.
43577         (lib_SOURCES): Add cycle-check.h.
43578         * modules/d-ino: New module.
43579         * modules/d-type: New module.
43580         * modules/error (Files): Remove m4/strerror_r.m4.
43581         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43582         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43583         m4/inttypes_h.m4, m4/uintmax_t.m4.
43584         (Depends-on): Add stdint.
43585         (lib_SOURCES): Add fsusage.h.
43586         * modules/getcwd (Files): Remove d-ino.m4.
43587         (Depends-on): Add d-ino.
43588         * modules/getndelim2 (Depends-on): Add stdint.
43589         * modules/glob (Files): Remove m4/d-type.m4.
43590         (Depends-on): Add d-type.
43591         * modules/host-os: New module.
43592         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43593         m4/inttypes_h.m4, m4/uintmax_t.m4.
43594         * Depends-on: Add stdint.
43595         (lib_SOURCES): Add human.h.
43596         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43597         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43598         m4/uintmax_t.m4, m4/ulonglong.m4.
43599         (Depends-on): Add stdint.
43600         (EXTRA_DIST): Add inttostr.h.
43601         * modules/lchmod: New module.
43602         * modules/link-follow: New module.
43603         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43604         (Depends-on): Add lchmod.
43605         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43606         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43607         (Depends-on): Add stdint.
43608         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43609         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43610         (Depends-on): Add stdint.
43611         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43612         * modules/perl: New module.
43613         * modules/regex (Depends-on): Add stdint.
43614         * modules/rmdir-errno: New module.
43615         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43616         m4/intmax_t.m4.
43617         (Depends-on): Add stdint.
43618         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43619         m4/uintmax_t.m4.
43620         (Depends-on): Add stdint.
43621         * modules/unlink-busy: New module.
43622         * modules/utimecmp (Depends-on): Add stdint.
43623         * modules/uptime: New module.
43624         * modules/winsz-ioctl: New module.
43625         * modules/winsz-termios: New module.
43626         * modules/xnanosleep (Depends-on): Add nanosleep.
43627         * modules/ullong_max: Remove.
43628         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43629         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43630         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43631         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43632         (Depends-on): Add inttypes.
43633         (lib_SOURCES): Add xstrtol.h.
43634         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43635         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43636         * MODULES.html.sh: Move 'assert' into the assert section.
43637         Move 'dummy' into the linking section.
43638         Remove ullong_max.
43639         Add section for compatibility checks for POSIX:2001 functions,
43640         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43641         winsz-ioctl, and winsz-termios into it.
43642         Add lchmod.
43643         Add top-level Misc section and put host-os, perl, and uptime
43644         into it.
43645
43646 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43647
43648         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43649         now assume the stdint module.  Do not include inttypes.h.
43650         * lib/fsusage.h: Likewise.
43651         * lib/getndelim2.c: Likewise.
43652         * lib/human.h: Likewise.
43653         * lib/inttostr.h: Likewise.
43654         * lib/obstack.c: Likewise.
43655         * lib/regex_internal.h: Likewise.
43656         * lib/tempname.c: Likewise.
43657         * lib/utimecmp.c: Likewise.
43658         * lib/xstrtol.h: Likewise.
43659
43660         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43661
43662         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43663         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43664         * lib/xtime.h: Likewise.
43665
43666 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43667
43668         * modules/openat (Files): Add lib/fchmodat.c.
43669         Fixes problem reported by Jay Youngman.
43670
43671 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43672
43673         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43674         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43675
43676 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43677             Bruno Haible  <bruno@clisp.org>
43678
43679         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43680         and is a script that invokes bison. Tighten the code. Add comments.
43681
43682 2006-08-18  Jim Meyering  <jim@meyering.net>
43683
43684         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43685         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43686         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43687         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43688
43689 2006-08-18  Bruno Haible  <bruno@clisp.org>
43690
43691         * modules/bison-i18n: New file.
43692         * MODULES.html.sh (Internationalization functions): Add it.
43693
43694 2006-08-18  Bruno Haible  <bruno@clisp.org>
43695
43696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43697         sys/statvfs.h. When getmntinfo was found, check its declaration and
43698         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43699
43700 2006-08-18  Bruno Haible  <bruno@clisp.org>
43701
43702         * m4/bison-i18n.m4: New file, from bison.
43703
43704 2006-08-18  Bruno Haible  <bruno@clisp.org>
43705
43706         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43707         (ME_DUMMY): Treat "kernfs" as a dummy.
43708         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43709
43710 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43711
43712         Update from coreutils.
43713
43714         2006-08-15  Jim Meyering  <jim@meyering.net>
43715
43716         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43717
43718         2006-01-17  Jim Meyering  <jim@meyering.net>
43719
43720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43721
43722         2006-01-11  Jim Meyering  <jim@meyering.net>
43723
43724         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43725         Check for the lchmod function.
43726
43727 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43728
43729         Update from coreutils.
43730
43731         * lib/__fpending.h: Add copyright notice.
43732         * lib/fprintftime.h: Likewise.
43733         * lib/savedir.c: Use (C) in copyright notice.
43734         * lib/savedir.h: Likewise.
43735
43736         2006-08-15  Jim Meyering  <jim@meyering.net>
43737
43738         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43739         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43740         in support of the EXPECTED_ERRNO macro.
43741         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43742         definitions.  Instead, define the appropriate symbols and include
43743         "at-func.c".
43744         * lib/mkdirat.c (mkdirat): Likewise.
43745         * lib/fchmodat.c (fchmodat): Likewise.
43746         (ENOSYS): Remove definition.
43747         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43748         it.  Don't include "unistd--.h" -- it wasn't ever used.
43749
43750         2006-01-17  Jim Meyering  <jim@meyering.net>
43751
43752         Rewrite fts.c not to change the current working directory,
43753         by using openat, fstatat, fdopendir, etc..
43754
43755         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43756         (HAVE_OPENAT_SUPPORT): Define.
43757         [_LIBC] (fchdir): Don't undef or define; no longer used.
43758         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43759         Now, this `function' always succeeds, and consumes its file descriptor
43760         parameter -- so callers must not close such FDs.  Update callers.
43761         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43762         (diropen): Add parameter, SP.  Adjust all callers.
43763         Implement using diropen_fd, rather than open.
43764         (fts_open): Initialize new member, fts_cwd_fd.
43765         Remove fts_rft-setting code.
43766         (fts_close): Close fts_cwd_fd, if necessary.
43767         (__opendir2): Define in terms of opendir or opendirat,
43768         depending on whether the FST_NOCHDIR flag is set.
43769         (fts_build): Since fts_safe_changedir consumes its FD, and since
43770         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43771         and close the dup'd file descriptor upon failure.
43772         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43773         (fts_safe_changedir): Tweak semantics to reflect that this function
43774         now calls cwd_advance_fd and hence consumes its FD argument.
43775         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43776         [struct FTS] (fts_rft): Remove now-unused member.
43777         [struct FTS] (fts_cycle.state): Improve comment.
43778
43779         * lib/openat.c (openat_needs_fchdir): New function.
43780         * lib/openat.h (openat_needs_fchdir): Declare it.
43781
43782 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43783
43784         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43785         Problem and fix reported by Pádraig Brady in
43786         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43787
43788 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43789
43790         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43791
43792 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43793
43794         * lib/memcoll.c (memcoll): Optimize for the common case where the
43795         arguments are bytewise equal.
43796
43797 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43798
43799         * doc/regexprops-generic.texi: Add a copyright notice.
43800
43801 2006-08-15  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/tmpdir (License): Change to LGPL.
43804
43805 2006-08-15  Bruno Haible  <bruno@clisp.org>
43806
43807         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43808         module.
43809
43810 2006-08-14  Simon Josefsson  <jas@extundo.com>
43811
43812         * config/srclist.txt: Add gnupload.
43813
43814 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43815
43816         Change copyright notice from LGPL 2 to GPL 2, since that's the
43817         standard form used in the gnulib repository.
43818         * tests/test-lock.c: Likewise.
43819         * tests/test-stdint.c: Likewise.
43820         * tests/test-tls.c: Likewise.
43821
43822         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43823         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43824         Add copyright notice.
43825
43826         * check-module: Add copyright notice.  Output a copyright
43827         notice if "--version" is specified.
43828         * modules/COPYING: New file.
43829         * tests/test-getaddrinfo.c: Add copyright notice.
43830         * tests/test-verify.c: Likewise.
43831
43832 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43833
43834         Change copyright notice from LGPL 2 to GPL 2, since that's the
43835         standard form used in the gnulib repository.
43836         * lib/lock.c: LGPL -> GPL.
43837         * lib/lock.h: Likewise.
43838         * lib/strnlen1.c: Likewise.
43839         * lib/strnlen1.h: Likewise.
43840         * lib/tls.c: Likewise.
43841         * lib/tls.h: Likewise.
43842         * lib/tmpdir.c: Likewise.
43843
43844         * lib/TODO: Remove; this belongs only in coreutils.
43845
43846 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43847
43848         Add copyright notices to long-enough files that lack them, since
43849         otherwise the files aren't clearly free.  Use the same notice that
43850         getdate.texi already uses.
43851         * doc/alloca-opt.texi: Add copyright notice.
43852         * doc/alloca.texi: Likewise.
43853         * doc/ctime.texi: Likewise.
43854         * doc/functions.texi: Likewise.
43855         * doc/gcd.texi: Likewise.
43856         * doc/gnulib-tool.texi: Likewise.
43857         * doc/inet_ntoa.texi: Likewise.
43858         * doc/visibility.texi: Likewise.
43859
43860         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43861         * doc/quote.texi: Add copyright notice.
43862
43863         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43864         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43865         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43866         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43867         is now obsolete, and give a pointer to the Sun list.
43868         Add copyright notice.
43869
43870 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * config/srclistvars.sh: Add copyright notice.
43873
43874 2006-08-14  Eric Blake  <ebb9@byu.net>
43875
43876         Import the following change from libc:
43877
43878         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43879
43880         Upstream bug 2997.
43881         * lib/misc/error.c: Add space between program name and message if file
43882         name is missing.
43883
43884 2006-08-12  Karl Berry  <karl@gnu.org>
43885
43886         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43887         remove, these originate in gnulib now.
43888
43889 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43890
43891         * doc/Makefile (standards.info standards.html standards.dvi):
43892         Also depend on make-stds.texi.
43893
43894 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43895
43896         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43897         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43898
43899         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43900         in wchar_t.  Problem reported by Eric Blake.
43901
43902         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43903         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43904         Also, help the compiler to keep LEN in a register.
43905
43906 2006-08-11  Eric Blake  <ebb9@byu.net>
43907
43908         * users.txt: Sort.  Add tar.
43909
43910 2006-08-11  Bruno Haible  <bruno@clisp.org>
43911
43912         * users.txt: New file.
43913
43914 2006-08-11  Bruno Haible  <bruno@clisp.org>
43915
43916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43917         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43918
43919 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43920
43921         * modules/snprintf (Depends-on): Remove minmax.
43922         (Maintainer): Add self and Bruno.
43923
43924 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43925
43926         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43927         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43928         (EOVERFLOW): Define if the system does not.
43929         Do not include "minmax.h"; it wasn't used.
43930         (snprintf): Don't assume size_t promotes to an unsigned type.
43931         Fix bug when generated string was too long for the buffer: the
43932         buffer's contents are supposed to be the initial prefix of the
43933         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43934         exceeds INT_MAX; do the check ourselves.
43935
43936         Import the following changes from libc:
43937
43938         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43939
43940         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43941         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43942         set wc to the byte which couldn't be converted.
43943         (re_string_reconstruct): Don't clear valid_raw_len before calling
43944         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43945         tip_context using re_string_context_at.
43946
43947         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43948
43949         * lib/posix/regex.h: g++ still cannot handled [restrict].
43950
43951         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43952
43953         * lib/posix/regex.h: Remove special handling for VMS.
43954
43955 2006-08-10  Jim Meyering  <jim@meyering.net>
43956
43957         * modules/same-inode: New module.
43958         * modules/dev-ino: New module.
43959         * modules/cycle-check: Depend on these modules, rather than simply
43960         including their .h files.
43961         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43962         required via m4/cycle-check.m4.
43963         * modules/same: Depend on new same-inode module, rather than
43964         including same-inode.h.
43965         * modules/chdir-safer: New file.
43966
43967         * modules/chown (Depends-on): Add stat-macros.
43968
43969 2006-08-10  Jim Meyering  <jim@meyering.net>
43970
43971         * m4/cycle-check.m4: New file.
43972         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43973         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43974
43975 2006-08-10  Eric Blake  <ebb9@byu.net>
43976
43977         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43978         in from original proposal.
43979
43980 2006-08-10  Eric Blake  <ebb9@byu.net>
43981         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43982
43983         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43984         namespace.
43985
43986 2006-08-10  Bruno Haible  <bruno@clisp.org>
43987
43988         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43989         as well.
43990
43991 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43992
43993         Sync from coreutils.
43994
43995         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43996
43997         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43998         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43999
44000 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44001
44002         * modules/restrict: Remove; no longer needed now that we assume
44003         Autoconf 2.59 or later.
44004         * MODULES.html.sh: Remove 'restrict'.
44005         * modules/argp (Depends-on): Remove 'restrict'.
44006         * modules/base64 (Depends-on): Likewise.
44007         * modules/gc (Depends-on): Likewise.
44008         * modules/getaddrinfo (Depends-on): Likewise.
44009         * modules/glob (Depends-on): Likewise.
44010         * modules/inet_ntop (Depends-on): Likewise.
44011         * modules/inet_pton (Depends-on): Likewise.
44012         * modules/memxor (Depends-on): Likewise.
44013         * modules/regex (Depends-on): Likewise.
44014         * modules/strtok_r (Depends-on): Likewise.
44015         * modules/time_r (Depends-on): Likewise.
44016
44017 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44018
44019         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44020         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44021         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44022         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44023         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44024         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44025         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44026         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44027
44028         Merge from coreutils.
44029         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44030         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44031         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44032         * m4/time_r.m4 (gl_TIME_R): Likewise.
44033
44034 2006-08-09  Karl Berry  <karl@gnu.org>
44035
44036         * config/srclist.txt: no more gettext-tools, per Bruno.
44037
44038 2006-08-08  Eric Blake  <ebb9@byu.net>
44039
44040         * modules/verror: New module.
44041         * MODULES.html.sh: Document it.
44042
44043 2006-08-08  Eric Blake  <ebb9@byu.net>
44044
44045         * lib/verror.h, lib/verror.c: New files.
44046
44047 2006-08-08  Eric Blake  <ebb9@byu.net>
44048
44049         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44050         verror_at_line output complies with GNU Coding Standards even when
44051         file is NULL.
44052
44053 2006-08-07  Bruno Haible  <bruno@clisp.org>
44054
44055         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44056         versions of AIX.
44057         Reported by Ralf Wildenhues.
44058
44059 2006-08-07  Bruno Haible  <bruno@clisp.org>
44060
44061         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44062         in an AC_DEFUN. Needed so that the autoconf snippets can use
44063         AC_REQUIRE.
44064
44065 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44066
44067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44068         Initialize pkgdata_DATA.
44069         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44070         overriding it.
44071
44072 2006-08-06  Eric Blake  <ebb9@byu.net>
44073
44074         * lib/error.h: Fold in some upstream changes from glibc.
44075         * lib/error.c: Likewise.
44076
44077 2006-08-04  Bruno Haible  <bruno@clisp.org>
44078
44079         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44080         Make the mostlyclean-local rule depend on mostlyclean-generic.
44081         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44082
44083 2006-07-31  Bruno Haible  <bruno@clisp.org>
44084
44085         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44086         <stdlib.h>, <string.h>.
44087
44088 2006-07-30  Bruno Haible  <bruno@clisp.org>
44089
44090         * modules/readlink (License): Change to LGPL.
44091
44092 2006-07-30  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44095         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44096         set PKGDATADIR to point to it.
44097
44098 2006-07-30  Bruno Haible  <bruno@clisp.org>
44099
44100         * modules/csharpexec (configure.ac): Comment out macro invocation.
44101         * modules/javaexec (configure.ac): Likewise.
44102         * modules/javacomp-script (configure.ac): Likewise.
44103
44104         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44105
44106 2006-07-30  Bruno Haible  <bruno@clisp.org>
44107
44108         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44109         linked-list.
44110
44111 2006-07-30  Bruno Haible  <bruno@clisp.org>
44112
44113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44114
44115 2006-07-30  Bruno Haible  <bruno@clisp.org>
44116
44117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44118         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44119         get removed.
44120
44121 2006-07-29  Bruno Haible  <bruno@clisp.org>
44122
44123         Make it possible for gnulib-tool to work with locally modified or
44124         augmented gnulib repositories.
44125         * gnulib-tool (func_usage): Document --local-dir option.
44126         (local_gnulib_dir): New variable.
44127         Handle --local-dir option.
44128         (func_lookup_file): New function.
44129         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44130         (func_get_description, func_get_filelist, func_get_description,
44131         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44132         func_get_automake_snippet, func_get_include_directive,
44133         func_get_license, func_get_maintainer): Use func_lookup_file.
44134         (func_import, func_create_testdir): Use func_lookup_file.
44135
44136 2006-07-29  Bruno Haible  <bruno@clisp.org>
44137
44138         * modules/setenv (Depends-on): Add unistd.
44139
44140 2006-07-29  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44143
44144 2006-07-29  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44147
44148 2006-07-29  Bruno Haible  <bruno@clisp.org>
44149
44150         * gnulib-tool (import, update): If there is no Makefile.am, look at
44151         aclocal.m4, instead of bailing out.
44152
44153 2006-07-29  Bruno Haible  <bruno@clisp.org>
44154
44155         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44156         Categorize the options by when they are useful.
44157
44158 2006-07-29  Bruno Haible  <bruno@clisp.org>
44159
44160         * gnulib-tool (func_usage): Document option --no-libtool.
44161         Handle option --no-libtool.
44162         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44163         for changed semantics of $libtool variable.
44164         (func_import): Likewise. If libtool is not used, show this through
44165         an option --no-libtool.
44166         (func_create_testdir): Update.
44167
44168 2006-07-29  Bruno Haible  <bruno@clisp.org>
44169
44170         * gnulib-tool (func_import): Extend error message about missing
44171         --doc-base.
44172
44173 2006-07-29  Bruno Haible  <bruno@clisp.org>
44174
44175         * gnulib-tool (func_import): Don't create the $docbase directory if
44176         there is no file to store there.
44177
44178 2006-07-29  Bruno Haible  <bruno@clisp.org>
44179
44180         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44181         relevant, look for configure.ac there, not in the current directory.
44182         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44183
44184 2006-07-29  Bruno Haible  <bruno@clisp.org>
44185
44186         * gnulib-tool (SORT): New variable.
44187         (func_usage): Undocument --assume-autoconf option.
44188         Remove --assume-autoconf option handling.
44189         (autoconf_minversion): Determine from the contents of configure.ac.
44190         (func_import): Remove autoconf_minversion handling.
44191         Suggested by Eric Blake.
44192
44193 2006-07-29  Bruno Haible  <bruno@clisp.org>
44194
44195         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44196
44197 2006-07-29  Bruno Haible  <bruno@clisp.org>
44198
44199         * config/srclist.txt (*setenv.[ch]): Remove rules.
44200
44201 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44202
44203         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44204
44205 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44206
44207         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44208         arpa/inet.h.
44209
44210 2006-07-28  Simon Josefsson  <jas@extundo.com>
44211
44212         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44213         * modules/inet_pton (Depends-on): Likewise.
44214
44215 2006-07-28  Simon Josefsson  <jas@extundo.com>
44216
44217         * m4/netinet_in_h.m4: New file.
44218
44219 2006-07-28  Simon Josefsson  <jas@extundo.com>
44220
44221         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44222         #include's.
44223
44224 2006-07-28  Simon Josefsson  <jas@extundo.com>
44225
44226         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44227         #include's.
44228
44229 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44232         setgid on directories only if they set these bits.
44233         * lib/modechange.h: Remove obsolete comment about masks.
44234
44235 2006-07-28  Eric Blake  <ebb9@byu.net>
44236
44237         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44238         macro expansion.
44239
44240 2006-07-28  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44243
44244 2006-07-28  Bruno Haible  <bruno@clisp.org>
44245
44246         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44247
44248 2006-07-28  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44251         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44252         Define fallbacks.
44253         Avoids link error on FreeBSD 4.x.
44254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44255
44256         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44257         encoding.
44258         * lib/mbswidth.c (iswcntrl): Likewise.
44259
44260 2006-07-27  Bruno Haible  <bruno@clisp.org>
44261
44262         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44263         test.
44264
44265 2006-07-27  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44268         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44269         defined.
44270
44271 2006-07-26  Eric Blake  <ebb9@byu.net>
44272
44273         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44274
44275 2006-07-26  Eric Blake  <ebb9@byu.net>
44276
44277         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44278         like mingw that lack mkstemp.
44279         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44280         avoid compilation warning on mingw.
44281
44282 2006-07-26  Bruno Haible  <bruno@clisp.org>
44283
44284         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44285         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44286         INT_FAST*_MIN, INTPTR_MIN.
44287
44288 2006-07-25  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/version-etc (Depends-on): Add stdarg.
44291
44292 2006-07-25  Bruno Haible  <bruno@clisp.org>
44293
44294         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44295         complex commands.
44296
44297 2006-07-25  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44300         defined in <stdarg.h> or config.h.
44301
44302 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44303
44304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44305         (gl_STDIO_SAFER): Remove.
44306
44307 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44308
44309         * MODULES.html.sh (File stream based Input/Output):
44310         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44311         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44312         * modules/fopen-safer, modules/tmpfile-safer: New files.
44313         * modules/stdio-safer: Remove.
44314
44315 2006-07-24  Bruno Haible  <bruno@clisp.org>
44316
44317         * modules/tmpdir: New file.
44318         * MODULES.html.sh (File system functions): Add it.
44319
44320 2006-07-24  Bruno Haible  <bruno@clisp.org>
44321
44322         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44323         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44324
44325 2006-07-24  Bruno Haible  <bruno@clisp.org>
44326
44327         * modules/clean-temp: New file.
44328
44329 2006-07-24  Bruno Haible  <bruno@clisp.org>
44330
44331         * m4/tmpdir.m4: New file, from GNU gettext.
44332
44333 2006-07-24  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/tmpdir.h: New file, from GNU gettext.
44336         * lib/tmpdir.c: New file, from GNU gettext.
44337
44338 2006-07-24  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/clean-temp.h: New file, from GNU gettext.
44341         * lib/clean-temp.c: New file, from GNU gettext.
44342
44343 2006-07-23  Eric Blake  <ebb9@byu.net>
44344
44345         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44346         (Depends-on): Add binary-io.
44347
44348 2006-07-23  Eric Blake  <ebb9@byu.net>
44349
44350         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44351
44352 2006-07-23  Eric Blake  <ebb9@byu.net>
44353
44354         * lib/tmpfile-safer.c: New file.
44355         * lib/stdio-safer.h (fopen_safer): Add prototype.
44356         * lib/stdio--.h (tmpfile): Make safer.
44357
44358 2006-07-23  Bruno Haible  <bruno@clisp.org>
44359
44360         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44361         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44362         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44363         gl_linked_remove_at): Use it.
44364
44365 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44366         and Simon Josefsson <jas@extundo.com>
44367
44368         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44369
44370         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44371
44372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44373
44374         * modules/close-stream: New file.
44375         * modules/closeout (Description): Make it clear that it exits
44376         with a diagnostic on error.
44377         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44378         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44379
44380 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         * m4/close-stream.m4: New file.
44383
44384 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         * lib/close-stream.c, lib/close-stream.h: New files.
44387
44388 2006-07-22  Bruno Haible  <bruno@clisp.org>
44389
44390         Merge from GNU gettext 0.15.
44391
44392         2006-05-01  Bruno Haible  <bruno@clisp.org>
44393
44394                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44395
44396         2006-07-22  Bruno Haible  <bruno@clisp.org>
44397
44398                 * modules/javaversion: New file.
44399                 * MODULES.html.sh (Java): Add javaversion.
44400
44401         2006-03-12  Bruno Haible  <bruno@clisp.org>
44402
44403                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44404
44405         2005-12-04  Bruno Haible  <bruno@clisp.org>
44406
44407                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44408                 (untested).
44409
44410         2006-06-21  Bruno Haible  <bruno@clisp.org>
44411
44412                 Avoid warnings from recent versions of mcs.
44413                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44414                 -o, -L, -r any more. Use options documented since mcs-1.0
44415                 instead. Similarly for -g.
44416
44417         2005-12-04  Bruno Haible  <bruno@clisp.org>
44418
44419                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44420                 .resources, not .resource.
44421
44422         2005-07-09  Bruno Haible  <bruno@clisp.org>
44423
44424                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44425                 add a .dll suffix.
44426                 Reported by Mark Junker <mjscod@gmx.de>.
44427
44428         2006-07-22  Bruno Haible  <bruno@clisp.org>
44429
44430                 * modules/gettext: Upgrade to gettext-0.15.
44431                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44432                 m4/visibility.m4.
44433                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44434
44435 2006-07-22  Bruno Haible  <bruno@clisp.org>
44436
44437         Merge from GNU gettext 0.15.
44438
44439         2006-03-25  Bruno Haible  <bruno@clisp.org>
44440
44441                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44442
44443         2006-07-21  Bruno Haible  <bruno@clisp.org>
44444
44445                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44446                 "1.1".
44447
44448         2006-05-09  Bruno Haible  <bruno@clisp.org>
44449
44450                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44451                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44452                 for the conftestver execution.
44453
44454         2006-05-01  Bruno Haible  <bruno@clisp.org>
44455
44456                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44457                 optional target-version argument. Verify that the compiler
44458                 groks source of the specified source-version, or add -source
44459                 option as necessary. Verify that the compiler produces
44460                 bytecode in the specified target-version, or add -target and
44461                 -source options as necessary. Make the result of the test
44462                 available as variable CONF_JAVAC. Also log error output in
44463                 config.log.
44464
44465         2006-03-11  Bruno Haible  <bruno@clisp.org>
44466
44467                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44468
44469         2006-05-09  Bruno Haible  <bruno@clisp.org>
44470
44471                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44472                 CLASSPATH_SEPARATOR to a semicolon.
44473
44474         2006-03-12  Bruno Haible  <bruno@clisp.org>
44475
44476                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44477                 available as variable CONF_JAVA, for subsequent autoconf
44478                 tests. Also log error output in config.log.
44479
44480         2006-07-19  Bruno Haible  <bruno@clisp.org>
44481
44482                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44483                 that getline works on glibc2 systems. Needed to avoid trouble
44484                 in relocatable.c.
44485                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44486
44487         2005-12-04  Bruno Haible  <bruno@clisp.org>
44488
44489                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44490                 launcher (untested).
44491
44492         2005-12-04  Bruno Haible  <bruno@clisp.org>
44493
44494                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44495
44496         2006-07-22  Bruno Haible  <bruno@clisp.org>
44497
44498                 * gettext.m4: Update from GNU gettext-0.15.
44499                 * nls.m4: Likewise.
44500                 * po.m4: Likewise.
44501                 * inttypes-pri.m4: Likewise.
44502                 * inttypes-h.m4: Renamed from inttypes.m4.
44503                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44504
44505 2006-07-22  Bruno Haible  <bruno@clisp.org>
44506
44507         Merge from GNU gettext 0.15.
44508
44509         2005-07-05  Bruno Haible  <bruno@clisp.org>
44510
44511                 * printf-args.c (printf_fetchargs): Work around broken
44512                 definition of wint_t on mingw.
44513
44514         2005-02-12  Bruno Haible  <bruno@clisp.org>
44515
44516                 * xallocsa.h: Add extern "C" for C++.
44517
44518         2006-05-17  Bruno Haible  <bruno@clisp.org>
44519
44520                 Cygwin portability.
44521                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44522
44523         2006-04-30  Bruno Haible  <bruno@clisp.org>
44524
44525                 * progreloc.c: Include <mach-o/dyld.h> if available.
44526                 (find_executable): Use _NSGetExecutablePath when possible.
44527
44528         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44529
44530                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44531                 function.
44532
44533         2005-12-29  Bruno Haible  <bruno@clisp.org>
44534
44535                 * progreloc.c (set_program_name_and_installdir): Fix
44536                 compilation error.
44537
44538         2005-12-04  Bruno Haible  <bruno@clisp.org>
44539
44540                 Cygwin portability.
44541                 * progreloc.c: Include <windows.h> also on Cygwin.
44542                 (find_executable): Add support for Cygwin.
44543                 (set_program_name_and_installdir): Handle also platforms with
44544                 nonempty EXEEXT.
44545
44546         2006-07-11  Bruno Haible  <bruno@clisp.org>
44547
44548                 * javacomp.c: Fix a comment.
44549                 Reported by Jim Meyering.
44550
44551         2006-04-30  Bruno Haible  <bruno@clisp.org>
44552
44553                 * javacomp.h (compile_java_class): Add source_version,
44554                 target_version arguments.
44555                 * javacomp.c: Rewritten to choose only a compiler that
44556                 respects the specified source_version and target_version.
44557
44558         2006-06-27  Bruno Haible  <bruno@clisp.org>
44559
44560                 Assume correct S_ISDIR macro.
44561                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44562
44563         2006-07-22  Bruno Haible  <bruno@clisp.org>
44564
44565                 * javaversion.h: New file, from GNU gettext.
44566                 * javaversion.c: New file, from GNU gettext.
44567                 * javaversion.java: New file, from GNU gettext.
44568                 * javaversion.class: New file, from GNU gettext.
44569
44570         2006-05-17  Bruno Haible  <bruno@clisp.org>
44571
44572                 Cygwin portability.
44573                 * javaexec.c (execute_java_class): Test for jview program
44574                 also on Cygwin.
44575
44576         2006-04-09  Bruno Haible  <bruno@clisp.org>
44577
44578                 * fatal-signal.c: Don't include string.h.
44579                 (at_fatal_signal): Use a copying loop instead of memcpy.
44580
44581         2005-12-04  Bruno Haible  <bruno@clisp.org>
44582
44583                 * csharpexec.c: Add support for 'clix' launcher (untested).
44584                 (execute_csharp_using_sscli): New function.
44585                 (execute_csharp_program): Call it.
44586
44587         2006-06-21  Bruno Haible  <bruno@clisp.org>
44588
44589                 Avoid warnings from recent versions of mcs.
44590                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44591                 -o, -L, -r any more. Use options documented since mcs-1.0
44592                 instead. Similarly for -g.
44593
44594         2005-07-09  Bruno Haible  <bruno@clisp.org>
44595
44596                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44597                 add a .dll suffix.
44598                 Reported by Mark Junker <mjscod@gmx.de>.
44599
44600         2006-06-17  Bruno Haible  <bruno@clisp.org>
44601
44602                 * config.charset: Update for NetBSD 3.0.
44603
44604         2006-05-17  Bruno Haible  <bruno@clisp.org>
44605
44606                 Cygwin portability.
44607                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44608
44609         2006-05-16  Bruno Haible  <bruno@clisp.org>
44610
44611                 * localcharset.c [CYGWIN]: Include <windows.h>.
44612                 (get_charset_aliases): For Cygwin, return the same CPxxx
44613                 aliases list as under WIN32.
44614                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44615                 the environment variables. Fall back to GetACP().
44616
44617         2006-04-05  Bruno Haible  <bruno@clisp.org>
44618
44619                 * config.charset: Update Juan Manuel Guerrero's address.
44620
44621         2005-02-12  Bruno Haible  <bruno@clisp.org>
44622
44623                 * allocsa.h: Add extern "C" for C++.
44624
44625         2005-02-10  Bruno Haible  <bruno@clisp.org>
44626
44627                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44628                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44629
44630         2006-07-22  Bruno Haible  <bruno@clisp.org>
44631
44632                 * gettext.h: Update to GNU gettext-0.15.
44633
44634 2006-07-22  Bruno Haible  <bruno@clisp.org>
44635
44636         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44637         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44638         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44639
44640 2006-07-21  Eric Blake  <ebb9@byu.net>
44641
44642         * modules/stdlib-safer: New file.
44643         * MODULES.html.sh (File stream based Input/Output): Add
44644         stdlib-safer.
44645
44646 2006-07-21  Eric Blake  <ebb9@byu.net>
44647
44648         * lib/stdlib-safer.h: New file from coreutils, required by
44649         stdlib--.h.
44650
44651 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44654
44655 2006-07-20  Bruno Haible  <bruno@clisp.org>
44656
44657         * gnulib-tool: Recognize new option --assume-autoconf.
44658         (autoconf_minversion): New variable.
44659         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44660
44661 2006-07-20  Bruno Haible  <bruno@clisp.org>
44662
44663         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44664
44665 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44666
44667         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44668         Reindent and repaginate.
44669
44670 2006-07-19  Derek Price  <derek@ximbiot.com>
44671
44672         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44673         Correct grammar.
44674
44675 2006-07-17  Bruno Haible  <bruno@clisp.org>
44676
44677         * modules/list: New file.
44678         * modules/array-list: New file.
44679         * modules/carray-list, modules/carray-list-tests: New files.
44680         * modules/linked-list, modules/linked-list-tests: New files.
44681         * modules/avltree-list, modules/avltree-list-tests: New files.
44682         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44683         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44684         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44685         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44686         * modules/oset: New file.
44687         * modules/array-oset: New file.
44688         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44689         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44690         * tests/test-carray_list.c: New file.
44691         * tests/test-linked_list.c: New file.
44692         * tests/test-avltree_list.c: New file.
44693         * tests/test-rbtree_list.c: New file.
44694         * tests/test-linkedhash_list.c: New file.
44695         * tests/test-avltreehash_list.c: New file.
44696         * tests/test-rbtreehash_list.c: New file.
44697         * tests/test-avltree_oset.c: New file.
44698         * tests/test-rbtree_oset.c: New file.
44699         * MODULES.html.sh (Container data structures): New section.
44700
44701 2006-07-17  Bruno Haible  <bruno@clisp.org>
44702
44703         * m4/gl_list.m4: New file.
44704
44705 2006-07-17  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/gl_list.h: New file.
44708         * lib/gl_list.c: New file.
44709         * lib/gl_array_list.h: New file.
44710         * lib/gl_array_list.c: New file.
44711         * lib/gl_carray_list.h: New file.
44712         * lib/gl_carray_list.c: New file.
44713         * lib/gl_linked_list.h: New file.
44714         * lib/gl_linked_list.c: New file.
44715         * lib/gl_anylinked_list1.h: New file.
44716         * lib/gl_anylinked_list2.h: New file.
44717         * lib/gl_avltree_list.h: New file.
44718         * lib/gl_avltree_list.c: New file.
44719         * lib/gl_anyavltree_list1.h: New file.
44720         * lib/gl_anyavltree_list2.h: New file.
44721         * lib/gl_rbtree_list.h: New file.
44722         * lib/gl_rbtree_list.c: New file.
44723         * lib/gl_anyrbtree_list1.h: New file.
44724         * lib/gl_anyrbtree_list2.h: New file.
44725         * lib/gl_anytree_list1.h: New file.
44726         * lib/gl_anytree_list2.h: New file.
44727         * lib/gl_linkedhash_list.h: New file.
44728         * lib/gl_linkedhash_list.c: New file.
44729         * lib/gl_anyhash_list1.h: New file.
44730         * lib/gl_anyhash_list2.h: New file.
44731         * lib/gl_avltreehash_list.h: New file.
44732         * lib/gl_avltreehash_list.c: New file.
44733         * lib/gl_rbtreehash_list.h: New file.
44734         * lib/gl_rbtreehash_list.c: New file.
44735         * lib/gl_anytreehash_list1.h: New file.
44736         * lib/gl_anytreehash_list2.h: New file.
44737
44738         * lib/gl_oset.h: New file.
44739         * lib/gl_oset.c: New file.
44740         * lib/gl_array_oset.h: New file.
44741         * lib/gl_array_oset.c: New file.
44742         * lib/gl_avltree_oset.h: New file.
44743         * lib/gl_avltree_oset.c: New file.
44744         * lib/gl_rbtree_oset.h: New file.
44745         * lib/gl_rbtree_oset.c: New file.
44746         * lib/gl_anytree_oset.h: New file.
44747
44748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44749
44750         * m4/mkancesdirs.m4: New file.
44751         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44752         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44753         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44754         it.
44755
44756 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44757
44758         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44759         * lib/mkancesdirs.h: New files.
44760         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44761         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44762         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44763         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44764         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44765         callers changed.  Revamp internals significantly, by not
44766         attempting to create directories that are temporarily more
44767         permissive than the final results.  Do not attempt to use
44768         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44769         This removes some race conditions, fixes some bugs, and simplifies
44770         things.  Use new dirchownmod function to do owner and mode changes.
44771         * lib/mkdir-p.h: Likewise.
44772         * lib/modechange.c (octal_to_mode): New function.
44773         (struct mode_change): New member mentioned.
44774         (make_node_op_equals): New arg mentioned.  All callers changed.
44775         (mode_compile): Keep track of which mode bits the user has explicitly
44776         mentioned.
44777         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44778         New arg PMODE_BITS, to keep track of which mode bits the user
44779         mentioned; it treats S_ISUID and S_ISGID speciall.
44780         All callers changed.
44781         * lib/modechange.h: Likewise.
44782
44783 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44784
44785         * MODULES.html.sh: Add mkancestors.
44786         * modules/mkancesdirs: New module.
44787         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44788         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44789         The chdir-safer and afs files are now orphans; I'll remove them
44790         unless someone speaks up.
44791         Add lib/dirchownmod.c, lib/dirchownmod.h.
44792         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44793         Add lchown, mkancesdirs.
44794         (Maintainer): Add self.
44795
44796 2006-07-15  Karl Berry  <karl@gnu.org>
44797
44798         * gnulib-tool: help message wording/arrangement.
44799
44800 2006-07-14  Simon Josefsson  <jas@extundo.com>
44801
44802         * doc/gnulib.texi (Libtool and Windows): New section.
44803
44804 2006-07-12  Simon Josefsson  <jas@extundo.com>
44805
44806         * modules/gendocs (License): Fix license, approved by Karl.
44807
44808 2006-07-12  Eric Blake  <ebb9@byu.net>
44809
44810         * MODULES.html.sh: Add gendocs.
44811
44812 2006-07-11  Eric Blake  <ebb9@byu.net>
44813
44814         * modules/fdl: New module, to install doc/fdl.texi.
44815         * MODULES.html.sh: Add new section for documentation modules.
44816         * gnulib-tool: Avoid space-tab.
44817         (--doc-base): New option, to manage files from doc.
44818
44819 2006-07-11  Eric Blake  <ebb9@byu.net>
44820
44821         * m4/absolute-header.m4: Fix comments to match recent change.
44822
44823 2006-07-11  Eric Blake  <ebb9@byu.net>
44824
44825         * gnulib-tool: List --doc-base before --tests-base.
44826
44827 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44828
44829         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44830
44831 2006-07-11  Bruno Haible  <bruno@clisp.org>
44832
44833         * README: Mention where to put documentation.
44834
44835 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44836
44837         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44838
44839 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44840
44841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44842         to stdint.m4.
44843
44844 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44845
44846         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44847         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44848         "no/such/file/stdint.h" when there is no such file, so that
44849         the resulting C code can be parsed by dodgy compilers.
44850         Problems reported by Bob Proulx.
44851
44852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44853
44854         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44855         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44856         macros into the GNU _D_EXACT_NAMLEN.
44857         * lib/savedir.c:  Likewise.
44858         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44859
44860 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44861         and Paul Eggert  <eggert@cs.ucla.edu>
44862
44863         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44864         * m4/savedir.m4:
44865         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44866         macros into the GNU _D_EXACT_NAMLEN.
44867
44868 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44871         around the absolute name, to work around a problem with the HP-UX
44872         11.23 native C compiler, reported by Bob Proulx.
44873
44874 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         * doc/maintain.texi, make-stds.texi: Sync from
44877         <http://savannah.gnu.org/projects/gnustandards>.
44878
44879 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44880
44881         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44882
44883 2006-07-09  Jim Meyering  <jim@meyering.net>
44884
44885         * m4/glob.m4: Remove a doubled word in a comment.
44886
44887 2006-07-09  Jim Meyering  <jim@meyering.net>
44888
44889         * lib/argp-pv.c: Remove a doubled word in a comment.
44890         * lib/check-version.c (check_version): Likewise.
44891         * lib/javacomp.c (compile_java_class): Likewise.
44892
44893 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44894
44895         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44896         for the benefit of people using Autoconf 2.60.  If you want to
44897         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44898         (or m4/onceonly.m4, if pre-2.57) manually.
44899
44900 2006-07-08  Jim Meyering  <jim@meyering.net>
44901
44902         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44903         comment.
44904         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44905         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44906         comment.
44907
44908 2006-07-08  Jim Meyering  <jim@meyering.net>
44909
44910         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44911
44912 2006-07-07  Simon Josefsson  <jas@extundo.com>
44913
44914         * tests/test-crc.c: Change expected crc value, the test vector
44915         were probably computed using the old broken crc.c?
44916
44917 2006-07-06  Simon Josefsson  <jas@extundo.com>
44918
44919         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44920         now the canonical place for the M4 file).
44921
44922         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44923         from the sys_socket dependency now.
44924
44925         * modules/inet_pton (Files): Ditto.
44926
44927         * modules/inet_ntop (Files): Ditto.
44928
44929 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44930
44931         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44932         not gl_PREREQ_GETUSERSHELL.
44933
44934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44935
44936         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44937         with only one argument, for Autoconf 2.60.
44938         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44939         expand to nothing, so add a shell command to avoid syntax error.
44940         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44941
44942 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44943
44944         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44945
44946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44947
44948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44949         no longer needed.  Check for isblank decl.
44950         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44951         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44952         of existence.
44953
44954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44955
44956         * lib/getloadavg.c: Use __VMS, not VMS.
44957         * lib/getopt.c: Likewise.
44958         * lib/getpagesize.h: Likewise.
44959         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44960         and probably does not work.
44961
44962 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44963
44964         * lib/.cppi-disable: Add wcwidth.
44965         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44966         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44967         (ISGRAPH): Remove.  All uses changed to isgraph.
44968         (FOLD) [!defined _LIBC]: Remove special case.
44969         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44970         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44971         HAVE_ISBLANK.
44972         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44973         case.
44974
44975 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44976
44977         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44978         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44979         brackets.  Other minor changes to suppress some compiler
44980         warnings.
44981
44982 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44983         and Paul Eggert  <eggert@cs.ucla.edu>
44984
44985         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44986         of invoking obsolescent AC_HEADER_DIRENT macro.
44987         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44988         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44989         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44991         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44992         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44993         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44994         * m4/readdir.m4: Remove; no longer needed.
44995
44996 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44997         and Paul Eggert  <eggert@cs.ucla.edu>
44998
44999         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45000         Don't worry about this obsolete case any more.
45001         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45002         directories.
45003         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45004         worry about this obsolete case any more.
45005         * lib/fts.c: Likewise.
45006         * lib/getcwd.c: Likewise.
45007         * lib/glob.h: Likewise.
45008         * lib/savedir.c: Likewise.
45009
45010 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45011
45012         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45013         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45015         needed.
45016         All uses removed.
45017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45019         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45020         needed.
45021         * m4/getdate.m4 (gl_GETDATE): Likewise.
45022         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45023         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45024         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45025         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45026         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45028         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45029         needed.
45030
45031 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45032
45033         * lib/memcasecmp.c: Include <limits.h>.
45034         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45035         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45036         Don't assume isdigit succeeds only on '0' through '9'.
45037
45038 2006-07-05  Eric Blake  <ebb9@byu.net>
45039
45040         * modules/getaddrinfo (Depends-on): Add snprintf.
45041
45042 2006-07-05  Eric Blake  <ebb9@byu.net>
45043
45044         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45045         to avoid 'header present but could not be compiled' on cygwin.
45046
45047 2006-07-05  Eric Blake  <ebb9@byu.net>
45048
45049         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45050         missing from netdb.h.
45051         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45052
45053 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45054
45055         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45056         no longer needed.
45057         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45058         * m4/getdate.m4 (gl_GETDATE): Likewise.
45059         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45060         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45061         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45062         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45063         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45064
45065 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45066
45067         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45068         All uses of is_space replaced by isspace.
45069         * lib/exit.h: Don't talk about STDC_HEADERS.
45070         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45071         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45072         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45073         replaced by isprint etc.
45074         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45075         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45076         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45077         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45078         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45079         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45080
45081 2006-07-05  Bruno Haible  <bruno@clisp.org>
45082
45083         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45084         the function exists, before testing against AIX.
45085         Reported by Martin Lambers <marlam@marlam.de>.
45086
45087 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45088
45089         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45090         From Mark D. Baushke.
45091
45092 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45093
45094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45095         to the absolute name, not just one, to bypass Sun C 5.8's
45096         "warning: #include of /usr/include/... may be non-portable".
45097
45098 2006-07-04  Eric Blake  <ebb9@byu.net>
45099
45100         * modules/dirname-tests: New test module.
45101         * tests/test-dirname.c: New file, replacing dirname.c
45102         TEST_DIRNAME section that was recently deleted.
45103
45104 2006-07-04  Bruno Haible  <bruno@clisp.org>
45105
45106         Assume ANSI C header files and <ctype.h> functions.
45107         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45108         (mbsnwidth): Use isprint, iscntrl instead.
45109
45110 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45111
45112         Merge from coreutils.
45113         * MODULES.html.sh: Add xstrtold.
45114         * modules/xstrtold: New file.
45115         * modules/cycle-check (Files): Add lib/same-inode.h.
45116         * modules/dirname (Files): Add m4/double-slash-root.m4.
45117         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45118         * modules/mkdir-p (Files): Add lib/same-inode.h.
45119         * modules/same (Files): Add lib/same-inode.h.
45120
45121 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45122
45123         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45124         This is to keep the terminology clean; POSIX talks about
45125         "absolute pathnames", not "full pathnames", but the GNU
45126         Coding Standards say to use "path" for something else;
45127         so use "absolute" to keep both sides happy.
45128         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45129         Set gl_absolute_header, not gl_full_header_path.
45130         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45131         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45132         All uses changed.
45133
45134         Merge from coreutils.
45135
45136         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45137
45138         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45139         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45140         want to require the building of c-strtod.o.
45141         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45142         needs -lm directly.
45143         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45144
45145         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45146
45147         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45148         --as-needed option if available.  Problem reported by Albert Chin in
45149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45150         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45151         cc merely issues a bunch of annoying warnings for --as-needed
45152         (this problem was reported by Bob Proulx).  Also, try linking with
45153         -lm to detect a bug in binutils 2.16 (this problem was reported
45154         by Ralf Wildenhues).
45155
45156         2006-06-18  Jim Meyering  <jim@meyering.net>
45157
45158         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45160         macro.
45161         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45162         also check for glibc-2.4's abort-inducing bug.
45163
45164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45165         Low-probability clean-up should be to use rmdir to get rid of
45166         the just-created directory, not unlink.
45167
45168         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45169         configure fail, and request a bug report to inform us about it.
45170         Add a comment that, barring reports to the contrary, in 2007 we'll
45171         assume ftruncate is universally available.
45172
45173         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45174
45175         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45176
45177         2006-03-12  Jim Meyering  <jim@meyering.net>
45178
45179         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45180         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45181         * m4/same.m4 (gl_SAME): Likewise.
45182         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45183
45184         2006-03-11  Eric Blake  <ebb9@byu.net>
45185
45186         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45187         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45188         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45189         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45190
45191 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45194         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45195         reported by Mark D. Baushke, one in
45196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45197
45198         Merge from coreutils.
45199
45200         * lib/.cppi-disable: Add stdint_.h.
45201         * lib/.cvsignore: Add stdint.h.
45202
45203         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45204
45205         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45206         both double and long double versions.
45207         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45208         * lib/xstrtold.c: New file.
45209         * lib/xstrtod.h (xstrtold): New decl.
45210
45211         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45212
45213         * lib/filemode.c (setst): Remove.
45214         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45215         (arguably) clearer, and the generated code is a bit smaller on my
45216         Debian GNU/Linux stable x86 host.
45217
45218         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45219
45220         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45221         Assume that filemode.h includes sys/types.h and sys/stat.h.
45222         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45223         (ftypelet): Reorder to put common cases first, for efficiency.
45224         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45225         to do 'M'.
45226         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45227         of 10, for compatibility with FreeBSD.  All callers changed.
45228         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45229         types that can't be deduced solely from st_mode.  First arg is now a
45230         const pointer.
45231         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45232         (strmode): Renamed from mode_string.
45233         (filemodestring): New decl.
45234         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45235         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45236         needed.
45237         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45238
45239         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45240
45241         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45242         fsusage.h now does that.  Include fsusage.h first, to test interface.
45243         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45244         at most one method (the old code could have generated decls that
45245         didn't conform to C89, not that this was ever exercised).
45246         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45247
45248         2006-03-19  Jim Meyering  <jim@meyering.net>
45249
45250         Work even in a chroot where d_ino values for entries in "/"
45251         don't match the stat.st_ino values for the same names.
45252         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45253         number, iterate through all entries again, using lstat instead.
45254         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45255         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45256
45257         * lib/getcwd.c (__getcwd): Clarify a comment.
45258         Use memcpy in place of a call to strcpy.
45259
45260         2006-03-12  Jim Meyering  <jim@meyering.net>
45261
45262         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45263         matches that of the current directory (which we're about to chdir ".."
45264         out of), then save the dev-ino of the parent, instead.
45265
45266         * lib/same-inode.h (SAME_INODE): New file/macro.
45267         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45268         Include "same-inode.h", instead.
45269         * lib/same.c: Likewise.
45270         * lib/cycle-check.h: Include "same-inode.h".
45271         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45272         * lib/cycle-check.c (SAME_INODE): Remove definition.
45273         * lib/root-dev-ino.h: Include "same-inode.h".
45274
45275         2006-03-11  Eric Blake  <ebb9@byu.net>
45276
45277         * lib/same.c (same_name): s/base_name/last_component/
45278         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45279         * lib/filenamecat.c (file_name_concat): Likewise.
45280
45281         2006-03-11  Eric Blake  <ebb9@byu.net>,
45282                     Paul Eggert  <eggert@cs.ucla.edu>
45283
45284         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45285         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45286         drive prefix.
45287         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45288         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45289         (last_component): New method.
45290         * lib/dirname.c (dir_len): Determine when drive letters need a
45291         subsequent slash.  Preserve // when it is special.
45292         (dir_name): Don't append dot when drive letter is absolute.
45293         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45294         * lib/basename.c (base_name): New semantics - malloc the result.
45295         Preserve // when it is special.  Preserve relative files that look
45296         like drive letters.
45297         (base_len): Preserve // when it is special.
45298         (last_component): New method, similar to old base_name semantics.
45299         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45300         base_name.  Strip redundant slashes from ///.
45301
45302 2006-07-03  Jim Meyering  <jim@meyering.net>
45303
45304         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45305         macro is used before the first cycle_check call.
45306
45307 2006-07-03  Eric Blake  <ebb9@byu.net>
45308
45309         * modules/dirname (Depends-on): Add xstrndup.
45310
45311 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45314         test cases, so that config.log is a bit easier to follow.
45315
45316 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45319         both are 64 bits, since this seems to be the tradition, and this
45320         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45321         we ever run into a host that prefers long long to long in this
45322         case, we'll need another configure-time test.  Problem reported by
45323         Jim Meyering.
45324
45325 2006-07-02  Eric Blake  <ebb9@byu.net>
45326
45327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45328
45329 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45330
45331         * modules/inttypes (Depends-on): No longer depends on stdint.
45332         * modules/stdint (Description): Say more about assumptions.
45333         Say that the fast types might differ.  Say macros are used.
45334         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45335         (Makefile.am): Revise list of substituted symbols to match
45336         new stdint.m4.
45337         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45338         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45339         * tests/test-stdint.c (verify_same_types)
45340         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45341         the code conforms to C99/C89.
45342         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45343         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45344
45345 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45346
45347         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45348         but fix a bug, by requiring at least 64 bits.
45349         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45350         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45351         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45352         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45353
45354         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45355         changes.  Make 2.59 a prerequisite.  Check and substitute for
45356         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45357         inttypes.h.  Do not use special include files; just use the
45358         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45359         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45360         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45361         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45362         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45363         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45364         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45365         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45366         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45367         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45368         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45369         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45370         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45371         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45372         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45373         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45374         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45375         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45376         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45377         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45378         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45379         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45380         not check for things that C99 does not require, e.g., int8_t.  If
45381         a test isn't needed unless <stdint.h> isn't working, and is
45382         unlikely to be needed for any other reason, then don't do it
45383         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45384         size_t, since we assume C89 freestanding at least.  Do not check
45385         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45386         the right thing even if the types are not defined.  Instead use:
45387         (gl_STDINT_TYPE_PROPERTIES): New macro.
45388         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45389         testing whether <sys/types.h> clashes, as Autoconf does this for
45390         us now.  All uses removed.
45391         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45392         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45393         (gl_CHECK_TYPE_SAME):
45394         Remove; no longer needed.
45395         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45396         exists, since we'll return 0 anyway in that case.
45397         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45398
45399 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45400
45401         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45402         possible collision with system files.
45403         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45404         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45405         WCHAR_MIN and WCHAR_MAX in this case.
45406         (<stddef.h>): Do not include; no longer needed.
45407         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45408         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45409         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45410         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45411         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45412         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45413         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45414         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45415         !defined(__c99))]: Include in this case too, since it's harmless
45416         now.
45417         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45418         dangerous to do so.
45419         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45420         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45421         (_STDINT_MIN, _STDINT_MAX): New macros.
45422         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45423         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45424         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45425         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45426         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45427         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45428         macros, not typedefs; this simplifies things quite a bit.
45429         Use long int for all types narrower than int64_t.
45430         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45431         Define in terms of long long int or int64_t or long int,
45432         not int64_t or int32_t.  This saves some compile-time testing.
45433         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45434         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45435         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45436         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45437         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45438         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45439         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45440         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45441         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45442         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45443         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45444         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45445         undef any previous version and define our own version, for
45446         simplicity and consistency with the new macros for types.
45447         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45448         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45449         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45450         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45451         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45452         @WINT_T_SUFFIX@ to keep things simple here.
45453         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45454         Simplify by assuming typical 8/16/32/64 host, since we're
45455         already doing that elsewhere anyway.
45456         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45457         and assume long long int is 64 bits if available.  This
45458         speeds up 'configure'.
45459
45460 2006-07-01  Eric Blake  <ebb9@byu.net>
45461
45462         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45463         Reported by Andreas Buening.
45464
45465 2006-07-01  Eric Blake  <ebb9@byu.net>
45466
45467         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45468
45469 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45470
45471         * lib/getaddrinfo.c: fixed typo
45472
45473 2006-06-29  Jim Meyering  <jim@meyering.net>
45474
45475         * modules/strftime (Maintainer): Add my name, since with the
45476         FPRINTFTIME changes strftime.c has forked from glibc.
45477
45478 2006-06-29  Eric Blake  <ebb9@byu.net>
45479
45480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45481
45482 2006-06-29  Eric Blake  <ebb9@byu.net>
45483
45484         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45485
45486 2006-06-29  Eric Blake  <ebb9@byu.net>
45487
45488         * lib/stat_.h: New file.
45489
45490 2006-06-29  Eric Blake  <ebb9@byu.net>
45491
45492         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45493         unused static function.
45494
45495 2006-06-29  Eric Blake  <ebb9@byu.net>
45496
45497         * doc/functions.texi (Function Portability): Document missing lstat
45498         on mingw.
45499
45500 2006-06-29  Eric Blake  <ebb9@byu.net>
45501
45502         * MODULES.html.sh: Add sys_stat.
45503         * modules/sys_stat: New module.
45504         * modules/mkstemp (Depends-on): Add sys_stat.
45505
45506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45507
45508         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45509
45510 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45511
45512         * m4/c-bs-a.m4: Removed.
45513
45514 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45515
45516         * lib/strftime.c: Assume strftime() exists.
45517
45518 2006-06-29  Derek Price  <derek@ximbiot.com>
45519
45520         * modules/c-bs-a: Removed - \a is C89.
45521         * MODULES.html.sh: Remove c-bs-a.
45522
45523 2006-06-29  Bruno Haible  <bruno@clisp.org>
45524
45525         * modules/wcwidth (License): Change to LGPL.
45526
45527 2006-06-28  Simon Josefsson  <jas@extundo.com>
45528
45529         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45530         on _WIN32.
45531
45532         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45533         getnameinfo.
45534
45535 2006-06-28  Simon Josefsson  <jas@extundo.com>
45536
45537         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45538
45539 2006-06-28  Simon Josefsson  <jas@extundo.com>
45540
45541         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45542         functions there.  It will succeed on Windows XP, but on Windows
45543         2000 and (presumably) earlier, it will fail, and use the internal
45544         re-implementation.
45545         (use_win32_p): New function.
45546         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45547         Support AI_NUMERICSERV to disable getservbyname.
45548         (getnameinfo): New function, only supports
45549         NI_NUMERICHOST|NI_NUMERICSERV for now.
45550
45551         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45552         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45553         getnameinfo.
45554
45555 2006-06-28  Eric Blake  <ebb9@byu.net>
45556
45557         * modules/wcwidth: New file.
45558         * modules/mbchar (Depends-on): Add wcwidth.
45559         * modules/mbswidth (Depends-on): Add wcwidth.
45560         * MODULES.html.sh: Add wcwidth.
45561
45562 2006-06-28  Eric Blake  <ebb9@byu.net>
45563
45564         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45566
45567 2006-06-28  Eric Blake  <ebb9@byu.net>
45568
45569         * lib/xvasprintf.h: Fix comments.
45570
45571 2006-06-28  Eric Blake  <ebb9@byu.net>
45572
45573         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45574         * lib/mbswidth.c (wcwidth): Move from here...
45575         * lib/wcwidth.h: ...to this new file.
45576
45577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45578
45579         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45580
45581         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45582         it's obsolete.
45583         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45584
45585 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45586
45587         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45588         Autoconf 2.60 says this stuff was obsolete.
45589
45590 2006-06-28  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45593
45594 2006-06-28  Bruno Haible  <bruno@clisp.org>
45595
45596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45597         gt_TYPE_WCHAR_T.
45598
45599 2006-06-28  Bruno Haible  <bruno@clisp.org>
45600
45601         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45602         declaration for wcwidth.
45603         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45604
45605 2006-06-28  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45608         (mkdir): Define using _mkdir.
45609
45610 2006-06-28  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/getaddrinfo.h: Fix POSIX URL.
45613         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45614         _WIN32.
45615         (use_win32_p): Make static.
45616         (getaddrinfo): Reject service name if it is empty or does not consist
45617         solely of decimal digits, or if its value is > 65535.
45618         (getnameinfo): Remove useless casts.
45619
45620 2006-06-27  Simon Josefsson  <jas@extundo.com>
45621
45622         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45623         Eggert and Martin Lambers.
45624
45625 2006-06-27  Simon Josefsson  <jas@extundo.com>
45626
45627         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45628         Eggert and Martin Lambers.
45629
45630 2006-06-27  Bruno Haible  <bruno@clisp.org>
45631
45632         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45633         result to 0, not to empty.
45634         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45635
45636 2006-06-27  Bruno Haible  <bruno@clisp.org>
45637
45638         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45639
45640 2006-06-26  Simon Josefsson  <jas@extundo.com>
45641
45642         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45643         present.
45644
45645 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45646
45647         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45648         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45650
45651 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45652
45653         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45654
45655 2006-06-26  Bruno Haible  <bruno@clisp.org>
45656
45657         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45658
45659 2006-06-26  Bruno Haible  <bruno@clisp.org>
45660
45661         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45662
45663 2006-06-26  Bruno Haible  <bruno@clisp.org>
45664
45665         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45666         SGI C compiler in pre-C99 mode.
45667         Suggested by Mark D. Baushke and Larry Jones.
45668
45669 2006-06-26  Bruno Haible  <bruno@clisp.org>
45670
45671         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45672         WCHAR_MAX.
45673         Reported by Mark D. Baushke and Larry Jones.
45674
45675 2006-06-26  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45678         in pre-C99 mode.
45679         Suggested by Mark D. Baushke and Larry Jones.
45680
45681 2006-06-23  Simon Josefsson  <jas@extundo.com>
45682             Bruno Haible  <bruno@clisp.org>
45683
45684         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45685         Emit mostlyclean-local rule.
45686         (func_emit_tests_Makefile_am): Likewise.
45687         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45688
45689 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45690
45691         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45692
45693 2006-06-23  Bruno Haible  <bruno@clisp.org>
45694
45695         * tests/test-stdint.c: Update to match ISO C 99 Technical
45696         Corrigendum 1.
45697
45698 2006-06-23  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45701
45702 2006-06-23  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/stdint_.h: Treat IRIX like OpenBSD.
45705
45706 2006-06-23  Bruno Haible  <bruno@clisp.org>
45707
45708         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45709         ISO C 99 Technical Corrigendum 1.
45710
45711 2006-06-22  Simon Josefsson  <jas@extundo.com>
45712
45713         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45714         MinGW.
45715
45716 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45717
45718         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45719         needed.  Some compiler complained about some of them.  Problem reported
45720         by Larry Jones in
45721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45722
45723 2006-06-21  Simon Josefsson  <jas@extundo.com>
45724
45725         * tests/test-getaddrinfo.c: New file.
45726
45727         * modules/getaddrinfo-tests: New file.
45728
45729         * MODULES.html.sh: Add inet_pton.
45730
45731         * modules/inet_pton: New file.
45732
45733 2006-06-21  Simon Josefsson  <jas@extundo.com>
45734
45735         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45736         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45737         of using the (limited) gnulib implementation on Windows XP.
45738
45739         * m4/inet_pton.m4: New file.
45740
45741 2006-06-21  Simon Josefsson  <jas@extundo.com>
45742
45743         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45744         variable.
45745
45746         * lib/socket_.h: Don't define WINVER.
45747
45748         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45749         slightly modified to work in gnulib.
45750
45751 2006-06-21  Simon Josefsson  <jas@extundo.com>
45752
45753         * doc/gnulib.texi (Windows sockets): Add.
45754
45755 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45756
45757         * lib/read-file.c (fread_file): Start with buffer allocation of
45758         0 bytes rather than 1 byte; this simplifies the code.
45759         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45760         code to free buffer and save/restore errno.
45761         (internal_read_file): Remove unused local.
45762
45763 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45764
45765         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45766         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45767         Problem reported by Denis Excoffier in
45768         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45769
45770 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45771
45772         * modules/sys_socket, modules/socklen: Include sys/types since
45773         FreeBSD 4.x's sys/socket.h needs it.
45774
45775 2006-06-19  Simon Josefsson  <jas@extundo.com>
45776
45777         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45778
45779 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45780
45781         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45782
45783 2006-06-19  Bruno Haible  <bruno@clisp.org>
45784
45785         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45786         and FULL_PATH_INTTYPES_H in angle brackets.
45787         Reported by Mark D. Baushke <mdb@gnu.org>.
45788
45789 2006-06-17  Eric Blake  <ebb9@byu.net>
45790
45791         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45792         errno.
45793
45794 2006-06-17  Bruno Haible  <bruno@clisp.org>
45795
45796         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45797         <sys/inttypes.h>.
45798
45799 2006-06-17  Bruno Haible  <bruno@clisp.org>
45800
45801         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45802         whether errno is declared. Assume <errno.h> declares errno.
45803
45804 2006-06-17  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45807
45808 2006-06-17  Bruno Haible  <bruno@clisp.org>
45809
45810         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45811         problem on Solaris 2.5.1.
45812
45813 2006-06-16  Eric Blake  <ebb9@byu.net>
45814
45815         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45816         * lib/unicodeio.c [!defined errno]: Likewise.
45817         * lib/strtol.c [!defined errno]: Likewise.
45818         * lib/strtod.c [!defined errno]: Likewise.
45819
45820 2006-06-15  Eric Blake  <ebb9@byu.net>
45821
45822         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45823
45824 2006-06-15  Eric Blake  <ebb9@byu.net>
45825
45826         * config/srclist.txt (ssize_t.m4): Lose sync.
45827
45828 2006-06-15  Bruno Haible  <bruno@clisp.org>
45829
45830         * modules/stdint (Files): Include m4/full-header-path.m4,
45831         m4/size_max.m4, m4/wchar_t.m4.
45832         (Makefile.am): Many more substitutions.
45833         * modules/stdint-tests: New file.
45834         * tests/test-stdint.c: New file.
45835
45836 2006-06-15  Bruno Haible  <bruno@clisp.org>
45837
45838         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45839         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45840         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45841         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45842         gl_CHECK_TYPE_SAME): New macros.
45843
45844 2006-06-15  Bruno Haible  <bruno@clisp.org>
45845
45846         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45847
45848 2006-06-15  Bruno Haible  <bruno@clisp.org>
45849
45850         * lib/stdint_.h: Rewritten to be fully auto-configured.
45851         Fixes bug on HP-UX/IA64.
45852
45853 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45854
45855         * lib/getdate.y (__attribute__): Don't define if already defined.
45856         Problem reported by Larry Jones.
45857         * lib/utimens.c (__attribute__): Likewise.
45858
45859 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45860
45861         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45862         reported by Andreas Schwab.
45863
45864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45865             Bruno Haible  <bruno@clisp.org>
45866
45867         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45868         check for the declaration of strnlen and a run test that exposes the
45869         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45870         rpl_strndup.
45871
45872 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45873             Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45876
45877 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45878
45879         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45880         compile test, for Tru64 4.0D.
45881
45882 2006-05-28  Karl Berry  <karl@gnu.org>
45883
45884         * config/srclist.txt (printf-args.c): lose sync.
45885
45886 2006-05-26  Martin Lambers  <marlam@marlam.de>
45887
45888         * lib/getpass.c: Updates the test for the native W32 API, and adds
45889         missing includes, thus fixing compilation warnings.
45890
45891 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45892
45893         * lib/exclude.c (exclude_fnmatch): New function.
45894         (excluded_file_name): Call exclude_fnmatch.
45895         * lib/exclude.h (excluded_file_name): New prototype
45896
45897 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45898
45899         * lib/tempname.c (small_open, large_open): New macros.
45900         (__open, __open64) [!_LIBC]: Remove.
45901         (__gen_tempname): Use small_open and large_open instead of __open
45902         and __open64.  This fixes a portability bug on HP-UX 11.11i
45903         reported by Simon Wing-Tang in
45904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45905
45906 2006-05-24  Bruno Haible  <bruno@clisp.org>
45907
45908         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45909         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45910         Reported by Thorsten Maerz <torte@netztorte.de> via
45911         Aaron Stone <aaron@serendipity.cx>.
45912
45913 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45914
45915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45916         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45917         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45918         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45919         not really conditional on the cache.
45920         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45921
45922 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45923
45924         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45925         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45926         (my_usleep): Don't mishandle maximum value.
45927
45928 2006-05-19  Jim Meyering  <jim@meyering.net>
45929
45930         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45931
45932 2006-05-17  Bruno Haible  <bruno@clisp.org>
45933
45934         Cygwin portability.
45935         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45936
45937 2006-05-17  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/stdint_.h: Fix recognition of Cygwin.
45940
45941 2006-05-15  Bruno Haible  <bruno@clisp.org>
45942
45943         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45944         on libtool patch by Ralf Wildenhues.
45945
45946 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45947
45948         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45949         test for C99 conformance; (bool) 0.5 is an integer constant
45950         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45951         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45952
45953 2006-05-11  Simon Josefsson  <jas@extundo.com>
45954
45955         * m4/xvasprintf.m4: Fix obvious typo.
45956
45957 2006-05-11  Jim Meyering  <jim@meyering.net>
45958
45959         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45960         James Lemley.
45961
45962 2006-05-10  Simon Josefsson  <jas@extundo.com>
45963
45964         * lib/md4.c: Typo fix, update copyright years.
45965         (K1, K2): Don't use L because it turn computations into 64-bit on
45966         64-bit platforms.
45967
45968 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45969
45970         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45971         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45972         unwanted sign propagation, e.g., on hosts with 64-bit int.
45973         There still are some problems with reeelly weird theoretical hosts
45974         (e.g., 33-bit int) but it's not worth worrying about now.
45975         * lib/sha1.c (rol): Likewise.
45976         (K1, K2, K3, K4): Remove unnecessary L suffix.
45977
45978 2006-05-10  Bruno Haible  <bruno@clisp.org>
45979
45980         * lib/des.c: Cast to avoid warnings.
45981
45982 2006-05-09  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45985         (Depends-on): Depend also on xsize, stdarg.
45986         (configure.ac): Add gl_XVASPRINTF.
45987
45988 2006-05-09  Bruno Haible  <bruno@clisp.org>
45989
45990         * m4/xvasprintf.m4: New file.
45991
45992 2006-05-09  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45995         (EOVERFLOW): Define fallback value.
45996         (xstrcat): New function.
45997         (xvasprintf): Recognize the special case of a string concatenation.
45998
45999 2006-05-08  Eric Blake  <ebb9@byu.net>
46000
46001         * gnulib-tool (func_version): Base copyright year on CVS date.
46002         (func_emit_copyright_notice): New function.
46003         (func_emit_lib_Makefile_am): Use it.
46004         (func_emit_tests_Makefile_am): Likewise.
46005         (func_import): Likewise.
46006
46007 2006-05-08  Bruno Haible  <bruno@clisp.org>
46008
46009         * modules/stdarg: New file.
46010         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46011
46012 2006-05-08  Bruno Haible  <bruno@clisp.org>
46013
46014         * m4/stdarg.m4: New file, from GNU gettext.
46015
46016 2006-05-08  Bruno Haible  <bruno@clisp.org>
46017
46018         * config/srclist.txt (build-aux/config.rpath): different from latest
46019         release.
46020
46021 2006-05-08  Bruno Haible  <bruno@clisp.org>
46022
46023         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46024
46025 2006-05-05  Jim Meyering  <jim@meyering.net>
46026
46027         * m4/warning.m4: New file, derived from bison's file by the same name.
46028
46029 2006-05-03  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/stdint_.h: Shorter URL.
46032         * lib/inttypes.h: Likewise.
46033
46034 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46035
46036         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46037
46038 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46039
46040         * lib/verify.h: Document the internals better.  Most of this change
46041         was written by Bruno Haible.
46042
46043 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         * doc/verify.texi: New file, partly based on a proposal by
46046         Bruno Haible.
46047
46048 2006-05-02  Bruno Haible  <bruno@clisp.org>
46049
46050         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46051         test from here...
46052         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46053
46054 2006-04-29  Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46057         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46058
46059 2006-04-29  Bruno Haible  <bruno@clisp.org>
46060
46061         * gnulib-tool: Make --update option actually work.
46062
46063 2006-04-29  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/gcd.texi: New file.
46066         * doc/gnulib.texi: Include it.
46067
46068 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46069
46070         * lib/getdate.y (get_date): When adding relative date, start with the
46071         initial time, not with the result of the first mktime call.
46072
46073 2006-04-25  Bruno Haible  <bruno@clisp.org>
46074
46075         * gnulib-tool (func_import): Output the include directives in three
46076         blocks, sorted separately.
46077         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46078
46079 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46082         to define main with arguments, for C++.  Reported by Eric Blake.
46083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46084         Prefer 'int main ()' to 'int main (void)', for C++.
46085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46086         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46087         for 'main', for C99 and C++.
46088
46089 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46092         Don't assume that exit status -1 is valid.
46093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46094         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46096         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46097         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46098         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46099         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46100         functions can be used without declaring them, or that you can
46101         exit with status -1.
46102         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46103
46104 2006-04-24  Karl Berry  <karl@gnu.org>
46105
46106         * config/srclist.txt (longdouble.m4): sync lost.
46107
46108 2006-04-24  Eric Blake  <ebb9@byu.net>
46109
46110         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46111
46112 2006-04-24  Bruno Haible  <bruno@clisp.org>
46113
46114         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46115         poll() implementation in AIX.
46116         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46117
46118 2006-04-24  Bruno Haible  <bruno@clisp.org>
46119
46120         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46121         assigned exactly once.
46122
46123 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46124             Bruno Haible  <bruno@clisp.org>
46125
46126         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46127         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46128         for AM_CPPFLAGS.
46129
46130 2006-04-23  Bruno Haible  <bruno@clisp.org>
46131
46132         * modules/copy-file: Depend on unistd.
46133         * modules/execute: Likewise.
46134         * modules/fatal-signal: Likewise.
46135         * modules/findprog: Likewise.
46136         * modules/mkdtemp : Likewise.
46137         * modules/pipe: Likewise.
46138         * modules/wait-process: Likewise.
46139
46140 2006-04-23  Bruno Haible  <bruno@clisp.org>
46141
46142         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46143         condition was already detected.
46144         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46145
46146 2006-04-23  Bruno Haible  <bruno@clisp.org>
46147
46148         * lib/copy-file.c: Include <unistd.h> unconditionally.
46149         * lib/execute.c: Likewise.
46150         * lib/fatal-signal.c: Likewise.
46151         * lib/findprog.c: Likewise.
46152         * lib/mkdtemp.c: Likewise.
46153         * lib/pipe.h: Likewise.
46154         * lib/pipe.c: Likewise.
46155         * lib/wait-process.h: Likewise.
46156
46157 2006-04-23  Bruno Haible  <bruno@clisp.org>
46158
46159         * gnulib-tool (func_usage): Fix --import description. Document
46160         --update.
46161         (func_import): Create temporary file in a temporary directory, if
46162         --dry-run is specified. Silence errors from 'grep' when there are no
46163         m4 files in $m4dir.
46164         (func_create_testdir): Silence errors from 'grep' when there are no
46165         m4 files in $m4dir.
46166         Reported by Karl Berry <karl@freefriends.org>.
46167
46168 2006-04-20  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46171         one argument, so that the code will be portable to Autoconf 2.60.
46172         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46174         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46175
46176 2006-04-19  Derek Price  <derek@ximbiot.com>
46177             Eric Blake  <ebb9@byu.net>
46178
46179         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46180         rather than "/full/path.h".  Update comment to match.  Shorten &
46181         generalize m4_translit call via AS_TR_CPP.
46182
46183 2006-04-19  Derek Price  <derek@ximbiot.com>
46184             Eric Blake  <ebb9@byu.net>
46185
46186         * lib/inttypes.h: Correct grammar in comment.
46187
46188 2006-04-18  Derek Price  <derek@ximbiot.com>
46189             Paul Eggert  <eggert@cs.ucla.edu>
46190
46191         * modules/inttypes: New file.
46192         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46193
46194 2006-04-18  Derek Price  <derek@ximbiot.com>
46195             Paul Eggert  <eggert@cs.ucla.edu>
46196
46197         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46198         New files.
46199
46200 2006-04-18  Derek Price  <derek@ximbiot.com>
46201             Paul Eggert  <eggert@cs.ucla.edu>
46202
46203         * lib/inttypes.h: New file.
46204         * lib/strtoimax.c: Assume <inttypes.h>.
46205
46206 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46207
46208         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46209         isn't mounted.  Problem reported by Kir Kolyshkin.
46210
46211 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46212
46213         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46214         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46215         Derek R. Price.
46216         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46217         implementation.
46218
46219 2006-04-12  Eric Blake  <ebb9@byu.net>
46220
46221         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46222         is now done automatically by the corresponding Autoconf macro.
46223
46224 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46225
46226         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46227         time_r.h.
46228
46229 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46230
46231         Merge regex changes from libc, removing some of our
46232         POSIX-conformance changes that were rejected and redoing them in a
46233         less-intrusive way.
46234
46235         * lib/regcomp.c (re_compile_internal, init_dfa):
46236         Length arg is now size_t, not Idx.  All uses changed.
46237         (peek_token): Forward decl now says internal_function.
46238         (__re_error_msgid, __re_error_msgid_idx):
46239         Now static rather than extern with attribute_hidden.
46240         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46241         For some reason libc prefers K&R style defns for external functions.
46242         (regerror) [!defined _LIBC]: Likewise.
46243         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46244         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46245         (build_range_exp, build_collating_symbol):
46246         Use K&R-style defn.
46247         (re_compile_fastmap): Use '\0' to memset, not 0.
46248         (utf8_sb_map): Make the calculations more obvious.
46249         (init_dfa, parse_bracket_exp, build_charclass_op):
46250         Call calloc and cast result, as glibc does.
46251         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46252         (build_range_exp, build_collating_symbol):
46253         Now internal functions.
46254
46255         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46256
46257         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46258         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46259         Don't depend on VMS; depend on __VMS instead, for POSIX
46260         namespace cleanness.
46261         (regoff_t): Define to ssize_t, not long int.
46262
46263         Remove the REG_ macros named below.  Instead, make the old names
46264         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46265         __USE_GNU_REGEX.
46266         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46267         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46268         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46269         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46270         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46271         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46272         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46273         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46274         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46275         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46276         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46277         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46278         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46279         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46280         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46281         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46282         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46283         (REG_NREGS):
46284         Remove.  All uses replaced by the old RE_* names.
46285         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46286         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46287         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46288         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46289         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46290         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46291         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46292         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46293         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46294         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46295         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46296         Don't bother having these macros be independent of each others'
46297         values, since they no longer exist in the POSIX name space.
46298
46299         Rename the following member names back to their old names,
46300         unless !__USE_GNU_REGEX.  All uses changed back.
46301         (buffer): Renamed from re_buffer.
46302         (allocated): Renamed from re_allocated.
46303         (used): Renamed from re_used.
46304         (syntax): Renamed from re_syntax.
46305         (fastmap): Renamed from re_fastmap.
46306         (translate): Renamed from re_translate.
46307         (can_be_null): Renamed from re_can_be_null.
46308         (regs_allocated): Renamed from re_regs_allocated.
46309         (fastmap_accurate): Renamed from re_fastmap_accurate.
46310         (no_sub): Renamed from re_no_sub.
46311         (not_bol): Renamed from re_not_bol.
46312         (not_eol): Renamed from re_not_eol.
46313         (newline_anchor): Renamed from re_newline_anchor.
46314         (num_regs): Renamed from rm_num_regs.
46315         (start): Renamed from rm_start.
46316         (end): Renamed from rm_end.
46317
46318         (free_state): Move up a bit.
46319
46320         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46321         #define to be empty.
46322         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46323         when that is what is intended.
46324         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46325         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46326         (MAX): New macro.
46327         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46328         All uses changed back to re_malloc, etc.  It's now the caller's
46329         responsibility to check for overflow; all callers changed.
46330         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46331         (re_x2nrealloc): Remove.
46332         (free_state): Remove decl.
46333
46334         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46335         (re_set_registers, re_exec):
46336         Use K&R-style defn.
46337
46338         2006-01-31  Roland McGrath  <roland@redhat.com>
46339
46340         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46341         Reported by Mike Frysinger <vapier@gentoo.org>.
46342
46343         2006-01-15  Andreas Jaeger  <aj@suse.de>
46344
46345         [BZ #1950]
46346         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46347         build_wcs_upper_buffer change.
46348         (build_wcs_upper_buffer): Change return type.
46349
46350         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46351
46352         * lib/regex_internal.h: Include <stdint.h> if available.
46353
46354         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46355
46356         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46357
46358         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46359
46360         * lib/regcomp.c: Adjust for changed secondary hash function.
46361
46362         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46363
46364         * lib/regex.h: Pretty printing.
46365         Clean up namespace a bit.
46366
46367         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46368
46369         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46370         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46371
46372         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46373                     Ulrich Drepper  <drepper@redhat.com>
46374
46375         [BZ #1302]
46376         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46377         changed.
46378         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46379
46380         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46381
46382         [BZ #281]
46383         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46384         * lib/regcomp.c: Remove unnecessary uses of
46385         unsigned RE_TRANSLATE_TYPE.
46386         * lib/regex_internal.h: Likewise.
46387         * lib/regex_internal.c: Likewise.
46388         * lib/regexec.c: Likewise.
46389         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46390
46391         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46392
46393         * lib/regexec.c (find_recover_state): Remove unnecessary
46394         initialization.
46395         (transit_state_bkref): Make DFA a const pointer.
46396         (get_subexp): Likewise.
46397         (check_arrival): Likewise.
46398         (update_cur_sifted_state): Likewise.
46399         (re_search_internal): Likewise.
46400         (prune_impossible_nodes): Likewise.
46401         (acquire_init_state_context): Likewise.
46402         (proceed_next_node): Likewise.
46403         (set_regs): Likewise.
46404         (free_fail_stack_return): Likewise.
46405         (check_arrival_expand_ecl): Mark DFA parameter as const.
46406         (check_arrival_expand_ecl_sub): Likewise.
46407         (check_subexp_limits): Likewise.
46408         (sub_epsilon_src_nodes):  Likewise.
46409         (add_epsilon_src_nodes):  Likewise.
46410         (merge_state_array): Likewise.
46411         (update_regs): Likewise.
46412         (build_trtable): Likewise.
46413         (sift_states_backward): Mark MCTX parameter as const.
46414         (build_sifted_states): Likewise.
46415         (update_cur_sifted_state): Likewise.
46416         (sift_states_mkref): Likewise.
46417         (check_arrival_expand_ecl): Mark eclosure as const.
46418         (check_dst_limits_calc_pos_1): Likewise.
46419         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46420         pointer.
46421
46422         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46423
46424         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46425         (transit_state_sb): Likewise.
46426         (transit_state_mb): Likewise.
46427         (sift_states_iter_mb): Likewise.
46428         (check_arrival_add_next_nodes): Likewise.
46429         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46430         [_LIBC] (re_search_2_stub): Use mempcpy.
46431
46432         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46433         mbrtowc for very simple UTF-8 case.
46434
46435         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46436         a pointer-to-const.
46437         (re_acquire_state_context): Likewise.
46438         * lib/regex_internal.h: Adjust prototypes.
46439
46440         * lib/regex.c: Prevent using C++ compilers.
46441
46442         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46443         (re_acquire_state_context): Likewise.
46444
46445 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46446
46447         * modules/regex (Depends-on): Add ssize_t.
46448
46449 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46452         translation table.
46453
46454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46455
46456         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46457
46458 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46459             Bruno Haible  <bruno@clisp.org>
46460
46461         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46462         <sys/types.h> and <inttypes.h>.
46463
46464 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46465
46466         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46467         `__error_t_defined', so argp.h will not typedef the former.
46468
46469 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46470
46471         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46472         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46473         glibc names.  Even if glibc is changed to conform to POSIX, the
46474         traditional names will be available anyway, since regex depends on
46475         the extensions module.  Also, fix a longstanding typo in the
46476         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46477         reported by Emanuele Giaquinta.  Also, change sense of cached
46478         variable, so that the message makes sense.
46479
46480 2006-03-24  Simon Josefsson  <jas@extundo.com>
46481
46482         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46483         including some doc fixes.
46484         (base64_encode_alloc): Fix +1 bug on allocation failures.
46485
46486 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46487
46488         * lib/base64.c (base64_encode): Do not read past end of array with
46489         unsanitized input on systems with CHAR_BIT > 8.
46490
46491 2006-03-24  Eric Blake  <ebb9@byu.net>
46492
46493         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46494
46495 2006-03-22  Karl Berry  <karl@gnu.org>
46496
46497         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46498         * config/srclistvars.sh (COREUTILS): new var.
46499
46500 2006-03-17  Jim Meyering  <jim@meyering.net>
46501
46502         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46503         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46504
46505 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46506
46507         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46508         no longer needs it.  Instead, check that regoff_t is as least
46509         as wide as ptrdiff_t.
46510
46511         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46512         so that our regex.h stays compatible with the installed regex.
46513         This is helpful for installers who configure --without-included-regex.
46514         Problem reported by Emanuele Giaquinta.
46515
46516 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46517
46518         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46519         Typedef to long int, not to off_, as POSIX will likely change
46520         in that direction.
46521
46522 2006-03-15  Eric Blake  <ebb9@byu.net>
46523
46524         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46525
46526 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46527
46528         * lib/argp-help.c (validate_uparams): Fix typo
46529         * lib/argp-parse.c (argp_default_options): Consistently begin help
46530         messages with a lowercase letter.
46531
46532 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46533
46534         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46535         overrun buffers and shouldn't be used (much as gets shouldn't be
46536         used).
46537         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46538
46539 2006-03-08  Simon Josefsson  <jas@extundo.com>
46540
46541         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46542         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46543
46544 2006-03-08  Simon Josefsson  <jas@extundo.com>
46545
46546         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46547         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46548
46549 2006-03-08  Simon Josefsson  <jas@extundo.com>
46550
46551         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46552         signal that configure disabled the device.
46553
46554 2006-03-08  Simon Josefsson  <jas@extundo.com>
46555
46556         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46557         languages.
46558
46559 2006-03-07  Simon Josefsson  <jas@extundo.com>
46560
46561         * modules/getopt (Depends-on): Add unistd.
46562
46563         * modules/unistd: New file.
46564
46565 2006-03-07  Simon Josefsson  <jas@extundo.com>
46566
46567         * modules/gc-random: New file.
46568
46569 2006-03-07  Simon Josefsson  <jas@extundo.com>
46570
46571         * m4/unistd_h.m4: New file.
46572
46573 2006-03-07  Simon Josefsson  <jas@extundo.com>
46574
46575         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46576         test to be side-effect free by storing the result in the cache
46577         variable gl_cv_lib_readline, and moving the assignment of
46578         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46579         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46580
46581 2006-03-07  Simon Josefsson  <jas@extundo.com>
46582
46583         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46584         error on missing devices (the functions will return an error).
46585
46586         * m4/gc.m4: Move random stuff to gc-random.m4
46587
46588 2006-03-07  Simon Josefsson  <jas@extundo.com>
46589
46590         * lib/unistd_.h: New file.
46591
46592 2006-03-07  Simon Josefsson  <jas@extundo.com>
46593
46594         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46595
46596 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46597
46598         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46599         Problem reported by Juan Manuel Guerrero.
46600
46601 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46604         the unistd module.
46605         * lib/getlogin_r.c: Likewise.
46606         * lib/getlogin_r.h: Likewise.
46607         * lib/glob.c: Likewise.
46608         * lib/pagealign_alloc.c: Likewise.
46609         * lib/unistd_.h: Remove; no longer needed.
46610
46611 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46612
46613         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46614         Add unistd.
46615         * modules/c-stack (Depends-on): Add unistd.
46616         * modules/getlogin_r: Likewise.
46617         * modules/glob: Likewise.
46618         * modules/pagealign_alloc: Likewise.
46619         * modules/unistd (Files): Remove lib/unistd_.h.
46620         (EXTRA_DIST): Remove.
46621         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46622         need unistd_.h.
46623         (MOSTLYCLEANFILES): Remove unistd.h-t.
46624
46625 2006-03-03  Simon Josefsson  <jas@extundo.com>
46626
46627         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46628
46629 2006-03-03  Simon Josefsson  <jas@extundo.com>
46630
46631         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46632         libidn and bison.
46633
46634 2006-03-03  Simon Josefsson  <jas@extundo.com>
46635
46636         * build-aux/maint.mk: Add indent target.
46637
46638 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46639
46640         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46641         our replacement poll.h in any case, to avoid a differing
46642         declaration from a system header.  Seen on AIX.
46643
46644 2006-03-01  Simon Josefsson  <jas@extundo.com>
46645
46646         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46647         <kasal@ucw.cz>.
46648
46649 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46650
46651         * modules/gettime (Depends-on): Add extensions module.
46652         * modules/nanosleep (Depends-on): Likewise.
46653         * modules/settime (Depends-on): Likewise.
46654
46655 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46656
46657         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46658         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46659         pedantically.
46660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46661         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46662
46663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46664         not "==".  Reported by Ralf Wildenhues.
46665
46666 2006-03-01  Karl Berry  <karl@gnu.org>
46667
46668         * doc/Copyright/request-*: new files, synced from gnuorg.
46669
46670 2006-03-01  Karl Berry  <karl@gnu.org>
46671
46672         * config/srclist.txt (Copyright/*): new entries.
46673
46674 2006-02-28  Simon Josefsson  <jas@extundo.com>
46675
46676         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46677
46678 2006-02-27  Simon Josefsson  <jas@extundo.com>
46679
46680         * lib/base64.h: Indent #define's.  From Jim Meyering
46681         <jim@meyering.net>.
46682
46683 2006-02-27  Jim Meyering  <jim@meyering.net>
46684
46685         Revert the change of 2006-02-24, so these files can continue
46686         to be sync'd from gettext.
46687         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46688         of `config.h'.
46689
46690 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46691
46692         * modules/intprops: New file.
46693         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46694         Add intprops.
46695         * modules/getloadavg (Files): Remove lib/intprops.h.
46696         (Depends-on): Add intprops.
46697         * modules/human: Likewise.
46698         * modules/inttostr: Likewise.
46699         * modules/openat: Likewise.
46700         * modules/sig2str: Likewise.
46701         * modules/userspec: Likewise.
46702         * modules/utimecmp: Likewise.
46703         * modules/xnanosleep: Likewise.
46704         * modules/xstrtol: Likewise.
46705
46706 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46707
46708         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46709         * modules/lock-tests (TESTS): Use $(EXEEXT).
46710         * modules/tls-tests: Likewise.
46711         * modules/argp-tests: Likewise.
46712         (check_PROGRAMS): New var, replacing...
46713         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46714
46715 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46716
46717         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46718         `config.h'.
46719
46720 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46721
46722         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46723
46724 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46725
46726         Sync from coreutils.
46727         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46728         gl_CHDIR_SAFER.
46729
46730 2006-02-22  Jim Meyering  <jim@meyering.net>
46731
46732         Sync from coreutils.
46733         * m4/chdir-safer.m4: New file.
46734
46735 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46738         AT_FDCWD exceeds INT_MAX.
46739         * lib/openat.h (AT_FDCWD): Likewise.
46740
46741 2006-02-17  Eric Blake  <address@hidden>
46742
46743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46744
46745 2006-02-16  Simon Josefsson  <jas@extundo.com>
46746
46747         * modules/getaddrinfo (Depends-on): Add sys_socket.
46748
46749 2006-02-15  Simon Josefsson  <jas@extundo.com>
46750
46751         * build-aux/maint.mk: Add dsyntax-check rule.
46752
46753 2006-02-15  Eric Blake  <ebb9@byu.net>
46754
46755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46756         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46757         'present but cannot compile' warnings on cygwin.
46758         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46759         use ws2tcpip.h if sys/socket.h works.
46760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46761         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46762
46763 2006-02-14  Simon Josefsson  <jas@extundo.com>
46764
46765         * modules/maintainer-makefile (Files): Rename.
46766
46767         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46768         and (the local) Makefile.cfg to maint-cfg.mk.
46769
46770         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46771         to the latter.
46772
46773         * modules/maintainer-makefile: New module.
46774
46775         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46776         severaly stripped to make it possible to build it up from scratch
46777         with reliable tests.
46778
46779         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46780         fixes to permit overriding the default actions when configure and
46781         makefile are not available.
46782
46783 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         Sync from coreutils.
46786         * modules/lstat (Depends-on): Don't depend on xalloc.
46787         (License): Change from GPL to LGPL, since this is now simply a
46788         replacement for a libc function.
46789
46790 2006-02-14  Jim Meyering  <jim@meyering.net>
46791
46792         Sync from coreutils.
46793
46794         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46795         failure on deficient systems, and simplify gnulib lgpl dependencies.
46796         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46797         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46798
46799         * lib/xalloc-die.c: Remove unused definition of N_.
46800
46801 2006-02-14  Jim Meyering  <jim@meyering.net>
46802
46803         Sync from coreutils.
46804         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46805         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46806         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46807         double-quote uses of that variable, to accommodate the rare case in
46808         which getmntent is available in none of the libraries checked.  This
46809         happens at least on FreeBSD 5.0.
46810
46811 2006-02-13  Simon Josefsson  <jas@extundo.com>
46812
46813         * gnulib-tool (Usage): Fix --import, from
46814         karl@freefriends.org (Karl Berry).
46815
46816 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46817
46818         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46819
46820 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46821
46822         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46823         "autoupdate" on 2005-12-12.
46824
46825 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         * modules/closeout (Depends-on): Remove atexit.
46828
46829 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46830
46831         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46832         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46833
46834 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46835
46836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46837         __EXTENSIONS__ if this causes compilation to fail.  Problem
46838         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46839         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46840
46841 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46842
46843         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46844         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46846         All uses changed.
46847
46848 2006-01-26  Simon Josefsson  <jas@extundo.com>
46849
46850         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46851         prototype is visible on mingw32.
46852
46853         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46854         for mingw32.
46855
46856         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46857         mingw32).
46858
46859 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46860
46861         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46862         attempt to open for write; this always fails, at least on POSIX
46863         hosts.  This reinstates the 2006-01-09 change, which was
46864         inadvertently removed.
46865
46866 2006-01-26  Bruno Haible  <bruno@clisp.org>
46867
46868         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46869         Reported by Paul Eggert.
46870
46871 2006-01-26  Bruno Haible  <bruno@clisp.org>
46872             Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * lib/stdbool_.h (_Bool)
46875         [(! (defined __cplusplus || defined __BEOS__)
46876           && !defined __GNUC__
46877           && !(defined __HP_cc || defined __xlc__
46878                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46879                || defined __sgi))]:
46880         #define to signed char in these cases too; this simplifies
46881         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46882         etc., separately) and makes it more conservative.
46883
46884 2006-01-25  Simon Josefsson  <jas@extundo.com>
46885
46886         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46887         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46888         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46889
46890 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46891
46892         * lib/argp-namefrob.h: Bugfix. Remove stray #
46893
46894 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46897         so that we test the test.
46898         Check for yet another HP-UX cc bug involving *bool |= bool.
46899
46900 2006-01-25  Karl Berry  <karl@gnu.org>
46901
46902         * config/srclist.txt (vasnprintf.c): sync lost.
46903
46904 2006-01-25  Jim Meyering  <jim@meyering.net>
46905
46906         Sync from the stable (b5) branch of coreutils:
46907
46908         * lib/fts.c (fts_children): Don't let close() clobber errno from
46909         failed fchdir().
46910
46911         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46912         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46913         a dangling symlink.  That can also happen at least for ELOOP.
46914         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46915         FYI, this bug predates the inclusion of fts.c in coreutils.
46916
46917         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46918         in their own block, so pre-c99 compilers don't object.
46919
46920         Avoid the double-free (first in fts_read, second in fts_close) that
46921         would occur when an `active' directory is made inaccessible (e.g.,
46922         via chmod a-x) during a traversal.
46923         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46924         before returning.  Reproduce this failure by
46925         mkdir -p a/b; cd a; chmod a-x . b
46926         Reported by Stavros Passas.
46927
46928 2006-01-25  Jim Meyering  <jim@meyering.net>
46929
46930         * lib/fileblocks.c: Remove more useless parentheses.
46931         * lib/readutmp.h: Likewise.
46932
46933 2006-01-25  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46936         warnings.
46937         Reported by Paul Eggert.
46938
46939 2006-01-25  Bruno Haible  <bruno@clisp.org>
46940
46941         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46942         rid of a trap command. For Solaris sh.
46943         Reported by Mark D. Baushke <mdb@gnu.org>.
46944
46945 2006-01-24  Simon Josefsson  <jas@extundo.com>
46946
46947         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46948         Bruno.
46949
46950 2006-01-24  Karl Berry  <karl@gnu.org>
46951
46952         * config/srclist.txt (argp-namefrob.h): sync lost.
46953
46954 2006-01-24  Jim Meyering  <jim@meyering.net>
46955
46956         * modules/openat (Files): Add lib/intprops.h.
46957         From Mark D. Baushke.
46958
46959 2006-01-24  Jim Meyering  <jim@meyering.net>
46960
46961         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46962         Reported by Mark D. Baushke.
46963
46964 2006-01-24  Jim Meyering  <jim@meyering.net>
46965
46966         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46967
46968 2006-01-24  Bruno Haible  <bruno@clisp.org>
46969
46970         * modules/strnlen (Maintainer): Change from glibc to all.
46971
46972 2006-01-24  Bruno Haible  <bruno@clisp.org>
46973
46974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46975         Patch by Paul Eggert.
46976
46977 2006-01-24  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46980         already has it.
46981         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46982         2005-11-26.
46983
46984         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46985         'signed char' to avoid problems with the built-in _Bool type.
46986         Reported by Paul Eggert on 2005-11-26.
46987
46988 2006-01-24  Bruno Haible  <bruno@clisp.org>
46989
46990         * gnulib-tool (func_import): Avoid constructing complicated sed
46991         expressions inside backquote.
46992         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46993
46994 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46995
46996         These changes imported from libc.
46997         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46998         test and two separate function calls.
46999         * lib/strndup.c (__strndup): Add libc_hidden_def.
47000
47001 2006-01-23  Simon Josefsson  <jas@extundo.com>
47002
47003         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47004         Remove the test_*_SOURCES variable: automake infers it by default.
47005         * modules/tls-tests: Likewise.
47006
47007 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47008
47009         Work around porting bugs reported by Dieter in
47010         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47011         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47012         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47013         Include "getopt.h" first, to check interface.
47014         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47015         !HAVE_DECL_GETENV.
47016         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47017         (__strndup): Revert to K&R-style function dfns, the glibc style.
47018         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47019         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47020         Include strnlen.h first, to get prototype properly.
47021         (strnlen): Renamed from __strnlen.
47022         Remove weak alias.
47023
47024 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47025
47026         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47027
47028 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47029
47030         * config/srclist.txt: Adjust to reflect glibc reorganization.
47031         This affects only comments.
47032
47033 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47034
47035          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47036          Reported by Bruce Korb <bkorb@gnu.org>.
47037
47038 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47039
47040         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47041         to pacify gcc -Wswitch-default.
47042
47043 2006-01-22  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47046         temporary buffer for sprintf, take into account the precision also
47047         for 'd', 'i', 'u', 'o', 'x', 'X'.
47048
47049 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47050
47051         * modules/argp-tests: New module
47052         * tests/test-argp.c: New file
47053         * tests/test-argp-2.sh: New file
47054
47055 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47056
47057         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47058         (__argp_base_name): Removed
47059         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47060         typo.
47061         (__argp_base_name): Provide macro definition or extern declaration
47062         depending on the configuration
47063
47064 2006-01-20  Simon Josefsson  <jas@extundo.com>
47065
47066         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47067
47068 2006-01-20  Simon Josefsson  <jas@extundo.com>
47069
47070         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47071
47072 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47075         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47076         Suggested by Bruno Haible.
47077
47078 2006-01-20  Karl Berry  <karl@gnu.org>
47079
47080         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47081         until changes propagate, I guess.
47082
47083 2006-01-19  Simon Josefsson  <jas@extundo.com>
47084
47085         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47086
47087 2006-01-19  Simon Josefsson  <jas@extundo.com>
47088
47089         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47090
47091 2006-01-19  Simon Josefsson  <jas@extundo.com>
47092
47093         * gnulib-tool: Set check_PROGRAMS.
47094
47095         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47096         modules/des-tests, modules/gc-arcfour-tests,
47097         modules/gc-arctwo-tests, modules/gc-des-tests,
47098         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47099         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47100         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47101         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47102         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47103         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47104         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47105         test_*_SOURCES.
47106
47107 2006-01-18  Simon Josefsson  <jas@extundo.com>
47108
47109         * modules/socklen (Depends-on): Depend on sys_socket.
47110
47111 2006-01-18  Simon Josefsson  <jas@extundo.com>
47112
47113         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47114         modules/des-tests, modules/gc-arcfour-tests,
47115         modules/gc-arctwo-tests, modules/gc-des-tests,
47116         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47117         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47118         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47119         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47120         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47121         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47122         $(EXEEXT) to automake TESTS variable, for mingw32.
47123
47124 2006-01-17  Simon Josefsson  <jas@extundo.com>
47125
47126         * modules/socklen (Include): Need sys/socket.h.
47127
47128 2006-01-17  Bruno Haible  <bruno@clisp.org>
47129
47130         * modules/ssize_t (Include): Add <sys/types.h>.
47131
47132 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47133
47134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47135         it's not portable and it doesn't work with cross-compiles.
47136         Problem reported by Bruno Haible.  Fix missing-$ typo in
47137         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47138         -zignore from being used with Sun's C compiler.
47139
47140 2006-01-12  Simon Josefsson  <jas@extundo.com>
47141
47142         * lib/base64.c: Fix warning, reported by Bruno Haible
47143         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47144
47145 2006-01-12  Bruno Haible  <bruno@clisp.org>
47146
47147         * modules/ldd: New file.
47148         * build-aux/ldd.sh.in: New file.
47149         * MODULES.html.sh (Support for building libraries and executables): Add
47150         ldd.
47151
47152 2006-01-12  Bruno Haible  <bruno@clisp.org>
47153
47154         * m4/ldd.m4: New file.
47155
47156 2006-01-12  Bruno Haible  <bruno@clisp.org>
47157
47158         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47159         endless loop while replacing $auxdir with build-aux.
47160
47161 2006-01-11  Simon Josefsson  <jas@extundo.com>
47162
47163         * lib/stdint_.h (SIZE_MAX): Add missing (.
47164
47165 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47166
47167         Sync from coreutils.
47168         * lib/md5.c: Fix commentary typos.
47169         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47170         * lib/md5.h (__attribute__): Remove; unused.
47171         * lib/sha1.c: Fix commentary to match md5 better.
47172         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47173         so that we don't need to worry about alignment.  All uses changed.
47174         This merges the 2005-10-28 md5 change into sha1.
47175
47176 2006-01-11  Jim Meyering  <jim@meyering.net>
47177
47178         Sync from coreutils.
47179         * lib/md5.c (OP): Fix spacing.
47180
47181 2006-01-11  Bruno Haible  <bruno@clisp.org>
47182
47183         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47184         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47185         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47186
47187 2006-01-11  Bruno Haible  <bruno@clisp.org>
47188
47189         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47190         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47191         the "early" section as well.
47192
47193 2006-01-11  Bruno Haible  <bruno@clisp.org>
47194
47195         Avoid "ar: no archive members specified" error on MacOS X.
47196         * gnulib-tool (func_modules_add_dummy): New function.
47197         (func_import, func_create_testdir): Invoke it.
47198
47199 2006-01-11  Bruno Haible  <bruno@clisp.org>
47200
47201         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47202         with $auxdir in AC_CONFIG_FILES statements.
47203
47204 2006-01-11  Bruno Haible  <bruno@clisp.org>
47205
47206         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47207         Initialize also noinst_HEADERS to empty.
47208
47209 2006-01-11  Bruno Haible  <bruno@clisp.org>
47210
47211         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47212         variables.
47213         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47214         autoreconf.
47215
47216 2006-01-11  Bruno Haible  <bruno@clisp.org>
47217
47218         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47219         overridable by the user.
47220         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47221
47222 2006-01-10  Simon Josefsson  <jas@extundo.com>
47223
47224         * modules/sys_socket: New file.
47225
47226 2006-01-10  Simon Josefsson  <jas@extundo.com>
47227
47228         * m4/sys_socket_h.m4: New file.
47229
47230 2006-01-10  Simon Josefsson  <jas@extundo.com>
47231
47232         * lib/socket_.h: New file.
47233
47234 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47235
47236         * modules/readutmp (Maintainer): Add myself.
47237
47238 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47239
47240         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47241         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47242         People who are still concerned with buggy memcmp implementations
47243         can invoke gl_FUNC_MEMCMP themselves.
47244
47245 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47246
47247         * lib/regex_internal.h (BITSET_WORD_BITS):
47248         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47249         preprocessor mishandles large unsigned values as if they were signed.
47250         Problem reported by Claudio Fontana in
47251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47252
47253 2006-01-10  Jim Meyering  <jim@meyering.net>
47254
47255         Avoid the double-free (first in fts_read, second in fts_close) that
47256         would occur when an `active' directory is made inaccessible (e.g.,
47257         via chmod a-x) during a traversal.
47258         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47259         before returning.  Reproduce this failure by
47260         mkdir -p a/b; cd a; chmod a-x . b
47261         Reported by Stavros Passas.
47262
47263         Sync from coreutils.
47264         * lib/sha1.c: Tweak grammar in a comment.
47265
47266 2006-01-10  Jim Meyering  <jim@meyering.net>
47267
47268         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47269         Patch by Joerg Sonnenberger.
47270
47271 2006-01-10  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/readutmp: Depend on module free.
47274         * modules/strtok_r: Depend on module restrict.
47275
47276 2006-01-10  Bruno Haible  <bruno@clisp.org>
47277
47278         * modules/gettext (configure.ac): Add an invocation of
47279         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47280
47281 2006-01-10  Bruno Haible  <bruno@clisp.org>
47282
47283         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47284         Reported by Werner Lemberg <wl@gnu.org>.
47285
47286 2006-01-10  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/localcharset.c: Update from GNU gettext.
47289
47290 2006-01-10  Bruno Haible  <bruno@clisp.org>
47291
47292         * lib/argp.h (__const): Remove macro. Use const instead.
47293         * lib/argp-fmtstream.h (__const): Likewise.
47294         * lib/glob_.h (__const): Remove macro.
47295         * lib/glob-libc.h: Use const instead of __const.
47296
47297 2006-01-10  Bruno Haible  <bruno@clisp.org>
47298
47299         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47300         variable.
47301         Needed to avoid an automake error regarding the 'gettext' module.
47302
47303 2006-01-09  Simon Josefsson  <jas@extundo.com>
47304
47305         * modules/inet_ntop (Depends-on): Add restrict.
47306
47307 2006-01-09  Simon Josefsson  <jas@extundo.com>
47308
47309         * modules/gc-rijndael-tests (License): Put under LGPL.
47310
47311         * modules/gc-des-tests (License): Likewise.
47312
47313         * modules/gc-arcfour-tests (License): Likewise.
47314
47315         * modules/gc-arctwo-tests (License): Likewise.
47316
47317         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47318
47319         * modules/gc-hmac-sha1-tests (Files): Likewise.
47320
47321         * modules/gc-hmac-md5-tests (License): Likewise.
47322
47323         * modules/gc-sha1-tests (License): Likewise.
47324
47325         * modules/gc-md5-tests (License): Likewise.
47326
47327         * modules/gc-md4-tests (License): Likewise.
47328
47329         * modules/gc-md2-tests (License): Likewise.
47330
47331         * modules/gc-tests (License): Likewise.
47332
47333         * modules/des-tests (License): Likewise.
47334
47335         * modules/md4-tests (License): Likewise.
47336
47337         * modules/md2-tests (License): Likewise.
47338
47339 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47340
47341         Sync from coreutils:
47342
47343         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47344         * modules/lib-ignore: New file.
47345         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47346         chdir-safer.m4, lchmod.m4.
47347         * modules/openat: Add mkdirat.c, openat-priv.h.
47348
47349 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47350
47351         Sync from coreutils.
47352         * m4/lib-ignore.m4: New file.
47353         * m4/lchmod.m4: New file.
47354
47355 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47356
47357         Sync from coreutils.
47358         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47359         for write access: POSIX says that must fail.
47360         * lib/fts.c (diropen): Likewise.
47361         * lib/save-cwd.c (save_cwd): Likewise.
47362         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47363         well, for minor improvements on hosts that lack O_DIRECTORY.
47364         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47365         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47366         Fall back on chown if open failed with EACCES.
47367
47368         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47369         Report an error at compile-time if only a 1-second nominal clock
47370         resolution is found.
47371
47372         * lib/lchmod.h: New file.
47373         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47374         (make_dir_parents): Use lchown rather than chown, and
47375         lchmod rather than chmod.
47376
47377         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47378         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47379         "proc" reported by n0dalus.
47380
47381         * lib/mountlist.c: Include <limits.h>.
47382         (dev_from_mount_options)
47383         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47384         New function.  It no longer assumes "dev=" has the System V meaning
47385         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47386         (read_file_system_list)
47387         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47388         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47389         dev= in that case.
47390
47391         * lib/posixtm.h (PDS_PRE_2000): New macro.
47392         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47393         allow_century.  All usages changed.  Reject dates outside the range
47394         1969-1999 if PDS_PRE_2000 is used.
47395
47396 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         Sync from coreutils.
47399         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47400         (Time of day items): Mention the possibility of leap seconds.
47401         Problem reported by Dr. David Alan Gilbert.
47402
47403 2006-01-09  Jim Meyering  <jim@meyering.net>
47404
47405         Sync from coreutils.
47406
47407         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47408
47409         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47410
47411         * lib/modechange.c (mode_compile): Reject an invalid mode string
47412         that starts with an octal digit.  From Andreas Gruenbacher.
47413
47414         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47415         and dup to open_safer and dup_safer, respectively.
47416         (openat_permissive): Fix typo in comment.
47417
47418         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47419         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47420         (_): Remove; no longer needed.
47421         (openat): Renamed from rpl_openat; no need for rpl_openat
47422         since openat.h renames openat for us.
47423         Replace most of the body with a call to openat_permissive,
47424         to avoid duplicate code.
47425         Port to (probably hypothetical) environments were mode_t is
47426         wider than int.
47427         (openat_permissive): Require mode arg, so that we can check
47428         types better.  Put it just after flags.  Change cwd failure
47429         indicator from pointer-to-bool to pointer-to-errno-value.
47430         All callers changed.
47431         Invoke openat_save_fail and/or openat_restore_fail if
47432         cwd_errno is null, so that openat can call us.
47433         (openat_permissive, fdopendir, fstatat, unlinkat):
47434         Simplify errno handling to avoid some duplicate code,
47435         as it's OK to set errno on success.
47436         * lib/openat.h: Revamp code so that function macros depend on
47437         __OPENAT_PREFIX only, not also on AT_FDCWD.
47438         (openat_ro): Remove.  Caller changed to use openat_permissive.
47439         (openat_permissive): Now a macro, if not a function.
47440         (openat_restore_fail, openat_save_fail): Now always functions,
47441         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47442
47443         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47444         and openat.c.
47445         * lib/mkdirat.c: Include openat-priv.h.
47446         Remove definitions of macros defined therein.
47447         * lib/openat.c: Likewise.
47448
47449         * lib/mkdirat.c (mkdirat): New file and function.
47450         * lib/openat.h (mkdirat): Declare.
47451
47452         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47453
47454         * lib/openat.h (openat_permissive): Declare.
47455         (openat_ro): Define.
47456
47457         * lib/openat.c (EXPECTED_ERRNO): New macro.
47458         (openat_permissive): New function -- used in remove.c rewrite.
47459         (all functions): Set errno just before returning, only if there
47460         was an actual failure.
47461         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47462
47463         Emulate openat-family functions using Linux's procfs, if possible.
47464         Idea and some code based on Ulrich Drepper's glibc changes.
47465
47466         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47467         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47468         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47469         before falling back on save_cwd and restore_cwd.
47470         (fdopendir, fstatat, unlinkat): Likewise.
47471
47472         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47473         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47474
47475         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47476         as second argument to va_arg.  Otherwise, some versions of gcc
47477         warn that `if this code is reached, the program will abort'.
47478
47479 2006-01-09  Jim Meyering  <jim@meyering.net>
47480
47481         Sync from coreutils.
47482         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47483         Require openat-priv.h.
47484
47485 2006-01-09  Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/strnlen (Include): Use strnlen.h.
47488
47489 2006-01-09  Bruno Haible  <bruno@clisp.org>
47490
47491         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47492
47493 2006-01-09  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/sysexit_.h (EX_OK): New macro.
47496         Suggested by Martin Lambers <marlam@marlam.de>.
47497
47498 2006-01-09  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47501         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47502
47503 2006-01-09  Bruno Haible  <bruno@clisp.org>
47504
47505         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47506         numbers.
47507
47508 2006-01-09  Bruno Haible  <bruno@clisp.org>
47509
47510         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47511         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47512         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47513         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47514
47515 2006-01-09  Bruno Haible  <bruno@clisp.org>
47516
47517         * build-aux/javacomp.sh.in: New file, moved from lib/.
47518         * modules/javacomp-script (Files): Update.
47519         (configure.ac): Add AC_CONFIG_FILES invocation.
47520         (EXTRA_DIST): Remove variable.
47521
47522         * build-aux/javaexec.sh.in: New file, moved from lib/.
47523         * modules/javaexec (Files): Update.
47524         (configure.ac): Add AC_CONFIG_FILES invocation.
47525         (EXTRA_DIST): Remove javaexec.sh.in.
47526
47527         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47528         * modules/csharpcomp-script (Files): Update.
47529         (configure.ac): Add AC_CONFIG_FILES invocation.
47530         (EXTRA_DIST): Remove variable.
47531
47532         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47533         * modules/csharpexec (Files): Update.
47534         (configure.ac): Add AC_CONFIG_FILES invocation.
47535         (EXTRA_DIST): Remove csharpexec.sh.in.
47536
47537 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47538
47539         Sync from coreutils.
47540
47541         Add POSIX ACL support
47542         * lib/acl.h (copy_acl, set_acl): Add declarations.
47543         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47544         systems other than Linux.
47545         (chmod_or_fchmod): New function: use fchmod when possible,
47546         and chmod otherwise.
47547         (file_has_acl): Add a POSIX ACL implementation, with a
47548         Linux-specific subcase.
47549         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47550         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47551         acls are unsupported.
47552         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47553         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47554         are unsupported.
47555
47556 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47557
47558         Sync from coreutils.
47559         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47560
47561 2006-01-07  Bruno Haible  <bruno@clisp.org>
47562
47563         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47564         gl_EARLY.
47565
47566 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47567
47568         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47569         Problem reported for Mingw by Mark Junker.
47570
47571 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47572
47573         * README: Gnulib normally doesn't generate a tarball.
47574
47575 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47576
47577         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47578         long int, not int, for nanosecond counts, so that people who are
47579         used to POSIX struct timespec won't be surprised.  Reported by Jim
47580         Meyering.
47581
47582 2005-12-28  Bruno Haible  <bruno@clisp.org>
47583
47584         * build-aux/config.rpath: Update from GNU gettext.
47585
47586 2005-12-16  Jim Meyering  <jim@meyering.net>
47587
47588         * modules/fprintftime: New module.
47589         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47590
47591 2005-12-16  Jim Meyering  <jim@meyering.net>
47592
47593         * m4/fprintftime.m4: New file.
47594
47595 2005-12-16  Jim Meyering  <jim@meyering.net>
47596
47597         * lib/fprintftime.c, lib/fprintftime.h: New files.
47598
47599 2005-12-15  Simon Josefsson  <jas@extundo.com>
47600
47601         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47602         new m4/socklen.m4.
47603
47604 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47605
47606         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47607         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47608
47609 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47610
47611         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47612         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47613         struct uparams is valid. Fall back to the default values if it is
47614         not.
47615
47616 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47617
47618         * modules/argp (Files): Add argp-pin.c
47619         (Depends-on): dirname
47620         (lib_SOURCES): Add argp-pin.c
47621
47622 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47623
47624         * m4/argp.m4:  Check if program_invocation_name and
47625         program_invocation_short_name are declared and define appropriate
47626         macros if they are not.
47627
47628 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47629
47630         * lib/argp-help.c (__argp_base_name): New function
47631         (__argp_short_program_name): Rewrite using __argp_base_name
47632         * lib/argp-namefrob.h: Define program_invocation_name and
47633         program_invocation_short_name if requested
47634         (__argp_base_name): Add prototype
47635         * lib/argp-parse.c (argp_def): Use gettext wrappers
47636         (argp_default_parser): Use __argp_base_name
47637         * lib/argp-pin.c: New file. Defines program_invocation_name and
47638         program_invocation_short_name on systems that lack them.
47639
47640 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47643         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47644         porting problem reported by Georg Schwarz in
47645         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47646
47647 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47648
47649         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47650         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47651         porting problem reported by Georg Schwarz in
47652         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47653
47654 2005-12-05  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47657         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47658         Reported by Mark Junker <mjscod@gmx.de>.
47659
47660 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47663         Use implementation from Albert Chin, with some
47664         comments/corrections by Stepan Kasal and myself.
47665
47666 2005-12-02  Bruno Haible  <bruno@clisp.org>
47667
47668         * gnulib-tool (func_import): Accept GPLed build tool modules when
47669         --lgpl is given.
47670         * modules/csharpcomp-script: New file.
47671         * modules/csharpcomp: Depend on it.
47672         * modules/javacomp-script: New file.
47673         * modules/javacomp: Depend on it.
47674         Suggested by Simon Josefsson.
47675
47676 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47677
47678         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47679         statement, to work around an HP-UX 10.20 compiler bug reported by
47680         Peter O'Gorman.
47681
47682 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * modules/savedir (Depends-on): Add openat.
47685
47686 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47687
47688         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47689         (uintmax_t) [defined uintmax_t]: Do not declare.
47690         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47691         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47692         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47693         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47694         sake of portability to weird hosts that C allows (though we don't
47695         know of any practical examples).
47696
47697         * lib/savedir.h (fdsavedir): New decl.
47698         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47699         contains most of the former guts of savedir.
47700         (savedir): Use savedirstream.
47701         Include "openat.h".
47702
47703 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47704
47705         * modules/obstack (Files): Add m4/ulonglong.m4.
47706         Problem reported by Davide Angelocola.
47707
47708 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47711         coreutils no longer futzes with rounding modes.
47712
47713 2005-11-14  Jim Meyering  <jim@meyering.net>
47714
47715         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47716         replacement of mkstemp.
47717
47718 2005-11-10  Simon Josefsson  <jas@extundo.com>
47719
47720         * lib/readline.c: Remove EOL.
47721
47722 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         * modules/gethrxtime (Depends-on): Add gettime.
47725
47726 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47727
47728         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47729         or gettimeofday; no longer needed.
47730
47731 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47732
47733         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47734         time business.
47735         (gethrxtime) [! (HAVE_NANOUPTIME
47736         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47737         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47738         our own approximation.
47739
47740 2005-11-08  Eric Blake  <ebb9@byu.net>
47741
47742         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47743
47744 2005-11-08  Eric Blake  <ebb9@byu.net>
47745
47746         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47747
47748 2005-11-04  Bruno Haible  <bruno@clisp.org>
47749
47750         * gnulib-tool: Implement --update mode.
47751
47752 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         Fix porting problem reported by Theodoros V. Kalamatianos.
47755         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47756         Don't assume that futimes failing means we must fail.
47757
47758 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47759
47760         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47761         variables to suggest the intended function of the PATH_MAX check.
47762
47763 2005-10-30  Kean Johnston  <jkj@sco.com>
47764
47765         Trivial changes to support SCO systems.
47766         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47767         as PATH_MAX.
47768         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47769         where __ptr is null when no I/O is pending.
47770
47771 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47774         leave errno alone.  Problem reported by Dmitry V. Levin.
47775
47776 2005-10-28  Simon Josefsson  <jas@extundo.com>
47777
47778         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47779         Test more.
47780
47781         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47782
47783         * modules/md2, modules/md2-tests: New files.
47784
47785 2005-10-28  Simon Josefsson  <jas@extundo.com>
47786
47787         * m4/inet_ntop.m4: More tests.
47788
47789         * m4/gc-md2.m4, md2.m4: New file.
47790
47791 2005-10-28  Simon Josefsson  <jas@extundo.com>
47792
47793         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47794         "restrict" keywords, as per POSIX.  Protect the function
47795         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47796         Don't use K&R prototypes.  Check the sprintf return values.
47797         Re-define EAFNOSUPPORT if not present.  Indent.
47798
47799         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47800         suggested by Bruno Haible <bruno@clisp.org>.
47801
47802         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47803
47804         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47805
47806         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47807         libgcrypt).
47808
47809         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47810
47811         * lib/md2.h, lib/md2.c: New files.
47812
47813 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47814
47815         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47816         errno alone.  Problem reported by Frederic Jolliton.
47817
47818 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47819
47820         * modules/verify (License): Change from GPL to LGPL.  This is a
47821         tiny module and there are apparently near-equivalents that are
47822         under the BSD license.
47823
47824 2005-10-24  Simon Josefsson  <jas@extundo.com>
47825
47826         * modules/sha1: Relicense to LGPL.
47827
47828 2005-10-24  Simon Josefsson  <jas@extundo.com>
47829
47830         * lib/md4.h: Shrink buffer size, now that we changed the type.
47831
47832 2005-10-23  Simon Josefsson  <jas@extundo.com>
47833
47834         * gnulib-tool (func_import): Fix --tests-base.
47835
47836 2005-10-22  Simon Josefsson  <jas@extundo.com>
47837
47838         * modules/arcfour (Depends-on): Need stdint.
47839
47840 2005-10-22  Simon Josefsson  <jas@extundo.com>
47841
47842         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47843         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47844
47845 2005-10-22  Simon Josefsson  <jas@extundo.com>
47846
47847         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47848         suggested by Bruno Haible <bruno@clisp.org>.
47849
47850 2005-10-22  Simon Josefsson  <jas@extundo.com>
47851
47852         * lib/crc.h: Include stddef.h, for size_t.
47853
47854 2005-10-22  Simon Josefsson  <jas@extundo.com>
47855
47856         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47857         arcfour_context struct (simplify test vector testing in GNU
47858         Shishi).
47859
47860 2005-10-21  Simon Josefsson  <jas@extundo.com>
47861
47862         * modules/des, modules/des-tests: New files.
47863
47864         * modules/gc-des, modules/gc-des-tests: New files.
47865
47866         * tests/test-des.c, tests/test-gc-des.c: New file.
47867
47868 2005-10-21  Simon Josefsson  <jas@extundo.com>
47869
47870         * modules/arctwo, modules/arctwo-tests: New files.
47871
47872         * tests/test-arctwo.c: New file.
47873
47874         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47875
47876         * tests/test-gc-arctwo.c: New file.
47877
47878 2005-10-21  Simon Josefsson  <jas@extundo.com>
47879
47880         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47881         Bruno Haible <bruno@clisp.org>.
47882
47883         * m4/gc-des.m4: New file.
47884
47885 2005-10-21  Simon Josefsson  <jas@extundo.com>
47886
47887         * m4/arctwo.m4: New file.
47888
47889         * m4/gc-arctwo.m4: New file.
47890
47891 2005-10-21  Simon Josefsson  <jas@extundo.com>
47892
47893         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47894         block.
47895
47896 2005-10-21  Simon Josefsson  <jas@extundo.com>
47897
47898         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47899         <bruno@clisp.org>.
47900
47901         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47902
47903         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47904         Bruno Haible <bruno@clisp.org>.
47905
47906         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47907         <bruno@clisp.org>.
47908
47909 2005-10-21  Simon Josefsson  <jas@extundo.com>
47910
47911         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47912
47913 2005-10-21  Simon Josefsson  <jas@extundo.com>
47914
47915         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47916
47917 2005-10-21  Simon Josefsson  <jas@extundo.com>
47918
47919         * lib/des.h, lib/des.c: New files.
47920
47921         * lib/gc-gnulib.c: Support DES.c
47922
47923 2005-10-21  Simon Josefsson  <jas@extundo.com>
47924
47925         * lib/arctwo.h, lib/arctwo.c: New files.
47926
47927         * lib/gc-gnulib.c: Support ARCTWO.
47928
47929 2005-10-21  Simon Josefsson  <jas@extundo.com>
47930
47931         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47932         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47933
47934 2005-10-21  Simon Josefsson  <jas@extundo.com>
47935
47936         * gnulib-tool (func_import, func_create_testdir): Define automake
47937         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47938         Makefile.am snippet),
47939         suggested by Bruno Haible <bruno@clisp.org>.
47940
47941         * modules/gc (Makefile.am): Use it.
47942
47943 2005-10-21  Bruno Haible  <bruno@clisp.org>
47944
47945         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47946         patch.
47947
47948 2005-10-19  Simon Josefsson  <jas@extundo.com>
47949
47950         * tests/test-gc-rijndael.c: New file.
47951
47952         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47953
47954 2005-10-19  Simon Josefsson  <jas@extundo.com>
47955
47956         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47957         interface too.
47958
47959 2005-10-19  Simon Josefsson  <jas@extundo.com>
47960
47961         * tests/test-gc-arcfour.c: New file.
47962
47963         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47964
47965 2005-10-19  Simon Josefsson  <jas@extundo.com>
47966
47967         * modules/gc-md4, modules/gc-md4-tests: New file.
47968
47969         * tests/test-gc-md4.c: New file.
47970
47971 2005-10-19  Simon Josefsson  <jas@extundo.com>
47972
47973         * m4/gc-md4.m4: New file.
47974
47975 2005-10-19  Simon Josefsson  <jas@extundo.com>
47976
47977         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47978         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47979         <kasal@ucw.cz>.
47980
47981 2005-10-19  Simon Josefsson  <jas@extundo.com>
47982
47983         * m4/gc-arcfour.m4: New file.
47984
47985         * m4/gc-rijndael.m4: New file.
47986
47987 2005-10-19  Simon Josefsson  <jas@extundo.com>
47988
47989         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47990
47991 2005-10-19  Simon Josefsson  <jas@extundo.com>
47992
47993         * lib/gc-gnulib.c: Support ARCFOUR.
47994
47995 2005-10-19  Simon Josefsson  <jas@extundo.com>
47996
47997         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47998         support.
47999
48000         * lib/gc.h: Add ECB enum type.
48001
48002         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48003
48004 2005-10-18  Simon Josefsson  <jas@extundo.com>
48005
48006         * tests/test-md5.c: New file.
48007
48008         * modules/md5-tests: New file.
48009
48010 2005-10-18  Simon Josefsson  <jas@extundo.com>
48011
48012         * tests/test-md4.c: New file.
48013
48014         * modules/md4, modules/md4-tests: New files.
48015
48016 2005-10-18  Simon Josefsson  <jas@extundo.com>
48017
48018         * m4/md4.m4: New file.
48019
48020 2005-10-18  Simon Josefsson  <jas@extundo.com>
48021
48022         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48023
48024 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48025
48026         * gnulib-tool (func_create_testdir): Omit the second check whether
48027         BUILT_SOURCES in nonempty.
48028
48029 2005-10-17  Simon Josefsson  <jas@extundo.com>
48030
48031         * tests/test-rijndael.c: New file.
48032
48033 2005-10-17  Simon Josefsson  <jas@extundo.com>
48034
48035         * modules/sha1: Depend on stdint instead of md5.
48036
48037         * modules/md5: Depend on stdint, remove uint32_t.
48038
48039 2005-10-17  Simon Josefsson  <jas@extundo.com>
48040
48041         * modules/gc-sha1-tests: New file.
48042
48043         * tests/test-gc-sha1.c: New file.
48044
48045 2005-10-17  Simon Josefsson  <jas@extundo.com>
48046
48047         * m4/md5.m4: Remove call to uint32_t.m4.
48048
48049 2005-10-17  Simon Josefsson  <jas@extundo.com>
48050
48051         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48052
48053         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48054         md5.h.
48055
48056         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48057
48058         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48059
48060 2005-10-17  Simon Josefsson  <jas@extundo.com>
48061
48062         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48063
48064 2005-10-17  Simon Josefsson  <jas@extundo.com>
48065
48066         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48067
48068 2005-10-17  Simon Josefsson  <jas@extundo.com>
48069
48070         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48071
48072         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48073
48074 2005-10-17  Bruno Haible  <bruno@clisp.org>
48075
48076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48077         that it can also be used in a test.
48078
48079 2005-10-16  Bruno Haible  <bruno@clisp.org>
48080
48081         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48082         TESTS_ENVIRONMENT, so that individual tests can augment it.
48083
48084         * gnulib-tool (func_create_testdir): Use an intermediate target for
48085         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48086         macros, like $(ALLOCA_H), which cannot be passed through the command
48087         line.
48088
48089 2005-10-15  Simon Josefsson  <jas@extundo.com>
48090
48091         * modules/rijndael-tests: New file.
48092
48093         * modules/rijndael: New file.
48094
48095 2005-10-15  Simon Josefsson  <jas@extundo.com>
48096
48097         * m4/rijndael.m4: New file.
48098
48099 2005-10-15  Simon Josefsson  <jas@extundo.com>
48100
48101         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48102
48103         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48104
48105 2005-10-14  Simon Josefsson  <jas@extundo.com>
48106
48107         * tests/test-arcfour.c: New file.
48108
48109         * modules/arcfour, modules/arcfour-tests: New files.
48110
48111 2005-10-14  Simon Josefsson  <jas@extundo.com>
48112
48113         * m4/arcfour.m4: New file.
48114
48115 2005-10-14  Simon Josefsson  <jas@extundo.com>
48116
48117         * lib/arcfour.h, lib/arcfour.c: New files.
48118
48119 2005-10-14  Roland McGrath  <roland@redhat.com>
48120
48121         Import from libc.  [BZ #1331]
48122         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48123         macro argument.
48124         Reported by Matej Vela <vela@debian.org>.
48125
48126 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48127
48128         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48129         include <wchar.h>; no longer needed.
48130
48131 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48132
48133         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48134
48135 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48136         and  Ulrich Drepper  <drepper@redhat.com>
48137
48138         Import from libc.
48139         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48140         instead of inline stream orientation test and two separate
48141         function calls.  Pay no attention to USE_IN_LIBIO.
48142
48143 2005-10-13  Simon Josefsson  <jas@extundo.com>
48144
48145         * modules/gc-hmac-md5-tests: New file.
48146
48147         * tests/test-gc-hmac-sha1.c: New file.
48148
48149         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48150
48151         * modules/gc-hmac-md5-tests: New file.
48152
48153         * tests/test-gc-md5.c: New file.
48154
48155         * modules/gc-md5-tests: New file.
48156
48157 2005-10-13  Simon Josefsson  <jas@extundo.com>
48158
48159         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48160         Move memory allocation outside of loop.
48161
48162 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48163
48164         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48165         intermediate directory is in a read-only file system.  Problem
48166         reported by Eric Blake.
48167
48168 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48169
48170         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48171
48172 2005-10-12  Simon Josefsson  <jas@extundo.com>
48173
48174         * tests/test-hmac-sha1.c: New file.
48175
48176         * modules/hmac-sha1-tests: New file.
48177
48178         * modules/hmac-sha1: New file.
48179
48180 2005-10-12  Simon Josefsson  <jas@extundo.com>
48181
48182         * modules/gc-sha1: New file.
48183
48184 2005-10-12  Simon Josefsson  <jas@extundo.com>
48185
48186         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48187
48188         * tests/test-gc-pbkdf2-sha1.c: New file.
48189
48190 2005-10-12  Simon Josefsson  <jas@extundo.com>
48191
48192         * modules/gc-md5, modules/gc-hmac-md5: New files.
48193
48194         * modules/gc (Files): Remove md5, memxor and hmac files.
48195
48196 2005-10-12  Simon Josefsson  <jas@extundo.com>
48197
48198         * m4/gc-pbkdf2-sha1.m4: New file.
48199
48200         * m4/gc-hmac-sha1.m4: New file.
48201
48202         * m4/gc-sha1: New file.
48203
48204         * m4/hmac-sha1.m4: New file.
48205
48206 2005-10-12  Simon Josefsson  <jas@extundo.com>
48207
48208         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48209
48210         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48211
48212 2005-10-12  Simon Josefsson  <jas@extundo.com>
48213
48214         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48215         suggested by Bruno Haible <bruno@clisp.org>.
48216
48217 2005-10-12  Simon Josefsson  <jas@extundo.com>
48218
48219         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48220
48221 2005-10-12  Simon Josefsson  <jas@extundo.com>
48222
48223         * lib/gc-pbkdf2-sha1.c: New file.
48224
48225         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48226
48227 2005-10-12  Simon Josefsson  <jas@extundo.com>
48228
48229         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48230
48231         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48232
48233 2005-10-12  Simon Josefsson  <jas@extundo.com>
48234
48235         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48236         GC_USE_HMAC_MD5, respectively.
48237
48238         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48239         (gc_md5): Fix typo.
48240
48241         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48242
48243         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48244
48245         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48246
48247 2005-10-12  Bruno Haible  <bruno@clisp.org>
48248
48249         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48250         Reported by Stepan Kasal <kasal@ucw.cz>.
48251
48252 2005-10-11  Simon Josefsson  <jas@extundo.com>
48253
48254         * tests/test-crc.c: New file.
48255
48256         * modules/crc, modules/crc-tests: New files.
48257
48258 2005-10-11  Simon Josefsson  <jas@extundo.com>
48259
48260         * m4/crc.m4: New file.
48261
48262 2005-10-11  Simon Josefsson  <jas@extundo.com>
48263
48264         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48265
48266         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48267
48268         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48269
48270 2005-10-11  Simon Josefsson  <jas@extundo.com>
48271
48272         * lib/crc.h, lib/crc.c: New files.
48273
48274         * lib/gc.h (gc_hash_buffer): Add doc.
48275
48276 2005-10-11  Bruno Haible  <bruno@clisp.org>
48277
48278         * modules/c-strcasestr: New file.
48279         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48280
48281 2005-10-11  Bruno Haible  <bruno@clisp.org>
48282
48283         * modules/c-strcase: New file.
48284         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48285
48286 2005-10-11  Bruno Haible  <bruno@clisp.org>
48287
48288         * lib/strcasecmp.c: Include limits.h.
48289         (strcasecmp): Avoid integer overflow on exotic platforms.
48290         * lib/strncasecmp.c: Include limits.h.
48291         (strncasecmp): Avoid integer overflow on exotic platforms.
48292         Reported by Paul Eggert.
48293
48294 2005-10-11  Bruno Haible  <bruno@clisp.org>
48295
48296         * lib/c-strcasestr.h: New file, from GNU gettext.
48297         * lib/c-strcasestr.c: New file, from GNU gettext.
48298
48299 2005-10-11  Bruno Haible  <bruno@clisp.org>
48300
48301         * lib/c-strcase.h: New file, from GNU gettext.
48302         * lib/c-strcasecmp.c: New file, from GNU gettext.
48303         * lib/c-strncasecmp.c: New file, from GNU gettext.
48304
48305 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         * modules/mempcpy (License): GPL -> LGPL.
48308         * modules/strchrnul (License): Likewise.
48309         * modules/sysexits (License): Likewise.
48310
48311 2005-10-08  Simon Josefsson  <jas@extundo.com>
48312
48313         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48314
48315 2005-10-07  Simon Josefsson  <jas@extundo.com>
48316
48317         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48318
48319 2005-10-06  Simon Josefsson  <jas@extundo.com>
48320
48321         * tests/test-hmac-md5.c: New file.
48322
48323         * modules/hmac-md5-tests: New file.
48324
48325         * modules/hmac-md5: New file.
48326
48327 2005-10-06  Simon Josefsson  <jas@extundo.com>
48328
48329         * m4/hmac-md5.m4: New file.
48330
48331         * m4/memxor.m4: Require gl_C_RESTRICT.
48332
48333 2005-10-06  Simon Josefsson  <jas@extundo.com>
48334
48335         * lib/memxor.c (memxor): Avoid casts and warnings.
48336
48337 2005-10-06  Simon Josefsson  <jas@extundo.com>
48338
48339         * lib/hmac-md5.c: New file.
48340
48341         * lib/hmac.h: New file.
48342
48343 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48344
48345         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48346         promotes to int, not unsigned int, to catch the AIX 5.3
48347         compiler bug.
48348
48349 2005-10-05  Simon Josefsson  <jas@extundo.com>
48350
48351         * modules/memxor: New file.
48352
48353         * modules/iconv (Files): Move config.rpath to havelib, it is used
48354         there.
48355
48356         * modules/havelib (Files): Add config.rpath.
48357
48358 2005-10-05  Simon Josefsson  <jas@extundo.com>
48359
48360         * m4/memxor.m4: New file.
48361
48362 2005-10-05  Simon Josefsson  <jas@extundo.com>
48363
48364         * lib/memxor.c (memxor): Fix compiler error.
48365
48366         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48367         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48368
48369         * lib/memxor.h, lib/memxor.c: New files.
48370
48371         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48372         we assume all systems have it, suggested by Jim Meyering
48373         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48374         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48375         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48376         same reasons.
48377
48378 2005-10-05  Simon Josefsson  <jas@extundo.com>
48379
48380         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48381
48382 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48383
48384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48385         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48386         needed, since the source code now assumes these .h files.
48387
48388 2005-10-05  Derek Price  <derek@ximbiot.com>
48389
48390         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48391
48392 2005-10-05  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/stdint (License): Change to LGPL.
48395
48396 2005-10-04  Simon Josefsson  <jas@extundo.com>
48397
48398         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48399         D. Baushke" <mdb@gnu.org>.
48400
48401 2005-10-04  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/verify.h (verify_true): Provide alternative definition for C++.
48404
48405 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48406
48407         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48408         (SSIZE_MAX): New macro, if not already defined.
48409         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48410         than 2 GiB.
48411
48412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48413
48414         Sync from coreutils.
48415         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48416         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48417         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48418         ULLONG_MAX doesn't work with 2.7.2.1.
48419
48420 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48421
48422         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48423         From Ben Pfaff.
48424
48425         * modules/exclude (Depends-on): Depend on verify.
48426         * modules/strtoimax (Depends-on): Likewise.
48427         * modules/utimecmp (Depends-on): Likewise.
48428
48429 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         * lib/exclude.c: Include verify.h.
48432         (verify): Remove.  All callers changed to use verify.h's version.
48433         * lib/strtoimax.c: Likewise.
48434         * lib/utimecmp.c: Likewis.e
48435
48436         Sync from coreutils.
48437         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48438         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48439         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48440         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48441         bother returning ENOSYS if settimeofday or stime fails; just let
48442         them return whatever errno they want to return.
48443         * lib/utimens.c: Include unistd.h, for dup2.
48444         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48445         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48446
48447 2005-10-02  Jim Meyering  <jim@meyering.net>
48448
48449         Sync from coreutils.
48450         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48451         from glibc-2.2.5 that fails for read-only files.
48452
48453 2005-10-02  Jim Meyering  <jim@meyering.net>
48454
48455         Sync from coreutils.
48456         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48457         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48458         `#if HAVE_CONFIG_H'.
48459         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48460         Remove AT_FDCWD test.
48461         Do not consume the fd unless successful.
48462         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48463         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48464         block, so that we don't even try to compile it if settimeofday is
48465         available.  This works around a compilation failure on OSF1 V5.1,
48466         due to stime requiring a `long int*' while tv_sec is `int'.
48467
48468 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48469
48470         Sync from coreutils.
48471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48472         against `yes', rather than just testing for nonempty.
48473
48474 2005-10-01  Simon Josefsson  <jas@extundo.com>
48475
48476         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48477         and Darwin.
48478
48479         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48480         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48481         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48482         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48483         Check if struct addrinfo is declared.
48484
48485 2005-10-01  Simon Josefsson  <jas@extundo.com>
48486
48487         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48488         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48489         AI_* and EAI_* definitions.  Protect function declarations.
48490
48491 2005-10-01  Jim Meyering  <jim@meyering.net>
48492
48493         Sync from coreutils.
48494
48495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48496         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48497         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48499         in the inet and nsl libraries.  Required on Solaris 5.7.
48500
48501 2005-10-01  Jim Meyering  <jim@meyering.net>
48502
48503         Sync from coreutils.
48504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48505         in the inet and nsl libraries.  Required on Solaris 5.7.
48506
48507 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48508
48509         * lib/getdelim.c (getdelim): Remove unused variables.
48510
48511 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48514         so that the code works even with ancient cpp.  Portability problem
48515         with GCC 2.7.2.1 reported by Thomas M.Ott.
48516
48517 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48518
48519         * modules/regex (Depends-on): Add strcase.
48520
48521         * modules/gethostname (Licence): Change from GPL to LGPL, since
48522         gethostname.c is a trivial implementation of a standard library
48523         function.
48524         * modules/poll (License): Change from GPL to LGPL, since it's
48525         derived from LGPL code.
48526
48527 2005-09-27  Jim Meyering  <jim@meyering.net>
48528
48529         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48530         HAVE_CONFIG_H.
48531
48532         * lib/intprops.h (signed_type_or_expr__): Define.
48533         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48534         for unsigned types.
48535
48536 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48537
48538         * lib/verify.h (verify_expr): Remove, replacing with:
48539         (verify_true): New macro that returns true instead of void.
48540         (verify_type__): Remove.
48541         (verify): Use verify_true rather than verify_type__.
48542
48543 2005-09-26  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48546         is necessary.
48547         (lib_SOURCES): Remove mbchar.c.
48548         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48549         (Files): Add m4/mbrtowc.m4.
48550         * modules/mbiter: Likewise.
48551         * modules/mbuiter: Likewise.
48552
48553 2005-09-26  Bruno Haible  <bruno@clisp.org>
48554
48555         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48556         compile mbchar.c if they are not both present.
48557         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48558         * m4/mbiter.m4 (gl_MBITER): Likewise.
48559         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48560         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48561         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48562
48563 2005-09-25  Jim Meyering  <jim@meyering.net>
48564
48565         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48566         also uses socklen_t.
48567
48568 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48569
48570         * lib/utimens.c (ENOSYS): Define if not already defined.
48571         (futimens): Support having a null PATH if the file descriptor
48572         is nonnegative.
48573
48574         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48575         Remove.
48576         (__attribute): Define to empty unless GCC 3.1 or later.
48577         This works around a core dump on OpenBSD 3.4, which has GCC
48578         2.95.3, which dumps core when given __attribute__(()).  It also
48579         simplifies other tests, since we really don't want to bother with
48580         worrying about which ancient version of GCC supported what.
48581         Original problem reported by Yoann Vandoorselaere, with part of
48582         the fix suggested by Derek Price.
48583
48584 2005-09-24  Jim Meyering  <jim@meyering.net>
48585
48586         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48587         so we can once again use a positive bitfield width of 1 -- now we
48588         don't have to explain why we were using a bitfield width of 2.
48589
48590 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48591
48592         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48593         and similarly for the other external symbols.  Problem reported
48594         by James Gallager.
48595
48596         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48597         bug reported by Jim Meyering.
48598
48599         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48600         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48601         not needed, since socklen is a prerequisite module.
48602
48603 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48606         Problem reported by Eric Blake.
48607         (getaddrinfo): Initialize se so that it's not garbage.
48608         Redo internal storage allocation so that it doesn't make unportable
48609         assumptions about alignment.
48610         Fix a memory leak.
48611
48612         * lib/utimens.c (futimens): Use futimesat if available.
48613         Prefer it to futimes since it doesn't have the futimes bug.
48614
48615         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48616         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48617         Instead, declare a function that returns a pointer to an array,
48618         and use verify_type__ to declare the size of the array.
48619         Problem and germ of a solution reported by Bruno Haible.
48620         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48621         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48622
48623 2005-09-23  Jim Meyering  <jim@meyering.net>
48624
48625         Sync from coreutils.
48626         Correct build failure (socklen_t not defined) on at least
48627         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48628         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48629
48630 2005-09-23  Jim Meyering  <jim@meyering.net>
48631
48632         * modules/getaddrinfo (Depends-on): Add socklen.
48633
48634 2005-09-23  Bruno Haible  <bruno@clisp.org>
48635
48636         * tests/test-verify.c: New file.
48637
48638 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48639
48640         Sync from coreutils.
48641
48642         * modules/argmatch (Depends-on): Add verify.
48643         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48644         unistd-safer.
48645         * modules/save-cwd (Depends-on): Likewise.
48646
48647         * modules/openat (Files): Add lib/openat-die.c.
48648         (Depends-on): Remove error, exitfail.
48649         Add dirname.
48650
48651         * modules/verify: New file.
48652         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48653         with "verify" module.
48654
48655 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48656
48657         Sync from coreutils.
48658
48659         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48660         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48661         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48662         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48663         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48664         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48665         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48666         Don't bother checking for string.h, stdlib.h, unistd.h.
48667         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48668         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48669         module's job.
48670         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48671         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48672
48673         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48674         (gl_GETDATE): Use it.
48675
48676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48677
48678 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48679
48680         Sync from coreutils.
48681
48682         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48683         stat-time.h.
48684         * lib/argmatch.h: Include verify.h
48685         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48686         (ARGMATCH_ASSERT): Remove; unused.
48687         * lib/canonicalize.c: Assume STDC_HEADERS.
48688         * lib/exclude.c: Include "strcase.h".
48689         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48690         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48691         and stdio-safer.h.
48692         (getusershell): Call fopen, not fopen_safer.
48693         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48694         Do not include unistd-safer.h.
48695         (save_cwd): Don't call fd_safer; no longer needed
48696         now that we include fcntl--.h.
48697
48698         * lib/getdate.y (relative_time): New type.
48699         (RELATIVE_TIME_0): New constant.
48700         (parser_control): Use relative_time instead of doing it ourselves.
48701         (%union): Add new relative_time rel member.
48702         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48703         Now typeless.
48704         (relunit, relunit_snumber): Now of type rel.
48705         (zone, rel, relunit, get_date): Adjust to above changes.
48706
48707         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48708         Do not include unistd-safer.h.
48709         (getloadavg): Don't call fd_safer; no longer needed
48710         now that we include fcntl--.h.
48711
48712         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48713         (make_dir_parents): Treat ENOSYS like EEXIST.
48714
48715         Improve quality of diagnostics on restore_cwd failure.
48716         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48717         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48718         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48719         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48720         each time through the loop.  Do not diagnose restore_cwd failure;
48721         that is the caller's job (and perhaps the caller does not care).
48722
48723         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48724         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48725         If the file already exists but is not a directory, don't bother
48726         to try to make its parents.
48727         Close potential file descriptor leak if we can't chdir("/") (!).
48728         Don't always return true if chdir($PWD) fails; return true only
48729         if the requested action was done successfully (except for the
48730         chdir($PWD)).
48731         Don't log final directory unless we actually made it.
48732         Refactor to avoid duplicate code to fix up permissions.
48733         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48734
48735         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48736         to make it a bit faster and (I hope) clearer.
48737         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48738         Fix bug in formats like %2N.
48739
48740         * lib/verify.h: New file.
48741
48742 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48743
48744         Sync from coreutils.
48745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48746
48747 2005-09-22  Jim Meyering  <jim@meyering.net>
48748
48749         Sync from coreutils.
48750
48751         * m4/lstat.m4 (gl_FUNC_LSTAT):
48752         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48753         Remove obsolete comment.
48754         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48755         * m4/xstrtod.m4: Likewise.
48756
48757         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48758
48759 2005-09-22  Jim Meyering  <jim@meyering.net>
48760
48761         Sync from coreutils.
48762
48763         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48764
48765         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48766         the .tm_year member, since otherwise gcc-4.0 would now warn about
48767         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48768
48769         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48770         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48771
48772         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48773         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48774         when run in a time zone for which daylight savings time is in effect
48775         for the starting date.
48776
48777         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48778         stop us from restricting permissions of just-created absolute-named
48779         directories.
48780         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48781         to restore initial working directory.
48782         * lib/mkdir-p.c (make_dir_parents): New parameter:
48783         different_working_dir, to tell caller if/when we change the working
48784         directory and are unable to return to the initial one.
48785         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48786         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48787         `return false'.  This fixes a bug introduced on 2004-07-30.
48788
48789         * lib/openat.c (fdopendir): Be sure to close the supplied
48790         file descriptor before returning.  This makes our replacement
48791         implementation a little closer to Solaris's, where fdopendir
48792         ties the file descriptor to the returned DIR* pointer.
48793         * lib/openat.c (unlinkat): New function.
48794         * lib/openat.h (unlinkat): Add prototype.
48795         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48796         (openat_restore_fail): Rename from openat_restore_die.
48797         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48798
48799         Provide an alternative to exiting immediately upon save_cwd or
48800         restore_cwd failure.  Now, an application can arrange e.g.,
48801         to perform a longjump in that case.
48802         * lib/openat.c: Include dirname.h.
48803         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48804         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48805         and openat_restore_die rather than calling error directly.
48806         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48807
48808         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48809         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48810         define.
48811
48812         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48813         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48814                             int utc, int nanoseconds);
48815         Background:
48816         date should not have to allocate a megabyte of virtual memory to
48817         handle a format argument like +%1048575T.  When implemented with
48818         strftime, it must allocate such a buffer, use strftime to fill it
48819         in, print it, then free it.
48820         With fprintftime, it simply prints everything and exits.
48821         With no need for memory allocation, that's one fewer way to fail.
48822         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48823         optional field width, not before, so we accept %9:z, not %:9z.
48824         (my_strftime): Be sure to use L_('x') for literals.
48825
48826         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48827         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48828         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48829         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48830         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48831         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48832         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48833         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48834         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48835         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48836         * lib/xgethostname.c, lib/xreadlink.c:
48837         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48838
48839         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48840         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48841         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48842         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48843         and don't include <sys/file.h>).
48844
48845 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48846
48847         Sync from coreutils.
48848
48849         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48850         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48851         [!LDAV_DONE]: Avoid unused variable warning.
48852
48853 2005-09-21  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/unicodeio.h (unicode_to_mb): New declaration.
48856
48857 2005-09-20  Derek Price  <derek@ximbiot.com>
48858
48859         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48860         getaddrinfo.h.
48861
48862 2005-09-20  Bruno Haible  <bruno@clisp.org>
48863
48864         * gnulib-tool: Remove trailing slashes from the values specified for
48865         --source-base, --m4-base, --tests-base, --aux-dir.
48866         Suggested by Simon Josefsson <jas@extundo.com>.
48867
48868 2005-09-20  Bruno Haible  <bruno@clisp.org>
48869
48870         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48871         func_modules_to_filelist, func_import, func_create_testdir): Make all
48872         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48873         change when gnulib-tool is invoked in a different locale.
48874
48875 2005-09-19  Simon Josefsson  <jas@extundo.com>
48876
48877         * m4/socklen.m4: Fix typo.
48878
48879 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48880
48881         Use a consistent style for including <config.h>.
48882         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48883         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48884         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48885         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48886         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48887         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48888         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48889         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48890         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48891         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48892         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48893         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48894         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48895         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48896         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48897         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48898         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48899         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48900         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48901         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48902         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48903         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48904         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48905         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48906         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48907         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48908         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48909         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48910         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48911         lib/xstrtoumax.c, lib/yesno.c:
48912         Standardize inclusion of config.h.
48913         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48914         lib/inttostr.h:  Removed inclusion of config.h from header files.
48915         * lib/inttostr.c:  Adjusted in-tree users.
48916         * lib/timespec.h: Remove superfluous warning to include config.h.
48917         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48918         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48919         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48920         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48921         config.h with HAVE_CONFIG_H.
48922
48923 2005-09-19  Jim Meyering  <jim@meyering.net>
48924
48925         * modules/pathmax (License): Change to LGPL.
48926
48927 2005-09-19  Derek Price  <derek@ximbiot.com>
48928
48929         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48930
48931 2005-09-19  Bruno Haible  <bruno@clisp.org>
48932
48933         * gnulib-tool (import): Provide default for --tests-base.
48934
48935 2005-09-19  Bruno Haible  <bruno@clisp.org>
48936
48937         * doc/quote.texi: New file, extracted from gnulib.texi.
48938         * doc/ctime.texi: New file, extracted from gnulib.texi.
48939         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48940         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48941         * doc/gnulib.texi: Include them.
48942
48943 2005-09-18  Bruno Haible  <bruno@clisp.org>
48944
48945         Portability fix.
48946         * gnulib-tool (func_readlink): New function.
48947         (func_ln_if_changed): Use it.
48948
48949 2005-09-18  Bruno Haible  <bruno@clisp.org>
48950
48951         * gnulib-tool: Support --with-tests also with --import.
48952         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48953         (func_import): Use variables $testsbase and $inctests. Emit a
48954         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48955         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48956         SUBDIRS += $testsdir.
48957         (func_create_testdir): Update.
48958
48959 2005-09-18  Bruno Haible  <bruno@clisp.org>
48960
48961         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48962         instead of $dry_run.
48963         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48964         (func_ln_if_changed): Don't handle dry-run here.
48965         (func_import): In dry-run mode, detect more precisely which actions
48966         would be performed, and don't use "...ing" verbs.
48967
48968 2005-09-18  Bruno Haible  <bruno@clisp.org>
48969
48970         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48971         (func_import): Use join on two temporary files instead of three nested
48972         loops, in order to determine which files are new or old.
48973
48974 2005-09-18  Bruno Haible  <bruno@clisp.org>
48975
48976         * gnulib-tool (func_import): Comment out code that spits out the
48977         new files with --dry-run.
48978
48979 2005-09-18  Bruno Haible  <bruno@clisp.org>
48980
48981         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48982
48983 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48984
48985         * lib/stat-time.h: New file.
48986         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48987         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48988         in a different way.
48989         (timespec_cmp): New function.
48990         * lib/utimecmp.c: Include stat-time.h.
48991         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48992         members exist, not on the obsolescent ST_MTIM_NSEC.
48993         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48994
48995 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48996
48997         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48998
48999 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49000
49001         * MODULES.html.sh (File system functions): Add stat-time.
49002         * modules/stat-time: New file.
49003         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49004         is now done in a different way, by the stat-time module.
49005         * modules/utimecmp (Depends-on): Add stat-time.
49006
49007 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49008
49009         * m4/st_mtim.m4: Remove.  Superseded by...
49010         * m4/stat-time.m4: New file.
49011         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49012         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49013
49014 2005-09-15  Derek Price  <derek@ximbiot.com>
49015
49016         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49017
49018 2005-09-15  Derek Price  <derek@ximbiot.com>
49019
49020         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49021         * lib/regex_internal.c: Ditto, using this...
49022         (__GNUC_PREREQ): ...new macro.
49023         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49024         using...
49025         (__GNUC_PREREQ): ...this new macro.
49026
49027         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49028
49029 2005-09-15  Derek Price  <derek@ximbiot.com>
49030             Paul Eggert  <eggert@cs.ucla.edu>
49031
49032         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49033         changes, consolidating in...
49034         * lib/regex_internal.h: ...this file.
49035
49036 2005-09-13  Jim Meyering  <jim@meyering.net>
49037
49038         * lib/canon-host.c: Filter through gnu indent and reword comments
49039         slightly.
49040         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49041
49042 2005-09-13  Derek Price  <derek@ximbiot.com>
49043
49044         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49045         failure.
49046         Reported by Jim Meyering  <jim@meyering.net>.
49047
49048 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49049
49050         * lib/base64.c: Typo.
49051         (base64_encode): Put b64str in initialized data section.
49052
49053 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49054
49055         Merge glibc and coreutils changes into gnulib, plus a few
49056         extra fixes.
49057         * lib/md5.c: Use #error rather than a string.
49058         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49059         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49060         (__attribute__): Define to empty for non recent-GCC.
49061         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49062         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49063         Renamed from their non-__ counterparts, with new macros replacing
49064         them if not _LIBC.  Add __THROW attribute.
49065         (rol): Remove.
49066         (struct md5_ctx): Align buffer if using GCC.
49067         * lib/sha1.h (struct sha1_ctx): Likewise.
49068         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49069         The old name was backwards.
49070         (NOTSWAP): Remove; not used.
49071         (rol): New macro, moved here from md5.h.
49072         (sha1_process_block): Remove a FIXME that doesn't make sense.
49073
49074 2005-09-12  Derek Price  <derek@ximbiot.com>
49075
49076         Return usable errors from canon-host.
49077         * lib/canon-host.h: New file.
49078         * lib/canon-host.c (canon_host): Wrap...
49079         (canon_host_r): ...this new function, which now relies exclusively on
49080         getaddrinfo.
49081         (ch_strerror): New function.
49082         (last_cherror): New global.
49083         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49084         interface.
49085         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49086         void *.
49087         (freeaddrinfo): Free ai->ai_canonname when set.
49088
49089 2005-09-12  Derek Price  <derek@ximbiot.com>
49090
49091         Make canon-host require getaddrinfo.
49092         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49093         AC_LIBSOURCE canon-host.h.  Call...
49094         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49095         gl_GETADDRINFO.
49096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49097
49098 2005-09-12  Derek Price  <derek@ximbiot.com>
49099
49100         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49101         LGPL.
49102         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49103
49104 2005-09-12  Derek Price  <derek@ximbiot.com>
49105
49106         * lib/gai_strerror.c: Include config.h when available.  Include
49107         getaddrinfo.h before other headers to test interface.
49108         Reported by Larry Jones <lawrence.jones@ugs.com>.
49109
49110 2005-09-12  Derek Price  <derek@ximbiot.com>
49111             Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * modules/glob (Files): Add glob-libc.h.
49114
49115 2005-09-12  Derek Price  <derek@ximbiot.com>
49116             Paul Eggert  <eggert@cs.ucla.edu>
49117
49118         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49119         glob_.h, glob-libc.h.
49120         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49121
49122 2005-09-12  Derek Price  <derek@ximbiot.com>
49123             Paul Eggert  <eggert@cs.ucla.edu>
49124
49125         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49126         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49127         protecting things that should be done only in gnulib contexts.
49128         * lib/glob_.h: New file, containing only the glob things needed for
49129         gnulib.
49130         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49131         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49132         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49133         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49134         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49135         and to respect the namespace rules better.
49136
49137 2005-09-08  Simon Josefsson  <jas@extundo.com>
49138
49139         * modules/socklen: New file.
49140
49141 2005-09-08  Simon Josefsson  <jas@extundo.com>
49142
49143         * m4/socklen.m4: New file.
49144
49145 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * modules/utimens (Files): Add m4/utimbuf.m4, since
49148         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49149         Reported by Sergey Poznyakoff.
49150
49151 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49152
49153         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49154         definitions, since that's the preferred style in glibc.
49155         Fix a minor spacing issue, and update copyright notice to match
49156         glibc's.
49157
49158 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49159
49160         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49161
49162 2005-09-06  Simon Josefsson  <jas@extundo.com>
49163
49164         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49165         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49166
49167 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49168
49169         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49170         warning.
49171
49172 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49173
49174         * config/srclist.txt: Add glibc bug 1302.
49175
49176 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         Change bitset word type from unsigned int to unsigned long int,
49179         as this has better performance on typical 64-bit hosts.
49180         Port bitset code to hosts with unusual word sizes.
49181         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49182         (build_collating_symbol):
49183         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49184         argument is a bitset.  This is merely a style issue, but it makes
49185         it clearer that an entire array is expected.
49186         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49187         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49188         Port to the case where bitset_word is not the same as unsigned int.
49189         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49190         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49191         Likewise.
49192         * lib/regexec.c (check_dst_limits_calc_pos_1,
49193         check_subexp_matching_top):
49194         (build_trtable, group_nodes_into_DFAstates):
49195         Likewise.
49196         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49197         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49198         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49199         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49200         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49201         * lib/regcomp.c (optimize_subexps, lower_subexp):
49202         Work even if bitset_word has holes in its bitwise representation.
49203         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49204         * lib/regexec.c (check_dst_limits_calc_pos_1,
49205         check_subexp_matching_top):
49206         Likewise.
49207         * lib/regex_internal.c (re_string_reconstruct):
49208         Don't assume UCHAR_MAX == 255.
49209         * lib/regex_internal.h (bitset_set_all): Likewise.
49210         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49211         All uses changed.
49212         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49213         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49214         All uses changed.
49215         (BITSET_WORD_MAX): New macro.
49216         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49217         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49218         (bitset_empty, bitset_copy):
49219         Prefer sizeof (bitset) to multiplying it out ourselves.
49220         (bitset_not_merge): Remove; unused.
49221         (bitset_contain): Return bool, not unsigned int with one bit on.
49222         All callers changed.
49223         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49224         alignment than re_node_set; do this by defining a new internal
49225         type struct dests_alloc and using it to allocate memory.
49226
49227 2005-09-05  Bruno Haible  <bruno@clisp.org>
49228
49229         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49230         links.
49231
49232 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49233
49234         * modules/size_max (Makefile.am): Add size_max.h
49235
49236 2005-09-04  Derek Price  <derek@ximbiot.com>
49237
49238         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49239
49240 2005-09-03  Simon Josefsson  <jas@extundo.com>
49241
49242         * gnulib-tool: Fix typo.
49243
49244 2005-09-03  Simon Josefsson  <jas@extundo.com>
49245
49246         * config/srclist.txt: Add glibc bug 1293.
49247
49248 2005-09-03  Derek Price  <derek@ximbiot.com>
49249
49250         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49251         From Larry Jones <lawrence.jones@ugs.com>.
49252
49253 2005-09-02  Simon Josefsson  <jas@extundo.com>
49254
49255         * modules/socklen: New file.
49256
49257 2005-09-02  Simon Josefsson  <jas@extundo.com>
49258
49259         * modules/havelib: New module.
49260
49261         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49262         Use havelib.
49263
49264 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49265
49266         Check for arithmetic overflow when calculating sizes, to prevent
49267         some buffer-overflow issues.  These patches are conservative, in the
49268         sense that when I couldn't determine whether an overflow was possible,
49269         I inserted a run-time check.
49270         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49271         macros.
49272         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49273         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49274         (re_xnrealloc, re_x2nrealloc): New inline functions.
49275         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49276         parse_bracket_exp):
49277         (build_equiv_class, build_charclass): Check for arithmetic overflow
49278         in size expression calculations.
49279         * lib/regex_internal.c (re_string_realloc_buffers):
49280         (build_wcs_upper_buffer, re_node_set_add_intersect):
49281         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49282         (re_dfa_add_node, register_state): Likewise.
49283         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49284         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49285         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49286         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49287
49288 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49289
49290         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49291         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49292
49293 2005-09-02  Bruno Haible  <bruno@clisp.org>
49294
49295         Support for lib vs. lib64 distinction on biarch platforms.
49296         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49297         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49298         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49299
49300 2005-09-02  Bruno Haible  <bruno@clisp.org>
49301
49302         * gnulib-tool (import): In the other first-use case, provide defaults
49303         as well.
49304
49305 2005-09-02  Bruno Haible  <bruno@clisp.org>
49306
49307         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49308         patches not yet found in the latest gettext release.
49309
49310 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49311
49312         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49313         to avoid a collision with bits/local_lim.h in glibc.
49314         All uses changed.  Problem reported by Dmitry V. Levin in
49315         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49316
49317         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49318         bugs in int versus size_t comparisons.
49319         (re_string_context_at): Fix bug where the code assumed that
49320         Idx is signed.
49321
49322         Use bool where appropriate.
49323         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49324         All callers changed.
49325         (calc_eclosure_iter): Likewise, for ROOT arg.
49326         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49327         (build_charclass_op): Likewise, for NON_MATCH arg.
49328         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49329         (re_string_construct_common): Likewise, for ICASE arg.
49330         * lib/regexec.c (re_search_2_stub, re_search_stub):
49331         Likewise, for RET_LEN arg.
49332         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49333         (set_regs): Likewise, for FL_BACKTRACK arg.
49334         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49335         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49336         (calc_eclosure_iter, parse_bracket_exp):
49337         Use bool for internal variables that are booleans.
49338         * lib/regexec.c (re_search_internal, check_matching,
49339         proceed_next_node):
49340         (set_regs, build_sifted_states, sift_states_bkref):
49341         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49342         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49343         (find_collation_sequence_value):
49344         Likewise.
49345         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49346         (re_node_set_compare):
49347         Return bool, not int. All callers changed.
49348         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49349         (build_trtable, check_node_accept): Likewise.
49350         * lib/regex_internal.h: Include stdbool.h.
49351
49352         Fix bugs uncovered when converting to bool.
49353         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49354         failure instead of charging ahead blindly.
49355         * lib/regex_internal.c (register_state): Likewise.
49356         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49357         for freeing internal storage.
49358         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49359         bitset pieces used as boolean, to avoid undefined behavior
49360         on hosts that do int overflow checking.
49361
49362 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49363
49364         * config/srclist.txt: Add glibc bugs 1285-1287.
49365
49366 2005-09-01  Jim Meyering  <jim@meyering.net>
49367
49368         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49369         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49370         Require gl_STAT_MACROS, too.
49371
49372 2005-09-01  Bruno Haible  <bruno@clisp.org>
49373
49374         * gnulib-tool (import): In the first-use case, provide defaults.
49375
49376 2005-09-01  Bruno Haible  <bruno@clisp.org>
49377
49378         * gnulib-tool (func_import): Remove the .tmp files.
49379
49380 2005-09-01  Bruno Haible  <bruno@clisp.org>
49381
49382         * gnulib-tool (func_import): Fix handling of symbolic links.
49383
49384 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49385
49386         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49387         old glibc regex code mishandles strings longer than 2**31 bytes.
49388         This patch fixes this when the regex code is used in gnulib
49389         (i.e., outside glibc).
49390
49391         This patch should not affect the use of the regex code inside
49392         glibc.  No doubt this problem also needs to be handled for glibc
49393         as well, but the result will be an incompatible change to the
49394         glibc ABI, and the old ABI will have to be supported too.  That
49395         can be the the subject for another patch.
49396
49397         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49398         governing whether the rest of this patch is active.  By default,
49399         the macro is disabled and the patch has no effect.
49400         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49401         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49402         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49403         (re_match_2, re_set_registers): Use the new types.
49404         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49405         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49406         New macros.
49407         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49408         (re_string_context_at, bin_tree_t, re_dfastate_t):
49409         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49410         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49411         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49412         (re_string_char_size_at, re_string_wchar_at):
49413         (re_string_elem_size_at):
49414         Use the new types and macros to port to 64-bit hosts.
49415         Use unsigned types for internal values, so that the code
49416         mostly works even for arrays larger than SSIZE_MAX.
49417         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49418         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49419         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49420         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49421         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49422         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49423         (calc_inveclosure, parse_dup_op, build_range_exp):
49424         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49425         (fetch_number, create_token_tree, mark_opt_subexp):
49426         Likewise.
49427         * lib/regex_internal.c (re_string_construct_common,
49428         create_ci_newstate):
49429         (create_cd_newstate, re_string_allocate, re_string_construct):
49430         (re_string_realloc_buffers, build_wcs_upper_buffer):
49431         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49432         (re_string_reconstruct, re_string_peek_byte_case):
49433         (re_string_fetch_byte_case, re_string_context_at):
49434         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49435         (re_node_set_init_copy, re_node_set_add_intersect):
49436         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49437         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49438         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49439         (re_acquire_state, re_acquire_state_context, register_state):
49440         Likewise.
49441         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49442         search_cur_bkref_entry):
49443         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49444         (re_search_internal, re_search_2_stub, re_search_stub)
49445         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49446         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49447         (update_cur_sifted_state, check_dst_limits):
49448         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49449         (check_subexp_limits, sift_states_bkref, merge_state_array):
49450         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49451         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49452         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49453         (expand_bkref_cache, check_node_accept_bytes):
49454         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49455         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49456         (acquire_init_state_context, check_halt_node_context):
49457         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49458         (sift_states_backward, clean_state_log_if_needed):
49459         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49460         (find_recover_state, transit_state_sb, transit_state_mb):
49461         (transit_state_bkref, build_trtable, match_ctx_clean):
49462         Likewise.
49463         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49464         to work around an assumption that REG_MISSING is negative.
49465
49466         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49467         (seek_collating_symbol_entry) [defined _LIBC]:
49468         (lookup_collation_sequence_value) [defined _LIBC]:
49469         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49470         Use prototypes rather than old-style function definitions.
49471         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49472         (transit_state_sb) [0]:
49473         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49474
49475         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49476         rm_eo.
49477
49478         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49479         (optimize_subexps, lower_subexp):
49480         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49481         since the signed shift might overflow.  Use 1u<<31 instead.
49482         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49483         Likewise.
49484         * lib/regexec.c (check_dst_limits_calc_pos_1,
49485         check_subexp_matching_top): Likewise.
49486
49487         * lib/regcomp.c (optimize_subexps, lower_subexp):
49488         Use CHAR_BIT rather than 8, for clarity.
49489         * lib/regexec.c (check_dst_limits_calc_pos_1):
49490         (check_subexp_matching_top): Likewise.
49491         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49492         have to worry about portability issues when shifting it left.
49493         Remove no-longer-needed test for table_size > 0.
49494         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49495         in a word, as the resulting behavior is undefined.
49496         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49497         in one case, a <= should have been an <, and in another case the
49498         whole test was missing.
49499         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49500         the standard name CHAR_BIT.
49501         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49502         this is not true on one's complement and signed-magnitude hosts.
49503
49504         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49505         next_last_offset.
49506         (struct re_dfa_t): Remove unused member states_alloc.
49507         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49508
49509 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49510
49511         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49512         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49513         and large-file glibc and in 32-bit large-file Solaris.
49514
49515 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49516
49517         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49518         lengths fit in regoff_t; this isn't true if regoff_t is the same
49519         width as size_t.
49520         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49521         (= START + RANGE) instead of RANGE.  This avoids overflow
49522         problems when regoff_t is the same width as size_t.
49523         All callers changed.
49524         (re_search_2_stub): Check for overflow when adding the
49525         sizes of the two strings.
49526         (re_search_stub): Check for overflow when adding START
49527         to RANGE; if it occurs, substitute the extreme value.
49528
49529 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49532
49533 2005-08-31  Jim Meyering  <jim@meyering.net>
49534
49535         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49536         a pointer-to-const.
49537         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49538         (register_state): Likewise.
49539         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49540         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49541         (group_nodes_into_DFAstates): Likewise.
49542
49543 2005-08-31  Jim Meyering  <jim@meyering.net>
49544
49545         * check-module: Add a FIXME comment.
49546
49547 2005-08-31  Eric Blake  <ebb9@byu.net>
49548
49549         * modules/unistd-safer (Files): Add unistd--.h.
49550         * modules/stdio-safer (Files): Add stdio--.h.
49551
49552 2005-08-31  Derek Price  <derek@ximbiot.com>
49553
49554         * lib/getdelim.c (getdelim): Return EOF on EOF.
49555         Reported by Larry Jones <lawrence.jones@ugs.com>.
49556
49557 2005-08-31  Bruno Haible  <bruno@clisp.org>
49558
49559         Avoid unnecessary diffs in the generated lib/Makefile.am.
49560         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49561         the generated files.
49562         (func_import): Don't set cmd.
49563
49564 2005-08-31  Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/strstr.c: Include <stddef.h>, for NULL.
49567         * lib/strcasestr.c: Likewise.
49568         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49569
49570 2005-08-31  Bruno Haible  <bruno@clisp.org>
49571
49572         * gnulib-tool: New option --macro-prefix.
49573         (func_import): Use macro_prefix.
49574         (import): Handle option --macro-prefix.
49575
49576 2005-08-31  Bruno Haible  <bruno@clisp.org>
49577
49578         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49579         Also use new variables cached_lgpl, cached_libtool.
49580
49581 2005-08-31  Bruno Haible  <bruno@clisp.org>
49582
49583         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49584         always instantiating them.
49585
49586 2005-08-31  Bruno Haible  <bruno@clisp.org>
49587
49588         * gnulib-tool (func_import): Read the previous cached settings
49589         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49590         earlier added by gnulib but are now dropped. Warn when a gnulib file
49591         overwrites a non-gnulib file.
49592
49593 2005-08-31  Bruno Haible  <bruno@clisp.org>
49594
49595         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49596         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49597         projects that don't keep autogenerated files in CVS. Put into
49598         actioncmd only the specified modules, not the transitive closure.
49599
49600 2005-08-31  Bruno Haible  <bruno@clisp.org>
49601
49602         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49603         Create directories that shall be filled.
49604         (import): Don't look for gl_* macros in configure.ac. Recurse across
49605         all directories containing a gnulib-cache.m4 files, if meaningful.
49606
49607 2005-08-31  Bruno Haible  <bruno@clisp.org>
49608
49609         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49610         (import): Set seen_libtool when we see gl_LIBTOOL.
49611
49612 2005-08-31  Bruno Haible  <bruno@clisp.org>
49613
49614         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49615         declaration macro definitions from generated gnulib.m4.
49616
49617 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49618
49619         * lib/iconvme.h: Add prototype for iconv_alloc.
49620
49621 2005-08-29  Simon Josefsson  <jas@extundo.com>
49622
49623         * lib/iconvme.c: Fix errno.
49624
49625 2005-08-29  Bruno Haible  <bruno@clisp.org>
49626
49627         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49628         that it works when the directory contains spaces.
49629
49630 2005-08-29  Bruno Haible  <bruno@clisp.org>
49631
49632         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49633
49634 2005-08-29  Bruno Haible  <bruno@clisp.org>
49635
49636         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49637         Emit more advice.
49638
49639 2005-08-29  Bruno Haible  <bruno@clisp.org>
49640         and Stepan Kasal  <kasal@ucw.cz>
49641
49642         * check-module: If more parameters are given, check each of them
49643         separately; add more exceptions, as noted by Jim Meyering.
49644         (check_module): New procedure.
49645         (%exempt_header): Now contains all exceptions.
49646
49647 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49648
49649         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49650
49651 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49652
49653         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49654
49655 2005-08-28  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/gnulib-tool.m4: New file.
49658
49659 2005-08-27  Jim Meyering  <jim@meyering.net>
49660
49661         * modules/unistd-safer (Files): Add pipe-safer.c.
49662         * modules/fcntl-safer (Files): Add creat-safer.c.
49663
49664 2005-08-27  Jim Meyering  <jim@meyering.net>
49665
49666         * m4/stdlib-safer.m4: New file.  From coreutils.
49667         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49669         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49670         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49671         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49672
49673 2005-08-27  Jim Meyering  <jim@meyering.net>
49674
49675         * lib/fopen-safer.c: Merge minor changes from coreutils.
49676         * lib/dup-safer.c: Likewise.
49677         * lib/fd-safer.c: Likewise.
49678
49679         Merge from coreutils.
49680         * lib/stdio--.h: New file.
49681         * lib/stdlib--.h: New file.
49682         * lib/mkstemp-safer.c: New file.
49683
49684         GNU tar needs these.
49685         * lib/pipe-safer.c: New file.
49686         * lib/creat-safer.c: New file.
49687         * lib/fcntl--.h (creat): Define to creat_safer.
49688         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49689         * lib/unistd--.h (pipe): Define to pipe_safer.
49690         * lib/unistd-safer.h: Declare pipe_safer.
49691
49692 2005-08-26  Simon Josefsson  <jas@extundo.com>
49693
49694         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49695         Haible <bruno@clisp.org>.
49696
49697 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49698
49699         * lib/regex_internal.h: Remove all references to
49700         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49701         or better.
49702         (bitset_not, bitset_merge, bitset_not_merge):
49703         (bitset_mask, re_string_allocate, re_string_construct):
49704         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49705         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49706         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49707         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49708         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49709         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49710         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49711         (re_acquire_state_context):
49712         Remove unnecessary forward decls.
49713         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49714         Put __attribute at function definition,
49715         now that the function decl has been removed.
49716         * lib/regex_internal.c (re_string_peek_byte_case):
49717         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49718         Likewise.
49719
49720 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49721
49722         * m4/regex.m4: Add AC_PREREQ(2.50).
49723         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49724
49725 2005-08-25  Simon Josefsson  <jas@extundo.com>
49726
49727         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49728         __fsetlocking.
49729
49730 2005-08-25  Simon Josefsson  <jas@extundo.com>
49731
49732         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49733         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49734         GLIBC specific code.
49735
49736 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         Make regex safe for g++.  This fixes one real bug (an "err"
49739         that should have been "*err").  g++ problem reported by
49740         Sam Steingold.
49741         * lib/regex_internal.h (re_calloc): New macro, consistent with
49742         re_malloc etc.  All callers of calloc changed to use re_calloc.
49743         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49744         not int.  All callers changed.
49745         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49746         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49747         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49748         (find_recover_state): Change "err" to "*err"; this fixes what
49749         appears to be a real bug.
49750         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49751         versus int.
49752
49753 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49754
49755         * modules/regex (Depends-on): Add malloc, since the code
49756         assumes that !malloc(0) means failure.
49757
49758 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49761
49762         alloca modernization/simplification for regex.
49763         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49764         needs to be at the start of the file, and can be moved into
49765         regex_internal.h and simplified.
49766         * lib/regex_internal.h: Include <alloca.h>.
49767         (__libc_use_alloca) [!defined _LIBC]: New macro.
49768         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49769         now works outside glibc.
49770
49771 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49772
49773         * config/srclist.txt: Add glibc bugs 1241, 1245.
49774
49775 2005-08-25  Jim Meyering  <jim@meyering.net>
49776
49777         * lib/open-safer.c: Include <config.h>.
49778         Otherwise, we'd lose LARGEFILE support in any file using
49779         e.g. "fcntl--.h"
49780
49781 2005-08-25  Bruno Haible  <bruno@clisp.org>
49782
49783         * m4/minmax.m4: Require autoconf 2.52.
49784         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49785         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49786         alternatives of translit over the alphabet.
49787         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49788
49789 2005-08-24  Simon Josefsson  <jas@extundo.com>
49790
49791         * tests/test-getpass.c: New file.
49792
49793 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49794
49795         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49796         for GNU regex features.
49797
49798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49801         * lib/regex.h (regerror): Likewise.
49802
49803         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49804         requires this.  (The code never needed it.)
49805
49806         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49807         All uses of recently-renamed identifiers changed to use the new,
49808         POSIX-compliant names.  The code will build and run just fine
49809         without these changes, but it's better to eat our own dog food
49810         and use the standard-conforming names.
49811
49812         * lib/regex.h: Fix a multitude of POSIX name space violations.
49813         These changes have an effect only for programs that define
49814         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49815         do not change anything for programs compiled in the normal way.
49816         Also, there is no effect on the ABI.
49817
49818         (_REGEX_SOURCE): New macro.
49819         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49820         defined and _GNU_SOURCE is not; this fixes a name space violation.
49821
49822         Rename the following macros to obey POSIX requirements.
49823         The old names are still visible as macros if _REGEX_SOURCE is defined.
49824         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49825         RE_BACKSLASH_ESCAPE_IN_LISTS.
49826         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49827         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49828         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49829         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49830         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49831         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49832         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49833         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49834         (REG_INTERVALS): renamed from RE_INTERVALS.
49835         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49836         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49837         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49838         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49839         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49840         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49841         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49842         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49843         RE_UNMATCHED_RIGHT_PAREN_ORD.
49844         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49845         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49846         (REG_DEBUG): renamed from RE_DEBUG.
49847         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49848         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49849         unusual, since we can't clash with the POSIX REG_ICASE.
49850         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49851         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49852         (REG_NO_SUB): renamed from RE_NO_SUB.
49853         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49854         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49855         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49856         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49857         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49858         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49859         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49860         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49861         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49862         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49863         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49864         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49865         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49866         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49867         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49868         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49869         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49870         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49871         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49872         (REG_FIXED): Renamed from REGS_FIXED.
49873         (REG_NREGS): Renamed from RE_NREGS.
49874
49875         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49876         of other REG_* macros, since POSIX says the user is allowed to
49877         #undef these macros selectively.
49878
49879         (reg_errcode_t): Update comment stating what other tables need
49880         to be consistent.
49881
49882         Rename the following enum values to obey POSIX requirements.
49883         The old names are still visible as macros.
49884         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49885         is not defined, since GNU is supposed to be a superset of POSIX as
49886         much as possible, and since we want reg_errcode_t to be a signed
49887         type for implementation consistency.
49888         (_REG_NOERROR): Renamed from REG_NOERROR.
49889         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49890         (_REG_BADPAT): Renamed from REG_BADPAT.
49891         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49892         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49893         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49894         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49895         (_REG_EBRACK): Renamed from REG_EBRACK.
49896         (_REG_EPAREN): Renamed from REG_EPAREN.
49897         (_REG_EBRACE): Renamed from REG_EBRACE.
49898         (_REG_BADBR): Renamed from REG_BADBR.
49899         (_REG_ERANGE): Renamed from REG_ERANGE.
49900         (_REG_ESPACE): Renamed from REG_ESPACE.
49901         (_REG_BADRPT): Renamed from REG_BADRPT.
49902         (_REG_EEND): Renamed from REG_EEND.
49903         (_REG_ESIZE): Renamed from REG_ESIZE.
49904         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49905         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49906         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49907         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49908         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49909
49910         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49911         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49912         changed.  But support the old name if the new one is not defined
49913         and if _REGEX_SOURCE.
49914
49915         Change the following member names in struct re_pattern_buffer.
49916         The old names are still supported if !_REGEX_SOURCE.
49917         The new names are always supported, regardless of _REGEX_SOURCE.
49918         (re_buffer): Renamed from buffer.
49919         (re_allocated): Renamed from allocated.
49920         (re_used): Renamed from used.
49921         (re_syntax): Renamed from syntax.
49922         (re_fastmap): Renamed from fastmap.
49923         (re_translate): Renamed from translate.
49924         (re_can_be_null): Renamed from can_be_null.
49925         (re_regs_allocated): Renamed from regs_allocated.
49926         (re_fastmap_accurate): Renamed from fastmap_accurate.
49927         (re_no_sub): Renamed from no_sub.
49928         (re_not_bol): Renamed from not_bol.
49929         (re_not_eol): Renamed from not_eol.
49930         (re_newline_anchor): Renamed from newline_anchor.
49931
49932         Change the following member names in struct re_registers.
49933         The old names are still supported if !_REGEX_SOURCE.
49934         The new names are always supported, regardless of _REGEX_SOURCE.
49935         (rm_num_regs): Renamed from num_regs.
49936         (rm_start): Renamed from start.
49937         (rm_end): Renamed from end.
49938
49939         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49940         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49941         Prepend __ to parameter names.
49942
49943         Undo yesterday's changes.
49944
49945 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49946
49947         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49948         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49949         lib/regex.c.
49950
49951 2005-08-24  Jim Meyering  <jim@meyering.net>
49952
49953         Sync from coreutils.
49954         * m4/fcntl-safer.m4: New file.
49955
49956         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49957         and object files for this module.
49958
49959 2005-08-24  Jim Meyering  <jim@meyering.net>
49960
49961         Sync from coreutils.
49962         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49963
49964 2005-08-24  Jim Meyering  <jim@meyering.net>
49965
49966         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49967         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49968
49969 2005-08-24  Jim Meyering  <jim@meyering.net>
49970
49971         * modules/fcntl-safer: New module.
49972         * modules/fts (Depends-on): Add fcntl-safer.
49973         * MODULES.html.sh (File descriptor based Input/Output):
49974         Add fcntl-safer.
49975
49976 2005-08-24  Bruno Haible  <bruno@clisp.org>
49977
49978         Support for unit test modules.
49979         * modules/README: Mention tests modules.
49980         * modules/TEMPLATE-TESTS: New file.
49981         * gnulib-tool: New options --extract-tests-module, --with-tests and
49982         --tests-base (unused for the moment).
49983         (testsbase, inctests): New variables.
49984         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49985         (func_verify_module): Exclude TEMPLATE-TESTS.
49986         (func_verify_nontests_module, func_verify_tests_module): New functions.
49987         (func_get_dependencies): Add implicit dependency for tests modules.
49988         (func_get_tests_module): New function.
49989         (func_modules_transitive_closure): When --with-tests was specified,
49990         include the unit tests as well, unless explicitly avoided.
49991         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49992         (func_emit_tests_Makefile_am): New function.
49993         (func_create_testdir): When --with-tests was specified, emit a
49994         tests/ directory.
49995         * MODULES.html.sh (Future developments): Update.
49996
49997 2005-08-24  Bruno Haible  <bruno@clisp.org>
49998
49999         * modules/tls-tests: New file.
50000         * tests/test-tls.c: New file, from GNU gettext.
50001
50002 2005-08-24  Bruno Haible  <bruno@clisp.org>
50003
50004         * modules/lock-tests: New file.
50005         * tests/test-lock.c: New file, from GNU gettext.
50006
50007 2005-08-24  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/lock.h: Add multiple inclusion guard.
50010         * lib/tls.h: Add multiple inclusion guard.
50011
50012 2005-08-24  Bruno Haible  <bruno@clisp.org>
50013
50014         * gnulib-tool: Add support for the --aux-dir option to
50015         --create-testdir, --create-megatestdir, --test, --megatest.
50016         (func_create_testdir, func_create_megatestdir): Optionally emit a
50017         AC_CONFIG_AUX_DIR directive.
50018         (create-testdir, create-megatestdir, test, megatest): Provide a
50019         default value for $auxdir.
50020
50021 2005-08-24  Bruno Haible  <bruno@clisp.org>
50022
50023         * gnulib-tool (import): Use compound statement instead of subshell
50024         where possible.
50025
50026 2005-08-24  Bruno Haible  <bruno@clisp.org>
50027
50028         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50029
50030 2005-08-24  Bruno Haible  <bruno@clisp.org>
50031
50032         * gnulib-tool (func_version): Update.
50033
50034 2005-08-24  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool (func_import, func_create_testdir,
50037         func_create_megatestdir): Quote all autoconf macro arguments.
50038
50039 2005-08-24  Bruno Haible  <bruno@clisp.org>
50040
50041         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50042         option --force, because --force causes the aclocal.m4 of each
50043         subdirectory to be newer than the corresponding config.h.in.
50044
50045 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50046
50047         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50048         All contents moved to gl_REGEX.
50049         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50050         assume that it does.
50051
50052 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         * lib/regex.h (REG_NOSYS)
50055         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50056         Define, since POSIX requires it as of 2001.
50057         (_REG_ENOSYS)
50058         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50059         New private symbol, used to keep the enum signed in all cases.
50060         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50061         Youngman in
50062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50063
50064         * lib/regex_internal.c (re_string_skip_chars, register_state):
50065         (calc_state_hash):
50066         Remove forward decls; no longer needed now that we use prototypes.
50067         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50068         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50069         (clean_state_log_if_needed): Likewise.
50070
50071 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         * config/srclist.txt: Add glibc bugs 1231-1233.
50074
50075 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         Fix problems reported by Sam Steingold in
50078         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50079         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50080         assumed that reg_errcode_t is a signed type, which is not
50081         necessarily true if _XOPEN_SOURCE is not defined.
50082         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50083         since some compilers warn about it otherwise.
50084
50085 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50086
50087         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50088         (init_word_char, create_initial_state, duplicate_node_closure):
50089         (fetch_token, peek_token_bracket, build_range_exp):
50090         (build_collating_symbol): Remove forward decls; no longer needed
50091         now that we use prototypes.
50092
50093         * lib/regcomp.c:
50094         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50095         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50096         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50097         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50098         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50099         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50100         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50101         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50102         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50103         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50104         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50105         (build_charclass, build_charclass_op, fetch_number, create_tree):
50106         (create_token_tree, mark_opt_subexp, duplicate_tree):
50107         Use prototypes rather than old-style definitions.
50108
50109         * lib/regex_internal.c:
50110         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50111         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50112         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50113         (re_string_reconstruct, re_string_peek_byte_case):
50114         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50115         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50116         (re_node_set_init_copy, re_node_set_add_intersect):
50117         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50118         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50119         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50120         (re_acquire_state, re_acquire_state_context, register_state):
50121         (create_ci_newstate, create_cd_newstate, free_state):
50122         Likewise.
50123         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50124         re_search_2):
50125         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50126         (re_search_internal, prune_impossible_nodes):
50127         (acquire_init_state_context, check_matching, static):
50128         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50129         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50130         (update_regs, sift_states_backward, build_sifted_states):
50131         (clean_state_log_if_needed, merge_state_array):
50132         (update_cur_sifted_state, add_epsilon_src_nodes):
50133         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50134         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50135         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50136         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50137         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50138         (check_arrival, check_arrival_add_next_nodes):
50139         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50140         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50141         (check_node_accept_bytes, check_node_accept, extend_buffers):
50142         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50143         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50144         (sift_ctx_init):
50145         Likewise.
50146
50147         * lib/regex_internal.h:
50148         (re_string_allocate, re_string_construct, re_string_reconstruct):
50149         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50150         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50151         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50152         (re_string_context_at, re_string_peek_byte_case):
50153         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50154         is defined, since we now use prototypes always.
50155
50156         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50157         C89 or better.  All uses removed.
50158
50159 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * config/srclist.txt: Add glibc bugs 1220-1227.
50162
50163 2005-08-20  Jim Meyering  <jim@meyering.net>
50164
50165         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50166         of unused local, dfa.
50167
50168 2005-08-20  Bruno Haible  <bruno@clisp.org>
50169
50170         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50171
50172 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50173
50174         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50175         (re_node_set_insert_last, re_dfa_add_node):
50176         Rename local variables to avoid GCC shadowing warnings.
50177
50178 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50179
50180         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50181         [defined lint]: Suppress bogus uninitialized-variable warnings.
50182
50183         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50184         and let the caller return REG_ESPACE if out of space.  This
50185         removes an uninitialied-variable warning with GCC 4.0.1, and also
50186         avoids taking the address of a local variable.  All callers
50187         changed.
50188
50189 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50192         $LIBCSRC/posix/regexec.c.
50193         Add glibc bug 1217 for regcomp.c.
50194
50195 2005-08-19  Jim Meyering  <jim@meyering.net>
50196
50197         * lib/regexec.c (proceed_next_node): Redo local variables to
50198         avoid GCC shadowing warnings.
50199
50200 2005-08-18  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/strstr.c (strstr): Fix return value in multibyte case.
50203         * lib/strcasestr.c (strcasestr): Likewise.
50204
50205 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50206
50207         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50208
50209 2005-08-17  Jim Meyering  <jim@meyering.net>
50210
50211         Make the %s format (seconds since the epoch) work for a negative
50212         number and when used with a zero-padded field width, e.g. %015s.
50213
50214         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50215         label so that it precedes the code to set `digits'.  Otherwise,
50216         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50217         print `00-22'.  Now, it prints `-0022', as it should.
50218
50219 2005-08-17  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/strstr (Files): Add m4/mbrtowc.m4.
50222         (Depends-on): Add mbuiter.
50223
50224 2005-08-17  Bruno Haible  <bruno@clisp.org>
50225
50226         * modules/strcasestr: New file.
50227         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50228         strcasestr.
50229
50230 2005-08-17  Bruno Haible  <bruno@clisp.org>
50231
50232         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50233
50234 2005-08-17  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/mbuiter: New file.
50237         * MODULES.html.sh (Extended multibyte and wide character utilities):
50238         Add mbuiter.
50239
50240 2005-08-17  Bruno Haible  <bruno@clisp.org>
50241
50242         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50243         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50244
50245 2005-08-17  Bruno Haible  <bruno@clisp.org>
50246
50247         * m4/strcasestr.m4: New file.
50248
50249 2005-08-17  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50252         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50253
50254 2005-08-17  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/strcasestr.h: New file.
50257         * lib/strcasestr.c: New file.
50258
50259 2005-08-17  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/strcasecmp.c: Use mbuiter.h.
50262
50263 2005-08-17  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/mbuiter.h: New file.
50266
50267 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50268
50269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50270         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50271         and gl_GETOPT are both invoked via different paths (as happens
50272         with GNU tar CVS because it uses both argp and getopt), the former
50273         wins.
50274
50275 2005-08-16  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/tls: New file.
50278         * MODULES.html.sh (Multithreading): Add tls.
50279
50280 2005-08-16  Bruno Haible  <bruno@clisp.org>
50281
50282         * modules/strnlen1: New file.
50283         * MODULES.html.sh (String handling): Add strnlen1.
50284
50285 2005-08-16  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/strcase (Files): Add m4/mbrtowc.m4.
50288         (Depends-on): Add strnlen1, mbchar.
50289
50290 2005-08-16  Bruno Haible  <bruno@clisp.org>
50291
50292         * modules/mbiter: New file.
50293         * MODULES.html.sh (Extended multibyte and wide character utilities):
50294         Add mbiter.
50295
50296 2005-08-16  Bruno Haible  <bruno@clisp.org>
50297
50298         * modules/mbfile: New file.
50299         * MODULES.html.sh (Extended multibyte and wide character utilities):
50300         Add mbfile.
50301
50302 2005-08-16  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/mbchar: New file.
50305         * MODULES.html.sh (Extended multibyte and wide character utilities):
50306         New section.
50307
50308 2005-08-16  Bruno Haible  <bruno@clisp.org>
50309
50310         * m4/tls.m4: New file, from GNU gettext.
50311
50312 2005-08-16  Bruno Haible  <bruno@clisp.org>
50313
50314         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50315         always.
50316         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50317
50318 2005-08-16  Bruno Haible  <bruno@clisp.org>
50319
50320         * m4/mbiter.m4: New file.
50321
50322 2005-08-16  Bruno Haible  <bruno@clisp.org>
50323
50324         * m4/mbfile.m4: New file.
50325
50326 2005-08-16  Bruno Haible  <bruno@clisp.org>
50327
50328         * m4/mbchar.m4: New file.
50329
50330 2005-08-16  Bruno Haible  <bruno@clisp.org>
50331
50332         * lib/tls.h: New file, from GNU gettext.
50333         * lib/tls.c: New file, from GNU gettext.
50334
50335 2005-08-16  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/strnlen1.h: New file.
50338         * lib/strnlen1.c: New file.
50339
50340 2005-08-16  Bruno Haible  <bruno@clisp.org>
50341
50342         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50343         (mbi_init): Update.
50344         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50345         NUL byte, not after it.
50346
50347 2005-08-16  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/strcase.h (strcasecmp): Add note in comments.
50350         * lib/strncasecmp.c: Use code from strcasecmp.c.
50351         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50352         (strcasecmp): Work correctly in multibyte locales.
50353
50354 2005-08-16  Bruno Haible  <bruno@clisp.org>
50355
50356         * lib/mbiter.h: New file.
50357
50358 2005-08-16  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/mbfile.h: New file.
50361
50362 2005-08-16  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/mbchar.h: New file.
50365         * lib/mbchar.c: New file.
50366
50367 2005-08-16  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50370         the valid ones. Makes the comparison operations transitive:
50371         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50372         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50373
50374 2005-08-15  Simon Josefsson  <jas@extundo.com>
50375
50376         * modules/ssize_t (License): Change to 'unlimited'.
50377
50378         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50379
50380 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50381
50382         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50383         Add comments for each pending glibc patch.
50384
50385 2005-08-15  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50388         __cplusplus is defined.
50389
50390 2005-08-14  Jim Meyering  <jim@meyering.net>
50391
50392         Sync from coreutils.
50393
50394         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50395         Use the hash-table-based cycle-detection code not just when
50396         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50397         Reported by James Youngman in
50398         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50399         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50400         FTS_TIGHT_CYCLE_CHECK.
50401         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50402         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50403         once again.
50404         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50405         * lib/fts.c (fd_safer): Remove decl.
50406         Include fcntl--.h rather than unistd-safer.h
50407         (fts_safe_changedir): Don't call fd_safer; no longer needed
50408         now that we include fcntl--.h.
50409
50410 2005-08-12  Simon Josefsson  <jas@extundo.com>
50411
50412         * modules/getndelim2: Use ssize_t module.
50413         * modules/getnline: Likewise.
50414         * modules/safe-read: Likewise.
50415         * modules/xreadlink: Likewise.
50416
50417         * modules/ssize_t: New file.
50418
50419 2005-08-12  Simon Josefsson  <jas@extundo.com>
50420
50421         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50422
50423 2005-08-12  Simon Josefsson  <jas@extundo.com>
50424
50425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50426         ssize_t.
50427
50428 2005-08-12  Simon Josefsson  <jas@extundo.com>
50429
50430         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50431         readline, getdelim and check_version.
50432         (Support for systems lacking ISO C 99: Sizes of integer types):
50433         Add size_max.
50434
50435 2005-08-12  Bruno Haible  <bruno@clisp.org>
50436
50437         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50438
50439 2005-08-11  Simon Josefsson  <jas@extundo.com>
50440
50441         * modules/readline: New file.
50442
50443         * modules/strnlen (Files): Add strnlen.h.
50444
50445 2005-08-11  Simon Josefsson  <jas@extundo.com>
50446
50447         * m4/readline.m4: New file.
50448
50449 2005-08-11  Simon Josefsson  <jas@extundo.com>
50450
50451         * lib/readline.h, readline.c: New file.
50452
50453 2005-08-11  Simon Josefsson  <jas@extundo.com>
50454
50455         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50456         gl_AVOID.
50457
50458 2005-08-11  Bruno Haible  <bruno@clisp.org>
50459
50460         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50461
50462 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50463
50464         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50465
50466 2005-08-10  Simon Josefsson  <jas@extundo.com>
50467
50468         * tests/test-iconvme.c: New file.
50469
50470 2005-08-10  Simon Josefsson  <jas@extundo.com>
50471
50472         * m4/strnlen.m4: New file.
50473
50474         * m4/strndup.m4: Don't check for strnlen declaration, done in
50475         strnlen.m4.
50476
50477 2005-08-10  Simon Josefsson  <jas@extundo.com>
50478
50479         * lib/strndup.c: Use strnlen.h.
50480
50481         * lib/strnlen.h: New file.
50482
50483 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50484
50485         * README: Typos.
50486
50487 2005-08-02  Simon Josefsson  <jas@extundo.com>
50488
50489         * modules/readline: New file.
50490
50491 2005-08-02  Simon Josefsson  <jas@extundo.com>
50492
50493         * modules/getdelim: New file.
50494
50495         * modules/getline: Rewrite, don't use getndelim2.
50496
50497 2005-08-02  Simon Josefsson  <jas@extundo.com>
50498
50499         * m4/getline.m4: Separate out getdelim stuff into separate module.
50500
50501         * m4/getdelim.m4: New file.
50502
50503 2005-08-02  Simon Josefsson  <jas@extundo.com>
50504
50505         * lib/getline.h, getline.c: Rewrite.
50506
50507         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50508
50509 2005-07-31  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/lock.h (gl_lock_initializer): New macro.
50512         (gl_lock_define_initialized): Use it.
50513         (gl_rwlock_initializer): New macro.
50514         (gl_rwlock_define_initialized): Use it.
50515         (gl_recursive_lock_initializer): New macro.
50516         (gl_recursive_lock_define_initialized): Use it.
50517
50518 2005-07-30  Karl Berry  <karl@gnu.org>
50519
50520         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50521         Report from Ben Pfaff, regarding getopt.
50522
50523 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50524
50525         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50526         normal way.
50527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50528         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50529         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50530         (gl_GETOPT): Use the new macros.  Most of the implementation
50531         is moved to the new macros.  This is for programs like Emacs
50532         that don't want all the functionality of gl_GETOPT.
50533
50534 2005-07-26  Bruno Haible  <bruno@clisp.org>
50535
50536         * m4/lock.m4: Update from GNU gettext.
50537
50538 2005-07-26  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/lock.h: Update from GNU gettext.
50541         * lib/lock.c: Update from GNU gettext.
50542
50543 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50544
50545         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50546         obsolescent AC_TRY_RUN.  Include the default includes files, for
50547         'exit'.
50548
50549 2005-07-24  Bruno Haible  <bruno@clisp.org>
50550
50551         * modules/visibility: New file.
50552         * MODULES.html.sh (Misc): Add visibility.
50553
50554 2005-07-24  Bruno Haible  <bruno@clisp.org>
50555
50556         * m4/visibility.m4: New file.
50557
50558 2005-07-24  Bruno Haible  <bruno@clisp.org>
50559
50560         * doc/visibility.texi: New file.
50561
50562 2005-07-22  Bruno Haible  <bruno@clisp.org>
50563
50564         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50565         $(ALLOCA_H), redundant through BUILT_SOURCES.
50566         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50567         redundant through BUILT_SOURCES.
50568         * modules/byteswap (Makefile.am): Remove explicit dependency on
50569         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50570         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50571         $(FNMATCH_H), redundant through BUILT_SOURCES.
50572         * modules/getopt (Makefile.am): Remove explicit dependency on
50573         $(GETOPT_H), redundant through BUILT_SOURCES.
50574         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50575         redundant through BUILT_SOURCES.
50576         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50577         redundant through BUILT_SOURCES.
50578         * modules/stdbool (Makefile.am): Remove explicit dependency on
50579         $(STDBOOL_H), redundant through BUILT_SOURCES.
50580         * modules/stdint (Makefile.am): Remove explicit dependency on
50581         $(STDINT_H), redundant through BUILT_SOURCES.
50582         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50583         Remove explicit dependency on $(SYSEXITS_H).
50584         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50585
50586 2005-07-18  Simon Josefsson  <jas@extundo.com>
50587
50588         * lib/check-version.c (check_version): Accept identical versions too.
50589
50590 2005-07-18  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/lock: New file.
50593         * MODULES.html.sh (Multithreading): New section.
50594
50595 2005-07-18  Bruno Haible  <bruno@clisp.org>
50596
50597         * m4/lock.m4: New file, from GNU gettext.
50598
50599 2005-07-18  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/lock.h: New file, from GNU gettext.
50602         * lib/lock.c: New file, from GNU gettext.
50603
50604 2005-07-18  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/lock.h (gl_once_t): New type.
50607         (gl_once_define, gl_once): New macros.
50608         * lib/lock.c (fresh_once): New variable.
50609         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50610         functions.
50611
50612 2005-07-16  Simon Josefsson  <jas@extundo.com>
50613
50614         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50615         workaround, suggested by Bruno.
50616
50617 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50618
50619         * modules/xalloc (Depends-on): Add xalloc-die.
50620         * modules/xvasprintf (Depends-on): Add xalloc-die.
50621
50622 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50625         with a minor change.
50626
50627 2005-07-15  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50630         When using lib/poll.c, define poll as rpl_poll.
50631
50632 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50633
50634         * modules/argp (Depends-on): Remove unlocked-io.
50635
50636 2005-07-14  Derek Price  <derek@ximbiot.com>
50637
50638         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50639         for glob symlink bug.
50640
50641 2005-07-14  Bruno Haible  <bruno@clisp.org>
50642
50643         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50644         Instead, test for *_unlocked function declarations directly.
50645
50646 2005-07-11  Simon Josefsson  <jas@extundo.com>
50647
50648         * modules/size_max: New file.
50649
50650         * modules/xsize: Depend on size_max module for size_max.m4.
50651
50652 2005-07-11  Simon Josefsson  <jas@extundo.com>
50653
50654         * lib/size_max.h: New file.
50655
50656 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50659         copyright symbol and the year.
50660         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50661         (version_etc_va): Use parameterized copyright notice.
50662         Reword to conform to the current GNU coding standards.
50663
50664 2005-07-11  Karl Berry  <karl@gnu.org>
50665
50666         * doc/gnulib.texi (Quoting): new node.
50667         (Initial import): more info, from Patrice.
50668
50669 2005-07-11  Bruno Haible  <bruno@clisp.org>
50670
50671         * gnulib-tool (func_usage): Document option --avoid.
50672         (Command line options): Handle --avoid.
50673         (func_acceptable): New function.
50674         (func_modules_transitive_closure): Use it.
50675
50676 2005-07-11  Bruno Haible  <bruno@clisp.org>
50677
50678         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50679         Reported by Jim Meyering.
50680
50681 2005-07-10  Bruno Haible  <bruno@clisp.org>
50682
50683         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50684         Needed when size_t is smaller than 'unsigned int'.
50685         Reported by Paul Eggert.
50686
50687 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50688
50689         * modules/argp (Depends-on): Add unlocked-io
50690
50691 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50692
50693         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50694         block of defines.
50695
50696 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50697
50698         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50699         fix now.
50700
50701 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50702         and Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50705         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50706
50707 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         * modules/regex (Files): Add lib/regex_internal.c,
50710         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50711         (Depends-on): Add extensions.
50712         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50713
50714 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50715
50716         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50717         pathconf.
50718         * m4/same.m4 (gl_SAME): Likewise.
50719         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50720
50721         * m4/regex.m4: Adjust to new libc regex implementation.
50722         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50723         all the .c and .h parts of (the new) regex.
50724         Quote the m4 stuff better.
50725         Check for RE_ICASE bug of old gnulib.
50726         Check for REG_STARTEND of recent libc.
50727         Rename local variables from jm_* to gl_*.
50728         Quote operand of "test -f".
50729         Say "recent enough" version of libc, not "version 2".
50730         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50731         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50732         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50733         Remove check for btowc, isascii.
50734         Require AM_LANGINFO_CODESET.
50735
50736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50737
50738         * lib/regex.c, regex.h: Sync from libc.
50739         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50740         * lib/regexec.c:
50741         New files, synced from libc, except that regex_internal.h
50742         currently has a small porting fix.
50743
50744 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50747         regex_internal.c, regexec.c.
50748         Add regex_internal.h too, but as a comment, since the libc version
50749         is currently broken in gnulib mode.
50750
50751 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         Support programs like Emacs that use gnulib but not gettext.
50754         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50755         * modules/gettext-h: New file.
50756         * modules/gettext (Files): Remove lib/gettext.h.
50757         (Depends-on): Add gettext-h.
50758         (Makefile.am): Remove lib_SOURCES.
50759         * modules/argmatch, modules/c-stack, modules/closeout:
50760         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50761         * modules/execute, modules/file-type, modules/getaddrinfo:
50762         * modules/getopt, modules/human, modules/javacomp:
50763         * modules/javaexec, modules/mkdir-p, modules/obstack:
50764         * modules/openat, modules/pagealign_alloc, modules/pipe:
50765         * modules/quotearg, modules/regex, modules/rpmatch:
50766         * modules/unicodeio, modules/userspec, modules/version-etc:
50767         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50768         * modules/xsetenv:
50769         Depend on gettext-h, not gettext.
50770
50771 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * gnulib-tool (func_import): Add support for 'public domain' license.
50774         * modules/alloca, modules/atexit, modules/memmove:
50775         Now public domain, not GPL.
50776         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50777         * modules/realloc, modules/strerror, modules/strtod:
50778         Now LGPL, not GPL.
50779
50780 2005-07-05  Bruno Haible  <bruno@clisp.org>
50781
50782         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50783         autoconf CVS. Needed for mingw.
50784
50785 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         Remove the dependency of the strftime module on the tzset module.
50788         * modules/strftime (Depends-on): Remove dependency on tzset.
50789
50790 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50791
50792         Remove the dependency of the strftime module on the tzset module.
50793         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50794         gl_FUNC_TZSET_CLOBBER.
50795
50796 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50797
50798         Remove the dependency of the strftime module on the tzset module.
50799         * lib/strftime.c (my_strftime)
50800         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50801         Copy the input structure, to work around some of the bug with
50802         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50803         Solaris releases, you should also use the tzset module, but we won't
50804         require it as a dependency any more since we don't want LGPLed code
50805         to depend on GPLed code.
50806
50807 2005-07-02  Jim Meyering  <jim@meyering.net>
50808
50809         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50810         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50811         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50812         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50813
50814 2005-07-02  Jim Meyering  <jim@meyering.net>
50815
50816         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50817
50818 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50821         declares only 'struct timespec;' (!).
50822
50823 2005-07-01  Jim Meyering  <jim@meyering.net>
50824
50825         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50826         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50827         * lib/save-cwd.c, tempname.c:
50828         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50829         and don't include <sys/file.h>).
50830
50831 2005-06-29  Jim Meyering  <jim@meyering.net>
50832
50833         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50834         type name.  Use the variable name instead.
50835         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50836         Likewise.
50837
50838 2005-06-28  Simon Josefsson  <jas@extundo.com>
50839
50840         * modules/check-version (Files): Add check-version.m4.
50841
50842 2005-06-28  Simon Josefsson  <jas@extundo.com>
50843
50844         * m4/check-version.m4: New file, suggested by Jim Meyering
50845         <jim@meyering.net>.
50846
50847 2005-06-28  Simon Josefsson  <jas@extundo.com>
50848
50849         * lib/check-version.h, lib/check-version.c: New files.
50850
50851 2005-06-28  Simon Josefsson  <jas@extundo.com>
50852
50853         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50854         collision with global variable.  Better indentation.  Don't
50855         increment buffer pointer beyond buffer end.  Based on comments
50856         from Paul Eggert <eggert@cs.ucla.edu>.
50857
50858         * lib/base64.h: Indent.
50859
50860 2005-06-28  Simon Josefsson  <jas@extundo.com>
50861
50862         * doc/gnulib.texi (Library version handling): New section.
50863
50864 2005-06-28  Jim Meyering  <jim@meyering.net>
50865
50866         * check-module (find_included_lib_files): Hard-code another
50867         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50868         but modules/fts-lgpl (correctly) does not list those files.
50869
50870         * modules/canonicalize (Files): Add lib/pathmax.h.
50871
50872 2005-06-25  Simon Josefsson  <jas@extundo.com>
50873
50874         * modules/check-version: New file.
50875
50876 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50877
50878         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50879         initializer of struct addrinfo, as an indication that we don't
50880         care how many members the structure has.
50881
50882 2005-06-24  Derek Price  <derek@ximbiot.com>
50883         and Bruno Haible  <bruno@clisp.org>
50884
50885         Remove stat module & update lstat.
50886         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50887         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50888         * m4/stat.m4: Remove this file.
50889
50890 2005-06-24  Derek Price  <derek@ximbiot.com>
50891         and Bruno Haible  <bruno@clisp.org>
50892
50893         Remove stat module & update lstat.
50894         * lib/stat.c: Remove this file...
50895         (slash_aware_lstat): ...moving this content and its support...
50896         * lib/lstat.c (rpl_lstat): ...into here.
50897         * lib/lstat.h: New file.
50898
50899 2005-06-24  Derek Price  <derek@ximbiot.com>
50900         and Bruno Haible  <bruno@clisp.org>
50901
50902         Remove stat module & update lstat.
50903         * config/srclist.txt (libc sources): Remove stat.
50904
50905 2005-06-24  Derek Price  <derek@ximbiot.com>
50906         and Bruno Haible  <bruno@clisp.org>
50907
50908         Remove stat module & update lstat.
50909         * MODULES.html.sh (stat): Remove.
50910         * MODULES.html: Regenerated.
50911         * modules/lstat (Description): Correct function name.
50912         (Files): Add "lstat.h".
50913         (Depends-on): Remove stat, add xalloc, stat-macros.
50914         * modules/stat: Remove this file.
50915         (Include): Add "lstat.h", remove <sys/stat.h>.
50916
50917 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50918
50919         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50920         (ranged_convert): Don't save conversion in a temporary struct.
50921         This causes a warning with GCC 4.0.0, and anyway in the typical
50922         case it's not worth the extra 100 bytes or so of code.
50923         (ranged_convert, __mktime_internal): When calling a function via a
50924         pointer P, use P () rather than (*P) (), as we now assume C89 or
50925         better.
50926
50927 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50928
50929         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50930         "who -r" failed to give output.  Problem reported by Tim Waugh.
50931
50932         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50933         (xcalloc): Use it to avoid needless tests.
50934         Problem reported by Jim Meyering.
50935
50936 2005-06-20  Derek Price  <derek@ximbiot.com>
50937
50938         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50939         unnecessary for Autoconfs > 2.59c.
50940
50941 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50942
50943         * lib/argp.h (__option_is_short): Check upper limit of
50944         __key. Isprint() requires its argument to have the value
50945         of an unsigned char or EOF.
50946
50947 2005-06-16  Jim Meyering  <jim@meyering.net>
50948
50949         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50950         when either N or S is zero.
50951
50952 2005-06-16  Derek Price  <derek@ximbiot.com>
50953
50954         * m4/bison.m4: Declare YACC & YFLAGS precious.
50955
50956 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50957
50958         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50959         multibyte string or pattern, fall back on unibyte matching.
50960         Problem reported by James Youngman.
50961
50962 2005-06-08  Bruno Haible  <bruno@clisp.org>
50963
50964         * modules/csharpcomp: New file.
50965         * MODULES.html.sh (C#): Add csharpcomp.
50966
50967 2005-06-08  Bruno Haible  <bruno@clisp.org>
50968
50969         * m4/csharpcomp.m4: New file, from GNU gettext.
50970
50971 2005-06-08  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/csharpcomp.h: New file, from GNU gettext.
50974         * lib/csharpcomp.c: New file, from GNU gettext.
50975         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50976
50977 2005-06-08  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50980         warning on mingw.
50981
50982 2005-06-07  Derek Price  <derek@ximbiot.com>
50983
50984         Sync from CVS.
50985         * lib/glob_.h: Indent nested #ifdef.
50986
50987 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         Sync from coreutils.
50990         Use "file name" when talking about file names, instead of "filename"
50991         or "path", as per the GNU coding standards.
50992         * lib/mkdir-p.c: Renamed from makepath.c.
50993         (make_dir_parents): Renamed from make_path.  All callers changed.
50994         * lib/mkdir-p.h: Likewise.  All includers changed.
50995         * lib/filenamecat.c: Renamed from path-concat.c.
50996         (file_name_concat): Renamed from path_concat.  All callers changed.
50997         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50998         * lib/filenamecat.h: Likewise.  All includers changed.
50999         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51000         in comments or local variable names.
51001         * lib/basename.c: Likewise.
51002         * lib/canonicalize.c, canonicalize.h: Likewise.
51003         * lib/dirname.c, dirname.h: Likewise.
51004         * lib/euidaccess.c: Likewise.
51005         * lib/exclude.c: Likewise
51006         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51007         * lib/fsusage.c, fsuage.h: Likewise.
51008         * lib/fts.c, fts_.h: Likewise.
51009         * lib/getcwd.c: Likewise.
51010         * lib/getloadavg.c: Likewise.
51011         * lib/mkstemp.c: Likewise.
51012         * lib/mountlist.c, mountlist.h: Likewise.
51013         * lib/openat.c, openat.h: Likewise.
51014         * lib/readlink-stub.c: Likewise.
51015         * lib/readutmp.c, readutmp.h: Likewise.
51016         * lib/rename.c: Likewise.
51017         * lib/rmdir.c: Likewise.
51018         * lib/same.c: Likewise.
51019         * lib/savedir.c: Likewise.
51020         * lib/stripslash.c: Likewise.
51021         * lib/tempname.c: Likewise.
51022         * lib/xreadlink.c: Likewise.
51023         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51024         All uses changed.
51025         * lib/exclude.h: Likewise.
51026
51027         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51028         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51029         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51030         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51031         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51032         files have been getting away with it for years (MORE/BSD 4.3
51033         is extinct now).
51034         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51035         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51036
51037         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51038         Define to 256, not 255, as per modern POSIX.
51039
51040 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51041
51042         Sync from coreutils.
51043         Use "file name" when talking about file names, instead of "filename"
51044         or "path", as per the GNU coding standards.
51045         * MODULES.html.sh: mkdir-p renamed from makepath.
51046         filenamecat renamed from path-concat.
51047         * modules/filenamecat: Renamed from modules/path-concat.
51048         (Files): filenamecat.h and filenamecat.c renamed from
51049         path-concat.h and path-concat.c.
51050         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51051         (Include): filenamecat.h, not path-concat.h.
51052         * modules/mkdir-p: Renamed from modules/makepath.
51053         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51054         makepath.c.
51055         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51056         (Include): mkdir-p.h, not makepath.h.
51057
51058 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51059
51060         Sync from coreutils.
51061         * m4/mkdir-p.m4: Renamed from makepath.m4.
51062         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51063         Rename files from makepath.c to mkdir-p.c, and from
51064         makepath.h to mkdir-p.h.
51065         * m4/filenamecat.m4: Renamed from path-concat.m4.
51066         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51067         Rename files from path-concat.c to filenamecat.c,
51068         and from path-concat.h to filenamecat.h.
51069         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51070         "file name" in local variables or comments.
51071         * m4/rename.m4: Likewise.
51072
51073 2005-06-01  Bruno Haible  <bruno@clisp.org>
51074
51075         * modules/csharpexec: New file.
51076         * MODULES.html.sh (C#): New section.
51077
51078 2005-06-01  Bruno Haible  <bruno@clisp.org>
51079
51080         * m4/csharp.m4: New file, from GNU gettext.
51081         * m4/csharpexec.m4: New file, from GNU gettext.
51082
51083 2005-06-01  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/csharpexec.h: New file, from GNU gettext.
51086         * lib/csharpexec.c: New file, from GNU gettext.
51087         * lib/csharpexec.sh.in: New file, from GNU gettext.
51088
51089 2005-05-31  Derek Price  <derek@ximbiot.com>
51090             Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         Sync from cvs.
51093         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51094
51095 2005-05-31  Derek Price  <derek@ximbiot.com>
51096             Paul Eggert  <eggert@cs.ucla.edu>
51097
51098         Sync from cvs.
51099         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51100
51101 2005-05-29  Derek Price  <derek@ximbiot.com>
51102
51103         * config/srclist.txt (glob_.h, glob.c): Add these files.
51104
51105 2005-05-29  Derek Price  <derek@ximbiot.com>
51106
51107         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51108         * modules/glob: New file.
51109         * modules/getlogin_r: Add link to POSIX spec in description.
51110
51111 2005-05-29  Derek Price  <derek@ximbiot.com>
51112             Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         * m4/glob.m4: New file.
51115
51116 2005-05-29  Derek Price  <derek@ximbiot.com>
51117             Paul Eggert  <eggert@cs.ucla.edu>
51118
51119         * lib/glob_.h, lib/glob.c: New files.
51120
51121 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51122
51123         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51124         * modules/fts-lgpl (Depends-on): Remove gettext.
51125
51126 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51129         and don't require gt_INTTYPES_PRI.
51130
51131 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51134
51135         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51136         the configuration hassle isn't worth it.
51137         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51138         (LONGEST_MODIFIER, PRIuMAX): Remove.
51139
51140 2005-05-27  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51143
51144 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51147         _POSIX_PTHREAD_SEMANTICS for Solaris.
51148
51149 2005-05-25  Derek Price  <derek@ximbiot.com>
51150
51151         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51152
51153 2005-05-25  Derek Price  <derek@ximbiot.com>
51154             Paul Eggert  <eggert@cs.ucla.edu>
51155
51156         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51157         * lib/getlogin_r.c, getlogin_r.h: New files.
51158
51159 2005-05-25  Bruno Haible  <bruno@clisp.org>
51160             Derek Price  <derek@ximbiot.com>
51161
51162         * lib/getlogin_r.h: Simplify API documentation.
51163
51164 2005-05-23  Derek Price  <derek@ximbiot.com>
51165
51166         * modules/minmax (Files): Add m4/minmax.m4.
51167         (configure.ac): Add gl_MINMAX.
51168
51169 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51172         so that unistd-safer.h (GPL'ed code) need not be included.
51173
51174 2005-05-22  Bruno Haible  <bruno@clisp.org>
51175
51176         * m4/minmax.m4: New file.
51177         Based on a patch by Derek Price <derek@ximbiot.com>.
51178
51179 2005-05-22  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51182         (INT64_MIN): Fix definition.
51183         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51184
51185         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51186         NEED_SIGNED_INT_TYPES.
51187
51188         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51189         HAVE_SYSTEM_INTTYPES.
51190
51191 2005-05-22  Bruno Haible  <bruno@clisp.org>
51192
51193         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51194         Also include <sys/param.h> if it defines MIN, MAX.
51195         Based on a patch by Derek Price <derek@ximbiot.com>.
51196
51197 2005-05-21  Jim Meyering  <jim@meyering.net>
51198
51199         * modules/fts (Files): Add m4/inttypes-pri.m4.
51200         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51201
51202 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51203
51204         New fts module.
51205         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51206         (setup_dir, free_dir): New functions.
51207         (enter_dir, leave_dir): Define trivial
51208         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51209         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51210         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51211         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51212         Move to fts-cycle.c.
51213         (fts_open): Use setup_dir.
51214         (fts_close): Use free_dir.
51215         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51216         This adds a label and some gotos, but the alternatives were messier.
51217         Check for memory allocation failure when entering a dir.
51218         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51219         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51220         (FTS): New member fts_cycle, that is a union that contains the
51221         old active_dir_ht and cycle_state.  All uses changed to mention
51222         fts_cycle.ht and fts_cycle.state.
51223         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51224         fts.c, with the following changes:
51225         (setup_dir, free_dir): New functions.
51226         (enter_dir): Now returns bool.  Return true if successful, false
51227         if memory exhausted.  All callers changed.
51228         Do not bother partly cleaning up on
51229         memory allocation failure; that is free_dir's job.
51230         However, free ad if hash_insert fails, to avoid memory leak.
51231         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51232         fts->fts_options to see which union member to use.
51233
51234 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51235
51236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51237         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51238
51239 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51242
51243 2005-05-20  Jim Meyering  <jim@meyering.net>
51244
51245         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51246         Now a macro, to pacify GCC.
51247
51248 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51249
51250         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51251         of -1.
51252
51253 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51254
51255         * lib/chown.c (rpl_chown): Return -1 on failure.
51256
51257 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51260         Don't check for stddef.h.
51261         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51262         don't use its results.
51263         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51264         since we include them unconditionally.  Don't require
51265         AM_STDBOOL_H, since stdbool is a prerequisite.
51266         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51267         since we assume C89 or better.
51268         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51269         as we don't use their results.
51270         Don't check for fchdir, memmove, memset, strrchr, as we use
51271         them unconditionally.
51272         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51273         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51274
51275 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51278         Include <stddef.h> unconditionally, since we assume C89 now.
51279         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51280         * lib/fts.c: Include fts_.h first, to check interface.
51281         Do not include intprops.h; no longer needed.
51282         Include cycle-check.h and hash.h, since fts_.h no longer does.
51283         Remove unnecessary casts of closedir to void.
51284         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51285         decide whether to decrement nlinks.
51286         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51287         (FTS): Use struct hash_table * instead of Hash_table, so that
51288         we no longer need to include hash.h here.
51289
51290 2005-05-18  Jim Meyering  <jim@meyering.net>
51291
51292         * modules/dirfd (License): Change to LGPL.  Most of the code
51293         is already in the public domain.
51294
51295 2005-05-18  Jim Meyering  <jim@meyering.net>
51296
51297         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51298         Reported by Yoann Vandoorselaere.
51299
51300 2005-05-17  Jim Meyering  <jim@meyering.net>
51301
51302         * m4/fts.m4: New file, from coreutils.
51303
51304 2005-05-17  Jim Meyering  <jim@meyering.net>
51305
51306         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51307
51308 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         Sync from coreutils.
51311         * m4/unlinkdir.m4: New file.
51312
51313 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         Sync from coreutils.
51316         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51317         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51318         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51319         White space changes only.
51320         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51321         special.
51322         * lib/yesno.c: Include getline.h, not ctype.h.
51323         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51324         Use getline to remove arbitrary restriction on response length.
51325
51326 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51327
51328         * config/srclist-update: Spell out "Street" in FSF postal
51329         mail address; this is the style the FSF seems to prefer.
51330
51331         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51332         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51333         this updates FSF postal mail address.
51334
51335         Sync from coreutils.
51336         * modules/unlinkdir: New file.
51337         * modules/yesno (Depends-on): Add getline.
51338         * MODULES.html.sh (File system functions): Add unlinkdir.
51339
51340 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51343         lib/strsep.h:
51344         Change the initial comment to refer to GPL, not LGPL.
51345         gnulib-tool will change it to LGPL as needed.
51346
51347         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51348         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51349         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51350         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51351         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51352         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51353         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51354         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51355         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51356         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51357         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51358         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51359         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51360         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51361         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51362         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51363         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51364         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51365         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51366         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51367         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51368         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51369         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51370         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51371         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51372         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51373         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51374         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51375         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51376         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51377         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51378         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51379         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51380         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51381         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51382         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51383         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51384         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51385         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51386         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51387         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51388         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51389         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51390         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51391         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51392         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51393         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51394         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51395         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51396         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51397         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51398         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51399         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51400         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51401         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51402         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51403         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51404         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51405         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51406         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51407         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51408         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51409         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51410         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51411         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51412         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51413         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51414         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51415         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51416         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51417         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51418         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51419         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51420         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51421         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51422         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51423         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51424         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51425         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51426         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51427         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51428         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51429         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51430         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51431         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51432         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51433         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51434         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51435         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51436         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51437         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51438         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51439         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51440         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51441         lib/yesno.c, lib/yesno.h:
51442         Update FSF postal mail address.
51443
51444 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51447         tests/test-memmem.c, tests/test-stpncpy.c:
51448         Update FSF postal mail address.
51449
51450 2005-05-13  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51453         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51454         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51455         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51456         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51457         Add support for 64-bit integers in the MSVC compiler.
51458
51459 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51460
51461         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51462
51463 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51464
51465         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51466
51467 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         * doc/getdate.texi (General date syntax): Don't say that date
51470         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51471         Problem reported by Nic Ferrier.
51472
51473 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51474
51475         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51476         specified in ai_socktype. Fix invalid ai_protocol
51477         check. ai_protocol is usually set to 0 or depending on
51478         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51479         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51480         ai_socktype / ai_protocol in the returned addrinfo structure.
51481
51482 2005-05-10  Simon Josefsson  <jas@extundo.com>
51483
51484         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51485         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51486
51487 2005-05-10  Karl Berry  <karl@gnu.org>
51488
51489         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51490         (from http://www.gnu.org/licenses).
51491         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51492         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51493         fdl.texi suffices.
51494
51495 2005-05-10  Karl Berry  <karl@gnu.org>
51496
51497         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51498         (COPYING.DOC): remove.
51499
51500         * config/srclist-update: new FSF address.
51501
51502 2005-05-10  Derek Price  <derek@ximbiot.com>
51503
51504         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51505         possible.
51506
51507 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51508             Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/inet_ntop: New file.
51511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51512         inet_ntop.
51513
51514 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51515             Bruno Haible  <bruno@clisp.org>
51516
51517         * m4/inet_ntop.m4: New file.
51518
51519 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51520             Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/inet_ntop.h: New file.
51523         * lib/inet_ntop.c: New file, from glibc with modifications.
51524
51525 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51526
51527         * modules/time_r (License): Change to LGPL.
51528         * modules/extensions (License): Change to LGPL.  Actually,
51529         the license is more permissive than that, but currently gnulib-tool
51530         doesn't know how to handle more-permissive licenses.
51531
51532         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51533         Problem reported by Dave Love.
51534
51535 2005-05-08  Jim Meyering  <jim@meyering.net>
51536
51537         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51538         blank.
51539
51540 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * modules/argmatch (Depends-on): Add stdbool.
51543         * modules/backupfile (Depends-on): Likewise.
51544         * modules/chdir-long (Depends-on): Likewise.
51545         * modules/closeout (Depends-on): Likewise.
51546         * modules/cycle-check (Depends-on): Likewise.
51547         * modules/dirname (Depends-on): Likewise.
51548         * modules/fnmatch (Depends-on): Likewise.
51549         * modules/fsusage (Depends-on): Likewise.
51550         * modules/fwriteerror (Depends-on): Likewise.
51551         * modules/getcwd (Depends-on): Likewise.
51552         * modules/getloadavg (Depends-on): Likewise.
51553         * modules/hard-locale (Depends-on): Likewise.
51554         * modules/makepath (Depends-on): Likewise.
51555         * modules/mountlist (Depends-on): Likewise.
51556         * modules/nanosleep (Depends-on): Likewise.
51557         * modules/posixtm (Depends-on): Likewise.
51558         * modules/quotearg (Depends-on): Likewise.
51559         * modules/readtokens (Depends-on): Likewise.
51560         * modules/readtokens0 (Depends-on): Likewise.
51561         * modules/readutmp (Depends-on): Likewise.
51562         * modules/save-cwd (Depends-on): Likewise.
51563         * modules/strftime (Depends-on): Likewise.
51564         * modules/userspec (Depends-on): Likewise.
51565         * modules/utimecmp (Depends-on): Likewise.
51566         * modules/xgetcwd (Depends-on): Likewise.
51567         * modules/xnanosleep (Depends-on): Likewise.
51568         * modules/xstrtod (Depends-on): Likewise.
51569         * modules/yesno (Depends-on): Likewise.
51570
51571 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51572
51573         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51574         needless checks.
51575
51576 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51577
51578         Merge from coreutils.  Among other things,
51579         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51580         * lib/fd-safer.c: New file.
51581         * lib/fcntl-safer.h, open-safer.c: Remove.
51582         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51583         * lib/dup-safer.c: Include unistd-safer.h first.
51584         Don't include errno.h.
51585         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51586         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51587         * lib/file-type.c: Rely on file-type.h change.
51588         * lib/getloadavg.c: Include unistd-safer.h.
51589         (getloadavg): Use safer open.
51590         * lib/getusershell.c: Include "stdio-safer.h".
51591         (getusershell): Use safer fopen.
51592         * lib/long-options.c (long_options): Use NULL rather than 0.
51593         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51594         'free'.
51595         * lib/modechange.c: Likewise.
51596         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51597         (MODE_DONE): New constant.
51598         (struct mode_change): Remove 'next' member.
51599         (make_node_op_equals): New function; like the old one of the
51600         same name, except it allocates an array.
51601         (mode_compile, mode_create_from_ref): Use it.
51602         (mode_compile): Allocate result as an array, not a linked list.
51603         Parse octal string ourself, so that we catch mistakes like "+0".
51604         (mode_adjust): Arg is an array, not a linked list.
51605         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51606         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51607         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51608         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51609         Remove.  This is now stat-macros.h's job.
51610         (talloc): Remove.  All callers replaced by xalloc, so that
51611         our invokers don't have to worry about reporting memory failures.
51612         (make_node_op_equals): Remove.
51613         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51614         New constants.
51615         (struct mode_change): Moved here from modechange.h.
51616         (mode_append_entry): Remove.
51617         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51618         apps to have incorrect behavior.  Use simpler algorithm for head
51619         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51620         Detect more invalid usages rather than having somewhat-random behavior.
51621         Don't insert an "a=" action, as that leads to incorrect behavior.
51622         (mode_compile, mode_create_from_ref): Return NULL on error instead
51623         of an enum, since now there's only one way to have an error.  All
51624         callers changed.
51625         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51626         at the correct time.  Simplify calculation of "+u" and its ilk.
51627         Don't mishandle "+X".
51628         (mode_free): Remove "register" and localize decls.
51629         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51630         (struct mode_change): Move to modechange.c; callers don't
51631         need to see this stuff.
51632         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51633         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51634         (mode_change, mode_adjust): Reflect the new signatures noted above.
51635         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51636         that might redefine system include files.
51637         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51638         (my_usleep): Use NULL rather than (void *) 0.
51639         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51640         Use siginterrupt to specify that system calls should be interrupted.
51641         (rpl_nanosleep): Move initialization of suspended closer to call of
51642         my_usleep.
51643         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51644         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51645         (desirable_utmp_entry): New function.
51646         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51647         using x2nrealloc, to simplify logic.
51648         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51649         size calculation.  Do not assume utmp file is a regular file.
51650         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51651         (READ_UTMP_CHECK_PIDS): New constant.
51652         * lib/save-cwd.c: Include unistd-safer.h.
51653         (save_cwd): Use fd_safer.
51654         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51655         [!_LIBC] Include "stat-macros.h" instead.
51656         * lib/unistd-safer.h (fd_safer): New decl.
51657
51658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51659
51660         * modules/getloadavg (Depends-on): Add unistd-safer.
51661         * modules/getusershell (Depends-on): Add stdio-safer.
51662         * modules/lstat (Depends-on): Remove xalloc.
51663         * modules/mkstemp (Depends-on): Add stat-macros.
51664         * modules/modechange (Depends-on): Remove xstrtol.
51665         Add stat-macros, xalloc.
51666         * modules/save-cwd (Depends-on): Add unistd-safer.
51667         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51668         * modules/unistd-safer (Files): Add lib/fd-safer.c
51669         (Makefile.am): Remove lib_SOURCES.
51670
51671         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51672         Remove fcntl-safer; unistd-safer supersedes it.
51673
51674 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51677         AC_HEADER_STAT.
51678         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51679         (gl_PREREQ_CHOWN): Remove.
51680         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51681         it.  Don't require AC_HEADER_STAT.
51682         (gl_PREREQ_LSTAT): Remove.
51683         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51684         Don't require AC_HEADER_STAT.
51685         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51686         (gl_PREREQ_RMDIR): Remove.
51687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51688         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51689         the stat-macros module a prerequisite.
51690         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51691         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51692         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51693         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51694         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51695         variable names.
51696         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51697         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51698         variable prefixes.
51699         * m4/fcntl-safer.m4: Remove.
51700         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51701         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51702         Invoke gl_PREREQ_FD_SAFER.
51703         (gl_PREREQ_FD_SAFER): New macro.
51704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51705         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51706         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51707         Remove duplicate call to AC_LIBOBJ(readutmp).
51708         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51709
51710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51711         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51712
51713 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51714
51715         * MODULES.html.sh (Misc): Add byteswap.
51716
51717 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51718
51719         * modules/getcwd (Depends-on): Add extensions.
51720         * modules/openat (Depends-on): Likewise.
51721
51722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51723
51724         * modules/byteswap: New file.
51725
51726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51727
51728         * m4/byteswap.m4: New file.
51729
51730 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51731
51732         * lib/byteswap_.h: New file.
51733
51734 2005-04-25  Karl Berry  <karl@gnu.org>
51735
51736         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51737
51738 2005-04-25  Albert Chin  <china@thewrittenword.com>
51739
51740         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51741         Toolkit C bug.
51742
51743 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51744
51745         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51746         (func_ln_if_changed) Remove forcibly for no error message
51747         in case file does not exist.
51748
51749 2005-04-19  Simon Josefsson  <jas@extundo.com>
51750
51751         * gnulib-tool (Options): Make --symlink mean --symbolic.
51752
51753 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51754
51755         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51756
51757 2005-04-16  Simon Josefsson  <jas@extundo.com>
51758
51759         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51760
51761 2005-04-15  Simon Josefsson  <jas@extundo.com>
51762
51763         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51764
51765 2005-04-15  Simon Josefsson  <jas@extundo.com>
51766
51767         * gnulib-tool: Rename --symlink to --symbolic.
51768
51769 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51770
51771         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51772         symbolic links to files instead of copying/moving.  Add --aux-dir,
51773         specifying directory relative --dir where auxiliary build tools
51774         are placed.
51775
51776 2005-04-14  Bruno Haible  <bruno@clisp.org>
51777
51778         * modules/allocsa (License): Change to LGPL.
51779         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51780
51781 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51784         that "UTC +1 second" continues to work.  Problem reported
51785         by Dmitry V. Levin.
51786         (relunit_snumber): New rule.
51787         (relunit): Use it.
51788
51789 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51790
51791         * lib/getdate.y (universal_time_zone_table): New constant.
51792         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51793         universal_time_zone_table.
51794         (lookup_zone): Prefer universal_time_zone_table to
51795         local_time_zone_table, so that "GMT" time stamps are allowed in
51796         London during the summer.  Problem reported by Ian Abbott.
51797
51798 2005-04-12  Jim Meyering  <jim@meyering.net>
51799
51800         * lib/human.c (humblock): Set *options even when returning due to
51801         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51802         warning from gcc-4.
51803
51804 2005-04-09  Jim Meyering  <jim@meyering.net>
51805
51806         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51807         -Wuninitialized: initialize tm0.tm_year.
51808
51809 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51810
51811         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51812         count, since there's no maximum.  All uses changed.
51813         Add member dsts_seen.
51814         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51815         not being INT_MAX.
51816         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51817         Use pc_rels_seen to decide whther a date is absolute.
51818
51819         * lib/getdate.y (number): Don't overwrite year.
51820         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51821         check.
51822
51823 2005-04-02  Simon Josefsson  <jas@extundo.com>
51824
51825         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51826         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51827
51828 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51829
51830         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51831         where no absolute path name can be longer than PATH_MAX.
51832
51833 2005-03-27  Jim Meyering  <jim@meyering.net>
51834
51835         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51836
51837 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51838
51839         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51840         "one's complement" -> "ones' complement" in comment, as per Knuth.
51841         "value of type" -> "type or expression" in comment.
51842         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51843
51844 2005-03-26  Jim Meyering  <jim@meyering.net>
51845
51846         Comment nits.
51847         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51848         Correct typos: s/or/of/.
51849
51850 2005-03-26  Jim Meyering  <jim@meyering.net>
51851
51852         * modules/check-include-files: Move to ../ and rename to...
51853         * check-module: ...this.
51854
51855 2005-03-25  Jim Meyering  <jim@meyering.net>
51856
51857         * modules/xvasprintf (Files): Add xalloc.h.
51858
51859 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51860
51861         * modules/gettext (Files): config/config.rpath ->
51862         build-aux/config.rpath
51863         * modules/iconv (Files): Likewise.
51864         Problem reported by Oskar Liljeblad.
51865
51866 2005-03-23  Jim Meyering  <jim@meyering.net>
51867
51868         * modules/check-include-files: New script to check for
51869         missing dependencies, multiple includes, etc.
51870
51871         * modules/c-strtold (Depends-on): Add xalloc.
51872         * modules/c-strtod (Depends-on): Add xalloc.
51873         * modules/hash (Depends-on): Add xalloc.
51874         (Files): Remove lib/xalloc.h.
51875
51876         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51877         * modules/userspec (Files): Add lib/inttostr.h.
51878
51879 2005-03-23  Jim Meyering  <jim@meyering.net>
51880
51881         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51882
51883 2005-03-22  Jim Meyering  <jim@meyering.net>
51884
51885         * modules/stat-macros: New module.
51886         * modules/canonicalize, modules/euidaccess, modules/file-type,
51887         * modules/filemode, modules/lchown, modules/makepath,
51888         * modules/rmdir, modules/stat: Depend on new stat-macros module
51889         rather than listing lib/stat-macros.h manually.
51890         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51891
51892 2005-03-22  Jim Meyering  <jim@meyering.net>
51893
51894         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51895
51896 2005-03-22  Bruno Haible  <bruno@clisp.org>
51897
51898         * config/srclist.txt: Replace target directory 'config' with
51899         'build-aux'.
51900         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51901         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51902         ../build-aux/.
51903
51904 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         * modules/chdir-long (Depends-on): Add mempcpy.
51907
51908         * modules/acl, modules/backupfile, modules/c-strtod,
51909         modules/c-strtold, modules/canon-host, modules/canonicalize,
51910         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51911         modules/exclude, modules/exitfail, modules/file-type,
51912         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51913         modules/getdate, modules/getline, modules/getpagesize,
51914         modules/getpass, modules/getugroups, modules/group-member,
51915         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51916         modules/inttostr, modules/long-options, modules/makepath,
51917         modules/md5, modules/memcasecmp, modules/memcoll,
51918         modules/modechange, modules/mountlist, modules/path-concat,
51919         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51920         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51921         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51922         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51923         modules/strftime, modules/strndup, modules/strverscmp,
51924         modules/timespec, modules/unlocked-io, modules/userspec,
51925         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51926         modules/yesno:
51927         Remove lib_SOURCES line from Makefile.am section, as this is now
51928         done automatically by the corresponding Autoconf macro.
51929
51930 2005-03-21  Jim Meyering  <jim@meyering.net>
51931
51932         Changes imported from coreutils.
51933
51934         * lib/cycle-check.c: Don't include xalloc.h.
51935
51936         * lib/path-concat.c: Don't include assert.h.
51937         (path_concat): Remove assertion that would have triggered
51938         for ABASE starting with more than one slash.
51939         Reported by Andreas Schwab.
51940
51941         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51942         properly when ABASE is an absolute file name.
51943         Correct the description of this function.
51944         Include <assert.h>.
51945         Add an assertion and a test driver.
51946         This fixes a bug introduced on 2004-07-02.
51947         Andreas Schwab reported the resulting failure of cp --parents:
51948         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51949
51950 2005-03-21  Jim Meyering  <jim@meyering.net>
51951
51952         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51953         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51954
51955 2005-03-21  Jim Meyering  <jim@meyering.net>
51956         and  Paul Eggert  <eggert@cs.ucla.edu>
51957
51958         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51959         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51960         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51961         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51962         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51963         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51964         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51965         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51966         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51967         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51968         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51969         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51970         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51971         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51972         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51973         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51974         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51975         for these modules.
51976
51977 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51980         (which shouldn't happen), generate nothing instead of returning 0
51981         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51982
51983 2005-03-16  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51986         HAVE_LONGLONG_64BIT.
51987
51988 2005-03-16  Bruno Haible  <bruno@clisp.org>
51989
51990         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51991         HAVE_LONGLONG_64BIT.
51992
51993 2005-03-16  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51996         HAVE_LONGLONG_64BIT.
51997
51998 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51999
52000         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52001         reliably distinguish strftime failure from empty output on POSIX
52002         hosts.
52003
52004 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52005
52006         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52007         (iconv_string): Don't guess a size-zero buffer, as that might cause
52008         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52009         result would be 'too large', where 'too large' is (heuristically)
52010         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52011         overflow concerns.  This will prevent some unwanted malloc failures
52012         when the inputs are very large.
52013
52014 2005-03-15  Karl Berry  <karl@gnu.org>
52015
52016         * config/srclist.txt (config.rpath): from gettext.
52017         * config/config.rpath: update.
52018
52019 2005-03-15  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52022         to 'negate'.
52023
52024         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52025         variable.
52026
52027         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52028         results.
52029
52030 2005-03-14  Simon Josefsson  <jas@extundo.com>
52031
52032         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52033         <fx@gnu.org>.
52034
52035 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52038         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52039         intprops.h.
52040         * lib/strtol.c: Likewise.
52041
52042 2005-03-14  Jim Meyering  <jim@meyering.net>
52043
52044         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52045         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52046         to be nonzero so that we (and caller) can detect the difference
52047         between a valid zero-length expansion and an error return, even
52048         when the underlying strftime fails before writing anything into
52049         that location.
52050
52051 2005-03-14  Bruno Haible  <bruno@clisp.org>
52052
52053         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52054         Update from GNU gettext 0.14.3.
52055
52056 2005-03-10  Jim Meyering  <jim@meyering.net>
52057
52058         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52059
52060 2005-03-10  Jim Meyering  <jim@meyering.net>
52061
52062         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52063         so that this module works on systems without fchdir.
52064
52065 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52066
52067         Factor int-properties macros into a single file, except for
52068         glibc-related files.
52069         * lib/intprops.h: New file.
52070         * lib/getloadavg.c: Include it instead of limits.h.
52071         (INT_STRLEN_BOUND): Remove.
52072         * lib/human.c: Include intprops.h.
52073         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52074         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52075         302/1000.
52076         * lib/inttostr.h: Include intprops.h instead of limits.h.
52077         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52078         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52079         for consistency with intprops.h.
52080         (time_t_is_integer, twos_complement_arithmetic): Use them.
52081         * lib/sig2str.h: Include <signal.h>, intprops.h.
52082         (INT_STRLEN_BOUND): Remove.
52083         * lib/strftime.c (TYPE_SIGNED): Remove.
52084         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52085         * lib/strtol.c: Adjust comments to match intprops.h.
52086         * lib/userspec.c: Include intprops.h.
52087         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52088         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52089         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52090         instead of rolling our own expressions.
52091         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52092
52093         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52094         instead of int.
52095         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52096         the right thing even if adding 1900 would overflow.  Similarly
52097         for tm_mon + 1 and tm_yday + 1.
52098         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52099         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52100         (DO_SIGNED_NUMBER): New macro.
52101         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52102
52103 2005-03-07  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52106
52107 2005-03-07  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52110
52111 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52112
52113         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52114         (func_import): Only replace files via --import when they have actually
52115         changed.
52116
52117 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52118
52119         * m4/mmap-anon.m4: New file.
52120         * m4/pagealign_alloc.m4: New file.
52121
52122 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52123             Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/pagealign_alloc: New file.
52126         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52127
52128 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52129             Bruno Haible  <bruno@clisp.org>
52130
52131         * lib/pagealign_alloc.h: New file.
52132         * lib/pagealign_alloc.c: New file.
52133
52134 2005-03-03  Bruno Haible  <bruno@clisp.org>
52135
52136         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52137         Use an all-permissive copyright notice, recommended by RMS.
52138
52139 2005-03-02  Bruno Haible  <bruno@clisp.org>
52140
52141         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52142         of AIX, the replacement has to be done only after <string.h> is
52143         included, therefore not in config.h. stpncpy.h does the replacement,
52144         and stpncpy.c uses it.
52145
52146 2005-03-02  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52149         stpncpy.c uses it.
52150
52151 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52154         The workaround isn't strictly needed for POSIX conformance, and
52155         it's too much of a pain to configure and maintain.  We'll ask
52156         people to fix their kernels instead.
52157         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52158         (NANOSLEEP_BUG_WORKAROUND): Remove.
52159         (xnanosleep): Remove the workaround.
52160
52161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52162
52163         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52164         Reported by Derek Price.
52165         (Include): Add "timespec.h".
52166
52167         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52168
52169 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52170
52171         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52172         to detect nanosleep bug.
52173
52174 2005-03-01  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52177
52178 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         * modules/gethrxtime: New file.
52181         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52182         (Depends-on): Add gethrxtime.
52183         (configure.ac): Add gl_XNANOSLEEP.
52184         (Makefile.am): Remove lib_SOURCES line.
52185
52186 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52187
52188         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52189         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52190
52191 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52194         * lib/timespec.h (gettime): Return void, since it always
52195         succeeds now.  All uses changed.
52196         * lib/gettime.c (gettime) Likewise.
52197         [HAVE_NANOTIME]: Prefer nanotime.
52198         Assume gettimeofday succeeds, as POSIX requires.
52199         Assime time () succeeds, since other code already does.
52200         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52201         (timespec_subtract): Remove.
52202         (NANOSLEEP_BUG_WORKAROUND): New constant.
52203         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52204         things considerably.  Use it only on GNU/Linux hosts, since the
52205         workaround shouldn't be needed elsewhere.
52206
52207 2005-02-24  Bruno Haible  <bruno@clisp.org>
52208
52209         * modules/gettext (Files): Add m4/glibc2.m4.
52210
52211 2005-02-24  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52214         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52215         * m4/progtest.m4:
52216         Update from GNU gettext 0.14.2.
52217         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52218
52219 2005-02-24  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52222         * lib/config.charset: Update from GNU gettext 0.14.2.
52223
52224 2005-02-24  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/gettext.h: Update from GNU gettext 0.14.2.
52227
52228 2005-02-23  Simon Josefsson  <jas@extundo.com>
52229
52230         * m4/iconvme.m4: New file.
52231
52232 2005-02-23  Jim Meyering  <jim@meyering.net>
52233
52234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52235         change.
52236         Thanks to Bruno Haible for catching it.
52237
52238 2005-02-22  Simon Josefsson  <jas@extundo.com>
52239
52240         * modules/iconvme: New file.
52241
52242         * MODULES.html.sh: Add iconvme.
52243
52244 2005-02-22  Simon Josefsson  <jas@extundo.com>
52245
52246         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52247
52248 2005-02-22  Simon Josefsson  <jas@extundo.com>
52249
52250         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52251
52252 2005-02-22  Jim Meyering  <jim@meyering.net>
52253
52254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52255         s/ifndef/ifdef/.
52256
52257 2005-02-20  Neil Conway  <neilc@samurai.com>
52258
52259         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52260         returned by OSX/Darwin if the specified buffer is not large
52261         enough for the hostname.
52262
52263 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52264
52265         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52266         pass it to _help, otherwise the latter coredumps trying to
52267         dereference state.root_argp.
52268
52269 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         * modules/chdir-long (Depends-on): Add memrchr.
52272         * modules/memrchr (Files): Add lib/memrchr.h.
52273         (Include): "memrchr.h".
52274
52275 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52276
52277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52278
52279 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         * lib/memrchr.h: New file.
52282         * lib/chdir-long.c: Include it.
52283         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52284         Don't bother including stddef.h.
52285
52286 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52289         inclusion.
52290         Include <sys/types.h>, for dev_t.
52291         (ME_DUMMY, ME_REMOTE): Move from here....
52292         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52293         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52294         Dmitry V. Levin.
52295         Include mountlist.h first, to test the interface.
52296
52297 2005-01-29  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/progname.c (program_name): Initialize.
52300         Needed when linking statically on MacOS X.
52301
52302 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         Sync from coreutils.
52305         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52306         (Depends-on): Add c-strtod.
52307         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52308
52309 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52310
52311         Sync from coreutils.
52312         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52313
52314         Remove files that are specific to coreutils.
52315         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52316
52317 2005-01-28  Bruno Haible  <bruno@clisp.org>
52318
52319         * modules/javacomp: New file.
52320         * MODULES.html.sh (Java): Add javacomp.
52321
52322 2005-01-28  Bruno Haible  <bruno@clisp.org>
52323
52324         * m4/javacomp.m4: New file, from GNU gettext.
52325
52326 2005-01-28  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/javacomp.sh.in: New file, from GNU gettext.
52329         * lib/javacomp.h: New file, from GNU gettext.
52330         * lib/javacomp.c: New file, from GNU gettext.
52331
52332 2005-01-26  Simon Josefsson  <jas@extundo.com>
52333
52334         * lib/gai_strerror.c: Use GPL in header.
52335
52336 2005-01-26  Bruno Haible  <bruno@clisp.org>
52337
52338         * modules/javaexec: New file.
52339         * MODULES.html.sh (Java): Add javaexec.
52340
52341 2005-01-26  Bruno Haible  <bruno@clisp.org>
52342
52343         * m4/javaexec.m4: New file, from GNU gettext.
52344
52345 2005-01-26  Bruno Haible  <bruno@clisp.org>
52346
52347         * lib/javaexec.sh.in: New file, from GNU gettext.
52348         * lib/javaexec.h: New file, from GNU gettext.
52349         * lib/javaexec.c: New file, from GNU gettext.
52350
52351 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52352
52353         * modules/lchown (Depends-on): Remove lchown.h
52354
52355 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52356
52357         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52358         must be defined if the header file was not found, in order
52359         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52360
52361 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52362
52363         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52364         initializers for struct pentry_state.
52365         (__argp_error): Check return value of __asprintf
52366         (__argp_failure): Translate error message
52367
52368         * lib/argp-parse.c: Removed braces around the expansion of N_()
52369
52370 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52373         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52374         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52375         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52376         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52377         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52378         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52379         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52380         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52381         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52382         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52383         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52384         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52385         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52386         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52387         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52388         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52389         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52390         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52391         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52392         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52393         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52394         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52395         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52396         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52397         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52398         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52399         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52400         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52401         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52402         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52403         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52404         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52405         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52406         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52407         Use an all-permissive copyright notice, recommended by RMS.
52408
52409 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * modules/chdir-long (Depends-on): Remove mempcpy.
52412
52413 2005-01-21  Jim Meyering  <jim@meyering.net>
52414
52415         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52416         same value as for Solaris 9.
52417
52418         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52419         component length.  This included changing the parameter to be
52420         of type `char *' rather than `char const *'.
52421         * lib/chdir-long.h (chdir_long): Update prototype.
52422
52423         * lib/openat.c (fdopendir, fstatat): New functions.
52424         * lib/openat.h: Include headers required for use of DIR and struct
52425         stat.
52426         [AT_SYMLINK_NOFOLLOW]: Define.
52427         (fdopendir, fstatat): Add prototypes.
52428
52429 2005-01-21  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/classpath: New file.
52432         * MODULES.html.sh (Java): Add classpath.
52433
52434 2005-01-21  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/classpath.h: New file, from GNU gettext.
52437         * lib/classpath.c: New file, from GNU gettext.
52438
52439 2005-01-20  Simon Josefsson  <jas@extundo.com>
52440
52441         * modules/version-etc-fsf: New file.
52442
52443 2005-01-20  Simon Josefsson  <jas@extundo.com>
52444
52445         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52446         * lib/version-etc.c: Remove version_etc_copyright.
52447         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52448         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52449
52450 2005-01-20  Simon Josefsson  <jas@extundo.com>
52451
52452         * lib/base64.h (isbase64): Add.
52453
52454         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52455         using a unsigned prototype, don't inline.
52456         (base64_decode): Use it.
52457
52458 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52461         it.
52462
52463 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52464
52465         * lib/save-cwd.c (save_cwd): Remove code to support the case
52466         where fchdir is missing or flaky.
52467
52468 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52469
52470         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52471
52472 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52475         AC_LIBSOURCES now does this.
52476         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52477         with new ullong_max module.
52478
52479 2005-01-19  Bruno Haible  <bruno@clisp.org>
52480
52481         * modules/sh-quote: New file.
52482         * MODULES.html.sh (Executing programs): Add sh-quote.
52483
52484 2005-01-19  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/sh-quote.h: New file, from GNU gettext.
52487         * lib/sh-quote.c: New file, from GNU gettext.
52488
52489 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         Merge from coreutils.
52492         * m4/ullong_max.m4: New file.
52493         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52494         (gl_MACROS): Assume localeconv exists.
52495
52496 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         Merge changes from coreutils, as described below in several
52499         changelogs dated today.
52500
52501         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52502         (O_DIRECTORY): Remove; not needed here, since "." must be
52503         a directory.  All uses removed.
52504         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52505         universal on Suns, and we also need to test for IRIX.
52506         Revamp code to use 'if' rather than '#if'.
52507         Avoid unnecessary comparison of cwd->desc to 0.
52508
52509         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52510         for known valid error numbers rather than observed invalid ones.
52511
52512 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * modules/ullong_max: New file.
52515
52516         * modules/chdir-long, modules/openat: New files.
52517         * modules/save-cwd (Depends-on): Depend on chdir-long.
52518         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52519
52520 2005-01-18  Jim Meyering  <jim@meyering.net>
52521
52522         Merge from coreutils.
52523         * m4/chdir-long.m4, m4/openat.m4: New files.
52524         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52525         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52526         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52527         is sane and DOES follow symlinks.  Besides, testing 20 different
52528         systems found no broken chown implementations.
52529         Prompted by a change in rsync's copy of this macro.
52530         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52531
52532         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52533
52534         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52535         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52536         NULL-means-set-to-current-time semantics.
52537         Remove temporary file immediately, rather than waiting
52538         for configure's at-exit trap code to do it.
52539
52540 2005-01-18  Jim Meyering  <jim@meyering.net>
52541
52542         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52543
52544         * lib/utimens.c (futimens): Account for the fact that futimes
52545         can also fail with errno == ENOSYS or errno == ENOENT.
52546         Patch from Dmitry V. Levin.
52547
52548         Change the name of the robust chdir function from chdir to chdir_long.
52549         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52550         (restore_cwd): Use chdir_long, not chdir.
52551         * lib/chdir-long.c: Renamed from chdir.c.
52552         * lib/chdir-long.h: Renamed from chdir.h.
52553         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52554         Hurd.
52555
52556 2005-01-18  Bruno Haible  <bruno@clisp.org>
52557
52558         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52559         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52560         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52561         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52562         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52563         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52564         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52565         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52566         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52567         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52568         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52569         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52570         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52571         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52572         Use an all-permissive copyright notice, recommended by RMS.
52573
52574 2005-01-18  Bob Proulx  <bob@proulx.com>
52575
52576         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52577         simplify offsetof() macro construct to avoid compile failure with
52578         native HP-UX 11.0 ANSI C compiler.
52579
52580 2005-01-17  Bruno Haible  <bruno@clisp.org>
52581
52582         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52583         redundant because stpncpy.m4 takes care of it.
52584
52585 2005-01-17  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52588
52589 2005-01-17  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52592         used.
52593
52594 2005-01-17  Bruno Haible  <bruno@clisp.org>
52595
52596         * lib/fwriteerror.h (fwriteerror): Change specification to include
52597         fclose.
52598         * lib/fwriteerror.c: Include <stdbool.h>.
52599         (fwriteerror): At the end, close the file stream. Record whether
52600         stdout was already closed.
52601
52602 2005-01-17  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/execute.c (environ): Declare if needed.
52605         * lib/pipe.c (environ): Likewise.
52606         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52607
52608 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52609
52610         * modules/argp: Depend on vsnprintf
52611
52612 2005-01-10  Jim Meyering  <jim@meyering.net>
52613
52614         * modules/closeout (Depends-on): Add atexit.
52615
52616 2005-01-06  Bruno Haible  <bruno@clisp.org>
52617
52618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52619
52620 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52621
52622         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52623         definitions to be after all include files, to avoid collisions.
52624         Problem reported by Bob Proulx.
52625
52626 2005-01-04  Jim Meyering  <jim@meyering.net>
52627
52628         Changes imported from coreutils.
52629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52630         as the mkstemp template, use a temporary directory and an
52631         8.3-friendly template to avoid trouble on systems like DJGPP.
52632         Reported by Juan M. Guerrero via Stepan Kasal.
52633         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52634         close. Remove the temporary directory right away, rather than waiting
52635         for configure's at-exit trap code to do it.
52636         Suggestion from Stepan Kasal.
52637
52638 2005-01-01  Simon Josefsson  <jas@extundo.com>
52639
52640         * gnulib-tool: Print #include directives when --import'ing.
52641
52642 2004-12-28  Simon Josefsson  <jas@extundo.com>
52643
52644         * tests/test-base64.c: Include required header files.  Remove
52645         unused variables.
52646
52647 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52648
52649         * modules/error (Depends-on): Remove gettext.
52650
52651 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52652
52653         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52654         not needed.  This removes a dependency on the gettext module.
52655         [defined _LIBC]: Do not include <libintl.h>; not needed.
52656
52657 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52660         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52661
52662 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52663
52664         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52665         HAVE_DECL_STRTOLD.
52666
52667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52668
52669         * modules/getdate (Depends-on): Remove alloca-opt.
52670
52671 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52674
52675 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         * lib/argp-parse.c: Include <stddef.h>.
52678         (alignof, alignto): New macros.
52679         (parser_init): Don't assume that void * is aligned sufficiently
52680         for struct option.
52681
52682         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52683         need to extend the stack.
52684         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52685         large.
52686
52687 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52688
52689         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52690
52691 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52692
52693         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52694         (2004-10-24) change.  Apparently this was a false alarm.
52695
52696         * modules/getdate: Depend on alloca-opt, not alloca.
52697
52698 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52699
52700         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52701         Remove now-obsolete comment about AIX.
52702         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52703         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52704         (YYMAXDEPTH): New macro.
52705
52706 2004-12-18  Simon Josefsson  <jas@extundo.com>
52707
52708         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52709
52710 2004-12-18  Bruno Haible  <bruno@clisp.org>
52711
52712         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52713
52714 2004-12-18  Bruno Haible  <bruno@clisp.org>
52715
52716         * lib/fatal-signal.c (fatal_signals): Make non-const.
52717         (init_fatal_signals): New function.
52718         (uninstall_handlers, install_handlers): Ignore signals that were set to
52719         SIG_IGN.
52720         (at_fatal_signal): Call init_fatal_signals.
52721         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52722         SIG_IGN.
52723         Reported by Paul Eggert.
52724
52725 2004-12-18  Bruno Haible  <bruno@clisp.org>
52726
52727         * doc/alloca.texi: New file.
52728         * doc/alloca-opt.texi: New file.
52729
52730 2004-12-17  Jim Meyering  <jim@meyering.net>
52731
52732         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52733         Otherwise, install-sh could exit with improper exit status when
52734         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52735
52736 2004-12-16  Simon Josefsson  <jas@extundo.com>
52737
52738         * tests/test-base64.c: Add license.
52739
52740 2004-12-15  Stepan Kasal  <address@hidden>
52741
52742         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52743
52744 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * modules/getcwd (Files): Add m4/d-ino.m4.
52747         Suggested by Mark D. Baushke.
52748
52749 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52750
52751         * lib/getdate.y (textint): New member "negative".
52752         (time_zone_hhmm): New function.
52753         Expect 14 shift-reduce conflicts, not 13.
52754         (o_colon_minutes): New rule.
52755         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52756         (yylex): Set the "negative" member of signed numbers.
52757
52758 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * doc/getdate.texi (Time of day items, Time zone items):
52761         Describe new formats +00:00, UTC+00:00.
52762
52763 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52766         spurious "-l"s.  Problem reported by Stepan Kasal.
52767
52768 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52771         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52772
52773 2004-12-04  Simon Josefsson  <jas@extundo.com>
52774
52775         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52776         Vandoorselaere <yoann@prelude-ids.org>.
52777
52778 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52779
52780         Changes imported from coreutils.
52781         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52782         exist.
52783         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52784
52785 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         Changes imported from coreutils.
52788         * lib/hard-locale.c: Assume <locale.h> exists.
52789         Include "strdup.h".
52790         (GLIBC_VERSION): New macro.
52791         (hard_locale): Assume setlocale exists.
52792         Rewrite to avoid #ifdef.
52793         Use strdup rather than malloc + strcpy.
52794         * lib/human.c: Assume <locale.h> exists.
52795         (human_readable): Assume localeconv exists.
52796
52797 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         * modules/hard-locale (Depends-on): Add strdup.
52800
52801 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52802
52803         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52804         convert T2, not T.  (Imported from libc.)
52805
52806 2004-11-30  Simon Josefsson  <jas@extundo.com>
52807
52808         * modules/restrict (License): Change to LGPL.
52809
52810 2004-11-30  Simon Josefsson  <jas@extundo.com>
52811
52812         * m4/restrict.m4: Add copyright and copying conditions.
52813
52814 2004-11-30  Simon Josefsson  <jas@extundo.com>
52815
52816         * m4/base64.m4: New file.
52817
52818 2004-11-30  Simon Josefsson  <jas@extundo.com>
52819
52820         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52821         base64.
52822
52823         * tests/test-base64.c: New file.
52824
52825         * modules/base64: New file.
52826
52827 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52828
52829         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52830         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52831
52832         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52833
52834 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52835
52836         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52837         (__getcwd.c): Don't restore errno; glibc doesn't.
52838         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52839         first, falling back to our code only if its results look suspicious.
52840         Ensure that the resulting buffer is only as large as necessary.
52841
52842         * lib/readutmp.c: Include readutmp.h first.
52843         Include <errno.h>, since readutmp.h no longer does that.
52844         * lib/readutmp.h: Don't include <errno.h>,
52845         <sys/param.h>, <time.h>; not needed to establish interface.
52846         (errno): Remove decl.
52847         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52848         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52849         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52850
52851 2004-11-28  Simon Josefsson  <jas@extundo.com>
52852
52853         * lib/base64.h, base64.c: New file.
52854
52855 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52856
52857         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52858
52859 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52862         (Depends-on): Remove pathmax, same.  Add mempcpy.
52863         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52864         (Makefile.am): Append getcwd.h to lib_SOURCES.
52865         (Include): Add getcwd.h.
52866         (Maintainer): Change from Jim Meyering to "all, glibc",
52867         since getdate now uses intended-for-glibc code.
52868         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52869         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52870
52871 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52874         HP's ANSI C compiler.
52875         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52876         Declaring int functions causes warnings on some modern systems and
52877         shouldn't be needed to compile on ancient ones.
52878         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52879         defined.
52880
52881         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52882         with the following changes.
52883         (__set_errno): Parenthesize properly.
52884         Include <stdbool.h>.
52885         (MIN, MAX, MATCHING_INO): New macros.
52886         (__getcwd): Define with prototype, not K&R form.
52887         Use heuristics to allocate default buffer on stack if possible.
52888         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52889         behavior, and to avoid the PATH_MAX limit when computing
52890         ../../../../...
52891         Use MATCHING_INO to compare inode number to file.
52892         Check for arithmetic overflow in size calculations.
52893         Fix bug in reallocation of dot array that caused getcwd to fail
52894         on directories nested deeper than 75.
52895         Be more careful about saving errno on error.
52896         Do not use realloc; use only free+malloc, as this is a bit
52897         more flexible and avoids a needless copy operation.
52898         Do not inspect st_dev and st_ino for symbolic links; POSIX
52899         doesn't specify the latter.
52900         Check for closedir errors.
52901         Avoid needless casts.
52902         Use "#ifdef weak_alias" around weak_alias, to be like other
52903         glibc code.
52904         The following changes to getcwd.c have effect only when used in
52905         gnulib; they have no effect inside glibc proper.
52906         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52907         as alloca isn't used.
52908         (alloca, __alloca): Likewise.
52909         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52910         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52911         unconditionally, as gnulib assumes C89 or better.
52912         Do not include <sys/param.h>.
52913         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52914         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52915         better.
52916         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52917         Include <dirent.h> in a way that is compatible with modern Autoconf.
52918         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52919         New macros, if not already defined.
52920         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52921         Use "_LIBC", not "defined _LIBC", for consistency.
52922         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52923         a mempcpy module.
52924         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52925         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52926         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52927         credit only to Jim Meyering and adjust the copyright dates.
52928         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52929         <stdlib.h>, <unistd.h>, "pathmax.h".
52930         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52931         (INITIAL_BUFFER_SIZE): Remove.
52932         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52933
52934 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52935
52936         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52937         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52938         Use the _ONCE methods, for efficiency.
52939         Check for fcntl.h.  In test program, include <errno.h>
52940         and <fcntl.h> if available.  Remove old K&R cruft from
52941         test program.  Check for common errors in GNU/Linux,
52942         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52943         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52945         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52946         name accordingly.
52947         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52948         accommodate new getcwd.c.
52949         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52950         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52951         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52952         that's all we need now.
52953
52954 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52955
52956         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52957         argp-parse.c depends on getopt internals, that means we should
52958         always use our getopt, to be on the safe side.
52959         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52960         order not to spoil the result of an eventual previous invocation
52961         of gl_GETOPT_SUBSTITUTE.
52962
52963 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52964
52965         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52966         redefinition warnings. To avoid them, include the defines
52967         in `#if !defined __need_getopt ... #endif'. The only place
52968         where __getopt_argv_const is used is in definitions
52969         of getopt_long and getopt_long_only below, which are as well
52970         protected by `#ifndef __need_getopt'.
52971         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52972         __need_getopt after including <stdio.h> and <unistd.h> These
52973         headers might have defined it.
52974
52975 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52976
52977         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52978
52979 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52982         (futimens): New function, which uses futimes if available.
52983         (futimens, utimens): Support timespec==NULL, with same semantics
52984         as utime and utimens.
52985         * lib/utimens.h (futimens): New decl.
52986
52987 2004-11-23  Jim Meyering  <jim@meyering.net>
52988
52989         * lib/getopt_.h: Remove trailing blanks.
52990
52991 2004-11-23  Jim Meyering  <jim@meyering.net>
52992
52993         * lib/__fpending.c: Add comment.
52994
52995 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         * modules/canonicalize (Depends-on): Add xreadlink.
52998         Problem reported by James Youngman.
52999
53000 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53001
53002         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53003         New macros.
53004         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53005         optopt): Use them instead of invoking ## directly; otherwise, the
53006         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53007
53008 2004-11-19  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/strtok_r.c: Move comments from here...
53011         * lib/strtok_r.h: ... to here.
53012
53013 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53016         implementations that mishandle size_t overflow.
53017
53018 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53021         might fail.  Problem reported by Yoann Vandoorselaere.
53022         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53023         implementations that mishandle size_t overflow.
53024
53025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53026
53027         * modules/canon-host (Depends-on): Add strdup.
53028
53029 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53030
53031         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53032
53033 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53034
53035         * lib/canon-host.c: Include "strdup.h".
53036         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53037         Use strdup instead of malloc/strcpy to duplicate strings.
53038
53039         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53040         (human_space_before_unit): New constant.
53041         * lib/human.c (human_readable): Support it.
53042
53043         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53044         (xgetcwd): Set errno correctly when failing.
53045         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53046         the failure is actually due to a PATH_MAX problem.
53047
53048         Further getopt changes to make it more likely that glibc will
53049         buy the changes back.
53050         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53051         (getopt): Use it, so to preserve glibc semantic
53052         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53053         when compiling for libc.
53054         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53055         (getopt_long, getopt_long_only): Use it.
53056
53057         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53058         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53059         (getopt): Argv is now char * const *, as per standard.
53060         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53061         not char *__getopt_argv_const *.
53062         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53063         _getopt_long_only_r): Likewise.
53064         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53065         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53066         _getopt_long_r, _getopt_long_only_r): Likewise.
53067         * lib/getopt_.h (__getopt_argv_const): Remove.
53068         (getopt): Argv is now char * const *, as per standard.
53069
53070         * lib/getdate.y (tORDINAL): New token.
53071         (day, relunit): Allow it for relative times.
53072         (relative_time_table): Use tORDINAL for ordinals.
53073
53074 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53077         Document that "second" isn't allowed as an ordinal number.
53078
53079 2004-11-16  Jim Meyering  <jim@meyering.net>
53080
53081         * modules/closeout (Depends-on): Add fpending.
53082
53083 2004-11-15  Jim Meyering  <jim@meyering.net>
53084
53085         * lib/closeout.c: Include "__fpending.h" once again.
53086         Include <stdbool.h>.
53087         (close_stdout): Don't fail just because stdout was closed initially,
53088         since some programs don't write to stdout in the normal course of
53089         operation (other than --version and --help), and we don't want this
53090         function to make e.g. `touch file >&-' fail.
53091         But do fail if it was closed and someone has tried to write to it.
53092         E.g., `printf foo >&-' must fail.
53093
53094 2004-11-13  Jim Meyering  <jim@meyering.net>
53095
53096         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53097
53098 2004-11-12  Simon Josefsson  <jas@extundo.com>
53099
53100         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53101         small doc fix is still pending.
53102
53103 2004-11-11  Simon Josefsson  <jas@extundo.com>
53104
53105         * modules/strtok_r: New file.
53106
53107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53108         strtok_r.
53109
53110 2004-11-11  Simon Josefsson  <jas@extundo.com>
53111
53112         * m4/strtok_r.m4: New file.
53113
53114         * m4/getopt.m4: Replace opterr.
53115
53116 2004-11-11  Simon Josefsson  <jas@extundo.com>
53117
53118         * lib/strtok_r.h, strtok_r.c: New file.
53119
53120 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53123         of replacing opterr, getopt, etc.  This should handle the
53124         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53125
53126 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53127
53128         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53129         we can stop lying to compilers about the constness of argv when we
53130         are compiled outside glibc.
53131         (getopt, getopt_long, getopt_long_only): Use it.
53132         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53133         _getopt_internal, getopt): Likewise.
53134         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53135         _getopt_long_only_r): Likewise.
53136         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53137         _getopt_long_r, _getopt_long_only_r): Likewise.
53138
53139         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53140         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53141         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53142         the other external symbols.
53143         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53144         declaration, since the above renaming now works around collisions.
53145
53146 2004-11-11  Jim Meyering  <jim@meyering.net>
53147
53148         * lib/linebreak.c: Remove trailing blanks.
53149         * lib/alloca_.h: Likewise.
53150         * lib/acosl.c: Likewise.
53151         * lib/euidaccess.c: Likewise.
53152         * lib/allocsa.h: Likewise.
53153
53154 2004-11-10  Simon Josefsson  <jas@extundo.com>
53155
53156         * m4/getaddrinfo.m4: New file.
53157
53158 2004-11-10  Simon Josefsson  <jas@extundo.com>
53159
53160         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53161
53162 2004-11-10  Simon Josefsson  <jas@extundo.com>
53163
53164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53165         getaddrinfo.
53166
53167         * modules/getaddrinfo: New file.
53168
53169 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53170
53171         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53172
53173 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53174
53175         * lib/mktime.c (SHR): New macro, which is a portable
53176         substitute for >> that should work even on Crays.
53177         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53178         Problem reported by Mark D. Baushke in
53179         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53180         * lib/getdate.y (SHR): Likewise.
53181         (tm_diff): Use it.
53182         * lib/strftime.c (SHR): Likewise.
53183         (tm_diff): Use it.
53184         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53185         quote_these_too, so that right shifts are well defined.  All uses
53186         changed.
53187
53188 2004-11-10  Jim Meyering  <jim@meyering.net>
53189
53190         Ensure that no close failure goes unreported.
53191         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53192         return early when it seems there's nothing to flush.
53193         Don't include __fpending.h.
53194
53195 2004-11-10  Jim Meyering  <jim@meyering.net>
53196
53197         * modules/closeout (Depends-on): Remove fpending.
53198
53199 2004-11-10  Jim Meyering  <jim@meyering.net>
53200
53201         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53202
53203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53204
53205         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53206         gl_FUNC_STRFTIME.
53207         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53208         and AC_REQUIRE when possible, to avoid duplicate checks.
53209         Check for <wchar.h>.
53210
53211 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53212
53213         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53214
53215 2004-11-09  Bruno Haible  <bruno@clisp.org>
53216
53217         * m4/sockpfaf.m4: New file.
53218
53219 2004-11-05  Bruno Haible  <bruno@clisp.org>
53220
53221         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53222         Reported by Mark D. Baushke <mdb@cvshome.org>.
53223
53224 2004-11-04  Bruno Haible  <bruno@clisp.org>
53225
53226         2004-09-11  Bruno Haible  <bruno@clisp.org>
53227                 * allocsa.valgrind: New file.
53228         2004-02-06  Bruno Haible  <bruno@clisp.org>
53229                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53230                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53231                 Reported by Christopher Seip <chris.seip@hp.com>.
53232
53233 2004-11-04  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53236         (Makefile.am): Distribute it.
53237
53238 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53241         with errno == ERANGE if the buffer is too small.
53242         Problem reported by Mark D. Baushke.
53243
53244 2004-11-03  Albert Chin  <china@thewrittenword.com>
53245             Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53248         equivalent, substitute $ac_type for equivalent type rather than
53249         blindly using uint32_t *always* which won't work if uint32_t is not
53250         available.  Define _UINT32_T to work around typedef of uint32_t if
53251         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53252         2.5.1.
53253
53254 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53255
53256         * m4/jm-macros.m4: Sync from coreutils.
53257         (gl_MACROS): Check for mbrlen, for pathchk.
53258         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53259
53260 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * lib/xreadlink.c (MAXSIZE): New macro.
53263         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53264         size does not exceed MAXSIZE.  Avoid cast.
53265         As suggested by Mark D. Baushke in
53266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53267         if readlink fails with buffer size just under MAXSIZE, try again
53268         with MAXSIZE.
53269
53270 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53273
53274 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53275         and  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53278         (get_date): Overparenthesize to avoid GCC warning.
53279
53280 2004-11-02  Bruno Haible  <bruno@clisp.org>
53281
53282         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53283         returns void.
53284
53285 2004-11-02  Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53288         function returns void.
53289
53290 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53291
53292         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53293         fflush_unlocked, flockfile, funlockfile, funlockfile,
53294         fputs_unlocked, putc_unlocked.
53295
53296 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53299         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53300         already declared.
53301
53302 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * modules/getdate (Files): Add doc/getdate.texi.
53305         (Depends-on): Add setenv, xalloc.
53306
53307 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/getdate.y: Add support for TZ="foo" within a date string.
53310         Fix some bugs near time_t boundaries.  Reject dates with
53311         out-of-range components, e.g., "Sept 31".
53312         Include <stdlib.h>, "setenv.h", "xalloc.h".
53313         (ISDIGIT_LOCALE): Remove; unused.
53314         Note that the TZ and time functions used here are not reentrant.
53315         (mktime_ok, get_tz): New functions.
53316         (TZBUFSIZE): New constant.
53317         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53318         This requires that we sometimes generate our own TZ="XXX..." setting.
53319
53320 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         * doc/getdate.texi: New file, from coreutils with modifications for
53323         the new TZ parsing.
53324
53325 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53326
53327         * lib/mktime.c (not_equal_tm): Remove redundant check.
53328
53329 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * modules/regex (lib_SOURCES): Add regex.c.
53332         Reported by James Youngman in
53333         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53334
53335 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53336
53337         * lib/getdate.y: Use Bison 1.875 features, and some minor
53338         code cleanups.  This change does not affect semantics.
53339         Don't include <stdlib.h>; no longer needed.
53340         Don't include unlocked-io.h; only the "#if TEST" code uses
53341         stdio, and performance isn't crucial there.
53342         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53343         Bison 1.875 features as described below.
53344         All uses of "PC." replaced by "pc->".
53345         (YYSTYPE): Add a forward declaration.
53346         (yylex, yyerror): Use full prototypes in forward decls.
53347         Use "%pure-parser" rather than obsolescent "%pure_parser".
53348         Use %parse-param and %lex-param instead of obsolescent
53349         YYPARSE_PARAM and YYLEX_PARAM.
53350         (meridian_table, month_and_day_table, time_units_table,
53351         relative_time_table, time_zone_table, military_table,
53352         lookup_zone, lookup_word, get_date):
53353         Use NULL instead of 0 where appropriate.
53354         (to_hour): Avoid abort (), to avoid a dependency on
53355         stdlib.h.
53356         (yyerror, yylex): Now accepts parser_control * arg.
53357         (main) [TEST]: Use '\0' rather than 0 for char.
53358
53359 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53362
53363 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53366         It's now the caller's responsibility to handle the case where
53367         !HAVE_GETPAGESIZE && !defined getpagesize.
53368
53369         * lib/mktime.c (leapyear): Arg is long int, not int.
53370
53371 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53374
53375 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53378         missing.  Problem reported by James Youngman.
53379
53380 2004-10-16  Simon Josefsson  <jas@extundo.com>
53381
53382         * gnulib-tool: Fix comments.  Fix parse problem.
53383         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53384
53385 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53388         implementation of getopt_long.  Problem reported by Alexander Taler in:
53389         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53390
53391 2004-10-15  Bruno Haible  <bruno@clisp.org>
53392
53393         * gnulib-tool: Untabify. Initialize supplied_libname.
53394         (func_usage): More homogenous output.
53395         (func_modules_transitive_closure, func_modules_to_filelist,
53396         func_emit_lib_Makefile_am): New functions.
53397         (func_import): New function, extracted from big case statement. Use
53398         func_get_license, func_modules_transitive_closure,
53399         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53400         opt_lgpl. Don't use test -a, as it's not portable.
53401         (func_create_testdir): Use func_modules_transitive_closure,
53402         func_modules_to_filelist, func_emit_lib_Makefile_am.
53403
53404 2004-10-15  Bruno Haible  <bruno@clisp.org>
53405
53406         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53407
53408 2004-10-15  Bruno Haible  <bruno@clisp.org>
53409
53410         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53411         the portions belonging to each module.
53412         Suggested by Derek Robert Price <derek@ximbiot.com>.
53413
53414 2004-10-12  Simon Josefsson  <jas@extundo.com>
53415
53416         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53417         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53418         to real functions.
53419
53420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53421
53422         * modules/vsnprintf: New file.
53423
53424 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53425
53426         * m4/vsnprintf.m4: New file.
53427
53428 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53429
53430         * lib/vsnprintf.h: New file.
53431         * lib/vsnprintf.c: New file.
53432
53433 2004-10-11  Bruno Haible  <bruno@clisp.org>
53434
53435         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53436         vsnprintf.
53437
53438 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53439
53440         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53441
53442 2004-10-07  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53445         fits into the provided buffer.
53446
53447 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         * lib/diacrit.c, diacrit.h: Add GPL notice.
53450
53451         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53452         notice.
53453         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53454         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53455         This avoids a potential constant-folding bug.
53456
53457 2004-10-05  Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53460         for the declaration of strsep.
53461
53462 2004-10-05  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53465
53466 2004-10-04  Simon Josefsson  <jas@extundo.com>
53467
53468         * modules/memmem: New file.
53469         * tests/test-memmem.c: New file.
53470         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53471
53472 2004-10-04  Simon Josefsson  <jas@extundo.com>
53473
53474         * m4/memmem.m4: New file.
53475
53476 2004-10-04  Simon Josefsson  <jas@extundo.com>
53477
53478         * lib/memmem.h: New file.
53479         * lib/memmem.c: New file, taken from glibc.
53480
53481 2004-10-04  Simon Josefsson  <jas@extundo.com>
53482
53483         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53484         '#ifdef USE_UNLOCKED_IO'.
53485
53486 2004-10-04  Simon Josefsson  <jas@extundo.com>
53487
53488         * config/srclist.txt: Add memmem from glibc.
53489
53490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53493
53494         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53495         modules/exclude, modules/getdate, modules/getline,
53496         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53497         modules/getusershell, modules/linebuffer, modules/md5,
53498         modules/mountlist, modules/posixtm, modules/readtokens,
53499         modules/readutmp, modules/regex, modules/sha1,
53500         modules/version-etc, modules/yesno:
53501         Remove dependency on unlocked-io.
53502
53503 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53506
53507         * m4/unlocked-io.m4: Add copyright notice.
53508         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53509
53510 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53513         * lib/xmalloc.c (xmemdup): Likewise.
53514         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53515         XFREE): Remove these long-obsolescent macros.
53516         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53517         * lib/xstrdup.c: Remove.
53518
53519         * lib/regex.c (re_comp): Cast gettext return value to char *,
53520         Problem reported by Martin Neitzel via Mark D. Baushke.
53521
53522 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53525         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53526         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53527         regex.c, sha1.c, version-etc.c, yesno.c:
53528         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53529         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53530         the includer's responsibility.
53531
53532         Sync from coreutils.
53533
53534         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53535         points to the start of a string, as the C Standard says the
53536         resulting behavior is undefined.
53537
53538         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53539         simple -> simple_backups, numbered_existing ->
53540         numbered_existing_backups, numbered -> numbered_backups
53541         to avoid shadowing problems.  All uses changed.
53542         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53543         * lib/backupfile.c (check_extension, numbered_backup):
53544         Rename locals to avoid shadowing 'basename'.
53545         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53546         once.
53547
53548         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53549         * lib/.cvsignore: Add getopt.h.
53550
53551 2004-10-04  Bruno Haible  <bruno@clisp.org>
53552
53553         * modules/README: New file.
53554         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53555         not a module.
53556
53557 2004-10-02  Jim Meyering  <jim@meyering.net>
53558
53559         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53560
53561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53562
53563         * modules/strsep: New file.
53564
53565 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53566
53567         * m4/strsep.m4: New file.
53568
53569 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53570
53571         * lib/strsep.h: New file.
53572         * lib/strsep.c: New file.
53573
53574 2004-10-01  Simon Josefsson  <jas@extundo.com>
53575
53576         * lib/snprintf.c (snprintf): Handle size==0.
53577
53578 2004-10-01  Simon Josefsson  <jas@extundo.com>
53579             Bruno Haible  <bruno@clisp.org>
53580
53581         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53582         (snprintf): Declare 'args'.
53583
53584 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * lib/snprintf.c: Remove comments as to why each header is needed.
53587
53588 2004-10-01  Bruno Haible  <bruno@clisp.org>
53589
53590         * MODULES.html.sh: Add strsep.
53591
53592 2004-09-30  Simon Josefsson  <jas@extundo.com>
53593
53594         * modules/snprintf: New file.
53595
53596 2004-09-30  Simon Josefsson  <jas@extundo.com>
53597
53598         * m4/snprintf.m4: New file.
53599
53600 2004-09-30  Simon Josefsson  <jas@extundo.com>
53601
53602         * lib/snprintf.h, lib/snprintf.c: New files.
53603
53604 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53605
53606         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53607         (hol_entry_help): Never translate an empty string.
53608         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53609         * lib/argp.h (OPTION_NO_TRANS): New option.
53610
53611 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * modules/argp (Maintainer): Replace Simon Josefsson
53614         by Sergey Poznyakoff.
53615
53616 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53617
53618         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53619         changes merged back into glibc.
53620
53621 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53624
53625 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53626
53627         * lib/xvasprintf.c: Include xalloc.h.
53628         (xvasprintf): Use xalloc_die, not xmalloc_die.
53629
53630 2004-09-29  Bruno Haible  <bruno@clisp.org>
53631
53632         * modules/alloca-opt: New file, derived from modules/alloca.
53633         * modules/allocsa: Depend on alloca-opt instead of alloca.
53634         * modules/setenv: Likewise.
53635         * modules/vasnprintf: Likewise.
53636         * MODULES.html.sh: Add alloca-opt.
53637
53638 2004-09-28  Simon Josefsson  <jas@extundo.com>
53639
53640         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53641         LGPL, and to replace license template from GPL to LGPL.
53642
53643 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * modules/dummy: Change license to LGPL.
53646
53647 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53650
53651 2004-09-24  Simon Josefsson  <jas@extundo.com>
53652
53653         * modules/minmax (License): Change from GPL to LGPL.
53654
53655 2004-09-23  Simon Josefsson  <jas@extundo.com>
53656
53657         * gnulib-tool (--import): Typo.
53658
53659 2004-09-23  Simon Josefsson  <jas@extundo.com>
53660
53661         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53662
53663 2004-09-22  Bruno Haible  <bruno@clisp.org>
53664
53665         * modules/*: Add 'License' field.
53666         * gnulib-tool: Accept --extract-license option.
53667         (func_get_license): New function.
53668
53669 2004-09-21  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53672         Reported by Simon Josefsson.
53673
53674 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53677         gl_AC_TYPE_LONG_LONG.
53678
53679 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53682
53683 2004-09-18  Simon Josefsson  <jas@extundo.com>
53684         and  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53687         calls with autoreconf.  Define GL_LIB.
53688
53689 2004-09-14  Karl Berry  <karl@gnu.org>
53690
53691         * config/srclist.txt: unsync setenv.c, sigh.
53692
53693 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53696         Problem reported by Bruno Haible in:
53697         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53698
53699 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * config/srclist.txt: Comment out argp-pvh.c.
53702
53703 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53704
53705         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53706         in case some system header has #define'd it.  Problem reported by
53707         Soeren D. Schulze in
53708         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53709
53710 2004-09-09  Karl Berry  <karl@gnu.org>
53711
53712         * regex.[ch]: delete from the root.  These were supposed to be
53713                 synced with emacs cvs, but this has not happened for about
53714                 a year, and anyway nothing else uses emacs regex.[ch].
53715                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53716                 lib/regex[.ch] is untouched.
53717
53718 2004-09-09  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53721
53722 2004-09-09  Bruno Haible  <bruno@clisp.org>
53723
53724         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53725         modifications.
53726         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53727
53728 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53729
53730         * modules/xvasprintf: New file.
53731         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53732
53733 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53734
53735         * lib/xvasprintf.h: New file.
53736         * lib/xvasprintf.c: New file.
53737         * lib/xasprintf.c: New file.
53738
53739 2004-09-08  Bruno Haible  <bruno@clisp.org>
53740
53741         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53742
53743 2004-09-08  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53746         length is > INT_MAX.
53747         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53748         more.
53749
53750 2004-09-08  Bruno Haible  <bruno@clisp.org>
53751
53752         * lib/stdint_.h: New file, taken from GNU clisp.
53753
53754 2004-09-08  Bruno Haible  <bruno@clisp.org>
53755             Oskar Liljeblad  <oskar@osk.mine.nu>
53756
53757         * modules/stdint: New file.
53758         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53759
53760 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         Import from coreutils.
53763         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53764         strings on unbounded length.  alloca's performance benefits aren't
53765         that important here.
53766         (V_STRDUP): Remove.
53767         (parse_with_separator): New function, with most of the internals
53768         of the old parse_user_spec.  Allow user to omit both user and group,
53769         for compatibility with FreeBSD.
53770         Clone only the user name, not the entire spec.
53771         Do not set *uid, *gid unless entirely successful.
53772         Avoid memory leak in some failing cases.
53773         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53774         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53775         (parse_user_spec): Rewrite to use parse_with_separator.
53776
53777 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * modules/userspec: Don't depend on alloca.
53780
53781 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53784
53785 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53788         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53789         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53790
53791 2004-08-16  Simon Josefsson  <jas@extundo.com>
53792
53793         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53794         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53795         Add --dry-run for --import.
53796         Let user provided command line parameters override configure.ac
53797         settings.
53798
53799 2004-08-12  Simon Josefsson  <jas@extundo.com>
53800
53801         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53802         as discussed with Paul Eggert in threads rooted at
53803         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53804         and
53805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53806         Before, the test was empty, and relied on ELIDE_CODE in source
53807         code.)
53808         (gl_PREREQ_GETOPT): New macro.
53809         (gl_GETOPT): Use them.
53810
53811 2004-08-12  Simon Josefsson  <jas@extundo.com>
53812
53813         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53814         * lib/getopt_.h: Renamed from getopt.h.
53815
53816 2004-08-12  Simon Josefsson  <jas@extundo.com>
53817
53818         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53819         Change default library name from libfoo to libgnu.
53820         Now, if you have a configure.ac that says:
53821                 gl_SOURCE_BASE(gl)
53822                 gl_M4_BASE(gl/m4)
53823                 gl_MODULES(error getopt etcetera)
53824                 gl_INIT
53825         you can import all you need by running:
53826                 ../gnulib/gnulib-tool --import
53827
53828         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53829         (Makefile.am): Rewrite, use logic from argz.
53830         (Include): Use <getopt.h> instead of "getopt.h".
53831
53832 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53833
53834         * modules/argp (Files): Add m4/unlocked-io.m4.
53835         (Depends-on): Add extensions.
53836
53837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53840         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53841         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53842         Check for program_invocation_name, program_invocation_short_name,
53843         flockfile, funlockfile, features.h, _getopt_long_only_r.
53844
53845 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53846
53847         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53848         its complicated substitute.
53849         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53850         and program_invocation_name.
53851         (__argp_basename) [!_LIBC]: Remove; the only use was
53852         replaced by its body.
53853         (__argp_short_program_name): Change condition from
53854         !defined __argp_short_program_name to
53855         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53856         to match argp-namefrob.h.
53857         (__argp_failure): Don't assume strerror_r returns char *.
53858         * lib/argp-parse.c (N_): Define unconditionally.
53859         (argp_default_options): Fill out initializers with 0 to avoid
53860         gcc warnings.
53861
53862 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53865         getopt1.c.
53866
53867 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53868
53869         Merge from coreutils.
53870
53871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53872
53873         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53874         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53875
53876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53877
53878         Merge from coreutils.
53879
53880         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53881         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53882         for Reliant Unix 5.43.
53883
53884         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53885         (union fooround): Use uintmax_t, not long int.
53886         The rest is a merge from libc:
53887         [defined _LIBC]: Include <shlib-compat.h>.
53888         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53889
53890         * lib/settime.c (settime): Recode to avoid warning with
53891         Sun Forte C 6U2.
53892
53893         * lib/strverscmp.c: Convert to UTF-8.
53894
53895 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53896
53897         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53898         m4/uintmax_t.m4.
53899
53900 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * modules/xalloc-die: New file.
53903         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53904
53905         * modules/md5 (Files): Add m4/uint32_t.m4.
53906         * modules/sha1: Renamed from modules/sha.
53907         (Files):
53908         Rename lib/sha.h to lib/sha1.h.
53909         Rename lib/sha.c to lib/sha1.c.
53910         Rename m4/sha.m4 to m4/sha1.m4.
53911         (lib_SOURCES): Likewise.
53912         (configure.ac): Rename gl_SHA to gl_SHA1.
53913         (Include): sha.h -> sha1.h.
53914
53915 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53918         * m4/sha1.m4: Renamed from sha.m4.
53919         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53920
53921 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53922
53923         * lib/obstack.h (obstack_empty_p):
53924         Don't assume that chunk->contents is suitably aligned.
53925         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53926         Likewise. Problem reported by Benno in
53927         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53928
53929         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53930         readable.  This could be improved further but it'd take some work.
53931
53932 2004-08-08  Simon Josefsson  <jas@extundo.com>
53933
53934         * modules/xgethostname (Depends-on): Remove exit and error (not
53935         used).
53936
53937         * modules/getpass-gnu: Add getpass.h.
53938         (Depends-on): Add stdbool.
53939         * modules/getpass: Add getpass.h.
53940
53941 2004-08-08  Simon Josefsson  <jas@extundo.com>
53942
53943         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53944         Check getpass declaration.
53945
53946 2004-08-08  Simon Josefsson  <jas@extundo.com>
53947
53948         * lib/xgethostname.c: Don't include error.h (not used).
53949
53950         * lib/getpass.h: Add.
53951         * lib/getpass.c: Include getpass.h first.
53952
53953 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53954
53955         * lib/xalloc-die.c: New file.
53956         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53957         All uses removed.
53958         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53959         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53960         xalloc-die.c.
53961         (_, N_, xalloc_die): Move to xalloc-die.c.
53962         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53963         so that we needn't mess with xalloc_msg_memory_exhausted.
53964
53965         * lib/sha1.h: Renamed from sha.h.
53966         (SHA1_H): Renamed from _SHA_H.
53967         (sha1_ctx): Renamed from sha_ctx.
53968         (sha1_init_ctx): Renamed from sha_init_ctx.
53969         (sha1_process_block): Renamed from sha_process_block.
53970         (sha1_process_bytes): Renamed from sha_process_bytes.
53971         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53972         (sha1_read_ctx): Renamed from sha_read_ctx.
53973         (sha1_stream): Renamed from sha_stream.
53974         (sha1_buffer): Renamed from sha_buffer.
53975         * lib/sha1.c: Likewise; renamed from sha.c.
53976         Do not include <sys/types.h>.
53977         Include <stddef.h> rather than <stdlib.h>.
53978
53979 2004-08-08  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53982         FILESYSTEM_PREFIX_LEN.
53983         * lib/progreloc.c: Likewise.
53984         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53985
53986 2004-08-06  Simon Josefsson  <jas@extundo.com>
53987
53988         * modules/progname (Depends-on): Don't depend on stdbool.
53989
53990 2004-08-06  Simon Josefsson  <jas@extundo.com>
53991
53992         * modules/getsubopt: New file.
53993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53994         getsubopt.
53995
53996 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         More merge from coreutils.
53999
54000         * m4/utimens.m4, m4/utimecmp.m4: New files.
54001         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54002         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54003         prereq.m4, sha.m4: Import changes from coreutils.
54004
54005 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         More merge from coreutils.
54008         * modules/raise, modules/readtokens0, modules/utimens:
54009         * modules/utimecmp, module/xnanosleep: New files.
54010         * modules/strftime: Add lib/strftime.h.
54011         Change include from <time.h> to "strftime.h".
54012         * modules/yesno: Add lib/yesno.h.
54013         * modules/backupfile: Remove lib/addext.c.
54014         * modules/euidaccess: Add stat-macros.h.
54015         * modules/canonicalize, modules/euidaccess,
54016         modules/filemode, modules/lchown, modules/makepath,
54017         modules/rmdir, modules/stat: Likewise.
54018
54019 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         Merge from tar.
54022         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54023         SIZE_MAX is a valid preprocessor constant.
54024         (__argp_basename): Change from "#ifndef _LIBC"
54025         to "#ifndef __argp_short_program_name", so that
54026         we don't compile these functions for tar.
54027
54028         More merges from coreutils.
54029         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54030         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54031         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54032         * lib/addext.c: Remove; no longer needed.
54033         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54034         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54035         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54036         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54037         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54038         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54039         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54040         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54041         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54042         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54043         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54044         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54045         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54046         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54047         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54048         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54049         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54050         Import changes from coreutils.
54051
54052 2004-08-05  Simon Josefsson  <jas@extundo.com>
54053
54054         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54055
54056 2004-08-05  Simon Josefsson  <jas@extundo.com>
54057
54058         * m4/getsubopt.m4: New file.
54059
54060 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54061
54062         Merge from coreutils.
54063
54064         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54065         * m4/getcwd-path-max.m4: New files.
54066
54067         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54068         FILESYSTEM_PREFIX_LEN ->
54069         FILE_SYSTEM_PREFIX_LEN.
54070         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54071         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54072         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54073         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54074
54075         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54076         prerequisite modules now handle the DOS stuff.
54077         Don't check for unistd.h.
54078
54079 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         Merge from coreutils.
54082
54083         * lib/.gdb-history: Remove; this doesn't belong here.
54084
54085         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54086         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54087         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54088         * lib/getcwd.c: New files.
54089
54090         * lib/dirname.h: Include <stdbool.h>.
54091         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54092         for consistency with POSIX terminology.  All uses changed.
54093         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54094         (strip_trailing_slashes): Use bool for booleans.
54095         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54096
54097         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54098         sometimes returns a positive errno value even when it succeeds.
54099         (print_errno_message) [!LIBC]: Fall back on strerror if
54100         __strerror_r fails.
54101
54102         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54103         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54104         (longest_relative_suffix): New function.
54105         (path_concat): Use it.  Assume first argument is not NULL.
54106         Port to DOS.  Omit redundant separators.
54107         Report an error instead of returning NULL.
54108         Use mempcpy instead of memcpy.
54109         (xpath_concat): Remove: not declared or used.
54110
54111         * lib/same.h: Include <stdbool.h>
54112         (same_name): Return bool, not int.
54113         * lib/same.c (same_name): Likewise.
54114         (errno): Don't declare; we assume C89 or better now.
54115
54116         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54117         if not already defined.
54118
54119         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54120         * lib/dup-safer.c (errno): Likewise.
54121
54122 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54123
54124         Merge from coreutils.
54125         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54126         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54127         * modules/path-concat: Don't depend on strdup.
54128
54129 2004-08-03  Simon Josefsson  <jas@extundo.com>
54130
54131         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54132         * lib/progname.h: Don't include stdbool.h.
54133
54134 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54137         * MODULES.html.sh (func_all_modules): Remove fatal.
54138
54139 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54140
54141         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54142
54143 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54144
54145         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54146         working.
54147
54148 2004-08-02  Simon Josefsson  <jas@extundo.com>
54149
54150         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54151         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54152         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54153
54154 2004-08-01  Simon Josefsson  <jas@extundo.com>
54155
54156         * lib/xgetdomainname.c: Include stdlib.h, for free().
54157
54158 2004-07-19  Bruno Haible  <bruno@clisp.org>
54159
54160         * MODULES.html.sh (func_all_modules): Add dummy.
54161
54162 2004-07-16  Simon Josefsson  <jas@extundo.com>
54163
54164         * modules/dummy: New file.
54165
54166 2004-07-16  Simon Josefsson  <jas@extundo.com>
54167
54168         * lib/dummy.c: New file.
54169
54170 2004-07-16  Bruno Haible  <bruno@clisp.org>
54171
54172         * lib/backupfile.h: Add extern "C" for C++.
54173         * lib/closeout.h: Likewise.
54174         * lib/copy-file.h: Likewise.
54175         * lib/findprog.h: Likewise.
54176         * lib/full-write.h: Likewise.
54177         * lib/pathname.h: Likewise.
54178         * lib/progname.h: Likewise.
54179         * lib/stpcpy.h: Likewise.
54180         * lib/stpncpy.h: Likewise.
54181         * lib/strcase.h: Likewise.
54182         * lib/strstr.h: Likewise.
54183         * lib/xalloc.h: Likewise.
54184
54185         * lib/mbswidth.h: Add extern "C" for C++.
54186         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54187
54188 2004-07-13  Robert Millan  <robertmh@gnu.org>
54189
54190         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54191
54192 2004-07-09  Simon Josefsson  <jas@extundo.com>
54193
54194         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54195         failed without this.)
54196
54197 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54198
54199         * modules/chown (Files): Add lib/fchown-stub.c, since
54200         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54201
54202 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * lib/fchown-stub.c: New file.
54205
54206 2004-06-24  Jim Meyering  <jim@meyering.net>
54207
54208         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54209
54210 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         * modules/argz: Omit "#include".
54213
54214         * MODULES.html.sh (func_all_modules): Add calloc, to match
54215         2004-06-01 addition of calloc module.
54216
54217 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * m4/argz.m4: New file, which is autoupdated from libtool.
54220
54221 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54224         libtool.
54225
54226 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54227
54228         * config/srclist-update: Don't insist on "USA." before the
54229         close-comment, as libtool omits the period and puts the */ on a
54230         separate line.
54231         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54232         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54233
54234 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54235
54236         * modules/argz: New file.
54237         * MODULES.html.sh (func_all_modules): Add argz.
54238
54239 2004-06-12  Jim Meyering  <jim@meyering.net>
54240         and  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * modules/hash (Files): Add lib/xalloc.h.
54243         * modules/pipe (Depends-on): Add wait-process.
54244         * modules/stat (Depends-on): Add xalloc.
54245         * modules/userspec (Files): Add lib/userspec.h.
54246         * modules/xstrto
54247
54248         Upgrade from gettext-0.13.
54249         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54250         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54251         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54252
54253 2004-06-10  Jim Meyering  <jim@meyering.net>
54254
54255         * lib/calloc.c: New file.
54256
54257 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * lib/getdate.y (yylex): Allow space between sign and number.
54260         Problem reported by Dan Jacobson.
54261
54262 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         Merge from coreutils CVS.
54265
54266         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54267         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54268         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54269         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54270         xstrtol.m4: Fix copyright date and/or serial number.
54271
54272         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54273         See if we need an fchown replacement.
54274         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54275         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54276         and use the replacement function if we detect either defect.
54277
54278         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54279         gl_UTIMECMP.
54280
54281 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54282         and  Jim Meyering  <jim@meyering.net>
54283
54284         Merge from coreutils CVS.
54285
54286         * lib/stat-macros.h: New file, with contents from file-type.h
54287         and coreutils' system.h.
54288         * lib/file-type.c: Include "stat-macros.h".
54289         * lib/file-type.h (file_type): Move all macro definitions to new file,
54290         stat-macros.h.
54291
54292         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54293         Wrap old code with this conditional.
54294         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54295         function that does not dereference symlinks.
54296         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54297
54298         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54299         dependency problems.
54300         (xreadlink): Accept new arg SIZE, for efficiency.
54301         All decls and uses changed.
54302         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54303
54304         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54305         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54306
54307         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54308         sysexits.h.
54309
54310 2004-06-01  Jim Meyering  <jim@meyering.net>
54311
54312         * m4/calloc.m4: New file.
54313
54314 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54317         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54318         Also, fix a typo in a diagnostic.
54319
54320 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54323         or AC_FUNC_REALLOC.
54324
54325 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54328         macros to be defined.
54329         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54330         the allocator returns NULL because the requested size is zero.
54331
54332 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54335         var.  Add comment explaining why libc still defines it.  This
54336         merges the following patch from glibc:
54337         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54338
54339 2004-05-20  Andreas Schwab  <schwab@suse.de>
54340
54341         * m4/free.m4: Replace free if it not known to work, not the other
54342         way round.
54343
54344 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54347         present in glibc since revision 1.1 of this file.
54348         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54349         obstack_alignment_mask, obstack_alloc, obstack_base,
54350         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54351         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54352         obstack_grow0, obstack_init, obstack_int_grow,
54353         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54354         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54355         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54356         nonexistent functions.
54357
54358 2004-05-18  Karl Berry  <karl@gnu.org>
54359
54360         * config/srclist.txt: break link for vasnprintf.c.
54361
54362 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54363
54364         Port obstack to the AS/400, where pointers are 16 bytes wide and
54365         you cannot cast an integer to a valid pointer.  This patch is
54366         currently waiting to be integrated into glibc; see
54367         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54368
54369         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54370         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54371         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54372         (struct obstack): temp member is now a union of a pointer and
54373         an integer, instead of an integer.  All integer uses changed.
54374         This does not affect the physical layout of struct obstack,
54375         except on hosts (like the AS/400) where the size or alignment of
54376         void * is greater than that of ptrdiff_t.
54377         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54378         __STDC__)]: Store temporary in pointer member of union, not
54379         integer member.
54380         * lib/obstack.c: Include <stddef.h>, for offsetof.
54381         (struct fooalign): Remove; it doesn't need a name.
54382         (union fooround): Change double to long double, and add void *.
54383         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54384         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54385         not a macro.  Hence the values are always int; so remove all
54386         casts-to-int in uses.
54387
54388 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54389
54390         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54391         we can get this patch merged into glibc.
54392
54393 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54394             Paul Eggert  <eggert@cs.ucla.edu>
54395
54396         * m4/argp: Depend on alloca.
54397
54398 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54399             Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54402         freecoding.
54403
54404 2004-05-17  Bruno Haible  <bruno@clisp.org>
54405
54406         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54407         precision that consists of a '.' followed by an empty digit string.
54408         Patch by Tor Lillqvist <tml@iki.fi>.
54409
54410 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54413         for backward compatibility with older code.  We need our own
54414         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54415         it under some other name, and our alloca.h will define it.
54416
54417 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54418             Derek Price  <derek@ximbiot.com>
54419
54420         * lib/alloca.c: Include <alloca.h>, to get our interface.
54421         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54422         include <alloca.h> first.  Use C89 prototype for alloca; this
54423         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54424         Use #elif for simplicity, since we can assume C89 now.
54425         Don't try to source the system alloca.h since it will not be found
54426         and to prevent recursively including its replacement.
54427         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54428         * lib/regex.c: Likewise.
54429
54430 2004-05-16  Derek Price  <derek@ximbiot.com>
54431             Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         getline cleanup.  This changes the getndelim2 API: both order of
54434         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54435         no delimiter).
54436
54437         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54438         interface does that.
54439         (getline): Always use getdelim, so that we don't have two
54440         copies of this code.
54441         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54442         if available.
54443         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54444         (GETNDELIM2_MAXIMUM): New macro.
54445         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54446         instead of the old practice of delim2==0.  All callers changed.
54447         Return -1 on overflow, instead of returning junk.
54448         Do not set *linesize unless allocation succeeds.
54449         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54450         that we include sys/types.h.
54451         * lib/getnline.h: Likewise.
54452         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54453         (getndelim2): Reorder arguments.
54454         * lib/getnline.c (getnline, getndelim):
54455         Don't discard the NMAX argument.
54456         (getnline): Invoke getndelim, to avoid code duplication.
54457         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54458         of (size_t) -1 by callers of the getnline family.
54459
54460 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54461
54462         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54463         Check for gettimeofday.
54464         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54465         Check for settimeofday, stime.
54466
54467 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54468
54469         * lib/nanosleep.c (suspended): Change its type from int to
54470         sig_atomic_t volatile.
54471         (first_call): Make it private to rpl_nanosleep, and have it
54472         be zero initially as that's a bit faster.
54473         (my_usleep): Round up fractional times instead of truncating them,
54474         as this is the usual meaning for 'sleep'.
54475
54476         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54477         doesn't work.
54478         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54479         (ENOSYS): Define if not defined.
54480         (settime): Fall back on stime if it exists and settimeofday fails.
54481         But don't bother with fallbacks if a method fails with errno == EPERM.
54482
54483 2004-05-11  Jim Meyering  <jim@meyering.net>
54484
54485         Prior to this change, the save_cwd caller required read access to the
54486         current directory on most systems (ones with the fchdir function).
54487
54488         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54489         fails, try write-only, and finally, resort to using xgetcwd.
54490
54491 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54492
54493         * lib/obstack.c, obstack.h: Import changes from libc.
54494
54495 2004-04-28  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54498         also implicitly appends .exe to executables.
54499         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54500         accepts Windows pathnames.
54501         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54502         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54503         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54504         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54505         Reported by Derek Robert Price <derek@ximbiot.com>.
54506
54507 2004-04-21  Karl Berry  <karl@gnu.org>
54508
54509         * config/srclist.txt (localcharset.c): break sync.
54510
54511 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54512
54513         * m4/host-os.m4: Add a copyright notice.
54514
54515 2004-04-20  Jim Meyering  <jim@meyering.net>
54516
54517         Change UTILS_ to gl_ in AC_DEFINE'd names.
54518         Change utils_- and jm_-prefixed variables, too.
54519         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54520         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54522
54523         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54524         Don't emit trailing blanks.
54525         Also rename jm_-prefixed variables to have gl_ prefix.
54526
54527         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54528         Also rename jm_-prefixed variables to have gl_ prefix.
54529
54530         * m4/jm-macros.m4: Reflect the renamings.
54531         * m4/prereq.m4: Likewise.
54532
54533 2004-04-20  Jim Meyering  <jim@meyering.net>
54534
54535         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54536         memory.
54537
54538 2004-04-20  Jim Meyering  <jim@meyering.net>
54539             Bruno Haible  <bruno@clisp.org>
54540
54541         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54542         memory when realloc fails.
54543
54544 2004-04-19  Jim Meyering  <jim@meyering.net>
54545
54546         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54547         now that readutmp.c may call `free (0)'.
54548
54549 2004-04-19  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54552         * m4/inttypes_h.m4: Likewise.
54553         * m4/stdint_h.m4: Likewise.
54554         * m4/intmax_t.m4: Likewise.
54555         * m4/uintmax_t.m4: Likewise.
54556
54557 2004-04-18  Jim Meyering  <jim@meyering.net>
54558
54559         * m4/prereq.m4: Don't forbid jm_ prefix.
54560
54561         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54562         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54563         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54564         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54565         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54566         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54567         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54568         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54569         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54570         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54571         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54572         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54573         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54574         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54575         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54576         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54577         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54578         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54579         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54580
54581 2004-04-18  Jim Meyering  <jim@meyering.net>
54582
54583         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54584         failure, don't leak memory and do call END_UTMP_ENT.
54585
54586 2004-04-16  Jim Meyering  <jim@meyering.net>
54587
54588         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54589         coreutils' stat program.
54590         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54591
54592 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54593
54594         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54595         C89.
54596         (CHAR_BIT): Remove, since we assume C89.
54597         Include <stdint.h> if available, as per current Autoconf CVS advice.
54598
54599 2004-03-31  Jim Meyering  <jim@meyering.net>
54600
54601         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54602         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54603         * m4/xalloc.m4: Likewise.
54604
54605 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54606
54607         Merge from coreutils.
54608
54609         * m4/inttostr.m4: New file.
54610         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54611         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54612         Require gl_CLOCK_TIME.
54613         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54614
54615 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54616
54617         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54618         not bool, to be more consistent with Unix conventions.
54619         Suggested by Bruno Haible.
54620
54621         Merge from coreutils.
54622
54623         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54624         * lib/umaxtostr.c: New files.
54625
54626         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54627         the usual <time.h> dance.
54628         (get_date): Change signature to support fractional time stamps.
54629         All callers changed.
54630         * lib/getdate.y: Include "getdate.h" first, as we can now
54631         assume C89 and don't need to worry about 'const'.
54632         Similarly, include "unlocked-io.h" near start, not in middle.
54633         Include <limits.h>.
54634         (textint.value): Use long int rather than int.
54635         (textint.digits): Use size_t rather than int.
54636         (BILLION, LOG10_BILLION): New constants.
54637         (parser_control): New member rel_ns.  Members day_ordinal,
54638         time_zone, month, day, hour, minutes, rel_year, rel_month,
54639         rel_day, rel_hour, rel_minutes, rel_seconds
54640         are now long int, not int.  Member seconds is now struct timespec,
54641         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54642         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54643         not int.
54644         (%union.intval): Now long int, not int.
54645         New member timespec.
54646         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54647         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54648         (spec): Now is a timespec or an item list.
54649         (timespec, items): New nonterminals.
54650         (time, rel, relunit, number, get_date):
54651         Add support for fractional seconds.
54652         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54653         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54654         (to_hour): First arg is now long int, not int.
54655         (to_year): Returns long int, not int.
54656         Don't treat year -70 like 70.
54657         (tm_diff): Returns long int, not int.
54658         (lookup_word): Use bool instead of int when appropriate.
54659         (yylex): Use size_t for count, not int.
54660         Detect overflow when parsing large integer constants.
54661         Add support for fractions.
54662         (get_date): Make pointers 'const' if possible.
54663         Use more-portable code to detect integer overflow.
54664         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54665         Don't use ctime; it's not reliable if the year has >4 digits.
54666
54667         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54668         This is for compatibility with BSD.
54669
54670         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54671         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54672         From coreutils' system.h.
54673
54674         * lib/userspec.c: Don't include "posixver.h".
54675         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54676         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54677         compatible extension.  Simplify code by removing a boolean int
54678         that was always nonzero if a string was nonnull.
54679
54680 2004-03-30  Jim Meyering  <jim@meyering.net>
54681
54682         Merge from coreutils.
54683
54684         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54685         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54686         on some systems one must include <grp.h> before it.
54687         Reported by Christian Krackowizer.
54688
54689 2004-03-30  Jim Meyering  <jim@meyering.net>
54690
54691         Merge from coreutils.
54692
54693         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54694
54695         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54696         an empty input stream.
54697
54698         * lib/readtokens.c: Include <stdbool.h>.
54699         (readtoken): Use `size_t' rather than int/long.
54700         All callers adjusted.
54701         Use `bool' rather than `int' where appropriate.
54702         Use memset rather than an explicit loop.
54703         Use x2nrealloc rather than xrealloc.
54704         Allow the use of `\0' as a delimiter.
54705         (readtokens): Likewise.
54706         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54707
54708 2004-03-30  Jim Meyering  <jim@meyering.net>
54709
54710         * m4/realloc.m4: Remove file, since now it does no more than
54711         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54712         the `configure.ac' section of module/realloc.
54713         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54714
54715 2004-03-30  Bruno Haible  <bruno@clisp.org>
54716
54717         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54718         nonnull.
54719
54720 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54721
54722         Merge changes to getloadavg.c from coreutils and Emacs.
54723
54724         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54725         Define to an expression, not to the empty string.
54726         Include cloexec.h and xalloc.h.
54727         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54728         Use set_cloexec_flag rather than rolling our own.
54729         * lib/cloexec.c, lib/cloexec.h: New files.
54730
54731 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54732
54733         * m4/cloexec.m4: New file.
54734
54735 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54736
54737         * lib/getopt.h: Sync with libc CVS.
54738
54739 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54740             Bruno Haible  <bruno@clisp.org>
54741
54742         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54743         mbswidth.
54744
54745 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54746             Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/mbswidth.h: Include <wchar.h> only if
54749         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54750         <wchar.h>.
54751         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54752
54753 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54754
54755         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54756         Sync with libc CVS.
54757         * lib/getopt_int.h: New file, also synced from libc.
54758
54759 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54760
54761         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54762         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54763         Bring back getopt.c, getopt.h, getopt1.c.
54764
54765 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54766
54767         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54768         All uses changed.  Check for sa_sigaction member; this fixes
54769         a bug first reported by Jason Andrade in
54770         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54771
54772 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54773
54774         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54775         '#if' expressions.  Unlike the code it replaces, it does not
54776         depend on (defined _SC_PAGESIZE).  However, it does depend on
54777         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54778         first reported by Jason Andrade in
54779         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54780
54781 2004-02-25  Simon Josefsson  <jas@extundo.com>
54782
54783         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54784
54785 2004-02-25  Simon Josefsson  <jas@extundo.com>
54786
54787         * lib/strdup.h: New file.
54788         * lib/strdup.c: Include it.
54789         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54790         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54791
54792 2004-02-23  Karl Berry  <karl@gnu.org>
54793
54794         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54795         (from fencepost.gnu.org:/gd/gnuorg).
54796
54797 2004-02-23  Karl Berry  <karl@gnu.org>
54798
54799         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54800         * config/srclist.txt: add maintain/standards documents.
54801
54802 2004-02-18  Bruno Haible  <bruno@clisp.org>
54803
54804         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54805         Reported by Derek Robert Price <derek@ximbiot.com>.
54806
54807 2004-02-16  Karl Berry  <karl@gnu.org>
54808
54809         * config/mkinstalldirs, install-sh: update from automake.
54810
54811 2004-02-06  Karl Berry  <karl@gnu.org>
54812
54813         * m4/po.m4: update from gettext 0.14.1.
54814
54815 2004-02-06  Karl Berry  <karl@gnu.org>
54816
54817         * lib/config.charset: update from gettext 0.14.1.
54818
54819 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54820
54821         Add comments and code, prompted by suggestions from Bruno Haible
54822         for sh-quote.
54823         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54824         describing the enum quoting_style values.
54825         * lib/quotearg.c (quotearg_alloc): New function.
54826         (quotearg_buffer_restyled): Treat lone { and } as special.
54827         Treat = as special.  Work around bug with older shells
54828         that "see" a '\' that is really the 2nd byte of a multibyte char.
54829         Quote empty string with shell_quoting_style.
54830
54831 2004-02-03  Bruno Haible  <bruno@clisp.org>
54832
54833         * m4/pipe.m4: New file, from GNU gettext.
54834
54835 2004-02-03  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/pipe.h: New file, from GNU gettext.
54838         * lib/pipe.c: New file, from GNU gettext.
54839
54840 2004-01-27  Bruno Haible  <bruno@clisp.org>
54841
54842         * m4/execute.m4: New file, from GNU gettext.
54843
54844 2004-01-27  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/execute.h: New file, from GNU gettext.
54847         * lib/execute.c: New file, from GNU gettext.
54848         * lib/w32spawn.h: New file, from GNU gettext.
54849
54850 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54851
54852         Merge from diffutils.
54853
54854         * lib/file-type.c (file_type): Add typed memory objects.
54855         * lib/file-type.h (S_TYPEISTMO): New macro.
54856
54857         * lib/c-stack.h (c_stack_action): Remove argv argument.
54858         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54859         (die): Don't calculate message unless segv_action returns.
54860         (get_stack_location, min_address_from_argv, max_address_from_argv,
54861         volatile stack_base, volatile_stack_size): Remove.
54862         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54863         that every segmentation violation is a stack overflow.  (Ouch!)
54864         See Debian bug 136249 (still outstanding) for more info about why
54865         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54866
54867 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54868
54869         Exit-status fix from coreutils.
54870
54871         Use exit_failure consistently in place of EXIT_FAILURE,
54872         so that program exit statuses are consistent on failure.
54873
54874         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54875         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54876         * lib/argmatch.h: Comment fix to match the above.
54877         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54878         Now a macro referring to exit_failure, instead of a separate
54879         variable.  Include "exitfail.h" to get it.
54880         * lib/xstrtol.h: Include "exitfail.h".
54881         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54882
54883         * lib/long-options.c (parse_long_options): Use prototype
54884         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54885         for clarity.
54886
54887 2004-01-21  Jim Meyering  <jim@meyering.net>
54888
54889         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54890         so as not to conflict with a different-sized __mktime_internal
54891         function in GNU libc.
54892         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54893         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54894
54895 2004-01-20  Karl Berry  <karl@gnu.org>
54896
54897         * config/config.guess: update from config.
54898
54899         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54900
54901 2004-01-20  Bruno Haible  <bruno@clisp.org>
54902
54903         Safer stack allocation.
54904         * lib/setenv.c: Include allocsa.h.
54905         (alloca): Remove fallback definition.
54906         (freea): Remove macro.
54907         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54908         instead of freea.
54909
54910 2004-01-20  Bruno Haible  <bruno@clisp.org>
54911
54912         * m4/eealloc.m4: New file, from GNU gettext.
54913
54914 2004-01-20  Bruno Haible  <bruno@clisp.org>
54915
54916         * m4/allocsa.m4: New file, from GNU gettext.
54917
54918 2004-01-20  Bruno Haible  <bruno@clisp.org>
54919
54920         * lib/xallocsa.h: New file, from GNU gettext.
54921         * lib/xallocsa.c: New file, from GNU gettext.
54922
54923 2004-01-20  Bruno Haible  <bruno@clisp.org>
54924
54925         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54926
54927 2004-01-20  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54930         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54931         specially.
54932
54933 2004-01-20  Bruno Haible  <bruno@clisp.org>
54934
54935         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54936         patch.
54937
54938 2004-01-20  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54941
54942 2004-01-20  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/eealloc.h: New file.
54945
54946 2004-01-20  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/binary-io.h: Avoid warnings on Cygwin.
54949
54950 2004-01-20  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/allocsa.h: New file, from GNU gettext.
54953         * lib/allocsa.c: New file, from GNU gettext.
54954
54955 2004-01-18  Karl Berry  <karl@gnu.org>
54956
54957         * doc/gpl.texi, doc/lgpl.texi: new files.
54958
54959 2004-01-18  Karl Berry  <karl@gnu.org>
54960
54961         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54962         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54963
54964 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54965
54966         Merge from coreutils.
54967
54968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54969         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54970         (gl_DEFAULT_POSIX2_VERSION): Move
54971         the documentation from 'configure' into 'config.hin',
54972         so that 'configure --help' isn't burdened by it and
54973         we don't have to worry about its formatting there.
54974         Reword the documentation so that it's more succinct
54975         and can be run together into a single paragraph.
54976         * m4/same.m4 (gl_SAME): Check for pathconf.
54977
54978 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54979
54980         Merge from coreutils.
54981
54982         * lib/posixver.c: Include posixver.h.
54983
54984         * lib/same.c: Include <stdbool.h>, <limits.h>.
54985         (_POSIX_NAME_MAX): Define if not defined.
54986         (MIN): New macro.
54987         (same_name): If file names are silently truncated, report
54988         that the file names are the same if they are the same after
54989         the silent truncation.
54990
54991         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54992         conversion function.
54993         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54994         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54995         longer needed.
54996
54997 2004-01-15  Jim Meyering  <jim@meyering.net>
54998
54999         Merge from coreutils.
55000
55001         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55002         if no library is required.
55003         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55004         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55005         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55006         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55007         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55008         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55009         value, $ac_cv_search_crypt, if it's "none required".
55010         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55011         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55012         not gl_FUNC_GETLOADAVG.
55013         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55014         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55015
55016 2004-01-15  Jim Meyering  <jim@meyering.net>
55017
55018         Merge from coreutils.
55019
55020         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55021         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55022         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55023
55024         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55025         optional configure-time default.
55026
55027         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55028
55029         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55030
55031 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55032
55033         Merge from coreutils.
55034
55035         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55036         value, $ac_cv_search_nanosleep, if it's "none required".
55037
55038 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55039
55040         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55041         with like-named macro in fnmatch.c.
55042         (EXT): Use an internal constant instead.
55043
55044         Merge fnmatch patches from glibc.
55045         * lib/fnmatch.c (mbsinit): Remove define.
55046         Add libc_hidden_ver (__fnmatch, fnmatch).
55047         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55048         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55049
55050 2004-01-14  Karl Berry  <karl@gnu.org>
55051
55052         * config/install-sh: update from automake.
55053
55054 2004-01-13  Karl Berry  <karl@gnu.org>
55055
55056         * config/install-sh: update from automake.
55057
55058 2004-01-09  Karl Berry  <karl@gnu.org>
55059
55060         * config/install-sh: update from automake.
55061
55062 2004-01-05  Karl Berry  <karl@gnu.org>
55063
55064         * config/config.{sub,guess}: update from config.
55065
55066 2003-12-31  Karl Berry  <karl@gnu.org>
55067
55068         * config/depcomp: update from automake.
55069
55070 2003-12-14  Karl Berry  <karl@gnu.org>
55071
55072         * lib/config.charset: update from gettext-runtime.
55073
55074 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55075
55076         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55077         Bug reported by Alfred M. Szmidt.
55078
55079 2003-12-03  Bruno Haible  <bruno@clisp.org>
55080
55081         * m4/gettext.m4: Upgrade from gettext-0.13.
55082         * m4/po.m4: Upgrade from gettext-0.13.
55083         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55084         * m4/intmax.m4: New file, from gettext-0.13.
55085         * m4/printf-posix.m4: New file, from gettext-0.13.
55086
55087 2003-11-29  Karl Berry  <karl@gnu.org>
55088
55089         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55090
55091 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55092             Bruno Haible  <bruno@clisp.org>
55093
55094         * lib/printf-parse.h: Don't include sys/types.h.
55095         (ARG_NONE): New macro.
55096         (char_directive): Change type of *arg_index fields to size_t.
55097         * lib/printf-parse.c: Don't include sys/types.h.
55098         (SSIZE_MAX): Remove macro.
55099         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55100         Remove unnecessary overflow check.
55101         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55102         fields.
55103
55104 2003-11-25  Bruno Haible  <bruno@clisp.org>
55105
55106         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55107
55108 2003-11-25  Bruno Haible  <bruno@clisp.org>
55109
55110         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55111         gt_TYPE_SSIZE_T.
55112
55113 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55114
55115         * modules/alloca: Remove dependency on xalloc.
55116
55117 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55118
55119         * lib/alloca.c: Remove dependency on xalloc module.
55120         (xalloc_die): Remove.
55121         (memory_full) [!defined emacs]: New macro.
55122         [!defined emacs]: Don't include xalloc.h.
55123         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55124         address arithmetic overflows.  Change datatypes a bit to avoid
55125         unnecessary casts.
55126
55127 2003-11-22  Jim Meyering  <jim@meyering.net>
55128
55129         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55130         s/size/size_t/.
55131
55132 2003-11-21  Karl Berry  <karl@gnu.org>
55133
55134         * config/config.{sub,guess}: update from config.
55135
55136 2003-11-18  Karl Berry  <karl@gnu.org>
55137
55138         * config/config.{sub,guess}: update from config.
55139
55140         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55141
55142 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55143
55144         * README: Mention that S+T cannot overflow if S is the size of
55145         an existing object and T is sufficiently small.
55146
55147 2003-11-17  Jim Meyering  <jim@meyering.net>
55148
55149         On systems without utime and without a utimes function capable of
55150         dealing with a NULL struct utimbuf* argument, this utime replacement
55151         could -- in unusual circumstances -- leak a file descriptor.
55152         * lib/utime.c: Include <unistd.h> and <errno.h>.
55153         (utime_null): Be sure to close `fd' and to preserve errno.
55154         Reported by Geoff Collyer via Arnold Robbins.
55155
55156 2003-11-17  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55159         (Depends-on): Add xsize.
55160
55161 2003-11-17  Bruno Haible  <bruno@clisp.org>
55162
55163         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55164
55165 2003-11-17  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/vasnprintf.c (alloca): Remove fallback definition.
55168         (freea): Remove definition.
55169         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55170         Reported by Paul Eggert.
55171
55172 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55173             Bruno Haible  <bruno@clisp.org>
55174
55175         Protect against address arithmetic overflow.
55176         * lib/printf-args.h: Include stddef.h.
55177         (arguments): Change type of field 'count' to size_t.
55178         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55179         'unsigned int' where appropriate.
55180         * lib/printf-parse.h: Include sys/types.h.
55181         (char_directive): Change type of *arg_index fields to ssize_t.
55182         (char_directives): Change type of fields 'count', max_*_length to
55183         size_t.
55184         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55185         (SSIZE_MAX): Define fallback value.
55186         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55187         instead of 'int' where appropriate. Check a_allocated, d_allocated
55188         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55189         * lib/vasnprintf.c: Include xsize.h.
55190         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55191         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55192         overflow. Avoid wraparound when converting a width or precision from
55193         decimal to binary.
55194
55195 2003-11-16  Bruno Haible  <bruno@clisp.org>
55196
55197         Update from GNU gettext.
55198         * lib/printf-parse.c: Generalize to it can be compiled for wide
55199         strings.
55200         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55201         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55202         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55203         SNPRINTF): New macros.
55204         Don't include <alloca.h> if the file is used inside libintl.
55205         (local_wcslen): New function, for Solaris 2.5.1.
55206         (VASNPRINTF): Use it instead of wcslen.
55207
55208 2003-11-16  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/xsize.h (xmax): New function.
55211         (xsum, xsum3, xsum4): Declare as "pure" functions.
55212
55213 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55214
55215         * modules/xalloc (Files): Undo latest change, since xalloc.h
55216         no longer needs SIZE_MAX or PTRDIFF_MAX.
55217
55218 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55219
55220         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55221         gl_PTRDIFF_MAX.
55222
55223 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55224
55225         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55226         "return", to pacify some unknown compiler.  Problem reported
55227         by Joerg Schilling.
55228
55229 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55230
55231         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55232         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55233         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55234         heuristic is just as accurate as far as we know, and it removes a
55235         dependency on size_max.m4 and ptrdiff_max.m4.
55236
55237 2003-11-11  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/xsize (Files): Add m4/size_max.m4.
55240         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55241
55242 2003-11-11  Bruno Haible  <bruno@clisp.org>
55243
55244         * m4/size_max.m4: New file.
55245         * m4/ptrdiff_max.m4: New file.
55246         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55247         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55248         (gl_XALLOC): Invoke it.
55249
55250 2003-11-11  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55253         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55254         defined.
55255
55256 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55257
55258         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55259         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55260         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55261         From Bruno Haible.
55262         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55263         not (size_t) -1, since it's defined here.
55264
55265 2003-11-09  Karl Berry  <karl@gnu.org>
55266
55267         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55268
55269 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55270
55271         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55272         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55273         Reject sizes of exactly SIZE_MAX bytes.
55274         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55275         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55276
55277 2003-11-05  Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55280         SIZE_MAX defined in <limits.h> on Solaris.
55281
55282 2003-11-04  Jim Meyering  <jim@meyering.net>
55283
55284         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55285         variable names, rather than @VAR@.
55286         * modules/poll: Likewise.
55287
55288 2003-11-04  Bruno Haible  <bruno@clisp.org>
55289
55290         * modules/xsize: New file.
55291         * modules/linebreak: Depend on xsize.
55292         * MODULES.html.sh (func_all_modules): Add xsize.
55293
55294 2003-11-04  Bruno Haible  <bruno@clisp.org>
55295
55296         * m4/xsize.m4: New file.
55297
55298 2003-11-04  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/xsize.h: New file.
55301         * lib/linebreak.c: Include xsize.h.
55302         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55303         argument for overflow.
55304         Suggested by Paul Eggert.
55305
55306 2003-11-03  Karl Berry  <karl@gnu.org>
55307
55308         * config/config.{guess,sub}: update from config.
55309
55310 2003-11-03  Jim Meyering  <jim@meyering.net>
55311
55312         * modules/userspec (lib_SOURCES): Add userspec.h.
55313         (Include): Add "userspec.h".
55314         Improve description.
55315
55316 2003-11-03  Jim Meyering  <jim@meyering.net>
55317
55318         * lib/userspec.c: Include "userspec.h".
55319         * lib/userspec.h: New file.
55320
55321 2003-11-03  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55324
55325 2003-11-03  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55328         available, to avoid (extremely rare) race condition.
55329         Suggested by Paul Eggert.
55330
55331 2003-11-02  Karl Berry  <karl@gnu.org>
55332
55333         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55334
55335 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55336
55337         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55338         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55339         (read_filesystem_list): Set and use me_type_malloced.
55340         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55341         whatever the type happens to be), for brevity and consistency.
55342         Check for size calculation overflow on Alphas running OSF/1.
55343
55344 2003-10-31  Jim Meyering  <jim@meyering.net>
55345
55346         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55347
55348         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55349
55350 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55351             Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55354         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55355
55356 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55357
55358         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55359         netbsd*-gnu*.  Suggested by Robert Millan.
55360
55361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55362
55363         * modules/group-member: Depend on stdbool.
55364
55365 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55366
55367         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55368
55369 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55370
55371         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55372         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55373         after the 'gnu' in these cases.  This fixes some bugs in the
55374         previous change, and is based on suggestions by Robert Millan.
55375
55376 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55377
55378         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55379         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55380         no longer needed.
55381         * lib/quotearg.c (quotearg_n_options): Use it.
55382         * lib/group-member.c: Include <stdbool.h>.
55383         (free_group_info): Arg is now const *; don't free arg.
55384         (get_group_info): Now returns bool and accepts struct group_info *,
55385         rather than returning a malloc'ed struct group_info *.
55386         All uses changed.  Check for overflow in internal size calculation.
55387
55388         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55389         rather than xmalloc/xrealloc.
55390         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55391         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55392         conformance bug: the old code used a pointer after freeing the
55393         storage that it addressed.
55394         * lib/hash.c (hash_initialize): Simplify the code by using
55395         xalloc_oversized rather than doing it by hand.
55396         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55397         the buffer preserved.  Use free and xmalloc instead.
55398         * lib/quotearg.c (quotearg_n_options): Likewise.
55399         Use a simpler test for size overflow.  Don't use xalloc_oversized
55400         because unsigned int might be wider than size_t (!); this suggests
55401         that we should switch from unsigned int to size_t for slot numbers.
55402
55403 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55404
55405         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55406         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55407         NetBSD kernels.  Requested by Richard Stallman.
55408
55409 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55410
55411         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55412         to allocate the returned structure.  Do not allocate a subarray,
55413         as x2nrealloc will do that.
55414         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55415         instead of xnrealloc.
55416         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55417
55418 2003-10-27  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/stdbool_.h: Better support for BeOS.
55421
55422 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55423
55424         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55425         now uses inline.
55426
55427 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55428
55429         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55430         callers that want to do their own size-overflow checking.  Include
55431         <stdbool.h>, since xalloc_oversized returns bool.
55432         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55433         to use xalloc_oversized.
55434
55435         Add two functions x2realloc, x2nrealloc, for programs that grow
55436         arrays dynamically by doubling their sizes.
55437         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55438         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55439         New functions.
55440
55441         Port to C99 semantics for 'inline' of external functions.
55442         Bug reported by Bruno Haible.
55443         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55444         with the old contents of xnmalloc.
55445         (xnmalloc, xmalloc): Use it.
55446         (xnrealloc_inline): New static inline function,
55447         with the old contents of xnrealloc.
55448         (xnrealloc, xrealloc): Use it.
55449
55450         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55451         that.
55452
55453 2003-10-26  Karl Berry  <karl@gnu.org>
55454
55455         * config/srclist.txt (COPYING.DOC): no longer available from
55456         /gd/gnuorg; don't know where the ultimate source is.
55457
55458 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55459
55460         Fix several address-calculation bugs in the hash modules,
55461         plus some minor code cleanup.
55462
55463         * lib/hash.h: Include <stdbool.h>, for bool.
55464         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55465         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55466         hash_get_n_entries, hash_get_max_bucket_length,
55467         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55468         hash_rehash): Use size_t rather than unsigned.
55469         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55470         hash_get_n_buckets_used, hash_get_n_entries,
55471         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55472         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55473         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55474         Likewise.
55475         (SIZE_MAX): Define if not defined.
55476         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55477         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55478         hash_print):
55479         Use const * when possible.
55480         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55481         (check_tuning): Fix bug: if tuning parameters were very close to
55482         0 or 1, rounding errors could have caused subscript violations.
55483         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55484         (hash_initialize): Add 'fail:' label
55485         to free table and return NULL, and use it to simplify code.
55486         Use calloc rather than clearing the storage ourself.
55487         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55488         buffer size calculations.
55489         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55490         Include <stddef.h>, for size_t.
55491         * lib/hash-pjw.c (hash_pjw): Likewise.
55492         Switch to method described by Bruno Haible.
55493         Include <limits.h>, for CHAR_BIT.
55494         (SIZE_BITS): New macro.
55495
55496 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55497
55498         * m4/getline.m4 (AM_FUNC_GETLINE):
55499         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55500         hosts.  Problem reported by Derek Robert Price in
55501         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55502         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55503         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55504
55505 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55506
55507         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55508         ceiling the allocation at NMAX bytes rather than silently
55509         discarding input bytes before NMAX is reached.  This makes
55510         a difference only if NMAX exceeds SIZE_MAX / 2.
55511
55512         * lib/obstack.c: Merge from glibc.
55513         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55514         Add libc_hidden_def (_obstack_newchunk).
55515         (_obstack_free) [! defined _LIBC]: Remove.
55516         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55517         a clone of the function body.
55518         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55519         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55520
55521         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55522         glibc.
55523         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55524         arg to memcpy.
55525
55526         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55527         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55528         Don't use lvalue casts, as GCC plans to remove support for them
55529         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55530         was also present in the non-GCC version, indicating that this
55531         code had always been buggy and had never been widely used.
55532         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55533         Use the fast variant of each macro, rather than copying the
55534         definiens of the fast variant; that way, we'll be more likely to
55535         catch future bugs in the fast variants.
55536
55537 2003-10-20  Bruno Haible  <bruno@clisp.org>
55538
55539         * modules/wait-process: New file.
55540         * MODULES.html.sh (func_all_modules): Add wait-process.
55541
55542 2003-10-20  Bruno Haible  <bruno@clisp.org>
55543
55544         * m4/wait-process.m4: New file.
55545
55546 2003-10-20  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/wait-process.h: New file, from GNU gettext.
55549         * lib/wait-process.c: New file, from GNU gettext.
55550
55551 2003-10-19  Jim Meyering  <jim@meyering.net>
55552
55553         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55554         HPUX 10.20.
55555
55556 2003-10-18  Karl Berry  <karl@gnu.org>
55557
55558         * config/config.guess: update from config.
55559
55560 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55561
55562         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55563         (getgroups): First arg is int, not size_t.
55564         Don't let 'free' mangle errno.
55565
55566 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55567
55568         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55569
55570 2003-10-16  Karl Berry  <karl@gnu.org>
55571
55572         * config/config.{guess,sub}: update from config.
55573
55574 2003-10-16  Jim Meyering  <jim@meyering.net>
55575
55576         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55577         memcpy.
55578
55579 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55580
55581         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55582         (SIZE_MAX): Remove.
55583         (new_exclude, add_exclude_file): Initial size no longer needs to
55584         be a power of 2.
55585         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55586         our own address arithmetic overflow checking.
55587
55588         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55589         (fnmatch): Do not alloca more than 2000 wide characters;
55590         instead, use malloc for large buffers.
55591         Check for address arithmetic overflow, and return -1
55592         with errno set to ENOMEM in that case.
55593         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55594         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55595         instead, return -1.  Check for address arithmetic overflow.
55596
55597 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55598
55599         Handle invalid suffixes and overflow independently, so that
55600         callers can treat them independently as needed.  Fix some bugs in
55601         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55602         suffix for a human-readable blocksize.  The major caller-visible
55603         change is the addition of a new
55604         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55605         that both overflow and suffix chars were found.
55606
55607         * lib/human.c (humblock): Don't check separately for invalid suffix
55608         char; that is xstrtoumax's job (now that its bug is fixed).
55609         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55610         INTMAX_MAX]: New macros.
55611         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55612         TYPE_MAXIMUM): New macros.
55613         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55614         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55615         if overflow occurs, as it's what __strtol does and it's more useful
55616         in practice.
55617         (__xstrtol): If __strtol reports some error other than ERANGE,
55618         reflect it to the caller as LONGINT_INVALID.  If it reports
55619         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55620         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55621         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55622         value.
55623         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55624         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55625         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55626         [defined UINTMAX_MAX]: New macros.
55627
55628 2003-10-14  Bruno Haible  <bruno@clisp.org>
55629
55630         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55631
55632 2003-10-14  Bruno Haible  <bruno@clisp.org>
55633
55634         * m4/sig_atomic_t: New file, from GNU gettext.
55635         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55636
55637 2003-10-14  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55640         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55641         Also use volatile where needed.
55642
55643 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55644
55645         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55646         Change maintainer from Bruno Haible to 'all'.
55647
55648 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55649
55650         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55651
55652 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55653
55654         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55655         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55656         and define in terms of the other primitives.
55657         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55658         (SIZE_MAX): Define if not already defined.
55659         (array_size_overflow): New function.
55660         (xalloc_die): Abort instead of exiting if 'error' returns.
55661         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55662         (xmalloc, xrealloc): Use them.
55663         (xcalloc): Check for address arithmetic overflow.
55664         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55665         a bit faster than strcpy.
55666
55667 2003-10-10  Simon Josefsson  <jas@extundo.com>
55668
55669         * modules/argp (Depends-on): Add restrict and strcase.
55670
55671 2003-10-10  Simon Josefsson  <jas@extundo.com>
55672
55673         * m4/argp.m4: Add AC_C_INLINE.
55674
55675 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55676
55677         Merge getpass from libc, plus a few fixes.
55678
55679         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55680         Include <stdbool.h>.
55681         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55682         __fsetlocking to empty.
55683         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55684         do include <bits/libc-lock.h>.
55685         Do not include <fcntl.h>; not needed.
55686         [_LIBC]: Include <wchar.h>.
55687         (NOTCANCEL_MODE): New macro.
55688         (flockfile, funlockfile) [_LIBC]: New macros.
55689         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55690         [!_LIBC]: New macros.
55691         (call_fclose): New function.
55692         (getpass): Use it.  Save tty stream separately; this simplifies the
55693         code and makes it more reliable if stdin happens to equal stdout.
55694         Invoke __fsetlocking on tty.
55695         Handle thread cancellation if needed.
55696         Namespace cleanup (use __tcgetattr, __getline).
55697         Use bool for Booleans.
55698         [USE_IN_LIBIO]: Handle wide streams.
55699         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55700         stream might go where.
55701
55702         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55703         doesn't have to include <stdio.h> before us.
55704         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55705         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55706         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55707         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55708         if not declared, so that we can use getpass.c code from libc without
55709         rewriting it.
55710         (flockfile, ftrylockfile, funlockfile): New macros.
55711
55712 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55713
55714         * modules/getpass: Depend on stdbool.
55715
55716 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55717
55718         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55719
55720 2003-10-07  Karl Berry  <karl@gnu.org>
55721
55722         * config/config.{guess,sub}: update from config.
55723
55724 2003-10-06  Jim Meyering  <jim@meyering.net>
55725             Bruno Haible  <bruno@clisp.org>
55726
55727         This lets translators provide better translations for the
55728         "Written by ..." part of --version output.
55729         * lib/version-etc.h: Include stdarg.h.
55730         (version_etc_copyright): Declare as readonly.
55731         (version_etc): Make this function variadic with a NULL-terminated list
55732         of author name strings.
55733         (version_etc_va): New declaration.
55734         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55735         (version_etc_copyright): Declare as readonly.
55736         (version_etc_va): New function. Provide a different translatable string
55737         for each possible number of authors < 10. Abbreviate when there are 10
55738         authors or more.
55739         (version_etc): Make this function variadic. Call version_etc_va.
55740         Suggestion from Gary V. Vaughan.
55741
55742         * lib/long-options.h (parse_long_options): Change prototype: the
55743         authors string is moved to the end and becomes variadic.
55744         * lib/long-options.c: Include stdarg.h.
55745         (parse_long_options): Make this function variadic, too.
55746         Call version_etc_va, not version_etc.
55747
55748 2003-10-06  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/version-etc-2: Remove file.
55751         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55752
55753 2003-10-06  Bruno Haible  <bruno@clisp.org>
55754
55755         * modules/fatal-signal: New file.
55756         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55757
55758 2003-10-06  Bruno Haible  <bruno@clisp.org>
55759
55760         * m4/fatal-signal.m4: New file.
55761         * m4/signalblocking.m4: New file, from GNU gettext.
55762
55763 2003-10-06  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/version-etc-2.h: Remove file.
55766         * lib/version-etc-2.c: Remove file.
55767
55768 2003-10-06  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/fatal-signal.h: New file, from GNU gettext.
55771         * lib/fatal-signal.c: New file, from GNU gettext.
55772
55773 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55774
55775         * README: Rework advice for preventing empty .o files.
55776         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55777         not <sys/types.h>.
55778
55779 2003-10-04  Karl Berry  <karl@gnu.org>
55780
55781         * lib/argp*: update from libc.
55782
55783 2003-10-04  Karl Berry  <karl@gnu.org>
55784
55785         * config/config.{guess,sub}: update from config.
55786
55787 2003-10-02  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/lchown (Include): Add lchown.h.
55790         * modules/time_r (Include): Use "..." syntax.
55791         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55792
55793 2003-10-01  Simon Josefsson  <jas@extundo.com>
55794
55795         * MODULES.html.sh (func_all_modules): Move gethostname from section
55796         'based on' to section 'lacking' POSIX:2001.
55797
55798 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55799
55800         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55801         to output mode on the same stream.
55802
55803 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55804
55805         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55806         Fix arg typo in previous patch.
55807
55808 2003-09-28  Jim Meyering  <jim@meyering.net>
55809
55810         * lib/error.c: Correct cpp indentation.
55811
55812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55813
55814         * modules/free: New file.
55815
55816 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55817
55818         * m4/free.m4: New file.
55819
55820 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55821
55822         * lib/minmax.h (MIN, MAX)
55823         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55824         Omit the special code that used __typeof__, since we worry that
55825         it could be more trouble than it's worth.  See:
55826         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55827         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55828
55829         * lib/free.c: New file.
55830
55831 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55832
55833         Trivial fixes to Makefile.am parts of module listings.
55834         * modules/strstr: Append strstr.h to lib_SOURCES.
55835         * modules/strcase: Likewise, for strcase.h.
55836
55837 2003-09-27  Karl Berry  <karl@gnu.org>
55838
55839         * config/mkinstalldirs: update from automake.
55840
55841 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55842
55843         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55844         (error_tail): Do not loop, reallocating temporary buffer, since
55845         the output cannot contain more wide characters than the input
55846         contains bytes, the size must be big enough already.  This avoids
55847         one potential size overflow calculation.  Check for size overflow
55848         when calculating temporary buffer size.  Free temporary buffer
55849         when done, if it was allocated with malloc; this plugs a memory
55850         leak.  Remove casts from void * to pointers, that are no longer
55851         needed now that we're assuming C89 or better.
55852
55853         Merge error changes from glibc.
55854
55855         * lib/error.c, error.h: Update copyright notice header to match glibc.
55856         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55857         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55858         Disable cancellation while printing error.
55859         * lib/error.h: Prepend __ to parameter names.
55860
55861 2003-09-26  Jim Meyering  <jim@meyering.net>
55862
55863         * lib/error.c (error_tail): Move some declarations
55864         into inner scope where the local variables are used.
55865
55866 2003-09-26  Bruno Haible  <bruno@clisp.org>
55867
55868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55869         stpncpy().
55870         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55871
55872 2003-09-26  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55875         (stpncpy): Define as alias for gnu_stpncpy.
55876         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55877
55878 2003-09-25  Simon Josefsson  <jas@extundo.com>
55879
55880         * lib/xgetdomainname.h: New file.
55881         * lib/xgetdomainname.c: New file.
55882
55883 2003-09-25  Simon Josefsson  <jas@extundo.com>
55884             Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/getdomainname: New file.
55887         * modules/xgetdomainname: New file.
55888         * MODULES.html.sh (func_all_modules): Add getdomainname,
55889         xgetdomainname.
55890
55891 2003-09-25  Simon Josefsson  <jas@extundo.com>
55892             Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/getdomainname.m4: New file.
55895
55896 2003-09-25  Simon Josefsson  <jas@extundo.com>
55897             Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/getdomainname.h: New file.
55900         * lib/getdomainname.c: New file.
55901
55902 2003-09-25  Karl Berry  <karl@gnu.org>
55903
55904         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55905
55906 2003-09-25  Karl Berry  <karl@gnu.org>
55907
55908         * config/install-sh: update from automake.
55909
55910 2003-09-25  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/version-etc-2: New file, from modules/version-etc with
55913         modifications.
55914         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55915
55916 2003-09-25  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55919         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55920
55921 2003-09-24  Simon Josefsson  <jas@extundo.com>
55922
55923         * modules/xgethostname: Add xgethostname.h.
55924
55925 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55926
55927         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55928         the buffer associated with the argument.  Bug reported by
55929         Simon Josefsson.
55930
55931 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55932
55933         * README: Document assumptions that 'int' is at least 32 bits
55934         wide, that integer arithmetic is 2's complement without overflow,
55935         that there are no holes in integer values, that adding sizes of
55936         two nonoverlapping objects can't overflow, and that all-bits-zero
55937         yields scalar zero.  Fix spelling and capitalization typos.
55938
55939 2003-09-19  Karl Berry  <karl@gnu.org>
55940
55941         * lib/argp.h: update from libc.
55942
55943 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55944
55945         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55946         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55947         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55948
55949 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55950
55951         * gnulib-tool: Use "test -h", not "test -L", for portability
55952         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55953         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55954         (sed_extract_prog): Issue s commands one-by-one, rather than
55955         using \| in one s command.
55956
55957 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55958
55959         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55960         input error, instead of returning NULL the next time we are called
55961         (and therefore losing track of errno).
55962
55963 2003-09-16  Bruno Haible  <bruno@clisp.org>
55964
55965         * gnulib-tool (func_create_testdir): Warn about duplicated
55966         dependencies.
55967
55968 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55969
55970         * modules/argmatch, modules/fatal, modules/obstack,
55971         modules/xalloc, modules/xgethostname: Sort dependencies by
55972         importance, not alphabetically.
55973
55974 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55975
55976         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55977         fails, so that the caller gets the proper errno.
55978
55979         * lib/readutmp.c (read_utmp): Likewise.
55980         Check for fstat error.  Close stream and free storage
55981         when failing.
55982
55983 2003-09-14  Karl Berry  <karl@gnu.org>
55984
55985         * config/srclist.txt (strdup.c): disable for c89 changes.
55986
55987 2003-09-14  Jim Meyering  <jim@meyering.net>
55988
55989         * lib/getloadavg.c: Correct cpp indentation.
55990         * lib/strdup.c: Likewise.
55991         * lib/vasnprintf.c: Likewise.
55992
55993 2003-09-14  Bruno Haible  <bruno@clisp.org>
55994
55995         * modules/fwriteerror: New file.
55996         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55997
55998 2003-09-14  Bruno Haible  <bruno@clisp.org>
55999
56000         * lib/fwriteerror.h: New file.
56001         * lib/fwriteerror.c: New file.
56002
56003 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56004
56005         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56006         modules/xgethostname, modules/xalloc: Depend on exit.
56007
56008 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56009
56010         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56011
56012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56013         and AC_MINIX, too, so that their extensions are available.
56014
56015         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56016         This macro has been superseded by gl_BACKUPFILE.
56017
56018         More patches to assume C89 or better.
56019
56020         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56021
56022         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56023         unconditionally.
56024         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56025         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56026         Include <string.h>, <stdlib.h> unconditionally.
56027         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56028         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56029         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56030         headers or for string.h.
56031         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56032         or strtoul.
56033
56034         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56035         headers.
56036         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56037         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56038         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56039         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56040         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56041         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56042         memcpy, memset.
56043         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56044         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56045         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56046         strtol.
56047         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56048         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56050         strtoul.
56051
56052 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56053
56054         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56055         * lib/obstack.c [!defined _LIBC]: Likewise.
56056         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56057         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56058         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56059
56060         More changes to assume C89 or better.
56061
56062         * lib/error.c (error_tail): Assume vprintf.
56063
56064         * lib/argmatch.c (getenv): Remove decl.
56065         * lib/progreloc.c (get_full_program_name): Define via prototype.
56066         * lib/setenv.c (clearenv): Likewise.
56067         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56068         needed.
56069         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56070         (malloc, memcpy): Remove decls.
56071         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56072         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56073         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56074         (memcpy): Remove macro.
56075         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56076         (__P): Remove.  All uses removed.
56077         (PTR): Remove.  All uses changed to void *.
56078         (CHAR_BIT, NULL): Remove.
56079         (spaces, zeros, memset_space, memset_zero)
56080         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56081         Remove.
56082         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56083         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56084         Define with prototype.
56085         Remove now-unnecessary prototype decl.
56086         (extra_args_spec): Assume ANSI C.  All uses changed.
56087         (extra_args_spec_iso): Remove.
56088         (my_strftime, emacs_strftimeu): Define via prototype.
56089         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56090         unconditionally.
56091         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56092         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56093         (strtoul, strtol): Remove decls.
56094         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56095         LONG_MAX): Remove.
56096         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56097         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56098         (LOCALE_PARAM_PROTO): New macro.
56099         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56100         (INTERNAL (strtol), strtol): Define with a prototype.
56101         (PARAMS): Remove.  All uses removed.
56102         * lib/tempname.c: Include <string.h> unconditionally.
56103         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56104         * lib/xgethostname.c (main): Define with a prototype.
56105         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56106         Include <stdlib.h> unconditionally.
56107         (calloc, malloc, realloc, free): Remove decls.
56108         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56109         Include <stdlib.h> unconditionally.  Sort include file names.
56110         (strtod): Remove.
56111         (xstrtod): Define with a prototype.
56112         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56113         (strtol, strtoul): Remove decls.
56114
56115 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56116
56117         More patches to assume C89 or better.
56118         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56119         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56120         string.h, memchr, STDC_HEADERS.
56121
56122 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56123
56124         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56125         Include <stdlib.h>, <string.h> unconditionally.
56126         Remove now-unnecessary cast to char *.
56127         * lib/strnlen.c: Include <string.h> unconditionally.
56128         * lib/yesno.c (yesno): Define with a prototype.
56129
56130 2003-09-11  Bruno Haible  <bruno@clisp.org>
56131
56132         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56133
56134 2003-09-10  Jim Meyering  <jim@meyering.net>
56135
56136         * lib/error.c: Correct indentation of cpp directives.
56137
56138 2003-09-10  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56141         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56142         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56143         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56144         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56145         <stdlib.h> and <string.h> checks.
56146         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56147         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56148
56149 2003-09-10  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/strcspn.c: Include <string.h> unconditionally.
56152         * lib/strpbrk.c: Include <string.h> unconditionally.
56153         * lib/strstr.c: Include <string.h> unconditionally.
56154         * lib/unicodeio.c: Include <string.h> unconditionally.
56155         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56156         * lib/unsetenv.c: Likewise.
56157         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56158         * lib/yesno.c: Include <stdlib.h> unconditionally.
56159         (rpmatch): Add prototype.
56160
56161 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56162
56163         More patches to assume C89 or better.
56164         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56165         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56166         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56167         or for string.h.
56168         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56169         stdlib.h.
56170         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56171         C headers.
56172         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56173         string.h.
56174         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56175         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56176         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56177         or for string.h.
56178         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56179         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56180         C headers.
56181         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56182         memcpy.
56183         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56184         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56185         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56186         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56187         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56188         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56189         string.h, free.
56190         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56191         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56192         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56193         C headers, or for string.h.
56194         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56195         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56196         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56197         headers, memory.h, stdlib.h, string.h, strings.h.
56198         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56199         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56200         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56201         strchr.
56202         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56203         headers, memory.h, string.h.
56204         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56205         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56206         free.
56207         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56208         headers.
56209         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56210         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56211         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56212         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56213         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56214
56215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56216
56217         More K&R removal.
56218
56219         * lib/acosl.c (main): Use a prototype.
56220         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56221         tanl.c: Likewise.
56222
56223         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56224
56225         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56226         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56227         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56228         with a prototype.
56229         * lib/getopt.c (const): Remove macro.
56230         Include <string.h> unconditionally.
56231         (my_index): Remove; all uses changed to strchr.
56232         (strlen): Remove decl.
56233         (exchange): Remove forward decl; no longer needed.
56234         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56235         Define with prototype.
56236         * lib/getopt1.c (const): Remove macro.
56237         (getopt_long, getopt_long_only, main): Define with prototype.
56238
56239         * lib/getugroups.c: Include <string.h> unconditionally.
56240
56241         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56242         (getusershell, setusershell, endusershell, readname, main):
56243         Define with prototypes.
56244
56245         * lib/group-member.c: Include group-member.h first.
56246         Include <stdlib.h> unconditionally.
56247
56248         * lib/hard-locale.c: Include hard-locale.h first.
56249         Include <stdlib.h>, <string.h> unconditionally.
56250
56251         * lib/hash.c (free, malloc): Remove decls.
56252         Include <stdlib.h> unconditionally.
56253
56254         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56255         (getenv): Do not declare.
56256
56257         * lib/idcache.c: Include <string.h> unconditionally.
56258
56259         * lib/long-options.c: Include long-options.h first, to test interface.
56260         Include <stdlib.h> unconditionally.
56261
56262         * lib/makepath.c: Include makepath.h first, to test interface.
56263         Include <stdlib.h> and <string.h> unconditionally.
56264
56265         * lib/linebuffer.c: Include <stdlib.h>.
56266         (free): Remove decl.
56267
56268         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56269         stddef.h. rpl_malloc returns void *, not char *.
56270         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56271         prototype.
56272
56273         * lib/md5.h: Include <limits.h> unconditionally.
56274         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56275         (__P): Remove; all uses removed.
56276         * lib/md5.c: Include "md5.h" first.
56277         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56278         md5_buffer, md5_process_bytes, md5_process_block):
56279         Define with prototypes.
56280         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56281         * lib/sha.c: Include "sha.h" first.
56282         Include <stdlib.h>, <string.h> unconditionally.
56283
56284         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56285         * lib/memcmp.c (__ptr_t): Likewise.
56286         * lib/memrchr.c (__ptr_t): Likewise.
56287         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56288         Include <string.h> unconditionally.
56289         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56290         * lib/memchr.c: Include <stdlib.h> unconditionally.
56291         * lib/memchr.c (LONG_MAX): Remove.
56292         * lib/memrchr.c (LONG_MAX): Likewise.
56293         * lib/memchr.c (__memchr): Define via a prototype.
56294         * lib/memrchr.c (__memrchr): Likewise.
56295         * lib/memcmp.c (__P): Remove, and remove all uses.
56296         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56297         Remove forward decls; no longer needed.
56298         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56299         Use types required by C89 in prototype.
56300
56301         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56302         * lib/savedir.c: Likewise.
56303         * lib/mkdir.c (free): Remove decl.
56304         * lib/rmdir.c (rmdir): Define with a prototype.
56305         * lib/savedir.c: Include savedir.h first, to test interface.
56306
56307         * lib/mktime.c (STDC_HEADERS): Remove.
56308         Include <stdlib.h>, <string.h> unconditionally.
56309
56310         * lib/modechange.c: Include <stdlib.h> unconditionally.
56311         (malloc): Remove decl.
56312
56313         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56314         (free): Remove decl.
56315
56316         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56317         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56318         (This type really should be intptr_t, but that's a C99ism.)
56319         (_obstack_memcpy): Remove: all uses changed to memcpy.
56320         Include <string.h> unconditionally.
56321         (struct obstack): Assume __STDC__ for types of members
56322         chunkfun, freefun, extra_arg.
56323         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56324         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56325         obstack_begin, obstack_specify_allocation,
56326         obstack_specify_allocation_with_arg, obstack_chunkfun,
56327         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56328         Remove unprototyped decls and the macros that use them.
56329         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56330         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56331         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56332         (defined __STDC__ && __STDC__)]:
56333         Remove nonprototyped code.
56334         Include <stdlib.h> unconditionally.
56335         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56336         _obstack_allocated_p, _obstack_free, obstack_free,
56337         _obstack_memory_used, print_and_abort):
56338         Define using prototypes.
56339         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56340         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56341         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56342         obstack_next_free, obstack_object_size, obstack_room) [0]:
56343         Remove unused, unprototyped code.
56344
56345         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56346
56347         * lib/physmem.c (physmem_total, physmem_available, main): Define
56348         with prototypes.
56349
56350         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56351         (main): Define with a prototype.
56352
56353         * lib/posixver.c (getenv): Remove decl.
56354
56355         * lib/putenv.c (malloc): Returns void *, not char *.
56356         Include <string.h> unconditionally.
56357         (strchr, memcpy, NULL): Do not define.
56358
56359         * lib/readtokens.c: Include readtokens.h first, to test interface.
56360         Include <stdlib.h>, <string.h> unconditionally.
56361         (init_tokenbuffer): Define with a prototype.
56362
56363         * lib/regex.c (PARAMS): Remove.  All uses removed.
56364         All uses of _RE_ARGS removed, too.
56365         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56366         unconditionally.
56367         (bzero): Assume memset exists.
56368         (memcmp, memcpy, NULL): Remove.
56369         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56370         char, or assignments to local vars of type signed char.
56371         (init_syntax_once, PREFIX(extract_number_and_incr),
56372         PREFIX(print_partial_compiled_pattern),
56373         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56374         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56375         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56376         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56377         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56378         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56379         wcs_compile_range, byte_compile_range, truncate_wchar,
56380         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56381         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56382         count_mbs_length, wcs_re_match_2_internal,
56383         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56384         PREFIX(alt_match_null_string_p),
56385         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56386         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56387         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56388         now-unnecessary declaration, if any.
56389         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56390         regcomp, regexec):
56391         Remove now-unnecessary casts among pointer types.
56392         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56393
56394         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56395         (free): Remove decl.
56396
56397         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56398
56399         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56400         (free): Remove decl.
56401
56402         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56403         * lib/xgetcwd.c: Likewise.
56404
56405         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56406         (free): Remove decl.
56407
56408         * lib/strchrnul.c (strchrnul): Define with a prototype.
56409         Fix bug: c_in was not converted to char before searching.
56410
56411         The following changes are not K&R related:
56412
56413         * lib/group-member.h: Include <sys/types.h>, so that this file is
56414         self-contained.
56415         * lib/makepath.h: Likewise.
56416
56417         * lib/getusershell.c (readname, default_index, line_size, readname):
56418         Use size_t, not int, for sizes.
56419         (readname): If the size overflows, report an error instead of
56420         looping forever.
56421
56422 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56423
56424         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56425         libc.
56426
56427 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56428
56429         * README: New section: portability guidelines.
56430
56431 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56432
56433         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56434         C89 spec.
56435
56436 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56437
56438         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56439
56440 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56441
56442         Assume C89 or better; remove K&R cruft.
56443         A few of these changes were first proposed by Derek Robert Price
56444         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56445
56446         * lib/addext.c: Include <string.h> unconditionally.
56447         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56448         Don't declare getenv or malloc.
56449
56450         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56451         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56452         (NULL): Remove.
56453         (find_stack_direction, alloca): Use prototypes.
56454
56455         * lib/atexit.c (atexit): Define using a prototype.
56456
56457         * lib/basename.c, dirname.c, stripslash.c:
56458         Include <string.h> unconditionally.
56459
56460         * lib/bcopy.c: Include <stddef.h>.
56461         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56462
56463         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56464
56465         * lib/error.h (error, error_at_line, error_print_progname)
56466         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56467         * lib/error.c: Include error.h first, to check interface.
56468         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56469         (VA_START): Remove; all uses changeed to va_start.
56470         (exit, strerror): Remove decls.
56471         (error_print_progname): Prototype uncondionally.
56472         Don't include <errno.h>; no longer needed.
56473         (private_strerror): Remove.
56474         (error_tail): Always define.
56475         (error, error_at_line): Assume C89 or better; always use prototypes.
56476         * lib/fatal.c: Include "fatal.h" first, to test interface.
56477         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56478         (VA_START): Remove; all uses changed to va_start.
56479         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56480         this case.
56481         (exit): Remove decl.
56482         (fatal): Prototype unconditionally.  Assume va_start works.
56483         Abort at end, to pacify gcc.
56484
56485         * lib/euidaccess.c (main): Define with a prototype.
56486
56487         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56488
56489         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56490
56491         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56492         prototypes.
56493         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56494         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56495         (getenv): Remove decl.
56496         (fnmatch): Define using a prototype.
56497         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56498         (FCT): Define using a prototype.
56499
56500         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56501
56502         * lib/gethostname.c: Include <stddef.h>.
56503         (gethostname): Define with prototype.  Length is size_t, not int.
56504
56505 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56506
56507         Assume C89 or better; remove K&R cruft.
56508         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56509         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56510         string.h, getenv, malloc.
56511         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56512         headers.
56513         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56514         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56515         do not check for strerror.
56516         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56517         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56518         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56519         do not check for doprnt or vprintf.
56520         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56521         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56522
56523 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56524
56525         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56526         getversion.c should have been removed then, but was accidentally
56527         preserved.
56528
56529         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56530         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56531
56532 2003-09-08  Karl Berry  <karl@gnu.org>
56533
56534         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56535                 config, forget about prep.
56536
56537         * config/depcomp, missing: update from automake.
56538
56539 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56540
56541         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56543
56544 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56545
56546         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56547         copy_tm_result.  Bug reported by Simon Josefsson in
56548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56549
56550 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56551
56552         * m4/time_r.m4: New file.
56553         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56554         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56555         is. Check for timegm declaration.
56556         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56557         Do not check for gmtime_r.
56558         Replace mktime if __mktime_internal does not exist and if mktime
56559         hasn't been replaced already.
56560
56561 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56562
56563         * lib/time_r.c, lib/time_r.h: New files.
56564
56565         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56566         __localtime_r.
56567         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56568         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56569
56570         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56571         __gmtime_r.
56572         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56573         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56574         Include <time_r.h>.
56575
56576         * lib/timegm.c: Switch to glibc implementation, with the following
56577         changes:
56578         [defined HAVE_CONFIG_H]: Include <config.h>.
56579         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56580         (__mktime_internal) [!defined _LIBC]: New decl.
56581         (__gmtime_r) [!defined _LIBC]: New macro and function.
56582         (timegm): Use a prototype, since gnulib assumes C89.
56583         Do not bother declaring tmp to be const, as it's not really usefu.
56584         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56585         (timegm): Declare only if HAVE_DECL_TIMEGM.
56586
56587 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56588
56589         * MODULES.html.sh (func_all_modules): Add time_r.
56590         * modules/time_r: New file.
56591         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56592         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56593
56594 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56595
56596         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56597         Bug reported by Lute Kamstra in
56598         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56599
56600         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56601         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56602         course with correspondingly smaller numbers for tomorrow and
56603         yesterday.  From Tadayoshi Funaba.  Originally installed into
56604         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56605         coreutils merge?).
56606
56607 2003-08-31  Simon Josefsson  <jas@extundo.com>
56608
56609         * modules/timegm: New file.
56610         * MODULES.html.sh (func_all_modules): Add timegm.
56611
56612 2003-08-31  Simon Josefsson  <jas@extundo.com>
56613
56614         * m4/timegm.m4: New file.
56615
56616 2003-08-31  Simon Josefsson  <jas@extundo.com>
56617
56618         * lib/timegm.h: New file.
56619         * lib/timegm.c: New file.  Based on
56620         wget-1.8.2/src/http.c:mktime_from_utc.
56621
56622 2003-08-31  Karl Berry  <karl@gnu.org>
56623
56624         * lib/argp.h: update from libc.
56625
56626 2003-08-28  Bruno Haible  <bruno@clisp.org>
56627
56628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56629         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56630         followed by '#define fnmatch fnmatch_posix' gives an error.
56631
56632 2003-08-28  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56635         warning on QNX, which defines O_BINARY to 000000.
56636
56637 2003-08-27  Jim Meyering  <jim@meyering.net>
56638
56639         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56640         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56641         would fail after 32.  Reported by Danny Levinson.  Details here:
56642         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56643
56644 2003-08-24  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56647         MSVC7 <stdio.h> is included later.
56648
56649 2003-08-22  Simon Josefsson  <jas@extundo.com>
56650
56651         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56652
56653 2003-08-20  Karl Berry  <karl@gnu.org>
56654
56655         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56656
56657 2003-08-20  Bruno Haible  <bruno@clisp.org>
56658
56659         * modules/progname: New file.
56660         * MODULES.html.sh (func_all_modules): Add progname.
56661
56662 2003-08-20  Bruno Haible  <bruno@clisp.org>
56663
56664         * lib/progname.h: New file, from GNU gettext.
56665         * lib/progname.c: New file, from GNU gettext.
56666         * lib/progreloc.c: New file, from GNU gettext.
56667
56668 2003-08-19  Jim Meyering  <jim@meyering.net>
56669
56670         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56671         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56672
56673 2003-08-19  Bruno Haible  <bruno@clisp.org>
56674
56675         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56676         more.
56677
56678 2003-08-19  Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/xstrdup.c: Assume <string.h> exists.
56681
56682 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56683
56684         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56685         in makefile rules.
56686
56687 2003-08-18  Jim Meyering  <jim@meyering.net>
56688
56689         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56690         * m4/lib-ld.m4: Likewise.
56691
56692 2003-08-18  Jim Meyering  <jim@meyering.net>
56693
56694         * lib/setenv.h: Indent nested cpp directive.
56695         * lib/vasnprintf.c: Remove trailing blanks.
56696
56697 2003-08-17  Simon Josefsson  <jas@extundo.com>
56698
56699         * modules/xstrndup: New file.
56700         * MODULES.html.sh (func_all_modules): Add xstrndup.
56701
56702 2003-08-17  Simon Josefsson  <jas@extundo.com>
56703
56704         * modules/argp: Fix autoconf macro name. Add more dependencies.
56705
56706 2003-08-17  Simon Josefsson  <jas@extundo.com>
56707
56708         * m4/xstrndup.m4: New file.
56709
56710 2003-08-17  Simon Josefsson  <jas@extundo.com>
56711
56712         * m4/argp.m4: New file.
56713
56714 2003-08-17  Simon Josefsson  <jas@extundo.com>
56715             Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/xstrndup.h: New file.
56718         * lib/xstrndup.c: New file.
56719
56720 2003-08-17  Bruno Haible  <bruno@clisp.org>
56721
56722         * modules/strndup (Files, Include): Add lib/strndup.h.
56723
56724 2003-08-17  Bruno Haible  <bruno@clisp.org>
56725
56726         * modules/euidaccess (Files): Add lib/euidaccess.h.
56727
56728 2003-08-17  Bruno Haible  <bruno@clisp.org>
56729
56730         * lib/strndup.h: New file.
56731
56732 2003-08-17  Bruno Haible  <bruno@clisp.org>
56733
56734         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56735         like AC_GNU_SOURCE.
56736         * modules/extensions (configure.ac): Comment out the invocation of
56737         gl_USE_SYSTEM_EXTENSIONS.
56738
56739 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56740
56741         Merges from coreutils, etc.
56742         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56743         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56744         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56745         fixing a typo.
56746         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56747         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56748
56749 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56750
56751         Document merge from coreutils.
56752         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56753         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56754         * modules/utime: Add m4/utimes-null.m4.
56755
56756 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56757
56758         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56759         space, undoing this 2003-08-12 change:
56760         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56761
56762 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56763
56764         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56765         strtoul.c from libc, undoing this 2003-08-12 change:
56766         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56767
56768 2003-08-16  Jim Meyering  <jim@meyering.net>
56769
56770         Merges from coreutils.
56771         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56772         prefix.  Adjust cache variables similarly.  Create 500 rather than
56773         just 300 files, to exercise bug on Darwin6.5, too.
56774         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56775         $missing_dir.
56776         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56777         AM_SYS_POSIX_TERMIOS.
56778         Reported by mkc@mathdogs.com.
56779         Also change use of $am_cv_sys_posix_termios
56780         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56781         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56782         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56783         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56784         in /proc/mounts until it finds one with matching device number.  This
56785         is unnecessary when the FILE argument *is* a mount point.  No stat call
56786         is necessary in that case.  So, disable the statvfs-testing code on
56787         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56788         as RedHat bug# 84846.
56789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56790         to 1MB, so as not to render systems with no stack size limit (e.g.,
56791         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56792         Include <unistd.h>.  On some systems,
56793         it is required for the definition of _SC_PAGESIZE.
56794
56795 2003-08-16  Jim Meyering  <jim@meyering.net>
56796
56797         Merge from coreutils.
56798         * lib/xstrtoimax.c: #else #if -> #elif.
56799         * lib/xstrtoumax.c: Likewise.
56800
56801 2003-08-16  Jim Meyering  <jim@meyering.net>
56802
56803         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56804         * m4/utimes.m4: Removed.
56805         * m4/utimes-null.m4: Renamed from utimes.m4.
56806
56807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56808         to 1MB, so as not to render systems with no stack size limit (e.g.,
56809         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56810         Include <unistd.h>.  On some systems,
56811         it is required for the definition of _SC_PAGESIZE.
56812
56813 2003-08-16  Jim Meyering  <jim@meyering.net>
56814         and Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         Merges from coreutils, etc.
56817
56818         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56819         using the latest version from cvs.  This avoids problems with #line
56820         directives using a vendor (Sun) compiler.
56821         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56822         Don't set GETGROUPS_LIB here; now it's
56823         done via getgroups.m4's wrapper function.
56824         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56825         rather than just in sh-util/configure.in, so that the
56826         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56827         same.
56828         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56829         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56830         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56831         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56832         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56833         Remove code that is now done by the newly-required macros.
56834         Append $(EXEEXT) to DF_PROG.
56835         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56836         Do not invoke or require the following here,
56837         since prereq.m4 or some gnulib .m4 now does this for us:
56838         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56839         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56840         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56841         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56842         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56843         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56844         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56845         AC_FUNC_OBSTACK.
56846         Do not replace the following functions, as this is now the job
56847         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56848         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56849         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56850         atexit getpass, strdup, getpagesize.
56851         Replace 'raise'.
56852         Do not check for the following functions, as this is now the job
56853         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56854         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56855         setregid.
56856         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56857         Check for sys/sysctl.h.
56858         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56859         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56860         of checking for ssize_t ourselves.
56861
56862         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56863         Require every macro that gnulib/modules/* suggests for us.
56864         (jm_PREREQ_ADDEXT): New macro.
56865         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56866         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56867
56868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56869         (gl_PHYSMEM): Use it.
56870         Also check for `table' function.
56871         Check for new headers and functions.
56872         Add check for sys/sysmp.h.
56873         With suggestions from Kaveh Ghazi.
56874         Ignore headers that are present but cannot be compiled.  This
56875         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56876         C 5.4.
56877
56878 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56879
56880         Document merge from coreutils.
56881         * modules/userspec: Depend on posixver.
56882         * modules/strftime: Depend on tzset.
56883
56884 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56885
56886         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56887         rather than tab, after '#' in shell-script copyright notices.
56888         Suggested by Bruno Haible.
56889
56890 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56891
56892         * config/srclist-update: Use three spaces, rather than tab, after '#'
56893         in shell-script copyright notices.  Suggested by Bruno Haible.
56894         Remove unnecessary parenthesization in regular expression.
56895
56896 2003-08-15  Jim Meyering  <jim@meyering.net>
56897
56898         Merge from coreutils.
56899         * lib/xgethostname.c: Include <stdlib.h>.
56900         (xghostname): Don't exit for anything other than memory-related
56901         failure; just return NULL.
56902         * lib/userspec.c: Include "posixver.h".
56903         (parse_user_spec): Accept `.' as a separator only
56904         in pre-POSIX-200112 mode.
56905         * lib/strtoimax.c: Use #elif rather than #else #if.
56906         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56907         Remove function, now that we can rely on a working tzset function.
56908         [!_LIBC]: Ensure that the required autoconf test has been run.
56909         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56910         Use underlying_strftime for %r.
56911         * lib/sha.c: Merge in some clean-up and optimization changes from
56912         glibc.
56913         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56914         Ensure that it is a multiple of 64.
56915         Rearrange loop exit tests so as to avoid performing an
56916         additional fread after encountering an error or EOF.
56917         * lib/realloc.c: Update copyright date.
56918
56919 2003-08-15  Jim Meyering  <jim@meyering.net>
56920         and Paul Eggert  <eggert@twinsun.com>
56921
56922         Merge from coreutils.
56923         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56924         member but strut utmpx does not.  Needed for AIX 4.3.3.
56925         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56926
56927 2003-08-15  Jim Meyering  <jim@meyering.net>
56928         and Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         Merges from coreutils, etc.
56931         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56932         Require gl_FUNC_TZSET_CLOBBER.
56933         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56934         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56935         members.
56936
56937 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56938
56939         Help the merge from coreutils.
56940         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56941         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56942         * m4/tzset.m4: Use it too.
56943
56944 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56945
56946         * modules/tzset: New file.
56947
56948 2003-08-14  Jim Meyering  <jim@meyering.net>
56949
56950         Merges from coreutils.
56951         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56952         variable names, rather than @FNMATCH_H@.
56953         * modules/alloca: Likewise for $(ALLOCA_H).
56954
56955         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56956         the three copies of the literal target, `fnmatch.h'.
56957         * modules/alloca (alloca.h): Likewise.
56958
56959 2003-08-14  Jim Meyering  <jim@meyering.net>
56960
56961         Merge from coreutils.
56962         * m4/tzset.m4: New file.
56963         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56964         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56965         otherwise, AIX 5.1 systems would end up using the latter.
56966         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56967         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56968         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56969         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56970
56971 2003-08-14  Jim Meyering  <jim@meyering.net>
56972
56973         Merge from coreutils.
56974         * lib/obstack.h: Whitespace changes.
56975         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56976         and xcalloc return values.
56977         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56978         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56979         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56980         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56981         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56982         error from mntctl.
56983         Use mntctl's return value to drive the entry-processing loop, since
56984         we can't rely on the value of the vmt_length member in the last
56985         entry.  On some systems doing so could result in exhausting
56986         virtual memory.  Based in part on a patch from Mike Jetzer.
56987
56988 2003-08-14  Jim Meyering  <jim@meyering.net>
56989         and Paul Eggert  <eggert@twinsun.com>
56990
56991         Merges from coreutils, plus other fixes.
56992         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56993         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56994         for credits and details.  Thanks to Kaveh Ghazi for helping
56995         to keep these files in sync.
56996         (ARRAY_SIZE): Define it.
56997         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56998         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56999         (memcasecmp): Don't assume size_t fits in unsigned int.
57000         Remove casts and duplicate code.
57001         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57002         (memcpy): Remove definition.
57003         Merge in some clean-up and optimization changes from glibc.
57004         [BLOCKSIZE]: Move definition to top of file.
57005         Ensure that it is a multiple of 64.
57006         Rearrange loop exit tests so as to avoid performing an
57007         additional fread after encountering an error or EOF.
57008         * lib/md5.h (md5_uintptr): Define.
57009         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57010         return to the initial working directory.  Preserve errno
57011         for caller.
57012         * lib/idcache.c: Include "xalloc.h".
57013         (xmalloc, xrealloc): Remove decls.
57014         (getuser): Remove casts no longer required in C89.
57015         * lib/human.c: Include stdio.h, for sprintf.
57016         * lib/group-member.c: Include "xalloc.h".
57017         (xmalloc, xrealloc): Remove decls.
57018         (get_group_info): Remove casts no longer required in C89.
57019         * lib/getusershell.c (readname): Remove casts no longer required in
57020         C89.
57021         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57022         * lib/getline.c: Whitespace fix, from coreutils.
57023
57024 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57025
57026         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57027         Check for isascii.
57028
57029         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57030         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57031         Undo previous (whitespace-only) change.
57032
57033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57034
57035         * lib/exclude.c: Include <ctype.h>
57036         (IN_CTYPE_DOMAIN): New macro.
57037         (is_space): New fn.
57038         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57039         and empty lines.
57040
57041         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57042         Undo previous (whitespace-only) change.
57043
57044 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57045
57046         * config/srclist-update: Change update back to the old behavior,
57047         leaving whitespace alone.  Use one 'sed' command rather than a
57048         pipeline.
57049         (fixlicense): Now a variable, not a function.
57050         (remove_trailing_blanks): Remove.
57051         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57052         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57053         Undo previous (whitespace-only) change.
57054
57055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57056
57057         Merge from coreutils.
57058         * modules/euidaccess: Add lib_SOURCES, include for new
57059         file euidaccess.h
57060
57061 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57062
57063         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57064         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57065         Normalize leading white space and remove trailing white space.
57066
57067         Merge from coreutils
57068         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57069
57070         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57071         0.12.1.  These files are now being upgraded automatically by
57072         ../config/srclist-update.
57073
57074 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57075
57076         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57077         Normalize leading white space and remove trailing white space.
57078         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57079         notice, as per ../config/srclist-update.
57080
57081         Merge from coreutils.
57082         * lib/euidaccess.h: New file.
57083         * lib/euidaccess.c: Include it.
57084         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57085         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57086         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57087
57088 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57089
57090         * config/srclist-update: Add copyright notice.
57091         (remove_id_lines, remove_trailing_blanks): New constants.
57092         (fixfile): Use them to normalize spacing a bit in copied files.
57093         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57094         Normalize leading white space and remove trailing white space.
57095
57096         * config/texinfo.tex: Sync with texinfo.
57097
57098         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57099         strtoul.c from libc, to merge coreutils whitespace changes.
57100
57101         * config/srclist.txt: Get the following m4 files from gettext:
57102         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57103         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57104         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57105         wint_t.m4.
57106
57107 2003-08-12  Karl Berry  <karl@gnu.org>
57108
57109         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57110         been made.
57111
57112 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57113
57114         * modules/gnu-source, m4/gnu-source.m4:
57115         Remove; we're assuming Autoconf 2.54 or later now.
57116         Suggested by Bruno Haible.
57117         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57118
57119 2003-08-11  Bruno Haible  <bruno@clisp.org>
57120
57121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57122
57123 2003-08-11  Bruno Haible  <bruno@clisp.org>
57124
57125         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57126         (vasnprintf): Use it instead of wcslen.
57127
57128 2003-08-11  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57131         value to ensure that _Bool promotes to int. Use #define for _Bool when
57132         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57133
57134 2003-08-10  Karl Berry  <karl@gnu.org>
57135
57136         * lib/regex.h: update from libc (whitespace fix).
57137
57138 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57139
57140         Merge some files from coreutils.  These changes were
57141         originally made by Jim Meyering.
57142         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57143         many older Unixes require this.
57144         * lib/alloca.c (alloca): Remove cast to argument of free;
57145         no longer needed in C89.
57146         * lib/alloca_.h, regex.h: Fix white space to match
57147         what GNU indent does.
57148
57149 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57150
57151         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57152         apparently Emacs's Unicode mode got confused before my 2003-08-05
57153         checkin.
57154
57155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57156
57157         * m4/extensions.m4: New file.
57158         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57159         Require gl_USE_SYSTEM_EXTENSIONS.
57160         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57161         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57162
57163 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57164
57165         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57166         * modules/extensions, modules/gnu-source: New files.
57167         * modules/timespec, modules/unlocked-io: Depend on extensions.
57168
57169 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57170
57171         * modules/restrict: New file.
57172         * MODULES.html.sh (func_all_modules): Add restrict.
57173         * modules/regex: Depend on restrict.
57174
57175 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57176
57177         * m4/restrict.m4: New file.
57178         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57179
57180 2003-08-07  Bruno Haible  <bruno@clisp.org>
57181
57182         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57183         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57184
57185 2003-08-07  Bruno Haible  <bruno@clisp.org>
57186
57187         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57188         makes the module 'getndelim2' compatible with the module 'getline'.
57189
57190 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57191
57192         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57193         byte with "\201" to avoid glitches when editing that source file
57194         with multi-gnome-terminal.
57195
57196 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57197
57198         * lib/bumpalloc.h: Remove.
57199
57200 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57201
57202         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57203         * modules/bumpalloc: Remove.
57204
57205 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57206
57207         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57208         GNU coding style.
57209
57210         Merge from coreutils.
57211         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57212         1. From glibc.
57213         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57214         from Karl Berry, implemented by Jim Meyering.
57215         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57216         from Dmitry V. Levin.
57217         Remove anachronistic cast of xrealloc.
57218         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57219         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57220         type. Otherwise, it wouldn't compile with at least /bin/cc on
57221         ymp-cray-unicos9.0.2.X.
57222         Combine two mostly-identical uses of alloca into one.
57223         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57224
57225 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57226
57227         [From Emacs.]
57228
57229         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57230         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57231         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57232         obsolete NLIST_NAME_UNION.
57233         [__GNU__]: Undef BSD and FSCALE.
57234         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57235
57236 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57237
57238         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57239         an enum type, so that it's guaranteed to promote to int.  See:
57240         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57241
57242 2003-08-03  Karl Berry  <karl@gnu.org>
57243
57244         * config/depcomp: update from automake.
57245
57246 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57247
57248         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57249         (strerror): Don't assume that a printable int fits in 14 bytes.
57250
57251 2003-07-31  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/getpass-gnu: New file.
57254         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57255
57256 2003-07-31  Bruno Haible  <bruno@clisp.org>
57257
57258         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57259
57260 2003-07-24  Karl Berry  <karl@gnu.org>
57261
57262         * config/missing: update from automake.
57263
57264 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57265             Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57268         * lib/getline.c (getline, getdelim): Likewise.
57269         Remove _GNU_SOURCE define; now it's defined in config.h through
57270         m4/getline.m4.
57271
57272 2003-07-23  Karl Berry  <karl@gnu.org>
57273
57274         * config/config.sub: update from prep.
57275
57276 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57277
57278         * modules/xalloc (Depends-on): Add exitfail.
57279         * modules/xmemcoll: Likewise.
57280
57281 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57282
57283         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57284         over-parenthesization in macros.
57285
57286         Sync with coreutils.
57287
57288         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57289         required by C99.
57290
57291         Use `exit_failure' for xalloc and xmemcoll instead of their own
57292         private exit-failure variables.
57293         * lib/xalloc.h (xalloc_exit_failure): Remove.
57294         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57295         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57296         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57297         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57298         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57299
57300 2003-07-20  Jim Meyering  <jim@meyering.net>
57301
57302         * modules/closeout (Depends-on): Add exitfail.
57303         Suggestion from Bruno Haible.
57304
57305 2003-07-19  Karl Berry  <karl@gnu.org>
57306
57307         * config/config.sub: update from prep.
57308
57309 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57310
57311         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57312         Remove.
57313         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57314         to test that it can stand by itself.  Include "exitfail.h".
57315         Clients should set exit_failure instead.
57316         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57317
57318 2003-07-18  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/getndelim2: New file.
57321         * modules/getline: Share files with module getndelim2.
57322         * modules/getnline: Depend on getndelim2 instead of sharing files with
57323         it. Add getnline.c to lib_SOURCES.
57324         * MODULES.html.sh (func_all_modules): Add getndelim2.
57325
57326 2003-07-18  Bruno Haible  <bruno@clisp.org>
57327
57328         * m4/getndelim2.m4: New file.
57329         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57330         invoke gl_PREREQ_GETNDELIM2.
57331         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57332         gl_PREREQ_GETNDELIM2.
57333         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57334         gl_GETNDELIM2.
57335
57336 2003-07-18  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/getndelim2.h: New file.
57339         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57340         getndelim2.h.
57341         (getndelim2): Make non-static. Change return type to ssize_t.
57342         * lib/getline.h: Change argument names.
57343         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57344         * lib/getnline.c: Include getndelim2.h.
57345
57346 2003-07-18  Andreas Schwab  <schwab@suse.de>
57347
57348         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57349
57350 2003-07-17  Karl Berry  <karl@gnu.org>
57351
57352         * config/config.sub: update from prep.
57353
57354 2003-07-17  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/getnline: New file.
57357         * modules/getline: Add lib/getndelim2.c to source file list.
57358         * MODULES.html.sh (func_all_modules): Add getnline.
57359
57360 2003-07-17  Bruno Haible  <bruno@clisp.org>
57361
57362         * m4/getnline.m4: New file.
57363
57364 2003-07-17  Bruno Haible  <bruno@clisp.org>
57365
57366         * m4/Makefile.am.in: Remove file.
57367         * m4/Makefile.am: Remove file.
57368         * m4/Makefile.in: Remove file.
57369
57370 2003-07-17  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/getnline.h: New file.
57373         * lib/getnline.c: New file.
57374         * lib/getndelim2.c: New file, extracted from getline.c.
57375         (getndelim2): Renamed from getdelim2, with added nmax argument.
57376         * lib/getline.c: Include getndelim2.c.
57377         (getdelim2): Moved out to getndelim2.c.
57378         (getline, getdelim): Update.
57379
57380 2003-07-17  Bruno Haible  <bruno@clisp.org>
57381
57382         * lib/Makefile.am: Remove file.
57383         * lib/Makefile.in: Remove file.
57384
57385 2003-07-17  Bruno Haible  <bruno@clisp.org>
57386
57387         * configure.in: Remove file.
57388         * Makefile.in: Remove file.
57389
57390 2003-07-17  Bruno Haible  <bruno@clisp.org>
57391
57392         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57393
57394 2003-07-16  Karl Berry  <karl@gnu.org>
57395
57396         * config/srclist-update: was running fixlicense twice, which caused
57397                 texinfo.tex to be nullified for some reason.  Simplify,
57398                 $gplsrc is no longer needed as far as I can see?
57399
57400 2003-07-16  Jim Meyering  <jim@meyering.net>
57401
57402         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57403
57404 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57405
57406         * config/srclist.txt: Get the following files from gettext-runtime/intl
57407         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57408         ref-del.sin.  From Bruno Haible.
57409         * config/srclist-update (fixfile): Change grep pattern again, since the
57410         previous fix didn't work (there was another trailing $).  Use
57411         '[$]' to escape the $s.
57412
57413 2003-07-15  Karl Berry  <karl@gnu.org>
57414
57415         * lib/vasnprintf.c: update from gettext.
57416
57417 2003-07-15  Karl Berry  <karl@gnu.org>
57418
57419         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57420         gets expanded when surrounded by '$'.
57421
57422 2003-07-15  Jim Meyering  <jim@meyering.net>
57423
57424         * modules/save-cwd: Don't depend on error.  From Derek Price.
57425
57426 2003-07-15  Jim Meyering  <jim@meyering.net>
57427
57428         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57429
57430 2003-07-14  Simon Josefsson  <jas@extundo.com>
57431
57432         * modules/mempcpy: New file.
57433         * MODULES.html.sh (func_all_modules): Add mempcpy.
57434
57435 2003-07-14  Simon Josefsson  <jas@extundo.com>
57436
57437         * m4/mempcpy.m4: New file.
57438
57439 2003-07-14  Simon Josefsson  <jas@extundo.com>
57440
57441         * lib/mempcpy.h: New file.
57442         * lib/mempcpy.c: New file.
57443
57444 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57445
57446         * modules/getdate, modules/posixtm: Depend on mktime.
57447
57448 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57449
57450         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57451         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57452         unicodeio.c, unicodeio.h, unlocked-io.h:
57453         Switch from LGPL to GPL.
57454
57455 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57456
57457         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57458         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57459         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57460         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57461         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57462         updated automatically by ../config/srclist-update.  This changes
57463         their license from LPGL to GPL.
57464
57465 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57466
57467         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57468         assumed to refer to the root of the most recent stable gettext version.
57469         * config/srclistvars.sh: Add defaults for eggert.
57470         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57471         Match "This program" as well as "The program".  This is needed
57472         for gettext.
57473
57474 2003-07-14  Jim Meyering  <jim@meyering.net>
57475
57476         Don't emit diagnostics.  Let callers do that.
57477         * lib/save-cwd.c: Don't include "error.h".
57478         (save_cwd): Don't call error.  Ensure that errno is valid
57479         when returning nonzero.
57480
57481         * lib/save-cwd.h (restore_cwd): Update prototype.
57482         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57483         Simplify.  Don't call error upon failure.  Let callers do that.
57484         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57485         when auditing is enabled.  But don't bother updating the #if.
57486
57487 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57488
57489         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57490         it breaks C++ compilation.
57491         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57492
57493 2003-07-10  Simon Josefsson  <jas@extundo.com>
57494
57495         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57496
57497 2003-07-10  Jim Meyering  <jim@meyering.net>
57498
57499         * m4/clock_time.m4: Remove trailing blank.
57500         * m4/intmax_t.m4: Likewise.
57501
57502 2003-07-10  Jim Meyering  <jim@meyering.net>
57503
57504         * lib/vasnprintf.c: Remove trailing blanks.
57505         Make cpp indentation consistent.
57506
57507 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57508
57509         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57510         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57511         Switch from LGPL to GPL.
57512
57513 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57514
57515         * config/srclist.txt: Sort sublists.  Add
57516         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57517         that differ from gnulib for one reason or another; we'd like this list
57518         to be smaller but for now let's document what we have.
57519
57520 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57521
57522         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57523         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57524         and sweeter "eval x=$x".
57525         * config/srclist.txt: Get lib/argp* from glibc.
57526
57527 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57528
57529         * lib/mktime.c: Fix some boundary cases and remove need for floating
57530         point.
57531
57532         Issue a compile-time diagnostic if time_t is floating point, or if
57533         two's complement arithmetic is not in effect, or if arithmetic
57534         right shift does not propagate the sign.  These assumptions were
57535         all in the original code but they weren't checked.
57536
57537         (TIME_T_MIDPOINT, verify): New macros.
57538         (__isleap): Remove; it has integer overflow problems.
57539         (leapyear): New function, without those problems.
57540         (ydhms_tm_diff): Remove; splitting into two parts.
57541         (ydhms_diff): New function, containing the arithmetic part of
57542         the old ydhms_tm_diff function.  Issue a compile-time
57543         diagnostic if we are not using C99 integer division.
57544         Avoid casts when possible.
57545         (guess_time_tm): New function, containing the checking part of
57546         the old ydhms_tm_diff function.  Return the new value, rather than
57547         the difference between it and the old.  Accept a new argument T
57548         so that *T specifies the old value.  Check for overflow in the result.
57549
57550         (__mktime_internal): Use a time_t offset, not a long int offset.
57551         This undoes the 2003-06-04 change, which is no longer needed now
57552         that we have better overflow checking.
57553         (localtime_offset): Likewise.
57554
57555         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57556         and long are 64-bit but int is only 32-bit.
57557         (ydhms_diff): Use long int to store year1 and yday1.
57558         Issue a compile-time diagnostic if long int is not wide enough.
57559
57560         (__mktime_internal): Use long int to store adjusted year and yday.
57561         Use plain C rather than preprocessor commands, if that doesn't
57562         affect efficiency.
57563         Check for overflow (and try to repair) after each probe
57564         rather than checking only at the very end.  This avoids some bugs
57565         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57566         does not equal GMT offset at maximum time).
57567         Use integer to check for overflow rather than floating point; this
57568         is more portable to non-IEEE hosts, and is a tad faster.
57569         When we detect that we are oscillating between two values,
57570         don't check whether tm_isdst has the requested value, since
57571         we already know the answer.  When tm_isdst has the wrong value,
57572         use a different heuristic to find the right one, based on the
57573         extreme values actually observed in practice in tz2003a,
57574         rather than the (overly optimistic) "previous 3 calendar quarters".
57575
57576         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57577         "T const" to accommodate glibc style.
57578         (check_result): Use less-confusing report format.  "long" -> "long int.
57579         (main): Likewise.
57580         Don't loop if the iteration overflows time_t.
57581         Allow a negative step in the iteration.
57582
57583 2003-07-06  Karl Berry  <karl@gnu.org>
57584
57585         * config/depcomp: update from automake.
57586         * config/config.sub: update from prep.
57587
57588 2003-07-03  Karl Berry  <karl@gnu.org>
57589
57590         * config/config.guess: update from prep.
57591
57592 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57593
57594         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57595         xreadlink.c now includes it unconditionally.
57596
57597 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57598
57599         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57600         having it depend on HAVE_SYS_TYPES_H.
57601
57602 2003-07-01  Bruno Haible  <bruno@clisp.org>
57603
57604         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57605         <sys/types.h> should be sufficient.
57606         Reported by Paul Eggert.
57607
57608 2003-06-26  Karl Berry  <karl@gnu.org>
57609
57610         * config/depcomp: update from automake.
57611
57612 2003-06-26  Bruno Haible  <bruno@clisp.org>
57613
57614         * modules/human: Depend on module stdbool.
57615
57616 2003-06-25  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/readlink: New file.
57619         * modules/xreadlink: Depend on it.
57620         * MODULES.html.sh (func_all_modules): Add readlink.
57621
57622 2003-06-25  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/readlink.m4: New file.
57625
57626 2003-06-25  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/readlink.c: New file.
57629
57630 2003-06-22  Karl Berry  <karl@gnu.org>
57631
57632         * config/srclist.txt: update mkinstalldirs from automake.
57633         * config/mkinstalldirs: update.
57634
57635 2003-06-22  Bruno Haible  <bruno@clisp.org>
57636
57637         Portability to mingw32.
57638         * m4/ssize_t.m4: New file, from GNU gettext.
57639         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57640         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57641
57642 2003-06-22  Bruno Haible  <bruno@clisp.org>
57643
57644         * modules/safe-read: Add m4/ssize_t.m4.
57645         * modules/xreadlink: Add m4/ssize_t.m4.
57646
57647 2003-06-20  Bruno Haible  <bruno@clisp.org>
57648
57649         Assume C89, so PARAMS isn't needed.
57650         * lib/unicodeio.h (PARAMS): Remove.
57651         * lib/unicodeio.c: Don't use PARAMS.
57652
57653 2003-06-18  Karl Berry  <karl@gnu.org>
57654
57655         * config/config.{guess,sub}: update from prep.
57656
57657 2003-06-18  Jim Meyering  <jim@meyering.net>
57658
57659         Merge changes from coreutils.
57660         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57661         Remove explicit declarations of xmalloc and realloc.
57662         Include xalloc.h.
57663         (read_utmp): Remove anachronistic cast of xmalloc.
57664
57665 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57666
57667         Assume C89, so PARAMS isn't needed.
57668         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57669         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57670         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57671         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57672         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57673         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57674         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57675         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57676         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57677         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57678         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57679         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57680         no longer needed. Anyway, config.h should always be included before any
57681         other file.
57682
57683 2003-06-11  Simon Josefsson  <jas@extundo.com>
57684
57685         * modules/sysexits: New file.
57686         * MODULES.html.sh (func_all_modules): Add sysexits.
57687
57688 2003-06-11  Simon Josefsson  <jas@extundo.com>
57689
57690         * lib/sysexit_.h: New file.
57691
57692 2003-06-11  Derek Price  <derek@ximbiot.com>
57693
57694         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57695         necessary.
57696
57697 2003-06-11  Bruno Haible  <bruno@clisp.org>
57698
57699         * m4/sysexits.m4: New file.
57700
57701 2003-06-10  Simon Josefsson  <jas@extundo.com>
57702
57703         * lib/argp.h: New file, from glibc.
57704         * lib/argp-ba.c: New file, from glibc.
57705         * lib/argp-eexst.c: New file, from glibc.
57706         * lib/argp-fmtstream.c: New file, from glibc.
57707         * lib/argp-fmtstream.h: New file, from glibc.
57708         * lib/argp-fs-xinl.c: New file, from glibc.
57709         * lib/argp-help.c: New file, from glibc.
57710         * lib/argp-namefrob.h: New file, from glibc.
57711         * lib/argp-parse.c: New file, from glibc.
57712         * lib/argp-pv.c: New file, from glibc.
57713         * lib/argp-pvh.c: New file, from glibc.
57714         * lib/argp-xinl.c: New file, from glibc.
57715
57716 2003-06-10  Simon Josefsson  <jas@extundo.com>
57717
57718         * modules/strchrnul: New file.
57719
57720 2003-06-10  Simon Josefsson  <jas@extundo.com>
57721
57722         * modules/argp: New file.
57723
57724 2003-06-10  Simon Josefsson  <jas@extundo.com>
57725
57726         * m4/strchrnul.m4: New file.
57727
57728 2003-06-10  Simon Josefsson  <jas@extundo.com>
57729
57730         * lib/strchrnul.h: New file.
57731         * lib/strchrnul.c: New file.
57732
57733 2003-06-10  Bruno Haible  <bruno@clisp.org>
57734
57735         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57736
57737 2003-06-07  Karl Berry  <karl@gnu.org>
57738
57739         * config/config.{guess,sub}: update from prep.
57740
57741 2003-06-07  Jim Meyering  <jim@meyering.net>
57742
57743         * modules/strtod: Use $(...) notation, not @...@ for
57744         AC_REPLACE'd variables.
57745         * modules/localcharset: Likewise.
57746
57747 2003-06-07  Jim Meyering  <jim@meyering.net>
57748
57749         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57750         in place of my name in the copyright comment.
57751         Remove definition and uses of __P.
57752
57753         From coreutils.
57754         * lib/stat.c: Don't declare xmalloc explicitly.
57755         Instead, include "xalloc.h".
57756         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57757         xrealloc, and xcalloc return values.
57758         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57759         Improve comment.
57760         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57761
57762 2003-06-07  Bruno Haible  <bruno@clisp.org>
57763
57764         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57765         avoid AC_CONFIG_LINKS.
57766         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57767         fnmatch.h, to avoid AC_CONFIG_LINKS.
57768         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57769
57770 2003-06-07  Bruno Haible  <bruno@clisp.org>
57771
57772         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57773         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57774         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57775         directory.
57776         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57777         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57778         directory.
57779
57780 2003-06-06  Jim Meyering  <jim@meyering.net>
57781
57782         Merge from coreutils.
57783         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57784         Consolidate declarations and initializations of *_base* locals.
57785
57786         Merge from coreutils.
57787         This avoids a core dump on systems without GNU putenv,
57788         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57789         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57790         (unsetenv): New static function, from GNU libc.
57791         (rpl_putenv): Use it.
57792
57793         * lib/modechange.c: Remove trailing blanks.
57794
57795         Merge from coreutils.
57796         * lib/fsusage.c: Remove declaration of statfs.
57797         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57798
57799         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57800
57801 2003-06-06  Jim Meyering  <jim@meyering.net>
57802
57803         * lib/stdbool_.h: Renamed from stdbool.h.in.
57804
57805 2003-06-06  Jim Meyering  <jim@meyering.net>
57806             Bruno Haible  <bruno@clisp.org>
57807
57808         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57809         Adjust Makefile.am snippet not to redirect directly to target.
57810         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57811
57812 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57813
57814         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57815         mismatch, look in future quarters as well as past.  This fixes a
57816         bug when processing fall-backwards gaps immediately after a long
57817         period of daylight-saving time.
57818
57819         * lib/mktime.c: Assume freestanding C89 or better.
57820         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57821         (__P): Remove; not used.
57822         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57823         (mktime, not_equal_tm, print_tm, check_result,
57824         main): Use prototypes.  Use const * where appropriate.
57825         (main): Fix typo in testing code that uncovered by above changes.
57826         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57827
57828 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57829
57830         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57831         locale.h, localeconv.  This merges changes from coreutils.
57832
57833         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57834         It can be removed after the next Autoconf is released.
57835         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57836         needed.
57837
57838 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57839
57840         * lib/mktime.c: Fix Debian bug 177940
57841         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57842         (localtime_offset): Now long int, not time_t, because we want it
57843         to be guaranteed to be signed.  All uses changed.
57844         (__mktime_internal): If overflow would occur when adding offset,
57845         don't add it.
57846
57847         Merge 'human' changes from coreutils.  Rewrite to support
57848         locale-specific notations like thousands separators.
57849         * lib/human.c: Simplify authorship notice.
57850         Include human.h immediately after config.h.
57851         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57852         <limits.h>: Do not include, since human.h does.
57853         (SIZE_MAX, UINTMAX_MAX): New macros.
57854         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57855         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57856         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57857         (power_letter): Renamed from suffixes.
57858         (generate_suffix_backwards): Remove.
57859         (adjust_value): Now takes int style (because of human.h changes)
57860         and long double value (for greater precision on some platforms).
57861         (group_number): New function.
57862         (human_readable): Use it.  Use integer options, not enum.
57863         Put the options before the sizes in the arg list.
57864         Support all the new options.
57865         The old human_readable function has been removed;
57866         use inttostr.h instead.
57867         (human_readable, default_block_size, humblock):
57868         Use uintmax_t, not int, for block sizes.
57869         (human_readable_inexact, block_size_types): Remove.
57870         (block_size_opts): New constant.
57871         (human_options): Renamed from human_block_size, with new signature
57872         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57873         * lib/human.h: Add copyright and authorship notice.
57874         Include <limits.h> and <stdbool.h> unconditionally.
57875         (PARAMS): Remove.  All uses removed.
57876         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57877         (enum human_inexact_style): Remove tag; now a nameless enum.
57878         (human_floor, human_ceiling, human_round_to_even): Now have
57879         values 2, 0, 1 rather than -1, 1, 0.
57880         (human_group_digits, human_suppress_point_zero, human_autoscale,
57881         human_base_1024, human_SI, human_B): New constants.
57882         (human_readable_inexact, human_block_size): Remove.
57883         (human_readable): Size args are now uintmax_t, not int.
57884         (human_options): New decl.
57885
57886         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57887         unnecessary now that we assume C89 or better.  This change
57888         imported from coreutils.
57889
57890         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57891         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57892         in the 2003-05-30 sync from glibc.
57893
57894         .h files should stand alone, but we shouldn't include <sys/types.h>
57895         if we can get away with just <stddef.h>.
57896
57897         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57898         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57899         rather than <sys/types.h>, as we merely need size_t.
57900         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57901         to get size_t.
57902         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57903         Include <stdio.h>, to get FILE.
57904         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57905         memcasecmp.h has included <stddef.h> and all we need is size_t.
57906         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57907         our interface, instead of including <sys/types.h>
57908
57909 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57910
57911         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57912         now, as glibc mktime is buggy on non-glibc systems.
57913
57914 2003-06-03  Karl Berry  <karl@gnu.org>
57915
57916         * config/config.sub: update from prep.
57917
57918 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57919
57920         [from coreutils]
57921         Fix some minor time-related bugs with POSIX time arguments.
57922         Some valid time stamps were being rejected (notably -1, and
57923         time stamps before 1900 on 64-bit hosts).  And some invalid
57924         time stamps were being accepted, e.g. September 31.
57925
57926         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57927         that we can return (time_t) -1 successfully.
57928         * lib/posixtm.c: Likewise.
57929         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57930         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57931         (t): Remove static var.
57932         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57933         of static var.  All uses changed.
57934         (year): Do not reject years before 1900; they can occur with
57935         64-bit time_t.
57936         (posix_time_parse): Do not check for out-of-range components;
57937         that is now the caller's responsibility, since our checks were
57938         only approximations.
57939         (posixtime): Use mktime to check for out-of-range components,
57940         since it knows them exactly.
57941         If mktime returns (time_t) -1, check whether an error actually occurred
57942         by invoking localtime on -1.
57943         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57944         posixtime failures better.
57945         Improve the test data (in comments only).
57946
57947 2003-06-02  Karl Berry  <karl@gnu.org>
57948
57949         * config/mkinstalldirs (version): new variable.
57950         (--version): new option.
57951         (usage): improve message.
57952
57953 2003-05-30  Karl Berry  <karl@gnu.org>
57954
57955         * lib/mktime.c: update from libc.
57956
57957 2003-05-30  Bruno Haible  <bruno@clisp.org>
57958
57959         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57960         * config/config.rpath: Upgrade to gettext-0.12.1.
57961
57962 2003-05-30  Bruno Haible  <bruno@clisp.org>
57963
57964         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57965         * m4/nls.m4: New file, from gettext-0.12.1.
57966         * m4/po.m4: New file, from gettext-0.12.1.
57967         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57968
57969 2003-05-30  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57972         * lib/localcharset.h: Likewise.
57973         * lib/localcharset.c: Likewise.
57974
57975 2003-05-29  Karl Berry  <karl@gnu.org>
57976
57977         * config/config.rpath: update from gettext.
57978
57979 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57980
57981         Assume the headers required for C89 freestanding compilers.
57982         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57983         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57984         * m4/human.m4 (gl_HUMAN): Likewise.
57985         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57986         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57987         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57988         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57989         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57990         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57991
57992 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57993
57994         Assume the headers required for C89 freestanding compilers.
57995         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57996         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57997         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57998         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57999         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58000         define, since <limits.h> is guaranteed to do that.
58001         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58002         * lib/exclude.c: Include <stdbool.h> unconditionally.
58003         * lib/tempname.c: Include <stddef.h> unconditionally.
58004         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58005         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58006         <stddef.h> does that.
58007         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58008         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58009         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58010         needed.
58011         * lib/xstrtol.c: Likewise.
58012         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58013         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58014
58015         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58016         warnings on some platforms.
58017
58018         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58019         arbitrarily.
58020
58021 2003-05-26  Jim Meyering  <jim@meyering.net>
58022
58023         Merge in a change from coreutils:
58024         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58025         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58026         that condition, rather than `-1' which is slightly misleading.
58027         Change the name of the cache variable to have the gl_ prefix.
58028         Prompted by a patch from Richard Dawe for DJGPP.
58029
58030 2003-05-24  Karl Berry  <karl@gnu.org>
58031
58032         * config/config.guess: update from prep.
58033
58034 2003-05-22  Karl Berry  <karl@gnu.org>
58035
58036         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58037
58038 2003-05-20  Karl Berry  <karl@gnu.org>
58039
58040         * config/config.guess: update from prep.
58041
58042 2003-05-18  Karl Berry  <karl@gnu.org>
58043
58044         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58045         might actually be set by the user.
58046
58047         * config/depcomp, install-sh, mdate-sh: update from automake.
58048
58049 2003-05-17  Bruno Haible  <bruno@clisp.org>
58050
58051         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58052         invalid expansion for AC_EGREP_CPP.
58053         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58054         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58055         Suggested by Akim Demaille <akim@epita.fr> in
58056         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58057
58058 2003-05-12  Jim Meyering  <jim@meyering.net>
58059
58060         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58061         the space-padded-by-default conversion specifiers, %e, %k, %l.
58062
58063 2003-05-12  Bruno Haible  <bruno@clisp.org>
58064
58065         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58066         the string is longer than 4 KB.
58067
58068 2003-05-11  Karl Berry  <karl@gnu.org>
58069
58070         * config/config.{guess,sub}: update from prep.
58071
58072 2003-05-09  Bruno Haible  <bruno@clisp.org>
58073
58074         * modules/error: Add m4/strerror_r.m4 to file list.
58075
58076 2003-05-03  Bruno Haible  <bruno@clisp.org>
58077
58078         Upgrade to Unicode-4.0.
58079         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58080         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58081         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58082         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58083         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58084         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58085         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58086         Change width of U+E0100..U+E01EF from 1 to 0.
58087
58088 2003-04-25  Jim Meyering  <jim@meyering.net>
58089
58090         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58091         of type size_t, not int.
58092
58093 2003-04-25  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/copy-file.c: Include <stddef.h>, for size_t.
58096
58097 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58098
58099         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58100         code which expansion is under static control.  Patch imported from
58101         Akim Demaille's patch to Bison; see
58102         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58103
58104 2003-04-14  Bruno Haible  <bruno@clisp.org>
58105
58106         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58107
58108 2003-04-11  Jim Meyering  <jim@meyering.net>
58109
58110         Merge changes from Coreutils.
58111
58112         2003-03-22  Jim Meyering  <jim@meyering.net>
58113
58114         * lib/strftime.c (widen): Cast alloca return value to proper type.
58115
58116         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58117
58118         From GNU libc.
58119         * lib/strftime.c (my_strftime): Handle very large width
58120         specifications for numeric values correctly.  Improve checks for
58121         overflow.
58122
58123         2003-01-19  Jim Meyering  <jim@meyering.net>
58124
58125         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58126         definitions.
58127         (nl_get_alt_digit) [! defined my_strftime]: Define.
58128         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58129         _nl_get_alt_digit and _nl_get_walt_digit.
58130
58131         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58132         libc. These changes have no effect outside of _LIBC.
58133
58134 2003-04-10  Bruno Haible  <bruno@clisp.org>
58135
58136         * modules/findprog: New file.
58137         * MODULES.html.sh (func_all_modules): Add it.
58138
58139 2003-04-10  Bruno Haible  <bruno@clisp.org>
58140
58141         * m4/findprog.m4: New file.
58142         * m4/eaccess.m4: New file.
58143
58144 2003-04-10  Bruno Haible  <bruno@clisp.org>
58145
58146         * lib/findprog.h: New file, from GNU gettext.
58147         * lib/findprog.c: New file, from GNU gettext.
58148
58149 2003-04-05  Jim Meyering  <jim@meyering.net>
58150
58151         Merge changes from Coreutils.
58152
58153         * lib/exclude.h (PARAMS): Remove definition and uses.
58154         * lib/exclude.c: Remove uses of `PARAMS'.
58155
58156         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58157         Add test-cases for DOS filenames. Declare program_name.
58158         (main): Set up program_name.  Patch by Rich Dawe.
58159
58160         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58161         error from mntctl.
58162         Use mntctl's return value to drive the entry-processing loop, since
58163         we can't rely on the value of the vmt_length member in the last
58164         entry.  On some systems doing so could result in exhausting
58165         virtual memory.  Based in part on a patch from Mike Jetzer.
58166
58167 2003-04-04  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/linebreak: New file.
58170         * MODULES.html.sh (func_all_modules): Add it.
58171
58172 2003-04-04  Bruno Haible  <bruno@clisp.org>
58173
58174         * m4/linebreak.m4: New file.
58175
58176 2003-04-04  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/linebreak.h: New file, from GNU gettext.
58179         * lib/linebreak.c: New file, from GNU gettext with slight
58180         modifications.
58181         * lib/lbrkprop.h: New file, from GNU gettext.
58182
58183 2003-04-03  Bruno Haible  <bruno@clisp.org>
58184
58185         * modules/utf8-ucs4: New file.
58186         * modules/utf16-ucs4: New file.
58187         * modules/ucs4-utf8: New file.
58188         * modules/ucs4-utf16: New file.
58189         * MODULES.html.sh (func_all_modules): Add them.
58190
58191 2003-04-03  Bruno Haible  <bruno@clisp.org>
58192
58193         * m4/utf-ucs4.m4: New file.
58194         * m4/ucs4-utf.m4: New file.
58195
58196 2003-04-03  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/utf8-ucs4.h: New file, from GNU gettext.
58199         * lib/utf16-ucs4.h: New file, from GNU gettext.
58200         * lib/ucs4-utf8.h: New file, from GNU gettext.
58201         * lib/ucs4-utf16.h: New file, from GNU gettext.
58202
58203 2003-04-02  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/binary-io: New file.
58206         * MODULES.html.sh (func_all_modules): Add it.
58207
58208 2003-04-02  Bruno Haible  <bruno@clisp.org>
58209
58210         * lib/binary-io.h: New file, from GNU gettext.
58211
58212 2003-04-01  Bruno Haible  <bruno@clisp.org>
58213
58214         * modules/pathname: New file.
58215         * MODULES.html.sh (func_all_modules): Add it.
58216
58217 2003-04-01  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/pathname.h: New file, from GNU gettext.
58220         * lib/concatpath.c: New file, from GNU gettext.
58221
58222 2003-03-30  Bruno Haible  <bruno@clisp.org>
58223
58224         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58225
58226 2003-03-30  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58229         function chown() doesn't exist.
58230
58231 2003-03-28  Bruno Haible  <bruno@clisp.org>
58232
58233         * modules/copy-file: New file.
58234         * MODULES.html.sh (func_all_modules): Add it.
58235
58236 2003-03-28  Bruno Haible  <bruno@clisp.org>
58237
58238         * m4/copy-file.m4: New file.
58239
58240 2003-03-28  Bruno Haible  <bruno@clisp.org>
58241
58242         * lib/copy-file.h: New file, from GNU gettext.
58243         * lib/copy-file.c: New file, from GNU gettext.
58244
58245 2003-03-18  Jim Meyering  <jim@meyering.net>
58246
58247         * lib/quote.c (quote_n): Fix typo in comment.
58248
58249 2003-03-18  Bruno Haible  <bruno@clisp.org>
58250
58251         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58252         checking.
58253         * m4/onceonly_2_57.m4: Likewise.
58254
58255 2003-03-17  Bruno Haible  <bruno@clisp.org>
58256
58257         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58258         (m4_quote): Remove macro.
58259         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58260
58261 2003-03-14  Jim Meyering  <jim@meyering.net>
58262
58263         Merge changes from Coreutils.
58264         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58265         to be const, in order to avoid warnings.
58266         (obstack_room): Likewise.
58267         (obstack_empty_p): Likewise.
58268
58269 2003-03-14  Bruno Haible  <bruno@clisp.org>
58270
58271         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58272         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58273
58274 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58275
58276         Merge changes from Bison.
58277         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58278         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58279         when compiling Bison 1.875's `bitset bset = obstack_alloc
58280         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58281         * lib/hash.c: Include <stdbool.h> unconditionally.
58282
58283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58284
58285         * m4/onceonly.m4 (m4_quote): New macro.
58286         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58287         Quote AC_FOREACH variable-expansions properly.
58288
58289 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58290
58291         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58292
58293 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58294
58295         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58296         Reported by Bruce Becker; see:
58297         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58298
58299 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58300             Bruno Haible  <bruno@clisp.org>
58301
58302         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58303         Reported by John Hughes, see
58304         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58305
58306 2003-02-20  Bruno Haible  <bruno@clisp.org>
58307
58308         * MODULES.html.sh (func_all_modules): Add poll.
58309
58310 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58311
58312         * modules/poll: New file.
58313
58314 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58315
58316         * lib/poll_.h: New file.
58317         * lib/poll.c: New file.
58318
58319 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58320
58321         * m4/poll.m4: New file.
58322
58323 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58324
58325         * modules/mathl: New file.
58326
58327 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58328
58329         * lib/mathl.h: New file.
58330         * lib/acosl.c: New file.
58331         * lib/asinl.c: New file.
58332         * lib/atanl.c: New file.
58333         * lib/ceill.c: New file.
58334         * lib/cosl.c: New file.
58335         * lib/expl.c: New file.
58336         * lib/floorl.c: New file.
58337         * lib/frexpl.c: New file.
58338         * lib/ldexpl.c: New file.
58339         * lib/logl.c: New file.
58340         * lib/sincosl.c: New file.
58341         * lib/sinl.c: New file.
58342         * lib/sqrtl.c: New file.
58343         * lib/tanl.c: New file.
58344         * lib/trigl.c: New file.
58345         * lib/trigl.h: New file.
58346
58347 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58348
58349         * m4/mathl.m4: New file.
58350
58351 2003-02-18  Bruno Haible  <bruno@clisp.org>
58352
58353         * MODULES.html.sh (func_all_modules): Add mathl.
58354
58355 2003-02-17  Bruno Haible  <bruno@clisp.org>
58356
58357         * modules/mkdtemp: New module.
58358         * MODULES.html.sh (func_all_modules): Add it.
58359
58360 2003-02-17  Bruno Haible  <bruno@clisp.org>
58361
58362         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58363
58364 2003-02-17  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/mkdtemp.h: New file, from GNU gettext.
58367         * lib/mkdtemp.c: New file, from GNU gettext.
58368
58369 2003-02-02  Jim Meyering  <jim@meyering.net>
58370
58371         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58372         e.g. glibc-2.2.93.
58373
58374 2003-01-31  Bruno Haible  <bruno@clisp.org>
58375
58376         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58377         'rpl_rename'.
58378         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58379         'rpl_strnlen'.
58380         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58381         'rpl_strtod'.
58382         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58383         'rpl_utime'.
58384
58385 2003-01-31  Bruno Haible  <bruno@clisp.org>
58386
58387         * lib/rename.c: #undef rename before defining rpl_rename.
58388         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58389
58390 2003-01-30  Bruno Haible  <bruno@clisp.org>
58391
58392         * modules/vasnprintf, modules/vasprintf: New modules.
58393         * MODULES.html.sh (func_all_modules): Add them.
58394
58395 2003-01-30  Bruno Haible  <bruno@clisp.org>
58396
58397         * m4/signed.m4: New file, from GNU gettext.
58398         * m4/longdouble.m4: New file, from GNU gettext.
58399         * m4/wchar_t.m4: New file, from GNU gettext.
58400         * m4/wint_t.m4: New file, from GNU gettext.
58401         * m4/vasnprintf.m4: New file.
58402         * m4/vasprintf.m4: New file.
58403
58404 2003-01-30  Bruno Haible  <bruno@clisp.org>
58405
58406         * lib/printf-args.h: New file, from GNU gettext.
58407         * lib/printf-args.c: New file, from GNU gettext.
58408         * lib/printf-parse.h: New file, from GNU gettext.
58409         * lib/printf-parse.c: New file, from GNU gettext.
58410         * lib/vasnprintf.h: New file, from GNU gettext.
58411         * lib/vasnprintf.c: New file, from GNU gettext.
58412         * lib/asnprintf.c: New file, from GNU gettext.
58413         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58414         * lib/vasprintf.c: New file, from GNU gettext.
58415         * lib/asprintf.c: New file, from GNU gettext.
58416
58417 2003-01-29  Bruno Haible  <bruno@clisp.org>
58418
58419         * modules/stpncpy: New module.
58420         * MODULES.html.sh (func_all_modules): Add it.
58421
58422 2003-01-29  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/stpncpy.m4: New file.
58425
58426 2003-01-29  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58429         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58430
58431 2003-01-28  Bruno Haible  <bruno@clisp.org>
58432
58433         * modules/c-ctype: New module.
58434         * MODULES.html.sh (func_all_modules): Add it.
58435
58436 2003-01-28  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58439         Paul Eggert.
58440         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58441         Paul Eggert.
58442
58443 2003-01-27  Bruno Haible  <bruno@clisp.org>
58444
58445         * modules/xsetenv: New module.
58446         * MODULES.html.sh (func_all_modules): Add it.
58447
58448 2003-01-27  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/xsetenv.h: New file, from GNU gettext.
58451         * lib/xsetenv.c: New file, from GNU gettext.
58452
58453 2003-01-23  Jim Meyering  <jim@meyering.net>
58454
58455         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58456         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58457
58458 2003-01-23  Bruno Haible  <bruno@clisp.org>
58459
58460         * modules/minmax: New module.
58461         * MODULES.html.sh (func_all_modules): Add it.
58462
58463 2003-01-23  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58466         Eggert.
58467
58468 2003-01-22  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/exit: New module.
58471         * MODULES.html.sh (func_all_modules): Add it.
58472
58473 2003-01-22  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/exit.h: New file, from GNU gettext.
58476
58477 2003-01-19  Bruno Haible  <bruno@clisp.org>
58478
58479         * gnulib-tool: Recognize option --extract-maintainer.
58480         (func_get_maintainer): New function.
58481         * modules/*: Add Maintainer entry.
58482
58483 2003-01-16  Jim Meyering  <jim@meyering.net>
58484
58485         * m4/regex.m4: The `regex' struct is both input and output.
58486         Initialize it before each use.  Patch by Tim Waugh.
58487
58488 2003-01-16  Bruno Haible  <bruno@clisp.org>
58489
58490         * MODULES.html.sh: Add a table of contents. Add the module name as
58491         leftmost column. Add hyperlinks.
58492
58493 2003-01-15  Bruno Haible  <bruno@clisp.org>
58494
58495         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58496
58497 2003-01-15  Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58500         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58501         suffix.
58502
58503 2003-01-15  Bruno Haible  <bruno@clisp.org>
58504
58505         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58506
58507 2003-01-15  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58510         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58511
58512 2003-01-14  Jim Meyering  <jim@meyering.net>
58513
58514         * lib/same.c (same_name): Tweak a comment.
58515
58516 2003-01-14  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58519         when a string comparison is sufficient.
58520
58521 2003-01-14  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58524         'unsigned int'.
58525
58526 2003-01-14  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/hash-pjw.c: Add comment about low quality of this function.
58529
58530 2003-01-13  Bruno Haible  <bruno@clisp.org>
58531
58532         * modules/stpcpy: Distribute lib/stpcpy.h.
58533         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58534
58535 2003-01-13  Bruno Haible  <bruno@clisp.org>
58536
58537         * modules/*: Add a description.
58538         * modules/strpbrk: Fix Makefile.am snippet.
58539         * modules/strtoimax: Fix dependencies.
58540         * modules/strtoumax: Likewise.
58541
58542 2003-01-13  Bruno Haible  <bruno@clisp.org>
58543
58544         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58545         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58546         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58547
58548 2003-01-13  Bruno Haible  <bruno@clisp.org>
58549
58550         * gnulib-tool (func_create_testdir): Store config/* files in the main
58551         directory.
58552         * config.rpath: Move to ...
58553         * config/config.rpath: ... here.
58554         * modules/gettext: Contains config/config.rpath, not config.rpath.
58555         * modules/iconv: Likewise.
58556
58557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58558
58559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58560         to avoid collisions with libcurses and libreadline.
58561
58562         * m4/getstr.m4: Remove.
58563         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58564
58565 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58566
58567         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58568         to avoid collisions with libcurses and libreadline.
58569
58570         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58571         * lib/getstr.h, getstr.c: Remove.
58572         * lib/getline.c: Include "getline.h", to check interface.
58573         Move body of old getstr.c here: this defines MIN_CHUNK and
58574         declares getdelim2, which is renamed from getstr.
58575         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58576
58577         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58578         All uses changed.
58579         * lib/linebuffer.h: Likewise.
58580         (readline): Remove backward-compatibility macro.
58581
58582 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58583
58584         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58585         to avoid collisions with libcurses and libreadline.
58586         * getstr: Remove.
58587         * MODULES.html.sh: Remove getstr.
58588         * modules/getline: Depend on unlocked-io, not getstr.
58589
58590 2003-01-12  Jim Meyering  <jim@meyering.net>
58591
58592         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58593
58594 2003-01-10  Bruno Haible  <bruno@clisp.org>
58595
58596         * modules/alloca: Change Makefile.am requirements. Simplify Include
58597         requirements. Add lib/alloca_.h to file list.
58598
58599 2003-01-10  Bruno Haible  <bruno@clisp.org>
58600
58601         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58602
58603 2003-01-10  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/alloca_.h: New file.
58606         * lib/getdate.y: Unconditionally include alloca.h.
58607         * lib/makepath.c: Likewise.
58608         * lib/setenv.c: Likewise.
58609         * lib/userspec.c: Likewise.
58610
58611 2003-01-09  Karl Berry  <karl@gnu.org>
58612
58613         * MODULES.html.sh: include `dirname $0` in PATH, to find
58614         gnulib-tool.
58615
58616 2003-01-09  Bruno Haible  <bruno@clisp.org>
58617
58618         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58619         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58620
58621 2003-01-09  Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58624
58625 2003-01-09  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/stdbool.h.in: New file.
58628
58629 2003-01-09  Bruno Haible  <bruno@clisp.org>
58630
58631         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58632         * MODULES.html.sh: Likewise.
58633
58634 2003-01-08  Jim Meyering  <jim@meyering.net>
58635
58636         * lib/full-write.c: Undefine and define-away `const' after inclusion
58637         of errno.h, not before.  Suggestion from Bruno Haible.
58638
58639 2003-01-08  Bruno Haible  <bruno@clisp.org>
58640
58641         * modules/full-read: Depend on full-write.
58642
58643 2003-01-08  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/safe-read.c: Include specification header first, to ensure its
58646         selfcontainedness.
58647         * lib/full-write.c: Likewise.
58648
58649 2003-01-07  Jim Meyering  <jim@meyering.net>
58650
58651         * lib/full-write.c: Rework so that it may serve to define full_read,
58652         too.
58653         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58654
58655 2003-01-07  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58658         <inttypes.h>.
58659         * lib/xstrtol.h: Likewise.
58660         * lib/xstrtoimax.c: Likewise.
58661         * lib/xstrtoumax.c: Likewise.
58662         * lib/human.h: Likewise.
58663
58664         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58665         on systems that have <inttypes.h> but not <stdint.h>.
58666
58667 2003-01-07  Bruno Haible  <bruno@clisp.org>
58668
58669         * MODULES.html.sh: Add copyright notice.
58670         (missed_files): Omit CVS directory entries.
58671         (func_module): Make it work with sed-3.02.
58672         * MODULES.txt: Remove file.
58673
58674 2003-01-06  Jim Meyering  <jim@meyering.net>
58675
58676         * lib/version-etc.c: Update year in translatable copyright string.
58677
58678 2003-01-03  Karl Berry  <karl@gnu.org>
58679
58680         * config/config.{guess,sub}: update from prep.
58681
58682 2003-01-02  Karl Berry  <karl@gnu.org>
58683
58684         * doc/COPYING.DOC: belatedly updated to 1.2.
58685
58686 2003-01-01  Karl Berry  <karl@gnu.org>
58687
58688         * gnulib-tool (func_verify_module): report module name $module in
58689         error message, not $1.
58690         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58691         be created, only if it doesn't exist.
58692         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58693
58694 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58695
58696         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58697
58698 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58699
58700         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58701         memcmp if strcoll doesn't work.
58702
58703 2002-12-31  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58706         nonempty.
58707
58708 2002-12-31  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/memcoll.c (STRCOLL): New macro.
58711         (memcoll): Use it.
58712
58713 2002-12-31  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/localcharset.h: New file.
58716         * lib/localcharset.c: Include it.
58717         * lib/unicodeio.c: Likewise.
58718
58719 2002-12-31  Bruno Haible  <bruno@clisp.org>
58720
58721         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58722         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58723
58724 2002-12-31  Bruno Haible  <bruno@clisp.org>
58725
58726         * lib/getline.h: Include <stddef.h>, for size_t.
58727
58728         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58729         * lib/unicodeio.c: Don't include <stddef.h>.
58730
58731 2002-12-31  Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58734         HAVE_TM_ZONE.
58735
58736 2002-12-24  Karl Berry  <karl@gnu.org>
58737
58738         * config/config.guess: update from prep.
58739
58740 2002-12-24  Bruno Haible  <bruno@clisp.org>
58741
58742         General infrasructure.
58743         * m4/README: Rewritten.
58744         * m4/onceonly.m4: New file.
58745         * m4/onceonly_2_57.m4: New file.
58746
58747         Module atexit.
58748         * m4/atexit.m4: New file.
58749
58750         Module strtod.
58751         * m4/strtod.m4: New file.
58752
58753         Module strtol.
58754         * m4/strtol.m4: New file.
58755
58756         Module strtoul.
58757         * m4/strtoul.m4: New file.
58758
58759         Module memchr.
58760         * m4/memchr.m4: New file.
58761
58762         Module memcmp.
58763         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58764         (jm_FUNC_MEMCMP): Invoke it.
58765
58766         Module memcpy.
58767         * m4/memcpy.m4: New file.
58768
58769         Module memmove.
58770         * m4/memmove.m4: New file.
58771
58772         Module memset.
58773         * m4/memset.m4: New file.
58774
58775         Module strcspn.
58776         * m4/strcspn.m4: New file.
58777
58778         Module strpbrk.
58779         * m4/strpbrk.m4: New file.
58780
58781         Module strstr.
58782         * m4/strstr.m4: New file.
58783
58784         Module strerror.
58785         * m4/strerror.m4: New file.
58786
58787         Module mktime.
58788         * m4/mktime.m4: Renamed from jm-mktime.m4.
58789         (gl_PREREQ_MKTIME): New macro.
58790         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58791
58792         Module malloc.
58793         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58794         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58795         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58796
58797         Module realloc.
58798         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58799         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58800         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58801
58802         Module strftime.
58803         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58804         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58805         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58806         gl_TM_GMTOFF.
58807         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58808
58809         Module xalloc.
58810         * m4/xalloc.m4: New file.
58811
58812         Module alloca.
58813         * m4/alloca.m4: New file.
58814
58815         Module putenv.
58816         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58817         (jm_FUNC_PUTENV): Invoke it.
58818
58819         Module setenv.
58820         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58821         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58822         when invoked twice.
58823         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58824         gt_FUNC_SETENV.
58825
58826         Module memrchr.
58827         * m4/memrchr.m4: New file.
58828
58829         Module stpcpy.
58830         * m4/stpcpy.m4: New file.
58831
58832         Module strcase.
58833         * m4/strcase.m4: New file.
58834
58835         Module strdup.
58836         * m4/strdup.m4: New file.
58837
58838         Module strnlen.
58839         * m4/strnlen.m4: New file.
58840
58841         Module strndup.
58842         * m4/strndup.m4: New file.
58843
58844         Module xstrtod.
58845         * m4/xstrtod.m4: New file.
58846
58847         Module xstrtol.
58848         * m4/xstrtol.m4: New file.
58849
58850         Module getdate.
58851         * m4/getdate.m4: New file.
58852
58853         Module unlocked-io.
58854         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58855         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58856         * m4/jm-glibc-io.m4n: Remove file.
58857
58858         Module long-options.
58859         * m4/long-options.m4: New file.
58860
58861         Module md5.
58862         * m4/md5.m4: New file.
58863
58864         Module sha.
58865         * m4/sha.m4: New file.
58866
58867         Module getstr.
58868         * m4/getstr.m4: New file.
58869
58870         Module getline.
58871         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58872         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58873         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58874         simply getline. Infoke gl_PREREQ_GETLINE.
58875
58876         Module obstack.
58877         * m4/obstack.m4: New file.
58878
58879         Module hash.
58880         * m4/hash.m4: New file.
58881
58882         Module readtokens.
58883         * m4/readtokens.m4: New file.
58884
58885         Module strverscmp.
58886         * m4/strverscmp.m4: New file.
58887
58888         Module stdbool.
58889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58890         OSF/1.
58891
58892         Module strtoll.
58893         * m4/strtoll.m4: New file.
58894
58895         Module strtoull.
58896         * m4/strtoull.m4: New file.
58897
58898         Module strtoimax.
58899         * m4/strtoimax.m4: New file.
58900
58901         Module strtoumax.
58902         * m4/strtoumax.m4: New file.
58903
58904         Module xstrtoimax.
58905         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58906         jm_AC_PREREQ_XSTRTOIMAX.
58907         Moved the strtol prerequisites to strtol.m4.
58908         Moved the strtoll prerequisites to strtoll.m4.
58909         Moved the strtoimax prerequisites to strtoimax.m4.
58910
58911         Module xstrtoumax.
58912         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58913         jm_AC_PREREQ_XSTRTOUMAX.
58914         Moved the strtoul prerequisites to strtoul.m4.
58915         Moved the strtoull prerequisites to strtoull.m4.
58916         Moved the strtoumax prerequisites to strtoumax.m4.
58917
58918         Module chown.
58919         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58920         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58921
58922         Module dup2.
58923         * m4/dup2.m4: New file.
58924
58925         Module ftruncate.
58926         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58927         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58928
58929         Module getgroups.
58930         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58931         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58932
58933         Module gettimeofday.
58934         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58935         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58936         gl_PREREQ_GETTIMEOFDAY.
58937
58938         Module mkdir.
58939         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58940         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58941
58942         Module mkstemp.
58943         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58944         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58945         jm_AC_TYPE_UINTMAX_T.
58946         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58947
58948         Module stat.
58949         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58950         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58951
58952         Module lstat.
58953         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58954         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58955
58956         Module timespec.
58957         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58958         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58959         * m4/st_mtim.m4: Indentation.
58960
58961         Module nanosleep.
58962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58963         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58964         gl_PREREQ_NANOSLEEP.
58965
58966         Module regex.
58967         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58968         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58969         (gl_REGEX): New macro.
58970
58971         Module rename.
58972         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58973         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58974
58975         Module rmdir.
58976         * m4/rmdir.m4: New file.
58977
58978         Module utime.
58979         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58980         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58981         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58982
58983         Module dirname.
58984         * m4/dirname.m4: New file.
58985
58986         Module getopt.
58987         * m4/getopt.m4: New file.
58988
58989         Module unistd-safer.
58990         * m4/unistd-safer.m4: New file.
58991
58992         Module fnmatch.
58993         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58994         declaration.
58995         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58996         (gl_FUNC_FNMATCH_POSIX): New macro.
58997         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58998         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58999         simply fnmatch.
59000
59001         Module exclude.
59002         * m4/exclude.m4: New file.
59003
59004         Module human.
59005         * m4/human.m4: New file.
59006
59007         Module acl.
59008         * m4/acl.m4: Nop.
59009
59010         Module backupfile.
59011         * m4/backupfile.m4: New file.
59012         * m4/d-ino.m4: Indentation.
59013
59014         Module fsusage.
59015         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59016         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59017         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59018
59019         Module dirfd.
59020         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59021         requirements.
59022
59023         Module euidaccess.
59024         * m4/euidaccess.m4: New file.
59025
59026         Module file-type.
59027         * m4/file-type.m4: New file.
59028
59029         Module fileblocks.
59030         * m4/fileblocks.m4: New file.
59031
59032         Module filemode.
59033         * m4/filemode.m4: New file.
59034
59035         Module isdir.
59036         * m4/isdir.m4: New file.
59037
59038         Module lchown.
59039         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59040         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59041
59042         Module makepath.
59043         * m4/makepath.m4: New file.
59044
59045         Module modechange.
59046         * m4/modechange.m4: New file.
59047
59048         Module mountlist.
59049         * m4/mountlist.m4: New file.
59050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59051         Indentation.
59052
59053         Module path-concat.
59054         * m4/path-concat.m4: New file.
59055
59056         Module pathmax.
59057         * m4/pathmax.m4: New file.
59058
59059         Module same.
59060         * m4/same.m4: New file.
59061
59062         Module save-cwd.
59063         * m4/save-cwd.m4: New file.
59064
59065         Module savedir.
59066         * m4/savedir.m4: New file.
59067
59068         Module xgetcwd.
59069         * m4/xgetcwd.m4: New file.
59070         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59071
59072         Module xreadlink.
59073         * m4/xreadlink.m4: New file.
59074
59075         Module safe-read.
59076         * m4/safe-read.m4: New file.
59077
59078         Module safe-write.
59079         * m4/safe-write.m4: New file.
59080
59081         Module closeout.
59082         * m4/closeout.m4: New file.
59083
59084         Module stdio-safer.
59085         * m4/stdio-safer.m4: New file.
59086
59087         Module getpass.
59088         * m4/getpass.m4: New file.
59089
59090         Module getugroups.
59091         * m4/getugroups.m4: New file.
59092
59093         Module group-member.
59094         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59095         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59096
59097         Module idcache.
59098         * m4/idcache.m4: New file.
59099
59100         Module userspec.
59101         * m4/userspec.m4: New file.
59102
59103         Module gettime.
59104         * m4/clock_time.m4: New file.
59105         * m4/gettime.m4: New file.
59106
59107         Module settime.
59108         * m4/settime.m4: New file.
59109
59110         Module posixtm.
59111         * m4/posixtm.m4: New file.
59112
59113         Module gethostname.
59114         * m4/gethostname.m4: New file.
59115
59116         Module canon-host.
59117         * m4/canon-host.m4: New file.
59118
59119         Module gettext.
59120         * m4/codeset.m4: New file, from gettext-0.11.5.
59121         * m4/gettext.m4: New file, from gettext-0.11.5.
59122         * m4/glibc21.m4: New file, from gettext-0.11.5.
59123         * m4/iconv.m4: New file, from gettext-0.11.5.
59124         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59125         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59126         * m4/inttypes.m4: New file, from gettext-0.11.5.
59127         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59128         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59129         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59130         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59131         * m4/lib-link.m4: New file, from gettext-0.11.5.
59132         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59133         * m4/progtest.m4: New file, from gettext-0.11.5.
59134         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59135         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59136         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59137
59138         Module localcharset.
59139         * m4/localcharset.m4: New file.
59140
59141         Module hard-locale.
59142         * m4/hard-locale.m4: New file.
59143
59144         Module mbswidth.
59145         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59146         onceonly macros.
59147         * m4/mbrtowc.m4: Add comment.
59148
59149         Module memcasecmp.
59150         * m4/memcasecmp.m4: New file.
59151
59152         Module memcoll.
59153         * m4/memcoll.m4: New file.
59154
59155         Module unicodeio.
59156         * m4/unicodeio.m4: New file.
59157
59158         Module rpmatch.
59159         * m4/rpmatch.m4: New file.
59160
59161         Module yesno.
59162         * m4/yesno.m4: New file.
59163
59164         Module exitfail.
59165         * m4/exitfail.m4: New file.
59166
59167         Module c-stack.
59168         * m4/c-stack.m4 (gl_C_STACK): New macro.
59169         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59170
59171         Module error.
59172         * m4/error.m4 (gl_ERROR): New macro.
59173         (jm_PREREQ_ERROR): Use onceonly macros.
59174
59175         Module fatal.
59176         * m4/fatal.m4: New file.
59177
59178         Module getloadavg.
59179         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59180         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59181
59182         Module getpagesize.
59183         * m4/getpagesize.m4: New file.
59184
59185         Module getusershell.
59186         * m4/getusershell.m4: New file.
59187
59188         Module physmem.
59189         * m4/physmem.m4: New file.
59190
59191         Module posixver.
59192         * m4/posixver.m4: New file.
59193
59194         Module quotearg.
59195         * m4/quotearg.m4: New file.
59196
59197         Module quote.
59198         * m4/quote.m4: New file.
59199
59200         Module readutmp.
59201         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59202
59203         Module sig2str.
59204         * m4/sig2str.m4: New file.
59205
59206         Other.
59207         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59208         ulonglong.m4.
59209         * m4/intmax_t.m4: New file.
59210         * m4/d-type.m4: Indentation.
59211         * m4/jm-macros.m4: Update.
59212         * m4/prereq.m4 (jm_PREREQ): Update.
59213         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59214         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59215         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59216         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59217         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59218         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59219         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59220         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59221         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59222         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59223         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59224         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59225         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59226         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59227         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59228         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59229         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59230         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59231         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59232
59233 2002-12-24  Bruno Haible  <bruno@clisp.org>
59234
59235         * MODULES.txt: Update according to m4/ changes.
59236
59237         Module gettext.
59238         * config.rpath: New file, from gettext-0.11.5.
59239
59240         * modules/*: New module descriptions.
59241         * gnulib-tool: New file.
59242         * MODULES.html.sh: New file.
59243
59244 2002-12-21  Karl Berry  <karl@gnu.org>
59245
59246         * doc/fdl.texi: update to version 1.2.
59247
59248 2002-12-19  Karl Berry  <karl@gnu.org>
59249
59250         * config/config.guess: update from prep.
59251
59252 2002-12-18  Bruno Haible  <bruno@clisp.org>
59253
59254         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59255         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59256
59257 2002-12-17  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59260         stdlib.h, string.h.
59261
59262 2002-12-17  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/canon-host.c (strdup): Remove unused declaration.
59265
59266         * lib/fsusage.c: Include full_read.h.
59267         (get_fs_usage): Use full_read instead of safe_read.
59268
59269         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59270
59271 2002-12-12  Karl Berry  <karl@gnu.org>
59272
59273         * config/config.guess: update from prep.
59274
59275 2002-12-11  Bruno Haible  <bruno@clisp.org>
59276
59277         * m4/setenv.m4: New file, from gettext-0.11.5.
59278
59279 2002-12-11  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59282         not unsetenv().
59283         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59284         modifications:
59285
59286         2002-12-11  Bruno Haible  <bruno@clisp.org>
59287
59288                 * setenv.c (alloca): Fall back to malloc.
59289                 (freea): New macro.
59290                 (setenv): Use freea() to free memory allocated with alloca().
59291
59292         2002-11-13  Bruno Haible  <bruno@clisp.org>
59293
59294                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59295                 function declarations.
59296                 * unsetenv.c (unsetenv): Likewise.
59297
59298         2002-03-04  Bruno Haible  <bruno@clisp.org>
59299
59300                 Portability to AIX 4.3.3.
59301                 * unsetenv.c: New file, extracted from setenv.c.
59302                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59303
59304         2001-12-20  Bruno Haible  <bruno@clisp.org>
59305
59306                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59307                 use malloc instead. For SunOS 4.
59308
59309         2001-12-11  Bruno Haible  <bruno@clisp.org>
59310
59311                 * setenv.c: Declare alloca.
59312                 (compar_fn_t): New typedef.
59313                 (KNOWN_VALUE, STORE_VALUE): Use it.
59314
59315         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59316         setenv.h.
59317
59318 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59319
59320         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59321         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59322         Choose values that are less likely to collide with system fnmatch
59323         options.
59324         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59325         defined (e.g., a pure POSIX system).
59326         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59327         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59328
59329 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59330
59331         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59332         a pain in practice to deal with generated m4 files.  This change
59333         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59334
59335         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59336         and jm-glibc-io.m4, as they are no longer a special case.
59337         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59338         kludge and the auto-generation stuff.  Check only whether the
59339         functions are declared, not whether they exist, since older hosts
59340         that don't declare the functions can't use the optimization anyway.
59341
59342 2002-12-06  Jim Meyering  <jim@meyering.net>
59343
59344         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59345
59346         Merge in changes from libc's misc/error.c, in preparation
59347         for the merge of gnulib's changes back into libc.
59348
59349         * lib/error.c (_): Define only if not already defined.
59350         Move definition to follow all #include directives.
59351         Include unlocked-io.h only if !_LIBC.
59352         [_LIBC]: Include <libio/libioP.h>.
59353         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59354         (fflush): Tweak definition to use INTUSE.
59355         (putc): Define.
59356
59357 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59358
59359         * lib/alloca.c [defined emacs]: Include "lisp.h".
59360         (xalloc_die) [defined emacs]: New macro.
59361         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59362         [! defined emacs]: Include <xalloc.h>.
59363         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59364         (pointer): Typedef to POINTER_TYPE *.
59365         (malloc): Remove decl; we now always use xmalloc.
59366         (alloca): Use old-style definition, since Emacs needs this.
59367         Check for arithmetic overflow when computing combined size.
59368
59369 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59370
59371         Do not generate unlocked-io.h automatically, since it's easier to
59372         maintain it by hand.
59373
59374         * lib/unlocked-io.h: New file, from GNU diffutils,
59375         but with proper copyright notice and attribution.
59376         * lib/gen-uio: Remove.
59377         * lib/Makefile.am: Add copyright notice.
59378         (libfetish_a_SOURCES): Add unlocked-io.h.
59379         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59380         (DISTCLEANFILES, io_functions): Remove macros.
59381         (EXTRA_DIST): Remove gen_uio.
59382         (unlocked-io.h): Remove rule.
59383
59384 2002-12-04  Jim Meyering  <jim@meyering.net>
59385
59386         Reflect the fact that stat.c and lstat.c are no longer generated.
59387         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59388         (DISTCLEANFILES): Likewise.
59389         (EXTRA_DIST): Likewise.
59390         (all_local): Don't depend on stat.c or lstat.c.
59391         (stat.c, lstat.c): Remove rules.
59392         (EXTRA_DIST): Remove xstat.in.
59393
59394         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59395         * lib/stat.c: New file.  Contents mostly from xstat.in.
59396         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59397         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59398
59399         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59400         too.
59401         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59402
59403 2002-12-03  Jim Meyering  <jim@meyering.net>
59404
59405         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59406         but not semantics, to minimize the differences between these two files.
59407         (safe_read): Change comment to mention SAFE_READ_ERROR.
59408
59409         * lib/safe-read.c (IS_EINTR): Define.
59410         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59411
59412 2002-12-02  Jim Meyering  <jim@meyering.net>
59413
59414         * lib/safe-read.c (EINTR): Define.
59415         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59416         (INT_MAX): Provide fallback.
59417         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59418
59419         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59420
59421 2002-12-02  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59424         Define, taken from safe-read.c.
59425         (INT_MAX): Provide fallback.
59426         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59427         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59428
59429         * lib/safe-read.c (EINTR): Remove definition.
59430         (safe_read): Don't use EINTR if it is absent.
59431
59432 2002-12-01  Jim Meyering  <jim@meyering.net>
59433
59434         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59435         zero.
59436         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59437
59438 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59439
59440         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59441         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59442         with `if (! (value < limit)) abort ();', for readability.
59443
59444 2002-11-26  Karl Berry  <karl@gnu.org>
59445
59446         * lib/strdup.c: copy from libc again, with jim's ok.
59447         * lib/.cppi-disable: re-add strdup.c
59448
59449 2002-11-25  Karl Berry  <karl@gnu.org>
59450
59451         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59452         instead of "strtol.c".
59453
59454 2002-11-25  Karl Berry  <karl@gnu.org>
59455
59456         * config/install-sh: update from automake for variable quoting, $0 in
59457         error msgs, etc.
59458
59459         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59460         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59461         entry.
59462
59463 2002-11-25  Jim Meyering  <jim@meyering.net>
59464
59465         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59466
59467 2002-11-24  Karl Berry  <karl@gnu.org>
59468
59469         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59470         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59471
59472 2002-11-24  Jim Meyering  <jim@meyering.net>
59473
59474         Update from coreutils:
59475
59476         * lib/mktime.c: Merge in changes from libc.
59477
59478         Avoid a link-time failure on some Linux systems.
59479         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59480         (otherwise).
59481         (__mon_yday): Declare with the STATIC attribute.
59482         (__mktime_internal): Likewise.
59483         Based on a report from Greg Schafer.
59484
59485 2002-11-23  Jim Meyering  <jim@meyering.net>
59486
59487         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59488         Use `unsigned', not `int', as type of index.
59489
59490         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59491
59492         * lib/fsusage.c: Remove unneeded parentheses around operands of
59493         `defined'.
59494
59495 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59496
59497         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59498         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59499         so that we can be included first.
59500         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59501         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59502         No need to include stddef.h or sys/types.h any more.
59503         Surround local include files with "", not "<>".
59504         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59505         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59506         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59507         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59508         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59509         (ISPRINT): Remove; no longer needed now that we assume C89.
59510
59511         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59512         Preserve errno.
59513
59514         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59515         quotearg_char): Use SIZE_MAX rather than
59516         (size_t) -1 when we are talking about "infinity".
59517
59518         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59519
59520 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59521
59522         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59523         hint that one should use `if (! x) abort ();' rather than `assert
59524         (x);', and anyway it's one less thing to worry about configuring.
59525         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59526         hash_rehash, hash_insert): Use abort rather than assert.
59527
59528 2002-11-22  Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/safe-read.h: Assume C89. Add comments.
59531         (safe_read): Change return type to size_t.
59532         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59533         byte counts > SSIZE_MAX correctly.
59534         * lib/safe-write.h: New file.
59535         * lib/safe-write.c: New file.
59536         * lib/full-read.h: New file.
59537         * lib/full-read.c: New file.
59538         * lib/full-write.h: Assume C89. Add comments.
59539         * lib/full-write.c: Include safe-write.h.
59540         (full_write): Rewritten to use safe_write.
59541         Suggested by Jim Meyering and Paul Eggert.
59542
59543 2002-11-21  Jim Meyering  <jim@meyering.net>
59544
59545         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59546
59547         Merge in changes from the coreutils.
59548
59549         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59550         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59551         <stdint.h>.
59552         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59553         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59554         int.  Work more efficiently if X is the same width as uintmax_t.
59555         Do not compare X to -1, to avoid bogus compiler warning.
59556         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59557         Don't assume that f_frsize and f_bsize are the same type.
59558
59559         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59560         warning on FreeBSD.
59561
59562         * lib/makepath.c (make_path): Restore umask *before* creating the final
59563         component.
59564         (make_path): Minor reformatting.
59565
59566         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59567         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59568         HAVE_MALLOC/HAVE_REALLOC.
59569
59570         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59571         dummy ones.  At least on GNU/Linux systems, `auto' means something
59572         else.
59573         From Michael Stone.
59574
59575 2002-11-21  Bruno Haible  <bruno@clisp.org>
59576
59577         Remove case insensitive option matching.
59578         * lib/argmatch.h (argcasematch): Remove declaration.
59579         (ARGCASEMATCH): Remove macro.
59580         (__xargmatch_internal): Remove case_sensitive argument.
59581         (XARGMATCH): Update.
59582         (XARGCASEMATCH): Remove macro.
59583         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59584         case_sensitive argument.
59585         (argcasematch): Remove function.
59586         (__xargmatch_internal): Remove case_sensitive argument.
59587         (main): Use XARGMATCH instead of XARGCASEMATCH.
59588
59589         * lib/xmalloc.c: Change compile-time error message. Add comment about
59590         required autoconf version.
59591
59592 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59593
59594         Merge argmatch cleanups from Bison.  Assume C89.
59595
59596         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59597         Include stdlib.h, for EXIT_FAILURE.
59598         Always include <string.h>, since we assume C89.
59599         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59600         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59601         Include <stddef.h> instead, since it's all we need for size_t.
59602         (PARAMS): Remove.  All uses removed.
59603         (ARRAY_CARDINALITY): Do not bother to #undef.
59604         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59605         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59606         Remove unnecessary parentheses.
59607         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59608         Insert necessary parentheses.
59609         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59610         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59611
59612 2002-11-19  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59615         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59616
59617         * lib/mbswidth.h (PARAMS): Remove macro.
59618         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59619         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59620
59621         * lib/gcd.h (PARAMS): Remove macro.
59622         (gcd): Use ANSI C function declarations.
59623         * lib/gcd.c (gcd): Likewise.
59624
59625 2002-11-15  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/strcspn.c: Include <stddef.h>.
59628         (strcspn): Use ANSI C function declaration. Change return type to
59629         size_t. Use NULL.
59630         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59631         (strpbrk): Use NULL.
59632         * lib/strpbrk.h (PARAMS): Remove macro.
59633         (strpbrk): Use ANSI C function declaration.
59634         * lib/strstr.c: Don't include <sys/types.h>.
59635         * lib/strstr.h (PARAMS): Remove macro.
59636         (strstr): Use ANSI C function declarations.
59637
59638 2002-11-14  Karl Berry  <karl@gnu.org>
59639
59640         * config/mkinstalldirs: `do' on separate line, instead of
59641         `for var; do'.
59642
59643 2002-11-06  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59646         * lib/gcd.c (gcd): Likewise.
59647
59648 2002-11-05  Bruno Haible  <bruno@clisp.org>
59649
59650         * lib/gcd.h: New file, from gettext-0.11.5.
59651         * lib/gcd.c: New file, from gettext-0.11.5.
59652
59653 2002-11-05  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59656         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59657         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59658         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59659
59660         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59661         <libintl.h>.
59662         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59663         <libintl.h>.
59664
59665         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59666         * lib/human.c: Include gettext.h instead of <libintl.h>.
59667         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59668         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59669         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59670         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59671         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59672         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59673         (textdomain): Remove definition.
59674         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59675
59676         * lib/long-options.c: Remove include of <libintl.h> and definition of
59677         _.
59678         * lib/same.c: Remove include of <libintl.h> and definition of _.
59679
59680 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59681
59682         * lib/config.charset: A few additions for Solaris.
59683
59684 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59685
59686         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59687         * lib/localcharset.c (locale_charset): Declare as extern "C".
59688
59689 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59690
59691         * lib/config.charset: msdos in uk_UA uses CP1125.
59692
59693 2002-11-04  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59696         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59697         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59698         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59699         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59700
59701 2002-11-04  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/localcharset.c (locale_charset): Don't return an empty string.
59704
59705 2002-11-04  Bruno Haible  <bruno@clisp.org>
59706
59707         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59708         aliases.
59709
59710 2002-11-04  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/config.charset: Update for newest glibc. Add canonical names
59713         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59714
59715 2002-11-04  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/config.charset: Add support for NetBSD.
59718
59719 2002-11-04  Bruno Haible  <bruno@clisp.org>
59720
59721         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59722
59723 2002-11-01  Bruno Haible  <bruno@clisp.org>
59724
59725         * configure.in: Add AC_CONFIG_AUX_DIR call.
59726         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59727         test/Makefile.
59728         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59729
59730 2002-09-28  Karl Berry  <karl@gnu.org>
59731
59732         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59733         installed automake until the next release, since changes have been
59734         made.
59735
59736 2002-09-25  Karl Berry  <karl@gnu.org>
59737
59738         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59739         * lib/getopt*: copy from libc/posix.
59740         * lib/gettext.h: copy from gettext.
59741         * lib/.cppi-disable: add strdup.c, gettext.h.
59742
59743 2002-09-25  Karl Berry  <karl@gnu.org>
59744
59745         * config/srclist.txt: enable gettext.h check.
59746         * config/config.{guess,sub}: update from prep.
59747         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59748                 from automake 1.6.3.
59749         See srclist*.
59750
59751 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59752
59753         * regex.c (PATFETCH): Remove the translating fetch.
59754         (PATFETCH_RAW): Rename to PATFETCH.
59755         (set_image_of_range): New fun.
59756         (SET_RANGE_TABLE_WORK_AREA): Use it.
59757         (regex_compile): Don't translate the pattern chars so eagerly.
59758         Only do it when inserting an `exactn' bytecode or when handling
59759         a char-range.
59760         (mutually_exclusive_p): Avoid empty statement.
59761
59762 2002-07-06  Jim Meyering  <meyering@lucent.com>
59763
59764         * m4/README: Don't mention Makefile.am.in.
59765         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59766
59767 2002-07-01  Jim Meyering  <meyering@lucent.com>
59768
59769         * lib/c-stack.c: Include sys/time.h.
59770         From Volker Borchert.
59771
59772 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59773
59774         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59775
59776 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59777
59778         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59779         New macro.  Use it uniformly instead of
59780         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59781         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59782         reported by Vin Shelton.
59783
59784 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59785
59786         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59787         Do not assume SA_SIGINFO behavior.
59788         Bug reported by Jim Meyering on NetBSD 1.5.2.
59789
59790 2002-06-22  Jim Meyering  <meyering@lucent.com>
59791
59792         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59793         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59794
59795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59796         now that configure.ac uses AC_GNU_SOURCE.
59797         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59798         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59799
59800         Update to latest tools.  Suggestions from Paul Eggert.
59801         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59802         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59803         * m4/fnmatch.m4: Likewise.
59804         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59805         to AC_HEADER_STDBOOL
59806
59807 2002-06-22  Jim Meyering  <meyering@lucent.com>
59808
59809         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59810         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59811
59812 2002-06-22  Jim Meyering  <meyering@lucent.com>
59813
59814         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59815
59816         * lib/exitfail.c, exitfail.h: Likewise.
59817         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59818
59819         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59820         of fnmatch.h.
59821         (EXTRA_DIST): Add fnmatch_loop.c.
59822         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59823
59824         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59825         * lib/fnmatch.c: Update from diffutils-2.8.2.
59826         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59827         * lib/fnmatch.h: Remove file.
59828
59829 2002-06-21  Jim Meyering  <meyering@lucent.com>
59830
59831         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59832         * m4/mbrtowc.m4: Likewise.
59833
59834         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59835         * m4/mbswidth.m4: Reflect name change:
59836         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59838
59839         * m4/lib-link.m4: Update from gettext-0.11.2.
59840         * m4/gettext.m4: Likewise.
59841
59842         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59843         From Alfred M. Szmidt.
59844
59845 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59846
59847         * lib/file-type.h: Report an error if neither S_ISREG nor
59848         S_IFREG is defined, instead of using a test specific to glibc
59849         2.2.  This should be safe, since POSIX requires S_ISREG and
59850         Unix Version 7 had S_IFREG.  We don't need to check for
59851         <sys/types.h> since we don't use any symbols that it defines.
59852
59853 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59854
59855         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59856         $@-t, so that each temporary file name is unique and valid in the first
59857         8 characters, for operation under DOS.
59858
59859 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59860
59861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59862
59863 2002-06-15  Jim Meyering  <meyering@lucent.com>
59864
59865         Work even with DJGPP 2.03, which lacks support for symlinks.
59866         From Richard Dawe.
59867         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59868         is defined.
59869         * lib/lchown.c (S_ISLNK): Likewise.
59870
59871 2002-06-15  Jim Meyering  <meyering@lucent.com>
59872
59873         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59874         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59875         have been included before this file.
59876
59877 2002-06-14  Jim Meyering  <meyering@lucent.com>
59878
59879         * lib/file-type.h: Use the version from diffutils-2.8.2.
59880         * lib/file-type.c: Likewise.
59881
59882 2002-06-07  Jim Meyering  <meyering@lucent.com>
59883
59884         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59885         They're needed at least for NetBSD 1.5.2.
59886         ($statxfs_includes): Include those same headers.
59887         ($statxfs_includes): Include sys/vfs.h if available.
59888         ($statxfs_includes): Likewise for sys/statvfs.h.
59889         Check for the following members in both structs statfs and statvfs:
59890         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59891
59892 2002-06-01  Jim Meyering  <meyering@lucent.com>
59893
59894         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59895         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59896
59897 2002-05-28  Jim Meyering  <meyering@lucent.com>
59898
59899         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59900         Reported by Volker Borchert.
59901
59902 2002-05-27  Jim Meyering  <meyering@lucent.com>
59903
59904         Fix a problem seen only on nonconforming systems whereby ls.c's
59905         use of localtime, and then of gettimeofday would cause trouble:
59906         the localtime call used to initialize rpl_gettimeofday's save
59907         mechanism would clobber ls's current local time information so
59908         that in any long listing the first file would always be listed
59909         with date 1970-01-01.  Analysis by Volker Borchert.
59910
59911         * lib/gettimeofday.c (localtime): Undefine.
59912         (rpl_localtime): New function.
59913
59914 2002-05-27  Jim Meyering  <meyering@lucent.com>
59915
59916         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59917         localtime.
59918
59919         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59920         use the replacement function; it wouldn't resolve at link time.
59921         Reported by Volker Borchert.
59922
59923 2002-05-22  Jim Meyering  <meyering@lucent.com>
59924
59925         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59926         file-type.h.
59927         * lib/file-type.h: New file.
59928         * lib/file-type.c (file_type): New file/function.  Extracted from
59929         diffutils.
59930
59931 2002-04-30  Jim Meyering  <meyering@lucent.com>
59932
59933         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59934
59935 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59936
59937         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59938
59939 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59940
59941         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59942         Do not check for alloca.h (no longer used) or stdbool.h (was never
59943         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59944
59945 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59946
59947         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59948
59949 2002-04-29  Jim Meyering  <meyering@lucent.com>
59950
59951         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59952         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59953         Use AC_FUNC_STRNLEN here instead.
59954
59955         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59956         With autoconf-2.53a, it's part of AC_PROG_CC.
59957
59958 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59959
59960         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59962
59963 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59964
59965         * lib/sig2str.h, lib/sig2str.c: New files.
59966         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59967
59968 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59969
59970         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59971         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59972         of 127, since 64 is the largest conceivable number for ancient
59973         nonstandard hosts.
59974         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59975
59976 2002-04-28  Jim Meyering  <meyering@lucent.com>
59977
59978         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59979
59980 2002-04-24  Jim Meyering  <meyering@lucent.com>
59981
59982         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59983         (jm_PREREQ): Use it.
59984
59985         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59986         mach/mach.h fcntl.h.
59987         Check for this function: setlocale.
59988
59989 2002-04-24  Jim Meyering  <meyering@lucent.com>
59990
59991         * lib/gettext.h: New file, from Gettext.
59992         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59993         (libfetish_a_SOURCES): Add gettext.h.
59994
59995 2002-04-16  Jim Meyering  <meyering@lucent.com>
59996
59997         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59998         ut_pid, ut_id, ut_exit.
59999
60000 2002-04-16  Jim Meyering  <meyering@lucent.com>
60001
60002         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60003         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60004         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60005
60006 2002-04-12  Jim Meyering  <meyering@lucent.com>
60007
60008         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60009         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60010         existence of the getmntinfo function.  Needed for Darwin 5.3.
60011
60012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60013         This is necessary at least on Darwin 5.3.
60014
60015         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60016         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60017         strnlen.o in the library, and that makes some versions of ranlib
60018         object.
60019
60020 2002-04-12  Jim Meyering  <meyering@lucent.com>
60021
60022         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60023
60024 2002-04-09  Jim Meyering  <meyering@lucent.com>
60025
60026         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60027         to be more precise.  Rather than saying we're checking whether the
60028         function `works', say what we're testing.
60029         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60030         Reported by Bruno Haible.
60031
60032 2002-03-10  Jim Meyering  <meyering@lucent.com>
60033
60034         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60035         Suggestion from Santiago Vila.
60036
60037 2002-03-08  Jim Meyering  <meyering@lucent.com>
60038
60039         * lib/rename.c: Mention that this wrapper is needed also on
60040         mips-dec-ultrix4.4 systems.
60041
60042 2002-03-02  Jim Meyering  <meyering@lucent.com>
60043
60044         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60045         not HAVE_CLOCK_SETTIME.
60046
60047 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60048
60049         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60050         Check for clock_settime.
60051
60052 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60053
60054         * lib/nanosleep.h: Rename to....
60055         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60056
60057         * lib/gettime.c: New file.
60058         * lib/settime.c: New file.
60059         * lib/stime.c: Remove.
60060
60061         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60062         timespec.h.  Remove nanosleep.h.
60063
60064 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60065
60066         * m4/acl.m4: New file.
60067         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60068         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60069
60070 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60071
60072         * lib/acl.c, lib/acl.h: New files.
60073         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60074
60075 2002-02-24  Jim Meyering  <meyering@lucent.com>
60076
60077         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60078         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60079         cause trouble.  Reported by Nelson Beebe.
60080
60081 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60082
60083         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60084         compilers that don't know that xalloc_die never returns.
60085
60086 2002-02-20  Jim Meyering  <meyering@lucent.com>
60087
60088         * lib/getdate.c: Regenerate using bison-1.33.
60089
60090 2002-02-17  Jim Meyering  <meyering@lucent.com>
60091
60092         * config/config.guess (main): Don't use `head -1'; it's no longer
60093         portable. Use `sed 1q' instead.
60094
60095 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60096
60097         * m4/codeset.m4: Upgrade to gettext-0.11.
60098         * m4/gettext.m4: Upgrade to gettext-0.11.
60099         * m4/glibc21.m4: Upgrade to gettext-0.11.
60100         * m4/iconv.m4: Upgrade to gettext-0.11.
60101         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60102         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60103         * m4/lib-ld.m4: New file, from gettext-0.11.
60104         * m4/lib-link.m4: New file, from gettext-0.11.
60105         * m4/lib-prefix.m4: New file, from gettext-0.11.
60106         * m4/progtest.m4: Upgrade to gettext-0.11.
60107
60108 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60109
60110         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60111         (jm_PREREQ): Use it.
60112
60113 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60114
60115         * lib/posixver.c, lib/posixver.h: New files.
60116         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60117
60118 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60119             Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60122         (fwrite_success_callback): New declaration.
60123         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60124         print_unicode_char. Call failure callback instead of error.
60125         (fwrite_success_callback): New function.
60126         (exit_failure_callback): New function.
60127         (fallback_failure_callback): New function.
60128         (print_unicode_char): Call unicode_to_mb.
60129
60130 2002-01-26  Jim Meyering  <meyering@lucent.com>
60131
60132         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60133         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60134
60135 2002-01-26  Jim Meyering  <meyering@lucent.com>
60136
60137         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60138
60139 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60140
60141         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60142
60143 2002-01-22  Jim Meyering  <meyering@lucent.com>
60144
60145         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60146         Otherwise, some versions of automake would omit the rule that makes
60147         Makefile from Makefile.in.
60148
60149 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60150
60151         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60152         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60153         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60154         (memcoll): Set errno to zero if there is no error.
60155
60156         * lib/quotearg.c (quotearg_buffer_restyled):
60157         Fix bug with quoting buffers containing NUL when backslashing escapes.
60158         This bug was exposed by the other changes in this patch.
60159         (quotearg_n_options): New arg ARGSIZE.
60160         All callers changed.
60161         (quoting_options_from_style): New function.
60162         (quotearg_n_style): Use it.
60163         (quotearg_n_style_mem): New function.
60164
60165         * lib/quotearg.h (quotearg_n_style_mem): New function.
60166
60167 2002-01-19  Jim Meyering  <meyering@lucent.com>
60168
60169         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60170         Remove useless quotes: DF_PROG="df".
60171         * m4/strnlen.m4: New file.
60172
60173 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60174
60175         * lib/backupfile.c (ISDIGIT): Comment fix.
60176         * lib/getdate.y (ISDIGIT): Likewise.
60177         * lib/posixtm.c (ISDIGIT, year): Likewise.
60178         * lib/strverscmp.c (ISDIGIT): Likewise.
60179         * lib/userspec.c (ISDIGIT): Likewise.
60180
60181 2002-01-16  Jim Meyering  <meyering@lucent.com>
60182
60183         * lib/getdate.y: Add three semicolons, each just before a closing
60184         brace. Bison (as of version 1.31) no longer papers over that mistake.
60185
60186 2002-01-05  Jim Meyering  <meyering@lucent.com>
60187
60188         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60189
60190 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60191
60192         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60193         not silently exit merely because the output buffer happens to
60194         have nothing pending.
60195
60196 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60197
60198         See the big note in ../ChangeLog.
60199         * lib/human.c (suffixes): Prefer K to k for 1024.
60200         (generate_suffix_backwards): New function.
60201         (human_readable_inexact): Use it.
60202         * lib/xstrtol.c (__xstrtol): If there is no number but there
60203         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60204         Accept 'K' as well as 'k'.
60205
60206 2001-12-15  Jim Meyering  <meyering@lucent.com>
60207
60208         * lib/regex.h (__restrict_arr): Update from libc.
60209
60210         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60211         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60212         (STREQ): Define.
60213
60214 2001-12-14  Jim Meyering  <meyering@lucent.com>
60215
60216         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60217         Suggestion from Bruno Haible.
60218
60219 2001-12-10  Jim Meyering  <meyering@lucent.com>
60220
60221         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60222         xrealloc, Instead, include "xalloc.h".
60223         (initbuffer): Don't cast xmalloc return value to char*.
60224         (readline): Reword comment.
60225         Don't cast xrealloc return value to char*
60226         Return NULL, not 0.
60227
60228 2001-12-09  Jim Meyering  <meyering@lucent.com>
60229
60230         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60231         about `signed and unsigned type in conditional expression'.
60232         * lib/posixtm.c (posix_time_parse): Likewise.
60233
60234         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60235
60236         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60237         to avoid a pedantic warning.
60238
60239         * lib/getstr.c: Don't include assert.h.
60240         (getstr): Remove warning-evoking assertions.
60241         Return -1 if offset parameter is out of bounds.
60242         Change the type of a local from int to size_t.
60243
60244         * lib/strftime.c (my_strftime_localtime_r): Include this function
60245         definition in the `#if ! HAVE_TM_GMTOFF' block.
60246
60247         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60248         Include xalloc.h instead.
60249
60250 2001-12-02  Jim Meyering  <meyering@lucent.com>
60251
60252         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60253         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60254         included.
60255
60256         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60257         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60258
60259 2001-11-30  Akim Demaille  <akim@epita.fr>
60260
60261         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60262         before being defined.
60263
60264 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60265
60266         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60267         First arg is int, not unsigned.
60268         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60269         (SIZE_MAX, UINT_MAX): New macros.
60270         (quotearg_n_options): Abort if N is negative.
60271         Avoid overflow check on hosts where size_t is 64 bits and int
60272         is 32 bits, as overflow is impossible there.
60273         Fix off-by-one typo that caused unnecessary reallocation.
60274
60275 2001-11-27  Jim Meyering  <meyering@lucent.com>
60276
60277         * lib/tempname.c: Merge with version from libc.
60278         * lib/regex.c: Likewise.
60279
60280         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60281         systems for which STDC_HEADERS is 0, it was not included, resulting in
60282         a warning about an integer-to-pointer conversion problem with getenv.
60283         Reported by Volker Borchert.
60284
60285 2001-11-26  Jim Meyering  <meyering@lucent.com>
60286
60287         * lib/gtod.h: Remove file.
60288         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60289         * lib/gettimeofday.c: Don't include gtod.h.
60290         (GTOD_init): Remove function.
60291         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60292         Suggestion from Volker Borchert.
60293
60294 2001-11-23  Jim Meyering  <meyering@lucent.com>
60295
60296         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60297         it.
60298         * lib/hash.c (struct hash_table): Define it here instead.
60299
60300 2001-11-22  Jim Meyering  <meyering@lucent.com>
60301
60302         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60303
60304 2001-11-20  Jim Meyering  <meyering@lucent.com>
60305
60306         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60307         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60308
60309 2001-11-19  Jim Meyering  <meyering@lucent.com>
60310
60311         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60312         directory.  Use "conftestXXXXXX" as the template.
60313         Suggestion from Paul Eggert.
60314
60315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60316         immediately, so the test doesn't mistakenly hit the max-open-files
60317         limit.
60318
60319 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60320
60321         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60322         (TEMPORARIES): New macro.
60323         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60324         removes an artificial limitation (e.g. HP-UX 10.20, where
60325         TMP_MAX is 17576).
60326
60327 2001-11-18  Jim Meyering  <meyering@lucent.com>
60328
60329         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60330
60331 2001-11-18  Jim Meyering  <meyering@lucent.com>
60332
60333         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60334         on SunOS 4.
60335
60336         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60337         files will be created before anything else.
60338
60339 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60340
60341         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60342         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60343
60344 2001-11-17  Jim Meyering  <meyering@lucent.com>
60345
60346         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60347         Prompted by a report from Bob Proulx.
60348
60349         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60350         Instead, require UTILS_FUNC_MKSTEMP.
60351
60352 2001-11-17  Jim Meyering  <meyering@lucent.com>
60353
60354         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60355         Now, that's done as part of AC_FUNC_STRTOD.
60356
60357 2001-11-17  Jim Meyering  <meyering@lucent.com>
60358
60359         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60360         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60361         rather than group writable.  Patch by Juan F. Codagnone.
60362
60363         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60364         xrealloc, Instead, include "xalloc.h".
60365
60366         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60367         Remove explicit declarations of xmalloc, xrealloc,
60368         and xstrdup.  Instead, include "xalloc.h".
60369
60370         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60371         unlocked-io.h.
60372         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60373         Likewise.
60374         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60375
60376         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60377         Reported by Padraig Brady.
60378
60379         * lib/mkstemp.c: #undef mkstemp.
60380         Include config.h.
60381         (rpl_mkstemp): Rename from mkstemp.
60382         Protoize.
60383
60384 2001-11-16  Jim Meyering  <meyering@lucent.com>
60385
60386         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60387         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60388         determine the amount of total physical memory, use pstat_getstatic.
60389         HPUX-11 doesn't define _SC_PHYS_PAGES.
60390         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60391         If sysconf couldn't be used to determine the amount of available
60392         physical memory, use both pstat_getstatic and pstat_getdynamic.
60393         Based on a patch from Bob Proulx.
60394
60395 2001-11-10  Jim Meyering  <meyering@lucent.com>
60396
60397         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60398         (jm_PREREQ): Use it.
60399
60400 2001-11-09  Jim Meyering  <meyering@lucent.com>
60401
60402         * m4/jm-macros.m4: Require autoconf-2.52f.
60403         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60404         Use these AC_-prefixed names, not the AM_-prefixed ones.
60405
60406         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60407
60408 2001-11-05  Jim Meyering  <meyering@lucent.com>
60409
60410         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60411
60412 2001-11-04  Jim Meyering  <meyering@lucent.com>
60413
60414         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60415         $DEFS.
60416
60417 2001-11-03  Jim Meyering  <meyering@lucent.com>
60418
60419         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60420         of AC_DEFUN.
60421
60422         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60423         know the name of the variable in the macro definition.
60424
60425 2001-11-03  Jim Meyering  <meyering@lucent.com>
60426
60427         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60428         in argmatch_to_argument call.
60429
60430         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60431         argument.
60432
60433         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60434         e.g., a fault due to an attempt to free a NULL pointer.
60435
60436 2001-11-01  Jim Meyering  <meyering@lucent.com>
60437
60438         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60439         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60440
60441 2001-11-01  Jim Meyering  <meyering@lucent.com>
60442
60443         * lib/dirfd.c, lib/dirfd.h: New files.
60444         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60445
60446         * lib/hash.c (hash_print) [TESTING]: Clean up.
60447
60448 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60449
60450         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60451         to avoid a warning if -Wall.
60452
60453 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60454
60455         * README: New file
60456         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60457         (per RMS's instructions, this is now the canonical source)
60458         * lgpl/, gpl/: New directories.
60459
60460 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60461
60462         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60463
60464 2001-10-21  Jim Meyering  <meyering@lucent.com>
60465
60466         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60467         this code would end up calling gettext even in packages built
60468         with --disable-nls.
60469         * lib/getopt.c (_): Likewise.
60470         * lib/regex.c (_): Likewise.
60471
60472 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60473
60474         * m4/error.m4 (jm_PREREQ_ERROR):
60475         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60476         AC_FUNC_STRERROR_R does that.
60477         Check for strerror declaration.
60478
60479         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60480         are supposed to have them these days.
60481         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60482         Merge changes from latest Autoconf CVS.
60483         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60484         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60485         POSIX decided to standardize on the int flavor of strerror_r.
60486
60487 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60488
60489         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60490         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60491         Use strerror_r that is only a macro, even if it is not a function.
60492         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60493         (private_strerror): Use prototypes, not old-style function definition.
60494         (print_errno_message): New function.
60495         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60496         char*-flavored one.
60497         (error_tail, error, error_at_line): Use it.
60498
60499 2001-10-11  Jim Meyering  <meyering@lucent.com>
60500
60501         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60502         and quote_n (1, ... to avoid clobbering a buffer.
60503
60504 2001-10-05  Jim Meyering  <meyering@lucent.com>
60505
60506         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60507         hash-pjw.h.
60508         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60509         * lib/hash-pjw.h: New file.
60510
60511 2001-09-30  Jim Meyering  <meyering@lucent.com>
60512
60513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60514         `struct fsstat' has the `f_fstypename' member.
60515         Use that to define FS_TYPE, which is now used to make
60516         the getfsstat link test tighter.
60517
60518 2001-09-30  Jim Meyering  <meyering@lucent.com>
60519
60520         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60521         Include <sys/ucred.h>, for Apple Darwin.
60522         Include sys/mount.h and sys/fs_types.h only if available.
60523         (FS_TYPE): Define.
60524         (read_filesystem_list): Use FS_TYPE.
60525
60526 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60527
60528         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60529         a boolean context.
60530
60531 2001-09-29  Jim Meyering  <meyering@lucent.com>
60532
60533         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60534         [one-argument getmntent function]): Include stdio.h before mntent.h.
60535         SunOS 4.1.x needs it for the declaration of `FILE'.
60536         Patch by Volker Borchert.
60537
60538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60539         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60540         sys/fs_types.h, and make the link-test for getfsstat guard #include
60541         directives with appropriate #if HAVE_*_H tests so that we can
60542         detect getfsstat on Apple Darwin1.3.7 systems.
60543         Reported by Nelson Beebe.
60544         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60545
60546 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60547
60548         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60549         #defines strtoimax.  Also treat the other strto* functions
60550         like strtoimax.
60551
60552         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60553         Check for strtoul and strtoumax,
60554         as those declarations are made even in the signed case.
60555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60556         Likewise, for strtol and strtoimax.
60557
60558 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60559
60560         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60561         #defines strtoimax.  Also treat the other strto* functions
60562         like strtoimax.
60563
60564         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60565         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60566         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60567
60568 2001-09-26  Jim Meyering  <meyering@lucent.com>
60569
60570         Most macros in unlocked-io.h had the wrong number of arguments.
60571         * lib/gen-uio: New script.
60572         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60573         * lib/unlocked-io.hin: Remove file.
60574         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60575         rather than trying to embed it here.
60576         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60577         Reported by Padraig Brady.
60578
60579 2001-09-25  Volker Borchert  <bt@teknon.de>
60580
60581         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60582         `result'.
60583
60584 2001-09-24  Jim Meyering  <meyering@lucent.com>
60585
60586         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60587
60588 2001-09-23  Jim Meyering  <meyering@lucent.com>
60589
60590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60591         instead of the mere test for existence of mntent.h.  The latter
60592         would get a false-positive on AIX 3.4 systems.
60593         In the outer getmntent if-block, don't die if neither of the getmntent
60594         tests succeeds.  Instead, just fall through and continue with the
60595         remaining tests.
60596
60597 2001-09-23  Jim Meyering  <meyering@lucent.com>
60598
60599         * lib/mountlist.c: Remove useless parentheses in #if directives.
60600         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60601         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60602
60603 2001-09-22  Jim Meyering  <meyering@lucent.com>
60604
60605         * m4/gettext.m4: New file.  From gettext.
60606         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60607         * m4/progtest.m4: Likewise
60608         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60609         * m4/glibc21.m4: Likewise.
60610
60611         * m4/libintl.m4: Remove.  No longer used.
60612
60613 2001-09-22  Jim Meyering  <meyering@lucent.com>
60614
60615         * lib/localcharset.c: Update from latest gettext.
60616         * lib/config.charset: Likewise.
60617
60618 2001-09-20  Jim Meyering  <meyering@lucent.com>
60619
60620         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60621         strtoimax.
60622         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60623         strtoumax.
60624
60625 2001-09-20  Jim Meyering  <meyering@lucent.com>
60626
60627         * lib/xstrtol.c (strtoimax): Guard declaration with
60628         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60629         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60630         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60631         (strtoumax): Likewise, for completeness (it wasn't necessary).
60632
60633 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60634
60635         * lib/strtoimax.c (HAVE_LONG_LONG):
60636         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60637         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60638         to work around bug in IBM C compiler.
60639
60640 2001-09-17  Jim Meyering  <meyering@lucent.com>
60641
60642         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60643         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60644         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60645         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60646         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60647         whenever the right hand side need not be expanded by the shell.
60648
60649 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60650
60651         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60652         library.  It's not correct, as some older glibcs are buggy.
60653         fnmatch wasn't fixed until glibc 2.2.
60654
60655         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60656         special shell magic here.
60657
60658 2001-09-16  Jim Meyering  <meyering@lucent.com>
60659
60660         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60661         * m4/jm-macros.m4: Require it.
60662
60663 2001-09-16  Jim Meyering  <meyering@lucent.com>
60664
60665         * lib/mkdir.c: New file.
60666
60667 2001-09-15  Jim Meyering  <meyering@lucent.com>
60668
60669         * m4/jm-macros.m4: Check for help2man.
60670
60671 2001-09-11  Jim Meyering  <meyering@lucent.com>
60672
60673         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60674         The body, by Paul Eggert, was moved here from configure.in.
60675         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60676
60677 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60678
60679         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60680         (jm_PREREQ): Use it.
60681
60682 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60683
60684         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60685         Use ssize_t, not int, to store result of readlink.
60686         Check for ssize_t overflow as well as size_t overflow,
60687         as POSIX says the result of readlink is implementation-defined
60688         when ssize_t overflows.
60689         Remove unnecessary cast to char*.
60690         Use free+malloc instead of realloc, as the storage doesn't need
60691         to be preserved and it's clearer and can be more efficient that way.
60692         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60693         * lib/xreadlink.h (xreadlink): Update prototype.
60694
60695 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60696
60697         * lib/xgetcwd.c: Revert some of the previous change; intead,
60698         fix the HAVE_GETCWD_NULL code to behave more like the
60699         !HAVE_GETCWD_NULL code used to.
60700
60701         Include "xalloc.h".
60702         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60703         invoke xalloc_die.
60704
60705 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60706
60707         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60708         sys/param.h, as pathmax.h includes them.
60709
60710 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60711
60712         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60713         (jm_PREREQ_XGETCWD): New macro.
60714
60715         * m4/getcwd.m4: New file.
60716
60717 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60718
60719         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60720         like the HAVE_GETCWD_NULL code.
60721         Include pathmax.h if not HAVE_GETCWD.
60722         Do not include xalloc.h.
60723         (INITIAL_BUFFER_SIZE): New symbol.
60724         Do not use xmalloc / xrealloc, since the caller is responsible for
60725         handling errors.  Preserve errno around `free' during failure.
60726         Do not overrun buffer when using getwd.
60727
60728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60729
60730         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60731         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60732         getcwd (NULL, 0).
60733
60734 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60735
60736         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60737         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60738         spotted by Jim Meyering.
60739
60740 2001-09-03  Jim Meyering  <meyering@lucent.com>
60741
60742         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60743         failure.
60744
60745 2001-09-02  Jim Meyering  <meyering@lucent.com>
60746
60747         * lib/error.c: Update from GNU libc.
60748
60749 2001-09-01  Jim Meyering  <meyering@lucent.com>
60750
60751         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60752         Used by df.
60753
60754 2001-09-01  Jim Meyering  <meyering@lucent.com>
60755
60756         * lib/xreadlink.c: New file.
60757         * lib/xreadlink.h: New file.
60758         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60759         xreadlink.h.
60760
60761         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60762         doesn't conflict with sparc Solaris 7's definition in
60763         /usr/include/sys/int_types.h.
60764
60765         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60766         files.
60767         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60768         and strncasecmp as r-values.  Unixware didn't have declarations.
60769
60770 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60771
60772         * lib/xstrtol.h: Add copyright notice.
60773         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60774         LONGINT_INVALID_SUFFIX_CHAR.
60775
60776 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60777
60778         * lib/xstrtol.c (strtoimax): New decl.
60779
60780 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60781
60782         * lib/xgetcwd.c: Don't include pathmax.h.
60783         Include stdlib.h and unistd.h if available.
60784         Include xalloc.h.
60785         (xmalloc, xstrdup, free): Remove decls.
60786         (xgetcwd): Don't assume sizes fit in unsigned.
60787         Check for overflow when computing sizes.
60788         Simplify reallocation code.
60789
60790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60791
60792         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60793         a directory's st_size can have an arbitrary value, so the old
60794         usage could waste an arbitrary amount of memory.  All uses
60795         changed.
60796         * lib/savedir.h: Update prototype.
60797
60798 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60799
60800         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60801
60802         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60803         old strtoimax.c.
60804
60805         Also, make the following further changes to make this file's
60806         configuration more similar to that of strtol.c:
60807         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60808         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60809         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60810         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60811         changed to signed values.
60812
60813         And make the following changes as well:
60814         Fix copyright notice, as 1999 was missing.
60815         (verify): New macro.
60816         (strtoimax): Check sizes at compile-time, not run-time.
60817         Prefer strtol to strtoll if both work.
60818         (main): Remove; it was not that useful and was a pain to maintain.
60819
60820         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60821
60822 2001-08-31  Jim Meyering  <meyering@lucent.com>
60823
60824         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60825         Use an initial, malloc'd, buffer of length 128 rather than
60826         a statically allocated one of length 1024.
60827
60828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60829
60830         Simplify code, partly by assuming autoconf 2.52 semantics.
60831
60832         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60833
60834         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60835         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60836         All uses removed.
60837         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60838         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60839         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60840         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60841         jm_AC_HEADER_INTTYPES_H.
60842         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60843
60844         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60845
60846         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60847         Quote first arg of AC_DEFUN.
60848         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60849         since they are needed to parse the include file even if we need
60850         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60851         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60852         but with opposite signedness.
60853
60854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60855
60856         Merge 'exclude' changes from tar 1.13.22.
60857         This fixes one or two unlikely storage allocation overflow bugs,
60858         but doesn't change user-visible behavior otherwise.
60859
60860 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60861
60862         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60863         (jm_PREREQ_EXCLUDE): New macro.
60864
60865 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60866
60867         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60868         tm to be declared.
60869
60870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60871
60872         * lib/hash.c: Remove '2001' from copyright notice.
60873
60874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60875
60876         * lib/full-write.h: New file.
60877         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60878         * lib/full-write.c: Correct credits, as cccp.c no longer
60879         exists and anyway it was so heavily changed from the old cccp
60880         code as to be unrecognizable.  Include full-write.h.
60881         (full_write) Return size_t, with short writes meaning failure.
60882         All callers changed.  This fixes a bug with large buffers
60883         on 64-bit hosts.
60884         * lib/utime.c: Include full-write.h.
60885
60886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60887
60888         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60889         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60890         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60891         Include if available.
60892         (<xalloc.h>): Include
60893         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60894         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60895         collide with FNM macros.
60896         (struct patopts): New struct.
60897         (struct exclude): Use it, as exclude patterns now come with options.
60898         (new_exclude): Support above changes.
60899         (new_exclude, add_exclude_file):
60900         Initial size must now be a power of two to simplify overflow checking.
60901         (free_exclude, fnmatch_no_wildcards): New function.
60902         (excluded_filename): No longer requires options arg, as the options
60903         are determined by add_exclude.  Now returns bool, not int.
60904         (excluded_filename, add_exclude):
60905         Add support for the fancy new exclusion options.
60906         (add_exclude, add_exclude_file): Now takes int options arg.
60907         Check for arithmetic overflow when computing sizes.
60908         (add_exclude_file): xrealloc might modify errno, so don't
60909         realloc until after errno might be used.
60910
60911         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60912         New macros.
60913         (free_exclude): New decl.
60914         (add_exclude, add_exclude_file): Now takes int options arg.
60915         (excluded_filename): No longer requires options arg, as the options
60916         are determined by add_exclude.  Now returns bool, not int.
60917
60918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60919
60920         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60921
60922 2001-08-27  Jim Meyering  <meyering@lucent.com>
60923
60924         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60925
60926         * lib/version-etc.c (N_): Remove definition.
60927         Revert most of last change.
60928         Instead, simply don't mark the `Copyright...' string for translation.
60929         Based on advice from Paul Eggert.
60930
60931         * lib/strtoxmax.c: Tweak comment.
60932
60933 2001-08-26  Jim Meyering  <meyering@lucent.com>
60934
60935         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60936
60937         * m4/xstrtoimax.m4: New file.
60938         * m4/xstrtoumax.m4: Add comments explaining why we
60939         AC_REPLACE_FUNCS(strtol).
60940
60941 2001-08-26  Jim Meyering  <meyering@lucent.com>
60942
60943         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60944         of copyright with `%s' so translators don't get an untranslated
60945         message in 2002.
60946         (COPYRIGHT_YEAR): Define.
60947         (version_etc): Use fprintf rather than fputs.
60948         Suggestion from Ulrich Drepper.
60949
60950         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60951
60952         * lib/strtoll.c: New file, from GNU libc.
60953         * lib/xstrtoimax.c: New file.
60954
60955         * lib/xstrtol.h: Add xstrtoimax.
60956         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60957         * lib/strtoimax.c: New file.  Likewise, but first define
60958         STRTOUXMAX_SIGNED.
60959
60960         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60961         ...
60962         * lib/strtoxmax.c: ... then renamed to this.
60963
60964 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60965
60966         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60967         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60968         (jm_AC_TYPE_INTMAX_T): New macro.
60969         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60970
60971         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60972
60973         * m4/longlong.m4: Renamed from ulonglong.m4.
60974         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60975         * m4/uintmax_t.m4: Removed.
60976
60977 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60978
60979         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60980         Port to Solaris 8, where 'sed' requires a space after the 'r'
60981         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60982         Redirect output to $tmp just once.
60983
60984 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60985
60986         * lib/addext.c (<errno.h>): Include.
60987         (errno): Declare if not defined.
60988         (addext): Work correctly when pathconf returns -1 and leaves
60989         errno alone because there is no limit.  Also, work even if
60990         pathconf returns a value greater than SIZE_MAX.
60991
60992 2001-08-12  Jim Meyering  <meyering@lucent.com>
60993
60994         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60995         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60996         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60997         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60998         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60999         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61000         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61001         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61002         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61003         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61004         utime.m4, utimes.m4, xstrtoumax.m4:
61005         Quote the first argument in each use of AC_DEFUN.
61006
61007 2001-08-12  Jim Meyering  <meyering@lucent.com>
61008
61009         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61010         Simply `return getcwd (NULL, 0);'.
61011         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61012         Use 1300 as initial value for length, not PATH_MAX.
61013
61014         * lib/pathmax.h: Clean up cpp syntax.
61015
61016 2001-08-12  Jim Meyering  <meyering@lucent.com>
61017
61018         * lib/gettimeofday.c: New file.
61019         * lib/gtod.h: New file.
61020         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61021
61022 2001-08-05  Jim Meyering  <meyering@lucent.com>
61023
61024         * m4/jm-macros.m4: Require autoconf-2.52.
61025
61026 2001-08-04  Jim Meyering  <meyering@lucent.com>
61027
61028         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61029         stmt, to get in sync with glibc.
61030
61031 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61032
61033         The following changes are from gettext 0.10.39 as maintained by
61034         Bruno Haible.
61035
61036         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61037         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61038         with inverted sense.  All uses changed.
61039
61040         * lib/mbswidth.c: Don't include <limits.h>.
61041         Include <stdlib.h> and <string.h> unconditionally.
61042         (iswcntrl, mbsinit, ISCNTRL): New macros.
61043         (mbsnwidth): Use K&R style function declarations.
61044         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61045         can optimize it when MB_CUR_MAX == 1.
61046         The width of control characters is zero, not 1.
61047
61048 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61049
61050         The following changes are from gettext 0.10.39 as maintained by
61051         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61052
61053         * m4/codeset.m4: Upgrade to serial AM1.
61054         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61055         all uses changed.  Quote first arg of AC_DEFUN.
61056         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61057
61058         * m4/iconv.m4: Upgrade to serial AM2.
61059         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61060         Add --with-libconv-prefix.
61061         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61062         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61063         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61064         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61065         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61066
61067         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61068         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61069         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61070         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61071         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61072         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61073         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61074         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61076
61077         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61078         string.h any more.
61079
61080         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61081         not the default value.
61082
61083         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61084         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61085         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61086         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61087         Also check for iswcntrl, used for wcwidth fallback.
61088         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61089         to Autoconf 2.13.
61090
61091 2001-08-03  Jim Meyering  <meyering@lucent.com>
61092
61093         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61094         as it was in the original.  Reported by Paul Eggert.
61095
61096 2001-07-16  Jim Meyering  <meyering@lucent.com>
61097
61098         * m4/gettimeofday.m4: New file.
61099         Prompted by a report from Bernhard Baehr.
61100
61101 2001-07-15  Jim Meyering  <meyering@lucent.com>
61102
61103         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61104         stuff. Now it's in ../Makefile.cfg.
61105
61106 2001-07-15  Jim Meyering  <meyering@lucent.com>
61107
61108         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61109         (BUILT_SOURCES): Add unlocked-io.h.
61110         (io_functions): Define.
61111         (unlocked-io.h): New rule.
61112         (DISTCLEANFILES): Add unlocked-io.h.
61113         (all-local): Depend on unlocked-io.h, to ensure it is created.
61114
61115         * lib/unlocked-io.hin: New file
61116
61117         * lib/regex.c: Update from glibc.
61118
61119 2001-07-05  Jim Meyering  <meyering@lucent.com>
61120
61121         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61122         recommendation.
61123         (libfetish_a_SOURCES): Put all .h files here instead.
61124         Remove a thus-exposed (better checks in automake) duplicate and
61125         two unnecessary .h files.
61126
61127 2001-07-04  Jim Meyering  <meyering@lucent.com>
61128
61129         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61130         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61131         distcheck failure.
61132
61133 2001-07-02  Jim Meyering  <meyering@lucent.com>
61134
61135         The following changes were prompted by suggestions from Bruno Haible.
61136
61137         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61138         is now generated.
61139         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61140         definition of EXTRA_DIST.
61141         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61142         ensure that the generated file is created/updated whenever the list
61143         of $(unlocked_functions) is changed.
61144         (jm-glibc-io.m4): New rule.
61145         (unlocked-io.h): New rule -- currently unused.
61146
61147 2001-06-24  Jim Meyering  <meyering@lucent.com>
61148
61149         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61150         unmatched right bracket, rather than kludging it with an extra,
61151         falsely-matching quote in a comment.  Patch by Akim Demaille.
61152
61153 2001-06-11  Jim Meyering  <meyering@lucent.com>
61154
61155         * lib/regex.c: Update from GNU libc.
61156
61157 2001-05-27  Jim Meyering  <meyering@lucent.com>
61158
61159         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61160         Check for ut_type in struct utmp.
61161
61162 2001-05-27  Jim Meyering  <meyering@lucent.com>
61163
61164         * lib/readutmp.h (UT_TYPE): Define.
61165
61166 2001-05-24  Jim Meyering  <meyering@lucent.com>
61167
61168         * lib/argmatch.c: Include "quote.h".
61169         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61170         quote function.  Reported by Göran Uddeborg.
61171
61172 2001-05-22  Jim Meyering  <meyering@lucent.com>
61173
61174         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61175         now that we use the package-supplied version unconditionally.
61176         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61177
61178 2001-05-21  Jim Meyering  <meyering@lucent.com>
61179
61180         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61181         shell syntax errors.
61182
61183 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61184
61185         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61186
61187 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61188
61189         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61190         Don't bother to check library strftime, since
61191         we'll be using our own my_strftime function anyway.
61192         Define my_strftime instead of strftime.
61193
61194 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61195
61196         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61197         which is not yet declared.
61198
61199 2001-05-15  Jim Meyering  <meyering@lucent.com>
61200
61201         * m4/regex.m4: Use proper quoting so brackets appear in the test
61202         program.
61203         Reported by, and with help from, Bruno Haible.
61204
61205 2001-05-13  Jim Meyering  <meyering@lucent.com>
61206
61207         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61208         undefined.
61209
61210 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61211
61212         dirname code cleanup.  base_name now behaves more compatibly
61213         with POSIX basename when given file names that have trailing
61214         slashes, and similarly for dir_name.  Add new primitives
61215         base_len and dir_len.  Put the directory-name-related decls
61216         into dirname.h.
61217
61218         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61219         * lib/backupfile.c (base_name): Likewise.
61220         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61221         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61222         * lib/makepath.c (strip_trailing_slashes): Likewise.
61223         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61224         ISSLASH): Likewise.
61225         * lib/rename.c (strip_trailing_slashes): Likewise.
61226         * lib/same.c (base_name): Likewise.
61227         * lib/stripslash.c (ISSLASH): Likewise.
61228
61229         * lib/addext.c: Include <dirname.h> after size_t is defined.
61230         * lib/backupfile.c: Likewise.
61231
61232         * lib/addext.c (addext): Use base_len to trim redundant
61233         trailing slashes instead of doing it ourselves.
61234         But do not trim the last slash if it is not redundant.
61235
61236         * lib/backupfile.c (find_backup_file_name,
61237         max_backup_version): Use base_len instead of rolling it ourselves.
61238         Handle the case of "" and (on DOS) "C:" correctly.
61239
61240         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61241         needed. Include <string.h>, <dirname.h>.
61242         (base_name): Allow file names ending in slashes, other than names
61243         that are all slashes.  In this case, return the basename followed
61244         by the slashes.  This is more general, and can be used in places
61245         where the original base_name purposely had an assertion failure.
61246         (base_len): New function.
61247
61248         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61249         Do not include <assert.h>; no longer needed.
61250         Include xalloc.h.
61251         (memrchr): Remove decl.
61252         (dir_name_r): Remove.
61253         (dir_len): Renamed from dirlen.  All callers changed.
61254         Rewrite in terms of base_name, for simplicity and consistency.
61255         (dir_name): Never return NULL.  All callers changed.
61256         Do not include <stdlib.h> in test program; no longer needed.
61257         return 0; is fine for test program.
61258
61259         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61260         New macros.
61261         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61262
61263         * lib/path-concat.c (path_concat): Use base_len to compute
61264         base length, not strlen; this means we cannot rely on memcpy
61265         to null-terminate.
61266
61267         * lib/same.c (STREQ): Remove.
61268         (same_name): Handle the case where the basename ends in trailing '/'.
61269
61270         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61271         a slash was stripped.  Do not strip the last slash after a
61272         file system prefix.
61273
61274 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61275
61276         * lib/Makefile.am (libfetish_a_SOURCES):
61277         Add strftime.c, since we now compile it on all hosts.
61278
61279         * lib/strftime.c (my_strftime):
61280         Define to nstrftime if emacs, but only if my_strftime is not defined.
61281         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61282         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61283         Add one more extra argument: a nanoseconds value.
61284         All uses changed.
61285         (ns): New macro.
61286         (my_strftime function): Add %N format.
61287         (emacs_strftimeu): Renamed from emacs_strftime,
61288         with extra ut argument.
61289
61290 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61291
61292         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61293
61294 2001-04-21  Jim Meyering  <meyering@lucent.com>
61295
61296         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61297         doesn't interfere.
61298
61299 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61300
61301         * m4/ftruncate.m4: Check for chsize.
61302         Link with ftruncate.o unconditionally if ftruncate is missing.
61303         This was required when cross-compiling to i586-mingw32msvc.
61304
61305 2001-04-08  Jim Meyering  <meyering@lucent.com>
61306
61307         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61308         recomputed; that's necessary when the offset spans a DST transition.
61309         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61310
61311 2001-04-02  Jim Meyering  <meyering@lucent.com>
61312
61313         * lib/regex.h, regex.c: Update from GNU libc.
61314
61315 2001-03-24  Jim Meyering  <meyering@lucent.com>
61316
61317         * m4/jm-macros.m4: Require autoconf-2.49d.
61318
61319 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61320
61321         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61322
61323 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61324
61325         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61326
61327 2001-03-17  Jim Meyering  <meyering@lucent.com>
61328
61329         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61330         now that the version in autoconf is equivalent.
61331         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61332
61333         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61334         Suggestion from Akim Demaille.
61335
61336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61337         (jm_PREREQ_TEMPNAME): New function.
61338
61339 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61340
61341         * lib/tempname.c (uint64_t): Define to uintmax_t if
61342         not defined, and if UINT64_MAX is not defined.
61343         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61344         Reported by John David Anglin.
61345
61346 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61347
61348         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61349         resolve alias if codeset is empty.
61350         * lib/config.charset (BeOS): Use wildcard syntax.
61351
61352 2001-03-13  Jim Meyering  <meyering@lucent.com>
61353
61354         * lib/path-concat.c (path_concat)
61355         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61356         concatenating e.g., `C:' and `foo'.
61357         From Bruno Haible.
61358
61359 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61360
61361         * lib/localcharset.c (locale_charset): Don't use
61362         setlocale(LC_CTYPE,NULL). Don't return NULL.
61363         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61364
61365 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61366
61367         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61368         support for DOS/DJGPP.
61369
61370 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61371
61372         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61373         lacks mkstemp.  Compile our own tempname.c if we compile our own
61374         mkstemp.c, as mkstemp relies on tempname.
61375
61376 2001-03-01  Jim Meyering  <meyering@lucent.com>
61377
61378         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61379         AH_VERBATIM really does output its argument verbatim.
61380
61381 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61382
61383         * lib/Makefile.am (libfetish_a_SOURCES):
61384         Add dup-safer.c, fopen-safer.c.
61385         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61386
61387         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61388         * lib/unistd-safer.h: New files.
61389
61390 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61391
61392         The mkstemp replacement is taken from glibc 2.2.2, with some
61393         portability fixes for use outside glibc, as follows:
61394
61395         * lib/tempname.c (struct_stat64): New macro.
61396         (direxists, __gen_tempname): Use it.
61397         This avoids a portability problem with Solaris 8.
61398
61399         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61400         (<stddef.h>, <stdint.h>, <string.h>):
61401         Include only if STDC_HEADERS || _LIBC.
61402         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61403         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61404         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61405         (__set_errno): Define this macro if <errno.h> doesn't.
61406         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61407         Define these macros if <stdio.h> doesn't.
61408         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61409         Define these macros if <sys/stat.h>
61410         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61411         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61412         __xstat64): Define if not _LIBC.
61413         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61414         (__gen_tempname): Invoke gettimeofday only if
61415         HAVE_GETTIMEOFDAY || _LIBC;
61416         otherwise, fall back on plain "time".
61417         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61418
61419         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61420
61421         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61422
61423 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61424
61425         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61426
61427 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61428
61429         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61430         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61431         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61432         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61433
61434 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61435
61436         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61437         Remove workaround macros for hosts that have mbrtowc but not
61438         mbstate_t, as we now insist on proper declarations for both
61439         before using mbrtowc.
61440
61441 2001-02-17  Jim Meyering  <meyering@lucent.com>
61442
61443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61444         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61445         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61446         UnixWare 7.1.1.
61447
61448         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61449         rather than AC_CACHE_VAL.
61450
61451 2001-02-17  Jim Meyering  <meyering@lucent.com>
61452
61453         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61454         around included file name.
61455
61456         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61457
61458         * lib/strftime.c: Update from GNU libc (the only changes were to
61459         comments).
61460
61461 2001-02-17  Jim Meyering  <meyering@lucent.com>
61462
61463         * lib/regex.c: Update from libc.
61464
61465 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61466
61467         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61468         clash.
61469
61470 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61471
61472         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61473         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61474         Reported by Mark Hounschell via Paul Eggert.
61475
61476 2001-02-07  Jim Meyering  <meyering@lucent.com>
61477
61478         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61479
61480 2001-02-05  Jim Meyering  <meyering@lucent.com>
61481
61482         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61483         it includes the patch required for `large file' support with at least
61484         HP-UX's 10.20 /bin/cc.
61485
61486 2001-02-03  Jim Meyering  <meyering@lucent.com>
61487
61488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61489         AS_IF, now that it works once again (mysteriously).
61490         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61491
61492 2001-01-30  Jim Meyering  <meyering@lucent.com>
61493
61494         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61495         * m4/chown.m4: Rename conftestchown to conftest.chown.
61496         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61497         s/conftestdir2/conftest.d2/.
61498         * m4/utimes.m4: s/conftestdata/conftest.data/
61499         Inspired by Pavel Roskin's change in autoconf.
61500
61501 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61502
61503         * lib/config.charset: Update for FreeBSD 4.2.
61504
61505 2001-01-27  Jim Meyering  <meyering@lucent.com>
61506
61507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61508         a use of AS_IF.
61509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61510
61511 2001-01-26  Jim Meyering  <meyering@lucent.com>
61512
61513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61514         quotearg.c includes it.
61515
61516 2001-01-26  Jim Meyering  <meyering@lucent.com>
61517
61518         * lib/quotearg.c: Include stddef.h.
61519         * lib/quote.c: Include stddef.h.
61520         Reported by Axel Kittenberger.
61521
61522         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61523         line in double quotes so that it evokes a better diagnostic.
61524         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61525         Reported by Axel Kittenberger.
61526
61527 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61528
61529         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61530         as if it was a `charset'.
61531
61532 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61533
61534         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61535         has const.
61536
61537 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61538
61539         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61540         to avoid a warning.  Add back 'const' to inptr.
61541
61542 2001-01-20  Jim Meyering  <meyering@lucent.com>
61543
61544         Be sure that headers are checked before used in code compiled
61545         for the type checks.
61546         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61547         In place of that, invoke jm_CHECK_ALL_TYPES.
61548         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61549         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61550         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61551         The check for ssize_t was mistakenly run before the test for unistd.h.
61552
61553         The configure-time check for stdbool.h was missing.
61554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61555         (jm_PREREQ_HASH): New function.
61556
61557 2001-01-17  Jim Meyering  <meyering@lucent.com>
61558
61559         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61560         for autoconf-2.49c.
61561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61562
61563 2001-01-16  Jim Meyering  <meyering@lucent.com>
61564
61565         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61566         From Bruno Haible.
61567
61568 2001-01-14  Jim Meyering  <meyering@lucent.com>
61569
61570         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61571         foo and bar.  Create conftestdir/ in the script, not in the C code.
61572         Remove directories in the script, not in the C code.
61573         Remove conftestdir{,2} before trying to create the directory.
61574         Make the entire configure script fail if the mkdir fails.
61575
61576 2001-01-14  Jim Meyering  <meyering@lucent.com>
61577
61578         * lib/rename.c: New file.  From Volker Borchert.
61579         Include stdlib.h, string.h or strings.h, and xalloc.h.
61580         Use strip_trailing_slashes rather than open-coding it.
61581
61582 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61583
61584         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61585
61586 2001-01-03  Jim Meyering  <meyering@lucent.com>
61587
61588         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61589         of local `inptr' to avoid warning with some system declarations of
61590         iconv.
61591
61592 2001-01-02  Volker Borchert  <bt@teknon.de>
61593
61594         * m4/rename.m4: New file.
61595         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61596
61597 2001-01-01  Jim Meyering  <meyering@lucent.com>
61598
61599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61600         even on systems with utmpx.h.  It's necessary for the declaration of
61601         utmp's ut_user member.  Reported by Andreas Jaeger.
61602
61603         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61604         available. They are required for the declarations of getgrgid and
61605         getpwuid resp.
61606         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61607         Reported by Andreas Jaeger.
61608
61609 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61610
61611         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61612         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61613         so `make install' also works in VPATH builds.
61614
61615 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61616
61617         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61618         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61619         can be used in subdirectories.
61620
61621 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61622
61623         * lib/modechange.c: Do not assume that mode_t uses the
61624         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61625         the other-execute bit of FOO even if S_IXOTH != 1.
61626
61627         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61628         WOTH, XOTH, ALLM): New macros.
61629         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61630          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61631         Use them.
61632         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61633         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61634         (mode_compile):
61635         No need to use uintmax_t; unsigned long is long enough.
61636         Don't bother to get suffix since we don't use it.
61637
61638 2000-12-26  Jim Meyering  <meyering@lucent.com>
61639
61640         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61641         better with autoheader.
61642
61643 2000-12-24  Jim Meyering  <meyering@lucent.com>
61644
61645         * lib/hash.c (is_prime): Return explicit boolean values.
61646         (hash_get_first): Return NULL to appease Irix5.6's 89.
61647         Reported by Nelson Beebe.
61648
61649 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61650
61651         * lib/localcharset.c (locale_charset): Add support for Win32.
61652
61653 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61654
61655         * lib/physmem.h, lib/physmem.c: New files.
61656
61657         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61658         (noinst_HEADERS): Add physmem.h.
61659
61660         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61661         't' for compatibility with Solaris 8 sort.
61662
61663 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61664
61665         * lib/config.charset: Add support for BeOS.
61666
61667 2000-12-17  Jim Meyering  <meyering@lucent.com>
61668
61669         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61670         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61671
61672 2000-12-16  Jim Meyering  <meyering@lucent.com>
61673
61674         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61675         N and M) would have treated it like `chown N:N FILE'.
61676
61677         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61678
61679 2000-12-16  Jim Meyering  <meyering@lucent.com>
61680
61681         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61682         SHELLS_FILE to a file name that's useful on djgpp systems.
61683         Include stdlib.h.
61684         (ADDITIONAL_DEFAULT_SHELLS): Define.
61685         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61686         Based mostly on a patch from Prashant TR.
61687
61688 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61689
61690         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61691         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61692         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61693
61694 2000-12-08  Andreas Schwab  <schwab@suse.de>
61695
61696         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61697         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61698
61699 2000-12-07  Jim Meyering  <meyering@lucent.com>
61700
61701         * lib/stripslash.c (ISSLASH): Define.
61702         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61703         `/'.
61704         From Prashant TR.
61705
61706         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61707         (dir_name_r): Declare this function as static.
61708         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61709         manifest itself on a name containing a mix of slashes and
61710         backslashes.
61711         Make this function work with names starting with a DOS-style
61712         drive letter and colon prefix.
61713         (dir_name): Append `.' if necessary.
61714         Based mostly on patches from Prashant TR and Eli Zaretskii.
61715
61716         * lib/dirname.h (dir_name_r): Remove prototype.
61717
61718 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61719
61720         * m4/off_t-format.m4: Remove this file.
61721         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61722
61723 2000-12-06  Jim Meyering  <meyering@lucent.com>
61724
61725         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61726         replacement strtoull, we may well need the replacement strtoul, too.
61727         Check for declarations of strtoul and strtoull.
61728         Check for strtol.  Mainly as a cue to cause automake to include
61729         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61730         Check for limits.h -- strtol.c needs it.
61731
61732 2000-12-05  Jim Meyering  <meyering@lucent.com>
61733
61734         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61735
61736 2000-12-04  Jim Meyering  <meyering@lucent.com>
61737
61738         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61739         Also include memory.h, stdlib.h, unistd.h if appropriate.
61740         Reported by Andreas Jaeger (conflicting declaration of malloc).
61741
61742 2000-12-02  Jim Meyering  <meyering@lucent.com>
61743
61744         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61745         * m4/jm-macros.m4 (jm_MACROS): require it.
61746
61747 2000-12-02  Jim Meyering  <meyering@lucent.com>
61748
61749         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61750
61751 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61752
61753         * lib/memrchr.c: Include <config.h> before any system include file.
61754
61755 2000-11-30  Jim Meyering  <meyering@lucent.com>
61756
61757         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61758
61759 2000-11-30  Jim Meyering  <meyering@lucent.com>
61760
61761         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61762
61763 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61764
61765         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61766
61767 2000-11-26  Jim Meyering  <meyering@lucent.com>
61768
61769         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61770
61771 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61772
61773         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61774         size of (size_t) -1; it's not portable.
61775
61776 2000-11-17  Jim Meyering  <meyering@lucent.com>
61777
61778         * lib/strstr.c: Update from GNU libc.
61779
61780 2000-11-17  Akim Demaille  <akim@epita.fr>
61781
61782         * lib/obstack.h: Formatting changes.
61783         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61784         prevent type checking.
61785         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61786         cast the value to (void *): assigning a `foo *' to a `void *'
61787         variable is valid.
61788         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61789
61790 2000-11-16  Jim Meyering  <meyering@lucent.com>
61791
61792         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61793
61794 2000-11-11  Jim Meyering  <meyering@lucent.com>
61795
61796         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61797
61798 2000-11-10  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/obstack.h: Update from GNU libc.
61801         * lib/obstack.c: Likewise.
61802
61803 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61804
61805         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61806
61807 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61808
61809         * lib/getusershell.c (setusershell): Use rewind rather than
61810         fseek/fseeko, to avoid configuration hassles with fseeko.
61811         Don't bother opening SHELLS_FILE if shellstream is NULL;
61812         it's not necessary.
61813
61814 2000-11-05  Jim Meyering  <meyering@lucent.com>
61815
61816         * lib/makepath.h (make_dir): Declare.
61817         * lib/makepath.c (make_dir): Remove `static' attribute.
61818         Tweak a comment.
61819
61820 2000-11-04  Jim Meyering  <meyering@lucent.com>
61821
61822         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61823
61824 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61825
61826         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61827         last one in a bucket, advance to the next bucket.
61828
61829 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61830
61831         * lib/fnmatch.c: Do not comment out all the code if we are using
61832         the GNU C library, because in some cases we are replacing buggy
61833         code in the GNU C library itself.
61834
61835 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61836
61837         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61838         (regex_compile): Catch bogus \(\1\).
61839
61840 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61841
61842         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61843         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61844         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61845
61846 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61847
61848         * lib/error.h, getline.h, modechange.h:
61849         Remove "2000" from Copyright line, as the file hasn't been
61850         changed this year other than in the copyright notice.
61851
61852         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61853         was changed this year.
61854
61855 2000-10-29  Jim Meyering  <meyering@lucent.com>
61856
61857         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61858         renaming.
61859         * m4/ls-mntd-fs.m4: Likewise
61860
61861 2000-10-29  Jim Meyering  <meyering@lucent.com>
61862
61863         * lib/xstat.in: Fix grammar in comment.
61864
61865 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61866
61867         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61868         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61869         doesn't define __restrict_arr.
61870
61871 2000-10-28  Jim Meyering  <meyering@lucent.com>
61872
61873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61874         (jm_PREREQ_MEMCHR): New function.
61875
61876 2000-10-28  Jim Meyering  <meyering@lucent.com>
61877
61878         * lib/memchr.c: Update from libc.
61879         Adjust for portability:
61880         [HAVE_STDLIB_H]: Include stdlib.h.
61881         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61882         Undef __memchr, too.
61883         [!weak_alias]: Define __memchr to memchr.
61884
61885         * lib/regex.c: Update from libc.
61886         * lib/regex.h: Likewise.
61887         * lib/getopt1.c: Likewise.
61888         * lib/memcmp.c: Likewise.
61889
61890         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61891         Avoid using fseek, when possible -- it's broken by design.
61892         Patch by Ulrich Drepper.
61893
61894 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61895
61896         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61897         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61898         Giving in to popular pressure to shut up the compiler with casts.
61899
61900 2000-10-26  Jim Meyering  <meyering@lucent.com>
61901
61902         * lib/strftime.c: Update from libc.
61903
61904 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61905
61906         * regex.c: More `unsigned char' -> `re_char' changes.
61907         Also change several `int' into `re_wchar_t'.
61908         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61909         (PUSH_FAILURE_POINTER): Don't cast any more.
61910         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61911         We want GCC to complain, since this piece of code makes
61912         re_match non-reentrant, which *should* be fixed.
61913         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61914         (EXTEND_BUFFER): Use RETALLOC.
61915         (SET_LIST_BIT): Don't cast.
61916         (re_wchar_t): New type.
61917         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61918         that those two functions will always properly return.
61919         (IMMEDIATE_QUIT_CHECK): Cast to void.
61920         (analyse_first): Use recursion rather than an explicit stack.
61921         (re_compile_fastmap): Can't fail anymore.
61922         (re_search_2): Don't check re_compile_fastmap for failure.
61923         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61924         Now also sets the new value (passed in a new argument).
61925         (re_match_2_internal): Use it.
61926         Also, use a new var `reg' of type size_t when looping through regs
61927         rather than reuse the inappropriate `mcnt'.
61928
61929 2000-10-25  Jim Meyering  <meyering@lucent.com>
61930
61931         * lib/obstack.c: Update from libc.
61932
61933 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61934
61935         * regex.c (regex_compile): Change the way of handling a range from
61936         a char less than 256 to a char not less than 256.
61937
61938 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61939
61940         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61941         NT-Emacs only.
61942         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61943         so that re_search functions only quit when callers expect them to.
61944
61945 2000-10-23  Jim Meyering  <meyering@lucent.com>
61946
61947         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61948         wrong.  That set_locale call must not have any side effects.
61949         From Paul Eggert.
61950
61951 2000-10-22  Jim Meyering  <meyering@lucent.com>
61952
61953         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61954         [CYCLIC]: Remove now-unused definition.
61955
61956         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61957         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61958         Suggestion from Ulrich Drepper.
61959
61960 2000-10-21  Jim Meyering  <meyering@lucent.com>
61961
61962         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61963         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61965
61966 2000-10-21  Jim Meyering  <meyering@lucent.com>
61967
61968         * lib/dirname.c (memrchr): Declare if necessary.
61969         (dir_name): Remove the restriction that there be no
61970         trailing slashes.  Now, this code skips past them, effectively
61971         ignoring them.
61972         [TEST_DIRNAME] (main): New unit tests.
61973
61974         * lib/memrchr.c: New file from GNU libc.
61975         Undef __memrchr, too.
61976         [!weak_alias]: Define __memrchr to memrchr.
61977         Guard weak_alias use with `#ifdef weak_alias'.
61978
61979 2000-10-21  Jim Meyering  <meyering@lucent.com>
61980
61981         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61982         (dir_name): Use dir_name_r.
61983         * lib/dirname.h (dir_name_r): Declare it.
61984
61985 2000-10-17  Jim Meyering  <meyering@lucent.com>
61986
61987         * lib/quote.h (PARAMS): Define and use.
61988         Reported by Akim Demaille.
61989
61990         * lib/getopt.c: Update from libc.
61991
61992 2000-10-16  Jim Meyering  <meyering@lucent.com>
61993
61994         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61995         setlocale.
61996         From Jan Fedak.
61997
61998 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61999
62000         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62001
62002 2000-09-25  Jim Meyering  <meyering@lucent.com>
62003
62004         * lib/md5.h (rol): Define (from GnuPG).
62005
62006         * lib/sha.c: Give credit (GnuPG) where due.
62007         (M): Use rol rather than open-coding it.
62008         Add a FIXME comment.
62009
62010 2000-09-21  Jim Meyering  <meyering@lucent.com>
62011
62012         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62013         Reported by Michael Stone.
62014
62015 2000-09-20  Jim Meyering  <meyering@lucent.com>
62016
62017         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62018         (noinst_HEADERS): Add sha.h.
62019         Based on code from Scott G. Miller and from GnuPG.
62020
62021 2000-09-18  Jim Meyering  <meyering@lucent.com>
62022
62023         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62024         LIBS. Otherwise, everyone ends up linking with -lelf for some
62025         configurations.
62026         Reported by Mike Stone.
62027
62028 2000-09-15  Jim Meyering  <meyering@lucent.com>
62029
62030         * lib/regex.c: Update from libc.
62031
62032 2000-09-10  Jim Meyering  <meyering@lucent.com>
62033
62034         * lib/getopt.c (_getopt_internal): Update from glibc.
62035
62036 2000-09-09  Jim Meyering  <meyering@lucent.com>
62037
62038         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62039         think it should be used as a general replacement for isascii.
62040         * lib/fnmatch.c: Likewise.
62041         * lib/mbswidth.c: Likewise
62042         * lib/regex.c: Likewise.
62043
62044         Don't use atoi.
62045         * lib/userspec.c: Include sys/param.h and limits.h.
62046         Include xstrtol.h.
62047         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62048         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62049         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62050         UID, GID.  Check range.
62051
62052 2000-09-06  Jim Meyering  <meyering@lucent.com>
62053
62054         * lib/getopt.c (_getopt_internal): Update from glibc.
62055
62056 2000-08-30  Jim Meyering  <meyering@lucent.com>
62057
62058         * lib/strftime.c: Merge in changes from GNU libc.
62059
62060 2000-08-26  Jim Meyering  <meyering@lucent.com>
62061
62062         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62063         * m4/fpending.m4: New file.
62064
62065 2000-08-26  Jim Meyering  <meyering@lucent.com>
62066
62067         * lib/closeout.c: Include "__fpending.h".
62068         (close_stdout_status): Return right away if there's nothing to flush.
62069
62070         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62071         * lib/__fpending.c: New file.
62072         * lib/__fpending.h: New file.
62073
62074 2000-08-20  Jim Meyering  <meyering@lucent.com>
62075
62076         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62077         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62078         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62079
62080 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62081
62082         Improve fileutils installation on systems where running
62083         programs (like install) can't be unlinked.
62084         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62085         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62086
62087 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62088
62089         Standardize on "memory exhausted" instead of "Memory exhausted"
62090         or "virtual memory exhausted".
62091         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62092         "virtual memory exhausted".
62093         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62094         our own message.
62095         * lib/userspec.c (parse_user_spec): Likewise.
62096         * lib/bumpalloc.h: comment fix
62097         * lib/same.c, userspec.c: Include xalloc.h.
62098
62099         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62100         not char *const and pointing to a constant array.
62101         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62102         (xrealloc): Comment fix.
62103
62104         * lib/userspec.c (parse_user_spec):
62105         Don't translate a message until just before returning,
62106         to avoid unnecessary translation.
62107
62108 2000-08-07  Jim Meyering  <meyering@lucent.com>
62109
62110         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62111         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62112         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62113         getgroups.c, gethostname.c, getopt.h, group-member.c,
62114         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62115         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62116         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62117         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62118         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62119         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62120         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62121         yesno.c: Back out Copyright date changes for each file with no change
62122         this year.  This eases coordination with other programs using the same
62123         source code modules.  From Paul Eggert.
62124
62125 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62126
62127         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62128         not char, for compatibility with glibc 2.1.3 strftime.c.
62129
62130 2000-08-03  Greg McGary  <greg@mcgary.org>
62131
62132         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62133         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62134         (EXTEND_BUFFER): Use them.
62135
62136 2000-08-01  Jim Meyering  <meyering@lucent.com>
62137
62138         * lib/dirname.c (ISSLASH): Define.
62139         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62140         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62141         both `\' and `/' may be use as path separators.
62142         Based on a patch from Prashant TR.
62143
62144 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62145
62146         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62147         slot vector a constant, since it might get modified.
62148
62149 2000-07-31  Jim Meyering  <meyering@lucent.com>
62150
62151         * lib/xmalloc.c: Use `virtual memory exhausted', not
62152         `Memory exhausted'.
62153         * lib/obstack.c (print_and_abort): Likewise.
62154
62155 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62156
62157         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62158         buffer, so that the caller can always quote one small
62159         component of a "memory exhausted" message in slot 0.
62160         From a suggestion by Jim Meyering.
62161
62162 2000-07-30  Jim Meyering  <meyering@lucent.com>
62163
62164         * lib/makepath.c (make_path): Quote the other instance, too.
62165
62166         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62167         (STATIC_BUF_SIZE): Define.
62168         (quotearg_n_options): Use only statically allocated storage when
62169         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62170         than STATIC_BUF_SIZE.
62171
62172 2000-07-29  Jim Meyering  <meyering@lucent.com>
62173
62174         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62175         * lib/dirname.c (dir_name): Likewise.
62176
62177         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62178         `/'.
62179
62180         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62181         (dir_name): Assert that there are no trailing slashes.
62182
62183 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62184
62185         * lib/mbswidth.h (mbswidth): Add a flags argument.
62186         (mbswidth): New declaration.
62187         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62188         * lib/mbswidth.c (mbswidth): Add a flags argument.
62189         (mbsnwidth): New function.
62190
62191 2000-07-24  Jim Meyering  <meyering@lucent.com>
62192
62193         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62194
62195 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62196
62197         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62198
62199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62200
62201         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62202         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62203         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62204         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62205         invoke multibyte primitives.
62206
62207 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62208
62209         * lib/quotearg.c:
62210         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62211         so that mbstate_t is always defined.
62212
62213         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62214         be 1 in at least one GCC installation, and this configuration
62215         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62216         performance on hosts that have mbrtowc but have only unibyte
62217         locales, but I assume these hosts are rare.
62218
62219 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62220
62221         * lib/mbswidth.c (_XOPEN_SOURCE):
62222         Don't define; this causes problems on Solaris 7.
62223         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62224
62225 2000-07-23  Jim Meyering  <meyering@lucent.com>
62226
62227         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62228         too: getgrgid, getpwuid, getuid.
62229
62230 2000-07-23  Jim Meyering  <meyering@lucent.com>
62231
62232         * lib/basename.c (base_name): Add an assertion.
62233
62234 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62235
62236         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62237         shadow its mbsinit function.
62238
62239 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62240
62241         * lib/mbswidth.h: New file.
62242         * lib/mbswidth.c: New file.
62243         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62244         (noinst_HEADERS): Add mbswidth.h.
62245
62246 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62247
62248         * lib/config.charset: Add support for FreeBSD. Improve support for
62249         HP-UX and IRIX 6.
62250
62251 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62252
62253         * m4/mbswidth.m4: New file.
62254         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62255
62256 2000-07-15  Jim Meyering  <meyering@lucent.com>
62257
62258         * lib/makepath.c: Include quote.h.
62259         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62260         corresponding argument in a `quote (...)' call.
62261         Give better diagnostics.
62262
62263         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62264         (noinst_HEADERS): Add quote.h.
62265
62266         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62267         from tar's src/misc.c.
62268         * lib/quote.h: New file.  Prototypes for same.
62269
62270 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62271
62272         From a suggestion by Bruno Haible.
62273         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62274         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62275         to decide whether to define the BeOS workaround macro;
62276         this adjusts to the change to AC_MBSTATE_T.
62277
62278 2000-07-14  Jim Meyering  <meyering@lucent.com>
62279
62280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62281         jm_AC_TYPE_UINTMAX_T.
62282
62283 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62284
62285         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62286
62287         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62288         quotearg_buffer_restyled): Add support for
62289         clocale_quoting_style.  Undo previous change to
62290         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62291         and "{RIGHT QUOTATION MARK}" msgids.
62292
62293 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62294
62295         From a suggestion by Bruno Haible.
62296         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62297         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62298         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62299         and mbstate_t, to a single-part test that simply defines mbstate_t.
62300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62301         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62302
62303 2000-07-10  Jim Meyering  <meyering@lucent.com>
62304
62305         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62306
62307         * m4/gnu-source.m4: Output to confdefs.h directly.
62308         Suggestion from Akim Demaille.
62309
62310 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62311
62312         The old behavior of quoting `like this' doesn't look good with
62313         newer, ISO-style fonts.  See:
62314         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62315
62316         Instead, quote "like this" by default.  Let the translator
62317         tailor the locale-specific quoting behavior by providing
62318         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62319
62320         * lib/quotearg.c (N_): New macro.
62321         (gettext_default): New function.
62322         (quotearg_buffer_restyled): Use
62323         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62324         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62325
62326 2000-07-09  Jim Meyering  <meyering@lucent.com>
62327
62328         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62329         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62330
62331         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62333
62334 2000-07-09  Jim Meyering  <meyering@lucent.com>
62335
62336         * lib/Most files: Update copyright dates to include 2000.
62337
62338 2000-07-08  Jim Meyering  <meyering@lucent.com>
62339
62340         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62341         if not defined.
62342         (xgethostname): Remove now-unnecessary #ifdef.
62343         Move declaration of `err' into loop where it's used.
62344
62345 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62346         and Bruno Haible  <haible@clisp.cons.org>
62347
62348         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62349         only if the test for an object-type mbstate_t fails.  This
62350         prevents us from mistakenly reporting that mbstate_t is a
62351         system object type after we "#define mbstate_t int" to work
62352         around its lack.
62353
62354 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62355         and Bruno Haible  <haible@clisp.cons.org>
62356
62357         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62358
62359 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62360
62361         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62362         to strerror_r.
62363         Include <ctype.h> for use of isalpha.
62364
62365 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62366
62367         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62368         by allocating a larger buffer. Test the gethostname return value for
62369         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62370         returns an error and ENAMETOOLONG isn't defined.
62371
62372 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62373
62374         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62375         dimension.
62376
62377 2000-07-04  Jim Meyering  <meyering@lucent.com>
62378
62379         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62380         of the deprecated AC_CHECKING.
62381
62382 2000-07-04  Jim Meyering  <meyering@lucent.com>
62383
62384         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62385         Reported by Bruno Haible.
62386
62387 2000-07-04  Jim Meyering  <meyering@lucent.com>
62388
62389         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62390         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62391         lacks mbrtowc.
62392
62393 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62394
62395         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62396         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62397
62398 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62399         and Bruno Haible  <haible@clisp.cons.org>
62400
62401         * lib/quotearg.c (mbrtowc):
62402         Assign to *pwc, and return 1 only if result is nonzero.
62403         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62404
62405 2000-07-03  Jim Meyering  <meyering@lucent.com>
62406
62407         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62408
62409 2000-07-03  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62412         This is necessary to get a definition of e.g., UTMP_FILE on
62413         HP-UX 10.20.
62414         From Bob Proulx.
62415
62416 2000-07-02  Jim Meyering  <meyering@lucent.com>
62417
62418         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62419
62420         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62421         AC_LIBOBJ(function_name).
62422         * m4/chown.m4: Likewise.
62423         * m4/fnmatch.m4: Likewise.
62424         * m4/ftruncate.m4: Likewise.
62425         * m4/getgroups.m4: Likewise.
62426         * m4/getline.m4: Likewise.
62427         * m4/group-member.m4: Likewise.
62428         * m4/jm-macros.m4: Likewise.
62429         * m4/lstat.m4: Likewise.
62430         * m4/malloc.m4: Likewise.
62431         * m4/memcmp.m4: Likewise.
62432         * m4/nanosleep.m4: Likewise.
62433         * m4/putenv.m4: Likewise.
62434         * m4/realloc.m4: Likewise.
62435         * m4/regex.m4: Likewise.
62436         * m4/stat.m4: Likewise.
62437         * m4/strftime.m4: Likewise.
62438
62439 2000-07-02  Jim Meyering  <meyering@lucent.com>
62440
62441         * lib/quotearg.c (mbstate_t): Don't define here.
62442
62443 2000-07-02  Jim Meyering  <meyering@lucent.com>
62444
62445         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62446
62447 2000-07-01  Jim Meyering  <meyering@lucent.com>
62448
62449         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62450
62451 2000-07-01  Jim Meyering  <meyering@lucent.com>
62452
62453         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62454         problem.
62455
62456 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62457
62458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62459         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62460
62461 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62462
62463         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62464         per change in ../m4/ls-mntd-fs.m4.
62465         (read_filesystem_list): Ignore symbolic links.
62466
62467 2000-06-29  Jim Meyering  <meyering@lucent.com>
62468
62469         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62470         for declaration of strcmp.
62471
62472         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62473
62474         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62475         Avoid warning by casting result to `char *' to remove `const'.
62476
62477 2000-06-28  Jim Meyering  <meyering@lucent.com>
62478
62479         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62480         included by quotearg.c, for which we perform this test.  From
62481         Bruno Haible.
62482
62483 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62484
62485         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62486         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62487         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62488
62489 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62490
62491         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62492
62493 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62494
62495         savedir now sets errno on failure and invokes xmalloc to get memory.
62496         Fix a couple of other minor bugs while we're at it.
62497
62498         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62499         (NAMLEN): Remove macro.
62500         (malloc, realloc): Remove decls.
62501         (stpcpy): Likewise.
62502         ("xalloc.h"): Include.
62503         (NAME_SIZE_DEFAULT): New macro.
62504         (savedir): Use xmalloc / xrealloc to allocate memory.
62505         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62506         Skip "" directory entries.
62507         Use strlen to calculate directory entry length, since the old method
62508         is rarely used these days and isn't worth supporting.
62509         Don't use a pointer after freeing it.
62510         Check for integer overflow when calculating allocation size.
62511         Use memcpy to copy entries, instead of stpcpy.
62512         Set errno properly when returning NULL.
62513         Check for readdir error.
62514
62515 2000-06-26  Jim Meyering  <meyering@lucent.com>
62516
62517         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62518
62519 2000-06-25  Jim Meyering  <meyering@lucent.com>
62520
62521         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62522         Linux header bug when _XOPEN_SOURCE is defined to 500.
62523
62524 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62525
62526         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62527         deficiency.
62528
62529 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62530
62531         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62532         Include xalloc.h.
62533         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62534
62535 2000-06-24  Jim Meyering  <meyering@lucent.com>
62536
62537         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62538         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62539         for which strerror does return char*, but which lacks a conveniently
62540         accessible declaration of the function.  If the compile-test says
62541         strerror_r doesn't work, then resort to a `run'-test that works on
62542         BeOS and segfaults on DEC Unix.
62543
62544 2000-06-24  Jim Meyering  <meyering@lucent.com>
62545
62546         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62547
62548 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62549
62550         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62552
62553 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62554
62555         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62556         (mbrtowc, mbstate_t): Define substitutes if
62557         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62558         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62559         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62560
62561 2000-06-23  Jim Meyering  <meyering@lucent.com>
62562
62563         * m4/afs.m4: Add missing AC_MSG_RESULT.
62564         Reported by Bruno Haible.
62565
62566         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62567         Suggestion from Bruno Haible.
62568
62569 2000-06-23  Jim Meyering  <meyering@lucent.com>
62570
62571         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62572
62573 2000-06-21  Jim Meyering  <meyering@lucent.com>
62574
62575         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62576
62577 2000-06-21  Jim Meyering  <meyering@lucent.com>
62578
62579         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62580         (noinst_HEADERS): Add getstr.h.
62581
62582         * lib/getline.c (getstr): Move into a separate file.
62583         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62584         the following changes: new parameter, delim2; both delim[12]
62585         parameters have type `int', not `char'.  The latter would lose
62586         with 8-bit delimiters.
62587         * lib/getstr.h: New file.
62588
62589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62590
62591         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62592         than 1024, return a memory chunk of least possible size, instead
62593         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62594         Use free/xmalloc instead of xrealloc to avoid copying for very long
62595         paths.
62596
62597 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62598
62599         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62600         the empty string.
62601
62602 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62603
62604         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62605         address, not strdup.  Include <stdlib.h> and don't declare free().
62606
62607 2000-06-19  Jim Meyering  <meyering@lucent.com>
62608
62609         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62610
62611 2000-06-18  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62614
62615         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62616         `checking whether...' message to be consistent with that of the
62617         lstat test.
62618
62619 2000-06-18  Jim Meyering  <meyering@lucent.com>
62620
62621         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62622         Besides, these days every porting target provides a mkdir function.
62623
62624         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62625         needed. (this snippet comes from src/system.h).
62626
62627 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62628
62629         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62630
62631 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62632
62633         * lib/human.c (adjust_value): New function.
62634         (human_readable_inexact): Apply rounding style even when
62635         printing approximate values.
62636
62637 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62638
62639         * lib/human.c (human_readable_inexact): Allow an input block
62640         size that is not a multiple of the output block size, and vice versa.
62641         Reported by Piergiorgio Sartor.
62642
62643 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62644
62645         * lib/getdate.y (get_date): Apply relative times after time
62646         zone indicator, not before.  Reported by Todd A. Jacobs.
62647
62648 2000-06-13  Jim Meyering  <meyering@lucent.com>
62649
62650         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62651
62652         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62653
62654 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62655
62656         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62657
62658 2000-06-12  Jim Meyering  <meyering@lucent.com>
62659
62660         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62661         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62662         optional argument.
62663         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62664         the optional argument, `lib'.
62665
62666 2000-06-08  Jim Meyering  <meyering@lucent.com>
62667
62668         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62669
62670 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62671
62672         Rewrite largefile configuration so that we don't need to run
62673         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62674         AC_CANONICAL_HOST in configure.in -- jmm]
62675
62676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62677         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62678         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62679         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62680         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62681         All uses changed.
62682         Instead of inspecting the output of getconf, try to compile the
62683         test program without and with the macro definition.
62684         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62685         for getconf.  Instead, check for the needed flags by compiling
62686         test programs.
62687
62688 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62689
62690         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62691
62692 2000-06-04  Jim Meyering  <meyering@lucent.com>
62693
62694         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62695         SunOS 4.1.4 for which gid_t is an unsigned type.
62696
62697 2000-06-03  Jim Meyering  <meyering@lucent.com>
62698
62699         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62700         now that autoconf requires that.
62701
62702         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62703         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62704         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62705
62706 2000-06-03  Jim Meyering  <meyering@lucent.com>
62707
62708         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62709
62710 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62711
62712         * m4/glibc21.m4: New file.
62713         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62714
62715 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62716
62717         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62718         newer, don't install charset.alias.
62719         * lib/config.charset: Change the Linux/glibc rules so they become empty
62720         on glibc-2.1 or newer.
62721
62722 2000-06-02  Jim Meyering  <meyering@lucent.com>
62723
62724         * lib/mountlist.c: Back out last change.  Instead, do this...
62725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62726         me_dummy member using the same `ignore'-testing code.
62727         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62728         fs_type strings.
62729         From Mark D. Roth.
62730
62731 2000-05-29  Jim Meyering  <meyering@lucent.com>
62732
62733         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62734         mounts with the `ignore' attribute.  Based on a patch from
62735         Mark D. Roth.
62736
62737 2000-05-28  Jim Meyering  <meyering@lucent.com>
62738
62739         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62740         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62741         * m4/stat.m4: Likewise.
62742         * m4/lstat.m4: Likewise.
62743         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62744
62745         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62746         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62747
62748 2000-05-26  Jim Meyering  <meyering@lucent.com>
62749
62750         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62751
62752 2000-05-24  Jim Meyering  <meyering@lucent.com>
62753
62754         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62755         autoconf requires that.
62756         * m4/lib-check.m4: Likewise.
62757         * m4/jm-macros.m4: Likewise.
62758         * m4/strftime.m4: Likewise.
62759
62760         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62761         AC_CHECK_DECLS, now that autoconf requires that.
62762
62763 2000-05-22  Jim Meyering  <meyering@lucent.com>
62764
62765         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62766         * m4/lstat.m4: Likewise.
62767
62768 2000-05-22  Jim Meyering  <meyering@lucent.com>
62769
62770         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62771
62772 2000-05-20  Jim Meyering  <meyering@lucent.com>
62773
62774         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62775         (jm_PREREQ): Use it.
62776
62777 2000-05-18  Jim Meyering  <meyering@lucent.com>
62778
62779         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62780         back, too, since it may have been modified by allocate_entry.
62781         (hash_delete): Rewrite to use neither the assignment operator
62782         nor the comma operator in an if-expression.
62783
62784 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62785
62786         * lib/closeout.c:
62787         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62788         Remove; no longer needed.
62789         "quotearg.h": Add include.
62790         (file_name): Do not bother to explicitly initialize to NULL; it's less
62791         efficient on some hosts.
62792         (close_stdout_status): Remove test as to whether stdout was already
62793         closed; it breaks for the case "echo x | sort >&-".
62794         Quote file name colons.
62795         Do not assume that _("write error") lacks format strings.
62796
62797 2000-05-15  Jim Meyering  <meyering@lucent.com>
62798
62799         * lib/version-etc.c (version_etc_copyright): Update the copyright
62800         string used in all --version output.
62801
62802 2000-05-14  Jim Meyering  <meyering@lucent.com>
62803
62804         * lib/closeout.c (close_stdout_set_file_name): New function.
62805         (close_stdout_status): Use new file-scoped global.
62806         Return right away if fstat says the stdout file descriptor is invalid.
62807         * lib/closeout.h (close_stdout_set_file_name): Declare.
62808
62809 2000-05-10  Jim Meyering  <meyering@lucent.com>
62810
62811         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62812         (close_stdout_set_status): New function.
62813         * lib/closeout.h (close_stdout_set_status): Declare.
62814
62815 2000-05-09  Jim Meyering  <meyering@lucent.com>
62816
62817         * m4/gettext.m4: Rename this...
62818         * m4/libintl.m4: ...to this.
62819
62820 2000-05-08  Jim Meyering  <meyering@lucent.com>
62821
62822         * lib/long-options.c: Don't include closeout.h.
62823         (parse_long_options): Don't call close_stdout for --version.
62824
62825 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62826
62827         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62828         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62829         2.1.3 bug.  This avoids a clash when files like regex.c define
62830         _GNU_SOURCE.
62831
62832 2000-05-06  Jim Meyering  <meyering@lucent.com>
62833
62834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62835         (AC_REPLACE_FUNCS): Add strnlen.
62836
62837         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62838         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62839
62840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62841         AC_SEARCH_LIBS call for nanosleep.
62842         (LIB_NANOSLEEP): Set and AC_SUBST.
62843
62844 2000-05-06  Jim Meyering  <meyering@lucent.com>
62845
62846         * lib/strnlen.c: Undefine __strnlen and strnlen.
62847         [!weak_alias]: Define __strnlen to strnlen.
62848
62849         * lib/atexit.c: New file, from libiberty.
62850
62851 2000-05-06  Jim Meyering  <meyering@lucent.com>
62852
62853         * lib/closeout.c (close_stdout_status): Also check for errors on the
62854         stderr stream.
62855
62856 2000-05-05  Jim Meyering  <meyering@lucent.com>
62857
62858         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62859         AC_SEARCH_LIBS call for clock_gettime.
62860         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62861
62862         * m4/search-libs.m4: Update from autoconf.
62863
62864         su doesn't work on Solaris 2.6.
62865         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62866         <shadow.h>.  Reported by Dragos Harabor.
62867
62868 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62869
62870         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62871         memcpy instead of xmalloc, xrealloc, path_concat.
62872         (locale_charset): Treat empty environment variables as absent.
62873         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62874
62875 2000-05-04  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/getopt.c: Update from glibc.
62878         * lib/obstack.c: Likewise.
62879         * lib/obstack.h: Likewise.
62880         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62881         file
62882
62883         * lib/regex.h: Likewise.
62884         * lib/strndup.c: Likewise.
62885         * lib/strnlen.c: New file, from glibc.
62886
62887 2000-05-03  Jim Meyering  <meyering@lucent.com>
62888
62889         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62890
62891 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62892
62893         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62894         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62895         compile-time test, rather than inspecting host and OS, to
62896         decide whether to define _LARGEFILE_SOURCE.
62897
62898 2000-05-01  Jim Meyering  <meyering@lucent.com>
62899
62900         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62901
62902         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62903         Based on a patch from Bruno Haible.
62904
62905 2000-05-01  Jim Meyering  <meyering@lucent.com>
62906
62907         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62908
62909 2000-04-29  Jim Meyering  <meyering@lucent.com>
62910
62911         * lib/path-concat.c: Declare strdup only if it's not defined.
62912         * lib/canon-host.c: Likewise.
62913
62914 2000-04-28  Jim Meyering  <meyering@lucent.com>
62915
62916         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62917         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62918         is included first, then limits.h is included by locale.h by libintl.h.
62919         From John David Anglin.
62920
62921 2000-04-25  Jim Meyering  <meyering@lucent.com>
62922
62923         * lib/makepath.c (S_IRWXUGO): Define.
62924         (make_path): Always perform explicit chmod if MODE specifies any
62925         of the `special' permission bits.  Prompted by a bug report against
62926         install from Mate Wierdl and Joost van Baal.
62927
62928 2000-04-18  Jim Meyering  <meyering@lucent.com>
62929
62930         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62931         (jm_PREREQ): Use it.
62932
62933 2000-04-18  Jim Meyering  <meyering@lucent.com>
62934
62935         * lib/README: New file.
62936
62937         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62938         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62939
62940 2000-04-17  Jim Meyering  <meyering@lucent.com>
62941
62942         Get it right :-)
62943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62944         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62945         Suggestion from Akim Demaille.
62946
62947 2000-04-17  Jim Meyering  <meyering@lucent.com>
62948
62949         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62950         the definition of it to rpl_strftime also defined-away the system's
62951         declaration.
62952
62953 2000-04-15  Jim Meyering  <meyering@lucent.com>
62954
62955         Use `C' to denote so-called `contiguous' files, the same way
62956         that tar does.
62957         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62958         (ftypelet): Use S_ISCTG.
62959         From Michael Deutschmann.
62960
62961 2000-04-14  Jim Meyering  <meyering@lucent.com>
62962
62963         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62964         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62965         clobbered.
62966
62967 2000-04-14  Jim Meyering  <meyering@lucent.com>
62968
62969         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62970
62971 2000-04-13  Jim Meyering  <meyering@lucent.com>
62972
62973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62974         AH_VERBATIM to insert required #ifndef into config.h.in.
62975         Suggestion from Akim Demaille.
62976
62977 2000-04-12  Jim Meyering  <meyering@lucent.com>
62978
62979         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62980         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62981         Christian Krackowizer.
62982
62983         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62984         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62985         (AC_SYS_LARGEFILE): Require.
62986         (AM_C_PROTOTYPES): Require.
62987
62988 2000-04-08  Jim Meyering  <meyering@lucent.com>
62989
62990         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62991         names don't conflict.  Reported by Eli Zaretskii.
62992
62993 2000-04-07  Jim Meyering  <meyering@lucent.com>
62994
62995         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62996         sys/types.h, to work around system header problems on AIX 3.2.5.
62997         From Bruno Haible.
62998
62999 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63000
63001         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63002         bug.  Deal with the different error behavior of Irix iconv.
63003
63004 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63005
63006         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63007         IRIX if the installer said otherwise.
63008
63009 2000-04-05  Jim Meyering  <meyering@lucent.com>
63010
63011         Portability tweaks required for ultrix4.3.
63012         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63013         (jm_CHECK_DECLS): Add getutent to the list of functions.
63014         (_jm_DECL_HEADERS): Add utmpx.h.
63015         From John David Anglin.
63016
63017         * m4/strftime.m4: Back out the 2000-04-02 change.
63018         Instead of that change, simply undefine putenv in the test program.
63019
63020 2000-04-05  Jim Meyering  <meyering@lucent.com>
63021
63022         Portability tweaks required for ultrix4.3.
63023         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63024         getutent.
63025         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63026         * lib/canon-host.c: Declare strdup.
63027         * lib/path-concat.c: Likewise.
63028         From John David Anglin.
63029
63030 2000-04-04  Jim Meyering  <meyering@lucent.com>
63031
63032         Be more DOS 8.3-friendly.
63033         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63034         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63035         * lib/Makefile.am: Reflect renaming.
63036         Reported by Eli Zaretskii.
63037
63038         Use a temporary file name that won't clash with `charset.alias'
63039         in the DOS 8.3 name space.
63040         * lib/Makefile.am (charset_tmp): Define.
63041         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63042         (uninstall-local): Likewise.
63043         Reported by Eli Zaretskii.
63044
63045 2000-04-03  Jim Meyering  <meyering@lucent.com>
63046
63047         * m4/gettext.m4: Fix typo in comment.
63048
63049         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63050         textutils/configure.in).  Suggestion from Paul Eggert.
63051         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63052
63053 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63054
63055         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63056         variable in the shell rather than using putenv, which isn't
63057         portable.  This avoids the configure-time inter-test dependency
63058         on the potentially-renamed putenv function.
63059
63060 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63061
63062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63063         before checking struct stat.st_blksize, so that
63064         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63065
63066 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63067
63068         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63069         since strftime.c uses HAVE_STRFTIME to decide whether to use
63070         the underlying strftime.
63071
63072 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63073
63074         * lib/time/strftime.c (my_strftime): Make sure we call the system
63075         strftime, not ourselves, when invoking the underlying strftime.
63076
63077 2000-03-24  Jim Meyering  <meyering@lucent.com>
63078
63079         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63080         (charset_alias): Define.
63081         (install-exec-local): Factor out common code.
63082         (uninstall-local): Split lines longer than 80.
63083         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63084         (SUFFIXES): Define.
63085         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63086         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63087
63088 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63089
63090         * lib/config.charset: Output a line containing "Packages using this
63091         file".
63092         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63093         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63094         ref-del.sed): New rules.
63095
63096 2000-03-17  Jim Meyering  <meyering@lucent.com>
63097
63098         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63099         Otherwise, include <strings.h>
63100
63101 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63102
63103         * lib/unicodeio.c (utf8_wctomb): New function.
63104         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63105         format instead of in UCS-4 with platform dependent endianness.
63106
63107 2000-03-10  Jim Meyering  <meyering@lucent.com>
63108
63109         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63110         From Marco Franzen.
63111
63112 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63113
63114         * lib/savedir.c (savedir): Work even if directory size is
63115         negative; this can happen with some screwy NFS configurations.
63116
63117 2000-03-06  Jim Meyering  <meyering@lucent.com>
63118
63119         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63120         if it's NULL (because we ran out of memory).  From Bruno Haible.
63121
63122 2000-03-05  Jim Meyering  <meyering@lucent.com>
63123
63124         * lib/localcharset.c ("path-concat.h"): Include.
63125         (get_charset_aliases): Use path_concat instead of ANSI string
63126         concatenation.
63127
63128         * lib/unicodeio.h (PARAMS): Define.
63129         Use it to guard prototype.
63130
63131 2000-03-04  Jim Meyering  <meyering@lucent.com>
63132
63133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63134         for lib/localcharset.c.
63135
63136 2000-03-04  Jim Meyering  <meyering@lucent.com>
63137
63138         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63139         installing into it.
63140         (uninstall-local): Uncomment this rule so `make distcheck' works
63141         once again.
63142
63143         * lib/unicodeio.c (<errno.h>): Include it.
63144         (errno): Declare if not defined.
63145
63146         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63147
63148         * lib/config.charset: New version, incorporating remarks from a linux
63149         i18n mailing list.  From Bruno Haible.
63150
63151 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63152
63153         * m4/codeset.m4: New file.
63154         * m4/iconv.m4: New file.
63155         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63156
63157 2000-03-03  Jim Meyering  <meyering@lucent.com>
63158
63159         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63160
63161 2000-03-02  Jim Meyering  <meyering@lucent.com>
63162
63163         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63164         the messages come out on separate lines.
63165
63166         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63167         rather than jm_CHECK_DECLARATIONS.
63168         * m4/decl.m4: Remove now-unused file.
63169
63170         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63171         geteuid.
63172
63173 2000-03-02  Jim Meyering  <meyering@lucent.com>
63174
63175         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63176
63177 2000-03-01  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63180         * lib/unicodeio.c: Likewise.
63181
63182 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63183
63184         * lib/config.charset: New file.
63185         * lib/localcharset.c: New file.
63186         * lib/unicodeio.h, lib/unicodeio.c: New files.
63187         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63188         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63189         (noinst_HEADERS): Add unicodeio.h.
63190         (all-local, install-exec-local, charset.alias): New targets.
63191
63192 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63193
63194         * lib/quotearg.c (ALERT_CHAR): New macro.
63195         (quotearg_buffer_restyled): Use it.
63196
63197 2000-02-27  Jim Meyering  <meyering@lucent.com>
63198
63199         * m4/check-decl.m4: Add getenv to the list.
63200
63201 2000-02-27  Jim Meyering  <meyering@lucent.com>
63202
63203         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63204         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63205
63206         * lib/backupfile.c: Guard inclusion of stdlib.h with
63207         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63208         Declare malloc if needed.
63209
63210         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63211         `#ifndef HAVE_DECL..'
63212         now that autoconf always defines the HAVE_DECL_ symbols.
63213         * lib/human.c: Likewise.
63214         * lib/same.c: Likewise.
63215         * lib/strtoumax.c: Likewise.
63216
63217         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63218         declaration check was not run.
63219         * lib/hash.c: Likewise.
63220         * lib/human.c: Likewise.
63221         * lib/same.c: Likewise.
63222         * lib/strtoumax.c: Likewise.
63223
63224         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63225         `.', then first look up the entire `.'-containing string as a login
63226         name.
63227
63228 2000-02-23  Jim Meyering  <meyering@lucent.com>
63229
63230         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63231         in place of my hack.
63232
63233 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63234
63235         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63236         (textint): New typedef.
63237         (parser_control): Member year changed from int to textint.
63238         All uses changed.
63239         (YYSTYPE): Removed; replaced by %union with int and textint members.
63240         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63241         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63242         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63243         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63244         (date, number, to_year): Use width of number in digits, not its value,
63245         to determine whether it's a 2-digit year, or a 2-digit time.
63246         (yylex): Store number of digits of numeric tokens.
63247         Reported by John Kendall.
63248
63249         (parser_control): Changed from struct parser_control to typedef (for
63250         consistency).  All uses changed.
63251
63252         (tID): Removed; not used.
63253         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63254
63255 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63256
63257         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63258         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63259
63260 2000-02-12  Jim Meyering  <meyering@lucent.com>
63261
63262         * lib/userspec.c (ISDIGIT): Define it.
63263         (isdigit): Remove definition.
63264         (is_number): Use ISDIGIT, not isdigit.
63265         <libintl.h>: Include.
63266         (_ and N_): Define.
63267         (parse_user_spec): Mark translatable strings.
63268
63269 2000-02-10  Jim Meyering  <meyering@lucent.com>
63270
63271         With these changes, nanosleep.[ch] are finally enough like the other
63272         lib/* replacement files to compile on a few more losing systems.
63273
63274         * lib/nanosleep.h: Don't include config.h.
63275         Remove prototype from declaration of nanosleep.
63276         (PARAMS): Remove now-unneeded definition.
63277         * lib/nanosleep.c: #undef nanosleep.
63278         (rpl_nanosleep): Rename from nanosleep.
63279
63280 2000-02-10  Jim Meyering  <meyering@lucent.com>
63281
63282         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63283         gnu_nanosleep to rpl_nanosleep.
63284
63285 2000-02-09  Jim Meyering  <meyering@lucent.com>
63286
63287         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63288         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63289
63290 2000-02-08  Akim Demaille  <akim@epita.fr>
63291
63292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63293         `[' and `]' and remove uses of `changequote'.
63294         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63295         (AC_SYS_LARGEFILE): Likewise.
63296         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63297         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63298         of changequote.
63299         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63300         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63301         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63302         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63303
63304 2000-02-05  Jim Meyering  <meyering@lucent.com>
63305
63306         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63307         Remove explicit use of AC_HEADER_TIME.  It is required by
63308         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63309         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63310         in autoconf whereby the expansion of the latter ended up preceding
63311         the expansion of its prerequisite, AC_HEADER_TIME.
63312         Reported by Volker Borchert.
63313
63314 2000-02-03  Jim Meyering  <meyering@lucent.com>
63315
63316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63317
63318 2000-02-03  Jim Meyering  <meyering@lucent.com>
63319
63320         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63321         rather than with `#if HAVE_UTMPNAME'.
63322
63323 2000-02-02  Jim Meyering  <meyering@lucent.com>
63324
63325         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63326         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63327         Reported by Eli Zaretskii.
63328
63329 2000-02-01  Jim Meyering  <meyering@lucent.com>
63330
63331         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63332
63333 2000-01-31  Jim Meyering  <meyering@lucent.com>
63334
63335         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63336         functions.  Add the time.h and sys/time.h headers along with the
63337         AC_REQUIRE'ment of AC_HEADER_TIME.
63338
63339 2000-01-31  Jim Meyering  <meyering@lucent.com>
63340
63341         * lib/nanosleep.h (nanosleep): Guard declaration with
63342         `#if ! HAVE_DECL_NANOSLEEP'.
63343         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63344         the declaration in that vendor's sys/timers.h.
63345         Reported by Christian Krackowizer.
63346
63347         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63348         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63349         (ISPRINT): Likewise.
63350         Reported by Tom Tromey.
63351
63352 2000-01-30  Jim Meyering  <meyering@lucent.com>
63353
63354         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63355
63356         * m4/prereq.m4 (utmp_includes): Define.
63357         Check for ut_user and ut_name members in both struct utmpx
63358         and struct utmp.
63359
63360 2000-01-30  Jim Meyering  <meyering@lucent.com>
63361
63362         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63363         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63364         header files where only utmpx.ut_user is declared.
63365
63366         * lib/readutmp.h (UT_USER): Define.
63367
63368 2000-01-29  Jim Meyering  <meyering@lucent.com>
63369
63370         * m4/lib-check.m4: New file containing library-related checks from
63371         fileutils and sh-utils (textutils had none).
63372
63373 2000-01-28  Jim Meyering  <meyering@lucent.com>
63374
63375         * m4/perl.m4: Change format of warning message to look more like that
63376         from the missing script.  Suggestion from François Pinard.
63377
63378 2000-01-25  Jim Meyering  <meyering@lucent.com>
63379
63380         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63381         well as time.h in the compile check.
63382         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63383         Fix typo in cross-compiling case: s/yes/no/.
63384
63385 2000-01-23  Jim Meyering  <meyering@lucent.com>
63386
63387         * m4/jm-macros.m4: Move df-related tests here from
63388         fileutils/configure.in
63389
63390         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63391         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63392
63393         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63394         s/space/ac_fsusage_space/.
63395         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63396
63397         * m4/ftruncate.m4: New file (derived from part of
63398         fileutils/configure.in).
63399         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63400         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63401
63402         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63403         AC_SUBST these here, rather than just in sh-util/configure.in, so
63404         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63405         all the same.
63406         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63407         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63408         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63409         (AC_SUBST(POW_LIBM)): Likewise.
63410         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63411
63412 2000-01-23  Jim Meyering  <meyering@lucent.com>
63413
63414         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63415         obstack.c.
63416
63417 2000-01-22  Jim Meyering  <meyering@lucent.com>
63418
63419         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63420
63421         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63422
63423         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63424         configure.in
63425         (AC_CHECK_HEADERS): Likewise for sh-utils.
63426         (AC_CHECK_HEADERS): Likewise for textutils.
63427         Merge the three lists of headers.
63428
63429         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63430         from fileutils' configure.in.
63431
63432         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63433         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63434         check-decl.m4.
63435
63436         * m4/check-decl.m4: Use #if rather than #ifdef.
63437         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63438         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63439         (_jm_DECL_HEADERS): Define new function.
63440         (jm_CHECK_DECLARATIONS): Require it.
63441
63442 2000-01-22  Jim Meyering  <meyering@lucent.com>
63443
63444         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63445         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63446         Required for some AIX systems.  Reported by Christian Krackowizer.
63447         [TESTING] (main): New function.
63448
63449         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63450         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63451         letters.
63452
63453         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63454         iswprint.
63455
63456         * lib/strverscmp.c (ISDIGIT): Define.
63457         (strverscmp): Use ISDIGIT, not isdigit.
63458
63459 2000-01-19  Jim Meyering  <meyering@lucent.com>
63460
63461         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63462         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63463         defines `struct timespec' in <sys/time.h>
63464
63465         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63466         Thanks to Akim for explaining.
63467
63468 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63469
63470         * lib/nanosleep.c (nanosleep):
63471         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63472         POSIX.1 doesn't require SA_INTERRUPT and some systems
63473         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63474         it's been part of POSIX.1 since day 1 (in 1988).
63475
63476 2000-01-17  Jim Meyering  <meyering@lucent.com>
63477
63478         * lib/interlock: Remove unused file.  Reported by François Pinard.
63479
63480 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63481
63482         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63483         alert, backslash, formfeed, and vertical tab unnecessarily in
63484         shell quoting style.
63485
63486 2000-01-16  Jim Meyering  <meyering@lucent.com>
63487
63488         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63489         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63490         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63491         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63492
63493 2000-01-16  Jim Meyering  <meyering@lucent.com>
63494
63495         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63496         because the latter didn't work.
63497
63498 2000-01-15  Jim Meyering  <meyering@lucent.com>
63499
63500         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63501         (AC_REPLACE_FUNCS): Add memcpy and memset.
63502         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63503         Add strpbrk.
63504         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63505
63506 2000-01-12  Jim Meyering  <meyering@lucent.com>
63507
63508         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63509         (jm_PREREQ): Use it.
63510         (jm_PREREQ_READUTMP): New macro.
63511         (jm_PREREQ): Use it.
63512
63513 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63514
63515         Quote multibyte characters correctly.
63516         * m4/c-bs-a.m4: New file.
63517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63518         (jm_PREREQ): Use it.
63519
63520 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63521
63522         * m4/uintmax_t.m4: Port to autoconf 2.13.
63523
63524 2000-01-08  Jim Meyering  <meyering@ascend.com>
63525
63526         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63527         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63528
63529 2000-01-04  Jim Meyering  <meyering@ascend.com>
63530
63531         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63532         jm_STRUCT_DIRENT_D_TYPE.
63533         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63534         jm_STRUCT_DIRENT_D_INO.
63535         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63536         jm_STRUCT_UTIMBUF.
63537         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63538         renamings.
63539         * m4/utime.m4: Likewise.
63540
63541         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63542         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63543
63544 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63545
63546         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63547         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63548
63549 2000-01-02  Jim Meyering  <meyering@ascend.com>
63550
63551         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63552         remember if this is necessary.
63553
63554 1999-12-26  Jim Meyering  <meyering@ascend.com>
63555
63556         * m4/jm-macros.m4: Use it here.
63557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63558
63559 1999-12-23  Jim Meyering  <meyering@ascend.com>
63560
63561         * m4/jm-macros.m4: Check for clock_gettime (moved from
63562         fileutils/configure.in)
63563         Check for gettimeofday.
63564
63565 1999-12-20  Jim Meyering  <meyering@ascend.com>
63566
63567         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63568         autoconf-2.14a-1999-12-20.
63569
63570 1999-12-19  Jim Meyering  <meyering@ascend.com>
63571
63572         * m4/lstat-slash.m4: New file.
63573         * m4/jm-macros.m4: Use the new macro:
63574         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63575
63576 1999-12-07  Jim Meyering  <meyering@ascend.com>
63577
63578         * m4/perl.m4: Require that File::Compare be available, too.
63579         Too many systems seem to lack it.
63580
63581         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63582         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63583
63584 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63585
63586         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63587         problem with the QNX 4.25 shell, which doesn't propagate exit
63588         status of failed commands inside shell assignments.
63589
63590 1999-11-17  Jim Meyering  <meyering@ascend.com>
63591
63592         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63593
63594 1999-11-07  Jim Meyering  <meyering@ascend.com>
63595
63596         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63597
63598 1999-11-06  Jim Meyering  <meyering@ascend.com>
63599
63600         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63601         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63602
63603 1999-11-05  Jim Meyering  <meyering@ascend.com>
63604
63605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63606         configure.in of textutils, fileutils, and sh-utils into this one
63607         (shared between those packages) file.
63608         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63609         AC_STRUCT_ST_BLKSIZE.
63610
63611 1999-11-03  Jim Meyering  <meyering@ascend.com>
63612
63613         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63614         of AC_CHECK_TYPE checks includes unistd.h.
63615         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63616         Suggestion from Akim Demaille.
63617
63618 1999-10-30  Jim Meyering  <meyering@ascend.com>
63619
63620         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63621         m4-quoted string.
63622         * m4/ls-mntd-fs.m4: Likewise.
63623         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63624         * m4/jm-winsz1.m4: Likewise.
63625
63626         * m4/const.m4: Remove file, since the fix made it into the experimental
63627         version of autoconf.
63628         * m4/mktime.m4: Likewise.
63629
63630         * m4/check-type.m4: Remove file, now that the latest version of
63631         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63632
63633         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63634         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63635         AC_CHECK_TYPE.
63636
63637 1999-10-04  Jim Meyering  <meyering@ascend.com>
63638
63639         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63640
63641 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63642
63643         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63644         2.95.1 bug with HP-UX 10.20.
63645
63646 1999-09-17  Jim Meyering  <meyering@ascend.com>
63647
63648         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63649         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63650         due to missing strdup (against sh-utils-2.0).
63651
63652 1999-08-29  Jim Meyering  <meyering@ascend.com>
63653
63654         * m4/jm-macros.m4: Require jm_BISON.
63655         * m4/bison.m4: New file.
63656
63657 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63658
63659         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63660         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63661
63662 1999-08-05  Jim Meyering  <meyering@ascend.com>
63663
63664         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63665         to avoid conflicts with `conftest' on 8+3 filesystems.
63666         Suggestion from Eli Zaretskii.
63667
63668 1999-08-04  Jim Meyering  <meyering@ascend.com>
63669
63670         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63671         fileutils and sh-utils (textutils's getline test was inadequate).
63672         (AM_FUNC_GETLINE): Run this test.
63673         (AC_CHECK_FUNCS): Check for getdelim.
63674         Reported by Bob Proulx.
63675
63676 1999-08-02  Jim Meyering  <meyering@ascend.com>
63677
63678         * m4/jm-macros.m4: Add a comment.
63679
63680 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63681
63682         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63683         <inttypes.h> defines strtoumax as a macro (and not as a
63684         function).
63685
63686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63687
63688         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63689         that we can shift, multiply and divide unsigned long long
63690         values; Ultrix cc can't do it.
63691
63692 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63693
63694         * m4/mktime.m4: New file, which is a preview of what should appear
63695         in the next public autoconf release.
63696
63697 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63698
63699         * m4/lfs.m4: Remove this file.
63700         * m4/largefile.m4: New file.  It contains the old contents of
63701         lfs.m4, except that all names with prefix AC_LFS have been
63702         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63703         compatible with future autoconf versions.  Also, some minor m4
63704         quoting problems have been fixed.
63705
63706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63707
63708         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63709         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63710         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63711         and simplify the shell code.
63712
63713 1999-08-01  Jim Meyering  <meyering@ascend.com>
63714
63715         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63716         m4.
63717
63718 1999-07-20  Jim Meyering  <meyering@ascend.com>
63719
63720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63721
63722 1999-07-15  Jim Meyering  <meyering@ascend.com>
63723
63724         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63725
63726 1999-05-22  Jim Meyering  <meyering@ascend.com>
63727
63728         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63729
63730 1999-05-20  Jim Meyering  <meyering@ascend.com>
63731
63732         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63733         Add a colon after each `then' in case $4 is empty.
63734
63735 1999-05-16  Jim Meyering  <meyering@ascend.com>
63736
63737         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63738
63739 1999-05-10  Jim Meyering  <meyering@ascend.com>
63740
63741         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63742
63743         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63744         AC_FUNC_MKTIME.
63745
63746 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63747
63748         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63749
63750 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63751
63752         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63753         not CPPFLAGS, so that linking works correctly in IRIX.
63754
63755 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63756
63757         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63758
63759 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63760
63761         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63762         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63764         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63765         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63766
63767         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63768
63769 1999-04-20  Jim Meyering  <meyering@ascend.com>
63770
63771         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63772         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63773         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63774
63775 1999-04-18  Jim Meyering  <meyering@ascend.com>
63776
63777         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63778         * m4/jm-macros.m4: Use it.
63779
63780 1999-04-06  Jim Meyering  <meyering@ascend.com>
63781
63782         * m4/strftime.m4: Remove test for %f.
63783
63784 1999-03-29  Jim Meyering  <meyering@ascend.com>
63785
63786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63787         superset of the AC_TYPE_* checks in the textutils, fileutils,
63788         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63789         AC_TYPE_PID_T.
63790
63791 1999-03-28  Jim Meyering  <meyering@ascend.com>
63792
63793         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63794         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63795         replaced e.g., in the *.sh files of the sh-utils.
63796
63797 1999-03-20  Jim Meyering  <meyering@ascend.com>
63798
63799         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63800         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63801         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63802
63803 1999-03-19  Jim Meyering  <meyering@ascend.com>
63804
63805         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63806
63807 1999-03-12  Jim Meyering  <meyering@ascend.com>
63808
63809         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63810
63811 1999-03-07  Jim Meyering  <meyering@ascend.com>
63812
63813         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63814         declared.
63815
63816 1999-02-17  Jim Meyering  <meyering@ascend.com>
63817
63818         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63819         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63820
63821 1999-02-07  Jim Meyering  <meyering@ascend.com>
63822
63823         * m4/group-member.m4: New file -- extracted from sh-utils'
63824         configure.in.
63825
63826         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63827         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63828
63829 1999-02-06  Jim Meyering  <meyering@ascend.com>
63830
63831         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63832         * m4/fnmatch.m4: Likewise.
63833         * m4/getgroups.m4: Likewise.
63834         * m4/lstat.m4: Likewise.
63835         * m4/malloc.m4: Likewise.
63836         * m4/putenv.m4: Likewise.
63837         * m4/realloc.m4: Likewise.
63838         * m4/regex.m4: Likewise.
63839         * m4/stat.m4: Likewise.
63840         * m4/strftime.m4: Likewise.
63841         Suggestion from Alain Magloire.
63842
63843         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63844         * m4/fnmatch.m4: Likewise.
63845         * m4/getgroups.m4: Likewise.
63846         * m4/getline.m4: Likewise.
63847         * m4/lstat.m4: Likewise.
63848         * m4/malloc.m4: Likewise.
63849         * m4/memcmp.m4: Likewise.
63850         * m4/putenv.m4: Likewise.
63851         * m4/realloc.m4: Likewise.
63852         * m4/regex.m4: Likewise.
63853         * m4/stat.m4: Likewise.
63854         * m4/strftime.m4: Likewise.
63855         Suggestion from Alain Magloire.
63856
63857         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63858         an argument.
63859
63860         * m4/regex.m4: Add a run-time Test for proper operation of
63861         re_compile_pattern.
63862
63863 1999-01-31  Jim Meyering  <meyering@ascend.com>
63864
63865         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63866
63867 1999-01-30  Jim Meyering  <meyering@ascend.com>
63868
63869         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63870
63871         * m4/jm-mktime.m4: Make this a wrapper around the official
63872         AM_FUNC_MKTIME rather than my private copy, now that the official one
63873         is up to date.
63874         * m4/mktime.m4: Remove file.
63875
63876         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63877         * m4/uptime.m4: Likewise.
63878         * m4/uintmax_t.m4: Likewise.
63879
63880 1999-01-28  Jim Meyering  <meyering@ascend.com>
63881
63882         * m4/jm-macros.m4: Use jm_AFS.
63883         * m4/afs.m4: New file (from fileutils' configure.in).
63884
63885         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63886         * m4/chown.m4: Likewise.
63887         * m4/d-ino.m4: Likewise.
63888         * m4/d-type.m4: Likewise.
63889         * m4/fnmatch.m4: Likewise.
63890         * m4/getgroups.m4: Likewise.
63891         * m4/gettext.m4: Likewise.
63892         * m4/jm-mktime.m4: Likewise.
63893         * m4/jm-winsz2.m4: Likewise.
63894         * m4/lcmessage.m4: Likewise.
63895         * m4/ls-mntd-fs.m4: Likewise.
63896         * m4/malloc.m4: Likewise.
63897         * m4/memcmp.m4: Likewise.
63898         * m4/putenv.m4: Likewise.
63899         * m4/realloc.m4: Likewise.
63900         * m4/st_mtim.m4: Likewise.
63901         * m4/strftime.m4: Likewise.
63902
63903 1999-01-16  Jim Meyering  <meyering@ascend.com>
63904
63905         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63906         (ARGMATCH_DIE_DECL): Define.
63907
63908 1999-01-12  Jim Meyering  <meyering@ascend.com>
63909
63910         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63911         Reported by Lars Hecking.
63912
63913 1999-01-10  Jim Meyering  <meyering@ascend.com>
63914
63915         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63916         gross kludge.
63917         * m4/inttypes_h.m4: Likewise.
63918         * m4/lstat.m4: Likewise.
63919         * m4/malloc.m4: Likewise.
63920         * m4/readdir.m4: Likewise.
63921         * m4/realloc.m4: Likewise.
63922         * m4/st_dm_mode.m4: Likewise.
63923         * m4/stat.m4: Likewise.
63924         * m4/utimbuf.m4: Likewise.
63925         * m4/utimes.m4: Likewise.
63926
63927         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63928         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63929         comments in config.h.in are meaningful.
63930
63931         * m4/jm-macros.m4: Require autoconf-2.13 here.
63932
63933         * m4/regex.m4: By default, don't use the included regex.c on systems
63934         with glibc 2.  Suggestion from Uli Drepper.
63935
63936 1999-01-02  Jim Meyering  <meyering@ascend.com>
63937
63938         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63939
63940 1998-12-18  Jim Meyering  <meyering@ascend.com>
63941
63942         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63943         Based on a suggestion from Lars Hecking.
63944
63945 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63946
63947         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63948
63949 1998-11-16  Jim Meyering  <meyering@ascend.com>
63950
63951         * m4/lfs.m4: Double-quote the `uname...` expression.
63952
63953 1998-11-14  Jim Meyering  <meyering@ascend.com>
63954
63955         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63956         * m4/stat.m4: Likewise.
63957
63958 1998-11-03  Jim Meyering  <meyering@ascend.com>
63959
63960         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63961         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63962
63963 1998-10-18  Jim Meyering  <meyering@ascend.com>
63964
63965         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63966
63967 1998-10-17  Jim Meyering  <meyering@ascend.com>
63968
63969         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63970         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63971         calls for those previously hard-coded headers.  Instead, take a new
63972         parameter.
63973         (jm_CHECK_DECLARATIONS): Reflect interface change.
63974         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63975         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63976
63977         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63978
63979 1998-10-14  Jim Meyering  <meyering@ascend.com>
63980
63981         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63982         instead of "TZ=America/Vancouver".  From Paul Eggert.
63983
63984 1998-10-11  Jim Meyering  <meyering@ascend.com>
63985
63986         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63987         This adds a test for a recently added compatibility fix for mktime.c.
63988         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63989
63990 1998-09-27  Jim Meyering  <meyering@ascend.com>
63991
63992         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63993
63994         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63995         ../configure.in, including a change from Gordon Matzigkeit to allow
63996         cross-compiling for the Hurd.
63997
63998         * m4/glibc.m4: New file/macro to test for the GNU C Library
63999         versions 1 and 2.  From Gordon Matzigkeit.
64000         Indent.
64001
64002 1998-09-21  Jim Meyering  <meyering@ascend.com>
64003
64004         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64005
64006 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64007
64008         Port nanosecond-resolution times to UnixWare 2.1.2 and
64009         pedantic Solaris 2.6.
64010
64011         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64012         AC_STRUCT_ST_MTIM.
64013         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64014         Generate name of ns member, instead of just 1 or undef.
64015         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64016
64017 1998-08-15  Jim Meyering  <meyering@ascend.com>
64018
64019         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64020         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64021         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64022         instead of jm_TYPE_SSIZE_T.
64023
64024 1998-08-12  Jim Meyering  <meyering@ascend.com>
64025
64026         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64027
64028 1998-08-02  Jim Meyering  <meyering@ascend.com>
64029
64030         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64031         in acconfig.h manually.
64032
64033 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64034
64035         * m4/st_mtim.m4: New file.
64036
64037 1998-07-28  Jim Meyering  <meyering@ascend.com>
64038
64039         * m4/utimes.m4: Undef stat.
64040
64041 1998-07-25  Jim Meyering  <meyering@ascend.com>
64042
64043         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64044         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64045
64046 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64047
64048         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64049         uid and gid actually remain unchanged.
64050
64051 1998-07-07  Jim Meyering  <meyering@ascend.com>
64052
64053         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64054
64055 1998-07-04  Jim Meyering  <meyering@ascend.com>
64056
64057         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64058         to prove that this macro can be used in packages without regex.c.
64059
64060 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64061
64062         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64063         is to be used.
64064
64065 1998-07-03  Jim Meyering  <meyering@ascend.com>
64066
64067         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64068
64069         * m4/gettext.m4: New file -- from gettext-0.10.35.
64070         * m4/lcmessage.m4: Likewise.
64071         * m4/progtest.m4: Likewise.
64072
64073         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64074         * m4/jm-macros.m4: Require the new macro.
64075
64076 1998-06-29  Jim Meyering  <meyering@ascend.com>
64077
64078         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64079         for the definition of NGROUPS (used in a system header included
64080         by sys/mount.h).
64081
64082 1998-06-28  Jim Meyering  <meyering@ascend.com>
64083
64084         * m4/ls-mntd-fs.m4: New file.
64085         * m4/fstypename.m4: New file.
64086
64087         * m4/jm-macros.m4: Require the new macro.
64088         * m4/jm-glibc-io.m4: New file.
64089
64090 1998-05-19  Jim Meyering  <meyering@ascend.com>
64091
64092         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64093         * m4/lchown.m4: New file.
64094
64095         * m4/Makefile.am.in: New file.
64096         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64097
64098 1998-05-14  Jim Meyering  <meyering@ascend.com>
64099
64100         * m4/Makefile.am (EXTRA_DIST): Add them.
64101         * m4/jm-macros.m4: New file.
64102         * m4/utimbuf.m4: New file.
64103
64104 1998-05-12  Jim Meyering  <meyering@ascend.com>
64105
64106         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64107
64108 1998-05-11  Jim Meyering  <meyering@ascend.com>
64109
64110         * m4/isc-posix.m4: New file.
64111
64112 1998-05-10  Jim Meyering  <meyering@ascend.com>
64113
64114         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64115
64116 1998-05-09  Jim Meyering  <meyering@ascend.com>
64117
64118         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64119         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64120         with automake.
64121
64122         * m4/ssize_t.m4: New file.
64123         * m4/mktime.m4: Remove file -- the new automake has this now.
64124
64125 1998-04-26  Jim Meyering  <meyering@ascend.com>
64126
64127         * m4/assert.m4: New file.
64128         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64129
64130 1998-04-05  Jim Meyering  <meyering@ascend.com>
64131
64132         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64133         (jm_PREREQ): Use it here.
64134
64135 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64136
64137         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64138         in acconfig.h.
64139
64140 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64141
64142         * m4/prereq.m4: New file.
64143         * m4/error.m4: New file.
64144         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64145
64146 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64147
64148         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64149         cache-check for the same variable -- that defeated the purpose of
64150         the test; the test program was never run.  This was a problem only
64151         on systems with losing getline functions -- HP-UX 10.20 is one.
64152         Reported by Bjorn Helgaas.
64153
64154 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64155
64156         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64157
64158 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64159
64160         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64161
64162         * m4/const.m4: New file.  Use an initializer in this declaration
64163         typedef int charset[2]; const charset x;
64164         Reported by Bob Glickstein.
64165
64166 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64167
64168         * m4/chown.m4: Fix reversed types on -1 args to chown.
64169         From Kaveh Ghazi.
64170
64171 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64172
64173         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64174         Add lseek and memchr.
64175
64176         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64177         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64178         have a 20-character limit on names.
64179
64180 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64181
64182         * m4/inttypes_h.m4: New file.
64183         * m4/uintmax_t.m4: New file.
64184         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64185
64186
64187         -----
64188
64189         Local Variables:
64190         coding: utf-8
64191         End:
64192
64193         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64194
64195         Copying and distribution of this file, with or without
64196         modification, are permitted provided the copyright notice
64197         and this notice are preserved.